'잡동사니'에 해당되는 글 13306건

  1. 2023.12.11 esp8266 nodemcu v3 기본 펌웨어
  2. 2023.12.11 esp8266 esptool.py
  3. 2023.12.11 esp8266 microUSB 연결 2
  4. 2023.12.10 동물병원
  5. 2023.12.09 키보드 중고 구매
  6. 2023.12.09 esp8266 arduino
  7. 2023.12.09 시놀로지 + iptime + 크롬은 접속 불가
  8. 2023.12.08 esp32 freertos
  9. 2023.12.08 stm32 freertos
  10. 2023.12.08 golang echo static web / logo.* 안돼?
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 구차니

어우 돈이 훅훅 나가는구만 ㅠㅠ

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

약빨인가..  (0) 2023.12.23
피곤하다!!!  (0) 2023.12.17
연차인데 병원 투어  (0) 2023.12.05
똥개 중성화수술  (2) 2023.12.01
치후 360 S7 로봇 청소기 배터리 분해  (0) 2023.11.29
Posted by 구차니
개소리 왈왈/컴퓨터2023. 12. 9. 22:29

알리에서도 124,124원 하는 고가의 키보드

일단 usb 선이 잘린놈이라 고쳐야 하는데, 고치는 김에 겸사겸사 트랙볼 키보드(세진)도 같이 손을 봐야겠다.

특이하게도 키보드 높이가 2단계로 조절이 가능할 것으로 보이고, 하단에 말아서 대충 넣을 곳도 보인다.

[링크 : https://ko.aliexpress.com/item/4000833845776.html]

 

드라이버 설치글

[링크 : https://www.clien.net/service/board/cm_keyboard/15304796]

[링크 : https://m.blog.naver.com/wreg/221940558957

 

+

HP껀 꺼봐도 레노버나 thinkpad를 잘 써본게 아니라 못 본것 같은데

빨콩쪽 중앙 버튼이 스크롤용이고, 이게 scrolling standard라는 이름으로 불리는 듯.

[링크 : https://m.blog.naver.com/wreg/221854068812]

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

lenovo m710q 재설치  (0) 2023.12.18
ibm ultranav (sk-8845rc)  (2) 2023.12.12
쿨러교체.. 망했군  (0) 2023.12.06
lenovo M710q HDMI 출력 단자  (0) 2023.12.06
thinkcentre M710q bios 들어가기  (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 구차니
하드웨어/Storage2023. 12. 9. 10:59

도대체 머지 -ㅁ-?

일단 설정 하나 빼니까 edge에서는 된다.

 

외부 엑세스 - 고급 - 호스트 이름을 삭제함.

 

로그인 포털 - DSM - 도메인

사용자 지정된 도메인 을 지정하고 HSTS를 하면

 

이렇게 나오는데 도대체 머가 문제일까...

'하드웨어 > Storage' 카테고리의 다른 글

DS213j DSM 7로 업데이트  (0) 2023.11.25
intel SSD DC S3500 시리즈  (0) 2022.04.25
lsi cachecade  (0) 2022.02.18
webbios raid 설정.  (0) 2022.02.17
lsi raid sbr?  (0) 2022.02.17
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 구차니
Programming/golang2023. 12. 8. 11:30

logo.png나 logo.svg가 읽히지 않는 이상한 문제 발생

 

확인해보니 내부적으로 skipper를 이용해 log로 시작하면 스킵하도록 해놨는데

그걸 HasPrefix() 로 구현하다 보니, logo.svg나 log.png 에서 log로 시작하니 스킵되어 발생한 해프닝(?)

/log를 /log/로 바꾸면 문제없이 logo.png도 읽어온다.

e.Use(middleware.StaticWithConfig(middleware.StaticConfig{
Root: "html",
Skipper: func(c echo.Context) bool {
return strings.HasPrefix(c.Request().RequestURI, "/log")
},
}))

'Programming > golang' 카테고리의 다른 글

golang swagger part 2  (0) 2024.01.18
golang용 swagger  (0) 2024.01.17
golang 타입 땜시 짜증  (0) 2023.11.10
golang 타입 캐스팅 제약(?)  (0) 2023.11.09
golang 배열과 슬라이스  (0) 2023.11.08
Posted by 구차니