'embeded'에 해당되는 글 1387건

  1. 2023.12.11 esp32 oled i2c
  2. 2023.12.11 esp8266 nodemcu v3 기본 펌웨어
  3. 2023.12.11 esp8266 esptool.py
  4. 2023.12.11 esp8266 microUSB 연결 2
  5. 2023.12.09 esp8266 arduino
  6. 2023.12.08 esp32 freertos
  7. 2023.12.08 stm32 freertos
  8. 2023.12.07 433MHz RF 통신
  9. 2023.12.04 esp8266 SDK
  10. 2023.12.04 esp8266 microUSB 연결
embeded/esp322023. 12. 11. 16:23

SPI 사기 전에는 일단 이걸로 테스트 해봐야겠군..

 

[링크 : https://stemwith.github.io/2021/09/26/ESP32-OLED/]

[링크 : https://randomnerdtutorials.com/esp32-ssd1306-oled-display-arduino-ide/]

'embeded > esp32' 카테고리의 다른 글

esp8266 wifi AT 명령어 예제  (0) 2023.12.12
esp32-s2 adc  (0) 2023.12.11
esp32-cam lcd 달기 2  (0) 2023.11.30
esp32cam / esp wroom 32 - pinout  (0) 2023.11.30
esp32 bt hid  (0) 2023.11.30
Posted by 구차니
embeded/eps82662023. 12. 11. 15:44

minicom이나 리눅스용 putty로 쇼를 해도 안되서

결국에는 arduino 설치하고 시리얼 터미널로 테스트하니 응답한다

Both NL & CR로 해주어야 응답한다. (망할!)

 

[링크 : https://techposts.org/flash-nodemcu-v3-stock-firmware/]

[링크 : https://github.com/sleemanj/ESP8266_Simple/blob/master/firmware/README.md]

 

v1.1.1
ai-thinker-v1.1.1.bin

the default baud rate is 115200
Important Note: The AT command must be end with "\r\n". For Arduino, must type the AT command like this

Serial1.print("AT+GMR\r\n");

Not like this:

Serial1.println("AT+GMR");

So the hardwareSerialMonitor sketch will not work now.

v0.9.5.2
ai-thinker-0.9.5.2-9600.bin
The default baud rate is 9600
ai-thinker-0.9.5.2.bin
The default baud rate is 115200
AT+GMR

AT version:0.21.0.0
SDK version:0.9.5

v0.9.5 beta
ai-thinker-0.9.5.bin
AT+GMR

00200.9.5(b1)
compiled @ Dec 25 2014 21:40:28
AI-THINKER Dec4

[링크 : https://wiki.aprbrother.com/en/Firmware_For_ESP8266.html]

 

어디서 받아야하나?

[링크 : https://www.espressif.com/en/support/download/at

 

 

+

AT 명령어

[링크 : https://blog.naver.com/ssshin22/220868021464]

[링크 : https://www.espressif.com/sites/default/files/4a-esp8266_at_instruction_set_en_v1.5.4_0.pdf]

'embeded > eps8266' 카테고리의 다른 글

esp8266 sdio wifi  (0) 2024.09.12
esp8266 wifi at 명령어  (0) 2023.12.12
esp8266 esptool.py  (0) 2023.12.11
esp8266 microUSB 연결 2  (0) 2023.12.11
esp8266 arduino  (0) 2023.12.09
Posted by 구차니
embeded/eps82662023. 12. 11. 14:53

ubuntu 22.04에서 brltty를 삭제하고 하라고 한다.

[링크 : https://stackoverflow.com/questions/70123431/why-would-ch341-uart-is-disconnected-from-ttyusb]

 

패키지 설치는 아래의 명령어를 사용하면 끝!

$ sudo apt remove brltty
$ git clone https://github.com/espressif/esptool.git
$ pip install intelhex
$ pip install pyserial
$ cd esptool

 

아따.. 읽어 보기도 힘드네 -_-

$ ./esptool.py --port /dev/ttyUSB0 read_flash_status
esptool.py v4.6.2
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: bc:ff:4d:f8:18:35
Uploading stub...
Running stub...
Stub running...
Status value: 0x0000
Hard resetting via RTS pin...
$ ./esptool.py --port /dev/ttyUSB0 flash_id
esptool.py v4.6.2
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: bc:ff:4d:f8:18:35
Uploading stub...
Running stub...
Stub running...
Manufacturer: d8
Device: 4016
Detected flash size: 4MB
Hard resetting via RTS pin...
$ ./esptool.py --port /dev/ttyUSB0 chip_id
esptool.py v4.6.2
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: bc:ff:4d:f8:18:35
Uploading stub...
Running stub...
Stub running...
Chip ID: 0x00f81835
Hard resetting via RTS pin...

 

$ ./esptool.py -h
usage: esptool [-h]
               [--chip {auto,esp8266,esp32,esp32s2,esp32s3beta2,esp32s3,esp32c3,esp32c6beta,esp32h2beta1,esp32h2beta2,esp32c2,esp32c6,esp32h2,esp32p4}]
               [--port PORT] [--baud BAUD]
               [--before {default_reset,usb_reset,no_reset,no_reset_no_sync}]
               [--after {hard_reset,soft_reset,no_reset,no_reset_stub}] [--no-stub] [--trace]
               [--override-vddsdio [{1.8V,1.9V,OFF}]] [--connect-attempts CONNECT_ATTEMPTS]
               {load_ram,dump_mem,read_mem,write_mem,write_flash,run,image_info,make_image,elf2image,read_mac,chip_id,flash_id,read_flash_status,write_flash_status,read_flash,verify_flash,erase_flash,erase_region,merge_bin,get_security_info,version}
               ...

esptool.py v4.6.2 - Espressif chips ROM Bootloader Utility

positional arguments:
  {load_ram,dump_mem,read_mem,write_mem,write_flash,run,image_info,make_image,elf2image,read_mac,chip_id,flash_id,read_flash_status,write_flash_status,read_flash,verify_flash,erase_flash,erase_region,merge_bin,get_security_info,version}
                        Run esptool.py {command} -h for additional help
    load_ram            Download an image to RAM and execute
    dump_mem            Dump arbitrary memory to disk
    read_mem            Read arbitrary memory location
    write_mem           Read-modify-write to arbitrary memory location
    write_flash         Write a binary blob to flash
    run                 Run application code in flash
    image_info          Dump headers from a binary file (bootloader or application)
    make_image          Create an application image from binary files
    elf2image           Create an application image from ELF file
    read_mac            Read MAC address from OTP ROM
    chip_id             Read Chip ID from OTP ROM
    flash_id            Read SPI flash manufacturer and device ID
    read_flash_status   Read SPI flash status register
    write_flash_status  Write SPI flash status register
    read_flash          Read SPI flash content
    verify_flash        Verify a binary blob against flash
    erase_flash         Perform Chip Erase on SPI flash
    erase_region        Erase a region of the flash
    merge_bin           Merge multiple raw binary files into a single file for later flashing
    get_security_info   Get some security-related data
    version             Print esptool version

options:
  -h, --help            show this help message and exit
  --chip {auto,esp8266,esp32,esp32s2,esp32s3beta2,esp32s3,esp32c3,esp32c6beta,esp32h2beta1,esp32h2beta2,esp32c2,esp32c6,esp32h2,esp32p4}, -c {auto,esp8266,esp32,esp32s2,esp32s3beta2,esp32s3,esp32c3,esp32c6beta,esp32h2beta1,esp32h2beta2,esp32c2,esp32c6,esp32h2,esp32p4}
                        Target chip type
  --port PORT, -p PORT  Serial port device
  --baud BAUD, -b BAUD  Serial port baud rate used when flashing/reading
  --before {default_reset,usb_reset,no_reset,no_reset_no_sync}
                        What to do before connecting to the chip
  --after {hard_reset,soft_reset,no_reset,no_reset_stub}, -a {hard_reset,soft_reset,no_reset,no_reset_stub}
                        What to do after esptool.py is finished
  --no-stub             Disable launching the flasher stub, only talk to ROM bootloader. Some features
                        will not be available.
  --trace, -t           Enable trace-level output of esptool.py interactions.
  --override-vddsdio [{1.8V,1.9V,OFF}]
                        Override ESP32 VDDSDIO internal voltage regulator (use with care)
  --connect-attempts CONNECT_ATTEMPTS
                        Number of attempts to connect, negative or 0 for infinite. Default: 7.

 

[링크 : https://github.com/espressif/esptool]

'embeded > eps8266' 카테고리의 다른 글

esp8266 wifi at 명령어  (0) 2023.12.12
esp8266 nodemcu v3 기본 펌웨어  (0) 2023.12.11
esp8266 microUSB 연결 2  (0) 2023.12.11
esp8266 arduino  (0) 2023.12.09
esp8266 SDK  (0) 2023.12.04
Posted by 구차니
embeded/eps82662023. 12. 11. 14:23

115200bps 로 설정해서 reset 누르니 아래와 같이 먼가 나오긴 한데..

pcb 뒷편에는 CH340G 드라이버 설치하고 9600bps로 연결하라고 하는데 머가 맞는걸까?

봉투에서 뜯은녀석이라 다른 프로그램이 들어있는건 아닐텐데..

�brlrl
ready

 

dmseg로 확인하면 아래와 같이 인식된다. CH341? CH340G 라고 한거 같은디..

normal boot
[  528.742541] usb 2-1.1: new full-speed USB device number 11 using ehci-pci
[  528.851812] usb 2-1.1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.54
[  528.851831] usb 2-1.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[  528.851838] usb 2-1.1: Product: USB2.0-Ser!
[  528.852466] ch341 2-1.1:1.0: ch341-uart converter detected
[  528.854364] ch341-uart ttyUSB0: break control not supported, using simulated break
[  528.854604] usb 2-1.1: ch341-uart converter now attached to ttyUSB0

 

flash 버튼 누르고 부팅하면 아래와 같이 조금더 나온다.

그런데 BRLTTY가 머하는걸까? USB 플래시 처럼인식은 안되나보네

flash 버튼 누르고 boot 메시지
[  455.103387] usb 2-1.1: new full-speed USB device number 10 using ehci-pci
[  455.213032] usb 2-1.1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.54
[  455.213052] usb 2-1.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[  455.213059] usb 2-1.1: Product: USB2.0-Ser!
[  455.213892] ch341 2-1.1:1.0: ch341-uart converter detected
[  455.214821] ch341-uart ttyUSB0: break control not supported, using simulated break
[  455.215109] usb 2-1.1: ch341-uart converter now attached to ttyUSB0
[  455.792404] input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input27
[  455.880634] usb 2-1.1: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
[  455.881356] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[  455.881387] ch341 2-1.1:1.0: device disconnected

 

 

일반 권한
$ brltty
BRLTTY 6.4 rev BRLTTY-6.4 [https://brltty.app/]
brltty: can't isolate namespaces
brltty: executing as the invoking user: falinux
brltty: can't set supplementary groups
brltty: group not joined: 0(root)
brltty: group not joined: 5(tty)
brltty: group not joined: 29(audio)
brltty: group not joined: 107(input)
brltty: group not joined: 133(pulse-access)
brltty: required capability not granted: cap_sys_admin (for injecting input characters typed on a braille device)
brltty: required capability not granted: cap_sys_tty_config (for playing alert tunes via the built-in PC speaker)
brltty: required capability not granted: cap_mknod (for creating needed but missing special device files)

 

root 권한
$ sudo brltty
BRLTTY 6.4 rev BRLTTY-6.4 [https://brltty.app/]
brltty: executing as the invoking user: root

 

두번 실행하니 먼가 5초에 한번 주기적으로 뜬다. 멀까?

(그냥 프롬프트가 뜨길래 먼가했는데 백그라운드로 brltty가 실행되고 있어서 뜨는 메시지 였음)

[450328.072373] input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input36
[450351.379981] input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input37
[450351.389760] usb 1-2.4.2: usbfs: interface 0 claimed by usbfs while 'brltty' sets config #1
[450356.391459] usb 1-2.4.2: usbfs: interface 0 claimed by usbfs while 'brltty' sets config #1
[450361.393130] usb 1-2.4.2: usbfs: interface 0 claimed by usbfs while 'brltty' sets config #1
[450366.397596] usb 1-2.4.2: usbfs: interface 0 claimed by usbfs while 'brltty' sets config #1
[450371.400305] usb 1-2.4.2: usbfs: interface 0 claimed by usbfs while 'brltty' sets config #1
[450376.389840] usb 1-2.4.2: usbfs: interface 0 claimed by usbfs while 'brltty' sets config #1
[450381.395540] usb 1-2.4.2: usbfs: interface 0 claimed by usbfs while 'brltty' sets config #1
[450386.401519] usb 1-2.4.2: usbfs: interface 0 claimed by usbfs while 'brltty' sets config #1
[450391.397008] usb 1-2.4.2: usbfs: interface 0 claimed by usbfs while 'brltty' sets config #1
[450396.389537] usb 1-2.4.2: usbfs: interface 0 claimed by usbfs while 'brltty' sets config #1
[450401.402252] usb 1-2.4.2: usbfs: interface 0 claimed by usbfs while 'brltty' sets config #1
[450406.395525] usb 1-2.4.2: usbfs: interface 0 claimed by usbfs while 'brltty' sets config #1

 

[링크 : https://linux.die.net/man/1/brltty]

'embeded > eps8266' 카테고리의 다른 글

esp8266 nodemcu v3 기본 펌웨어  (0) 2023.12.11
esp8266 esptool.py  (0) 2023.12.11
esp8266 arduino  (0) 2023.12.09
esp8266 SDK  (0) 2023.12.04
esp8266 microUSB 연결  (0) 2023.12.04
Posted by 구차니
embeded/eps82662023. 12. 9. 12:53

'embeded > eps8266' 카테고리의 다른 글

esp8266 esptool.py  (0) 2023.12.11
esp8266 microUSB 연결 2  (0) 2023.12.11
esp8266 SDK  (0) 2023.12.04
esp8266 microUSB 연결  (0) 2023.12.04
esp8266  (0) 2023.12.03
Posted by 구차니
embeded/freeRTOS2023. 12. 8. 17:48

esp32는 arduino ide를이용해서 하는데

대충 esp32 설치하고 나서 예시를 찾아보는데 기본 예시에서는 freertos가 없는 것 같다.

 

esp-idf(IoT Development Framework)을 나중에 설치해봐야 할 것 같은데..?

[링크 : https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/]

[링크 : https://www.vompressor.com/windows-clion-esp_idf/#google_vignette]

 

[링크 : https://github.com/DiegoPaezA/ESP32-freeRTOS]

 

[링크 : https://slowbootkernelhacks.blogspot.com/2020/12/esp32-freertos.html]

[링크 : https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/freertos.html]

[링크 : https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/freertos_idf.html]

 

[링크 : https://blog.naver.com/serimo/221560776476]

 

[링크 : https://poinsystem.tistory.com/3]

[링크 : https://poinsystem.tistory.com/2]

'embeded > freeRTOS' 카테고리의 다른 글

stm32 freertos  (0) 2023.12.08
freeRTOS stack & heap 메모리 사용량 예측  (0) 2015.12.16
lm3s811 freeRTOS ADC...  (0) 2015.11.16
freertos 자료  (0) 2015.11.12
freeRTOS 패키지?  (0) 2015.11.11
Posted by 구차니
embeded/freeRTOS2023. 12. 8. 17:42

stm32의 cube ide에 freertos를 통합해서 제공하는 듯

 

[링크 : https://eteo.tistory.com/165]

[링크 : https://eteo.tistory.com/166]

[링크 : https://jeonhj.tistory.com/72]

[링크 : https://m.blog.naver.com/oh930418/221152205204]

 

lwip

[링크 : https://blog.naver.com/eziya76/221867311729] echo server

[링크 : https://m.blog.naver.com/eziya76/221871231508] client

'embeded > freeRTOS' 카테고리의 다른 글

esp32 freertos  (0) 2023.12.08
freeRTOS stack & heap 메모리 사용량 예측  (0) 2015.12.16
lm3s811 freeRTOS ADC...  (0) 2015.11.16
freertos 자료  (0) 2015.11.12
freeRTOS 패키지?  (0) 2015.11.11
Posted by 구차니
embeded/arduino(genuino)2023. 12. 7. 23:25

싸고 좋은건 없다지만.. 

ISM 대역으로 저렴하면서 멀리까지 나쁘지 않은 속도로 통신이 가능한 모듈이 정말 없다는게 함정..

RX/TX 셋트로 만원인데 문제는 RX/TX가 아니라 RX 와 TX라서

양방향은 안된다는 의미겠구먼..

 

[링크 : https://kocoafab.cc/tutorial/view/218]

[링크 : https://m.eleparts.co.kr/goods/view?no=7666780]

 

'embeded > arduino(genuino)' 카테고리의 다른 글

rfid 12.5M / 125k  (0) 2024.07.25
arducam esp8266 https post 예제  (0) 2024.01.31
mcp2515 can  (0) 2023.10.30
아두이노 dht11  (0) 2022.11.14
아두이노 Serial.print()와 Serial.write()  (0) 2022.11.14
Posted by 구차니
embeded/eps82662023. 12. 4. 14:09

 

[링크 : https://nodemcu.readthedocs.io/en/release/]

[링크 : https://github.com/espressif/ESP8266_NONOS_SDK]

 

[링크 : https://github.com/nodemcu/nodemcu-devkit-v1.0]

 

보드의 FLASH 버튼을 LOW로 한 채로 켜야 하는 듯.(즉, 전원 넣기 전에 누르고 있어야 한단 의미)

Just click flash and you can burn firmware to ESP8266. Before you doing it, GPIO0 MUST LOW.

[링크 : https://github.com/nodemcu/nodemcu-flasher] 윈도우용 플래시 퓨징 프로그램

[링크 : https://github.com/nodemcu/nodemcu-firmware]  

 

[링크 : https://github.com/marcelstoer/nodemcu-pyflasher]  pyFlasher

  [링크 : https://nodemcu.readthedocs.io/en/latest/flash/]

[링크 : https://www.best-microcontroller-projects.com/nodemcu-firmware.html]

 

'embeded > eps8266' 카테고리의 다른 글

esp8266 esptool.py  (0) 2023.12.11
esp8266 microUSB 연결 2  (0) 2023.12.11
esp8266 arduino  (0) 2023.12.09
esp8266 microUSB 연결  (0) 2023.12.04
esp8266  (0) 2023.12.03
Posted by 구차니
embeded/eps82662023. 12. 4. 13:37

flash 버튼 누른채로 usb 연결하면 아래와 같이 먼가 나오는데

기존의 cp210x를 죽여버리고 ch341은 연결하는 느낌이다.

 

$ lsusb -t -v
    |__ Port 3: Dev 59, If 0, Class=Vendor Specific Class, Driver=, 12M
        ID 1a86:7523 QinHeng Electronics CH340 serial converter

 

$ sudo dmesg
[1473116.242277] usb 1-3: new full-speed USB device number 59 using xhci_hcd
[1473116.391455] usb 1-3: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.54
[1473116.391473] usb 1-3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[1473116.391479] usb 1-3: Product: USB2.0-Ser!
[1473116.431662] usbcore: registered new interface driver ch341
[1473116.431675] usbserial: USB Serial support registered for ch341-uart
[1473116.431693] ch341 1-3:1.0: ch341-uart converter detected
[1473116.432077] ch341-uart ttyUSB2: break control not supported, using simulated break
[1473116.432166] usb 1-3: ch341-uart converter now attached to ttyUSB2
[1473116.503795] input: PC Speaker as /devices/platform/pcspkr/input/input82
[1473117.030963] input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input83
[1473117.156864] usb 1-3: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
[1473117.157672] ch341-uart ttyUSB2: ch341-uart converter now disconnected from ttyUSB2
[1473117.157738] ch341 1-3:1.0: device disconnected
[1473117.174250] usb 1-2.4.2: usbfs: interface 0 claimed by cp210x while 'brltty' sets config #1
[1473117.178085] cp210x ttyUSB1: cp210x converter now disconnected from ttyUSB1
[1473117.178151] cp210x 1-2.4.2:1.0: device disconnected

'embeded > eps8266' 카테고리의 다른 글

esp8266 esptool.py  (0) 2023.12.11
esp8266 microUSB 연결 2  (0) 2023.12.11
esp8266 arduino  (0) 2023.12.09
esp8266 SDK  (0) 2023.12.04
esp8266  (0) 2023.12.03
Posted by 구차니