본문 바로가기

전체 글

(43)
ESP32-BLE-Raspberry pi STM32 보드에 없는 통신 기능을 이용하기 위해 ESP32 C3 를 SPI로 연결. 동작: 1. STM32 보드는 DHT22에서 주기적으로 온습도 정보를 읽는다.2. ESP32 보드로 온습도 값을 전송한다.3. CAN으로 주기적으로 값을 Raspberry pi 보드에 전송한다.4. LCD 에 온습도 값을 출력한다.5. ESP32 보드는 BLE에 연결된 기기(Raspberry pi)가 있으면 요청에 따라 온습도 값을 전송한다. DHT22Taskvoid StartDHT22Task(void *argument){ for(;;) { DHT_GetData(&dht22Data); xQueueSend(dht22Queue, &dht22Data, pdMS_TO_TICKS(100)); xQu..
linux drop_caches permission denied 리눅스의 캐시를 해제하기 위해 사용하는 명령어.# page cachesync && echo 1 > /proc/sys/vm/drop_caches# dentries and inodes cachesync && echo 2 > /proc/sys/vm/drop_caches# page cache, dentries and inodes cachesync && echo 3 > /proc/sys/vm/drop_caches 루트 권한이 필요하니 sudo 사용. 그런데 permission denied 가 발생하면? "sudo echo X"는 echo 명령을 루트로 실행하지만, "> /proc/sys/vm/drop_caches"는 일반 사용자 권한으로 셸에서 처리되며, "/proc/sys/vm/drop_caches"에 쓰기 권..
Microsoft BitNet 1-bit LLMs, representing an extreme yet promising form of model quantization where weights and potentially activations are constrained to binary {-1, +1} or ternary {-1, 0, +1}, offer a compelling solution to the efficiency challenges. https://github.com/microsoft/BitNet GitHub - microsoft/BitNet: Official inference framework for 1-bit LLMsOfficial inference framework for 1-bit LLMs. Contribu..