'전체 글'에 해당되는 글 332건

  1. 2026.05.15 :: Getting started with RTC
  2. 2026.01.19 :: Synalogy NAS - Git Server Setting
  3. 2025.12.19 :: Flutter 인증오류
  4. 2025.11.18 :: WebSerial
  5. 2025.11.18 :: Android - SerialPort
  6. 2025.11.18 :: usb-serial-for-android
board_android-IoT/STM32F 2026. 5. 15. 00:22

 

-

https://insoobaik.tistory.com/637

 

STM32 - RTC (Real Time Clock), Alarm을 통한 시간 및 알람 출력

RTC (Real Time Clock)RTC는 기본적으로 초고속 클럭이 필요하지 않기 때문에 LSE를 사용한다.  STM32는 RCC(Reset and Clock Control)를 통해 HSI, HSE, LSI, LSE를 설정하게 된다.HSE는 MCO 즉, ST-Link로부터 클럭을 전

insoobaik.tistory.com

 

 

https://wiki.st.com/stm32mcu/wiki/Getting_started_with_RTC

 

Getting started with RTC - stm32mcu

Main navigation contains tabs, main links and MediaWiki sidebar

wiki.st.com

 

- google search: stm32f103 rtc example code

 

 

-  

STM32 HAL 라이브러리에서 RTC_TimeTypeDef 구조체의 SubSeconds 필드는 1초 미만의 정밀한 시간(서브초, Sub-second)을 다룰 때 사용합니다. 주로 고해상도 타임스탬프가 필요할 때 활용됩니다.
핵심적인 사용법과 특징은 다음과 같습니다.
1. 주요 특징
  • 읽기 전용 성격: HAL_RTC_GetTime()을 호출할 때 RTC 하드웨어의 서브초 카운터 값을 읽어옵니다. HAL_RTC_SetTime()으로 시간을 설정할 때는 일반적으로 이 값을 사용하지 않습니다.
  • 카운트 방식: SubSeconds는 초 단위로 증가하는 것이 아니라, 1초 미만의 카운터 값을 저장합니다.
  • Synchronous Prescaler (\(PREDIV\_S\)): 서브초의 해상도는 RTC 초기화 설정에서 \(PREDIV\_S\) (Synchronous Prescaler) 값에 의해 결정됩니다. [1, 2]
2. 사용법 (코드 예시)
RTC 시간을 읽어올 때 SubSeconds를 활용하여 소수점 단위의 초를 계산하는 방법입니다.
c
RTC_HandleTypeDef hrtc;
RTC_TimeTypeDef sTime;
RTC_DateTypeDef sDate;

// 1. 현재 RTC 시간 및 날짜 가져오기 (시간을 먼저 읽어야 서브초가 갱신됨)
HAL_RTC_GetTime(&hrtc, &sTime, RTC_FORMAT_BIN);
HAL_RTC_GetDate(&hrtc, &sDate, RTC_FORMAT_BIN);

// 2. SubSeconds 값 활용
uint32_t sub_seconds = sTime.SubSeconds;

// 3. (옵션) 1초 미만 값을 밀리초(ms)로 변환
// 만약 PREDIV_S가 999로 설정되어 있다면 (1ms 단위)
// 1ms = (PREDIV_S - SubSeconds) / (PREDIV_S + 1) * 1000 이지만,
// 보통 하드웨어가 다운카운트 하므로 아래와 같이 계산
uint32_t ms = (hrtc.Init.SynchPrediv - sub_seconds) * 1000 / (hrtc.Init.SynchPrediv + 1);

// 4. 시간 출력 (시:분:초.밀리초)
printf("Time: %02d:%02d:%02d.%03ld\r\n", sTime.Hours, sTime.Minutes, sTime.Seconds, ms);
Use code with caution.
 
3. 필수 설정 (STM32CubeMX)
SubSeconds를 올바르게 사용하려면 RTC 설정에서 Synchronous Prescaler 값을 적절히 설정해야 합니다.
  • Synch Prediv (\(PREDIV\_S\)): \(32768 \text{ Hz}\) 크리스털 사용 시, \(255\) 또는 \(999\) 등으로 설정합니다.
  • \(999\) 설정 시: \(0 \sim 999\)까지 카운트하여 \(1\text{ms}\) 단위의 정밀도를 가집니다.
  • \(255\) 설정 시: \(0 \sim 255\)까지 카운트하여 더 높은 주기의 업데이트가 가능합니다.
요약
  • SubSeconds는 현재 시간의 정밀도를 나타내는 카운터입니다.
  • HAL_RTC_GetTime()으로만 갱신됩니다.
  • \(PREDIV\_S\) 값을 통해 서브초의 단위(\(\text{ms}\) 등)를 결정할 수 있습니다. [1]
posted by cskimair
:
Version_Issues-Management/Git 2026. 1. 19. 16:10

-

https://1v1in.tistory.com/entry/%EC%8B%9C%EB%86%80%EB%A1%9C%EC%A7%80-%EB%82%98%EC%8A%A4%EC%97%90-Git-%EC%84%9C%EB%B2%84-%EC%A0%81%EC%9A%A9%ED%95%98%EA%B8%B0

 

시놀로지 나스에 Git 서버 적용하기.

우분투에서 깃을 사용하다가 HDD가 깨지는 바람에 자료가 다 날라갔다. 이것저것 알아보다가 회사에서 가지고 있던 시놀로지 나스가 있어서 여기에 깃 서버를 설치하기로 했다. 1. 깃 서버 설치

1v1in.tistory.com

 

 

'Version_Issues-Management > Git' 카테고리의 다른 글

git submodule  (0) 2022.10.12
posted by cskimair
:
os/macOS 2025. 12. 19. 11:39

 

-에러코드 : 

 


Could not build the precompiled application for the device.
Error (Xcode): No profiles for 'com.rollcake.tabbarExample' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.rollcake.tabbarExample'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.


It appears that there was a problem signing your application prior to installation on the device.

Verify that the Bundle Identifier in your project is your signing id in Xcode
  open ios/Runner.xcworkspace

Also try selecting 'Product > Build' to fix the problem:

Error launching application on Chan-Seong의 iPhone edi.

 

 

 

-

posted by cskimair
:
JAVA/android_studio 2025. 11. 18. 09:06

WebSerial

https://developer.chrome.com/docs/capabilities/serial?hl=ko

 

직렬 포트 읽기 및 쓰기  |  Capabilities  |  Chrome for Developers

Web Serial API는 웹사이트가 직렬 장치와 통신할 수 있도록 하여 웹과 실제 세계를 연결합니다.

developer.chrome.com

 

posted by cskimair
:
JAVA/android_studio 2025. 11. 18. 09:02

https://m.blog.naver.com/yuyyulee/221691984923

 

[Android Tip] SerialPort(시리얼 통신) 사용하기 (JNI)

안드로이드 OS는 모바일 뿐만 아니라 다양한 기기에 적용될 수 있는데, 셋탑 박스나 디지털 광고 매체 등...

blog.naver.com

 

posted by cskimair
:
JAVA/android_studio 2025. 11. 18. 08:56

-

https://github.com/mik3y/usb-serial-for-android

 

GitHub - mik3y/usb-serial-for-android: Android USB host serial driver library for CDC, FTDI, Arduino and other devices.

Android USB host serial driver library for CDC, FTDI, Arduino and other devices. - mik3y/usb-serial-for-android

github.com

 

posted by cskimair
: