Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to telnet the ESP8266-01 #25

Closed
palainp opened this issue Mar 9, 2022 · 2 comments
Closed

Unable to telnet the ESP8266-01 #25

palainp opened this issue Mar 9, 2022 · 2 comments

Comments

@palainp
Copy link

palainp commented Mar 9, 2022

Not sure what's (not) going on, I'm currently unable to connect to the firmware with telnet (I do not change the wiring between the flash and the slattach):

$ esptool.py --port /dev/ttyUSB0 write_flash 0x00000 firmware/0x00000.bin 0x10000 firmware/0x10000.bin
esptool.py v3.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: e8:db:84:df:2f:7f
Stub is already running. No upload is necessary.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00008fff...
Flash will be erased from 0x00010000 to 0x00049fff...
Compressed 36848 bytes to 26072...
Wrote 36848 bytes (26072 compressed) at 0x00000000 in 3.0 seconds (effective 98.6 kbit/s)...
Hash of data verified.
Compressed 235760 bytes to 163144...
Wrote 235760 bytes (163144 compressed) at 0x00010000 in 14.6 seconds (effective 129.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
$ sudo slattach -L -p slip -s 115200 /dev/ttyUSB0&
[1] 1487
$ sudo ifconfig sl0 192.168.240.2 pointopoint 192.168.240.1 up mtu 1500
$ ip addr sh sl0
4: sl0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 10
    link/slip 
    inet 192.168.240.2 peer 192.168.240.1/32 scope global sl0
       valid_lft forever preferred_lft forever
$ ip route sh 192.168.240.1
192.168.240.1 dev sl0 proto kernel scope link src 192.168.240.2 
$ telnet 192.168.240.1 7777
Trying 192.168.240.1...
^C

I can see with wireshark that packets are going to 192.168.240.1 but I get no response. When the ESP is reset, I can see a quick flash from IO2 but no blue light afterwards. This is the same with the pre-compiled .bin files.

Any ideas ?

@palainp
Copy link
Author

palainp commented Mar 10, 2022

Not sure if that is related but wth the following arguments it seems that the carrier signal is lost directly (I also tried to comment out the 2 GPIO_OUTPUT_SET (STATUS_LED, 1);` to get a blue led all the time but it failed, all is like the esp8266 simply does not start at all):

# time slattach -v -d -L -h -p slip -s 115200 /dev/ttyUSB0
slattach: tty_open: looking for lock
slattach: tty_open: trying to open /dev/ttyUSB0
slattach: tty_open: /dev/ttyUSB0 (fd=3)
slattach: tty_set_speed: 115200
slattach: tty_set_databits: 8
slattach: tty_set_stopbits: 1
slattach: tty_set_parity: N
slip started on /dev/ttyUSB0 interface sl0
slattach: tty_set_speed: 0

real	0m1,058s
user	0m0,000s
sys	0m0,003s

@palainp
Copy link
Author

palainp commented Mar 14, 2022

Update: I dove into the code to try to figure out where the fault can be, but I had no luck :(
I'm not sure if this issue is related to #6 but I think we should keep only one of them opened so I'll close this one.

By the way, during my research I discovered something that can do the job for me using ppp instead of slip (I managed to connect up to 921600 bauds):
https://github.com/esp8266/Arduino/blob/24c41524dc56c683d8926671bdd639d7411f2815/libraries/lwIP_PPP/examples/PPPServer/PPPServer.ino

And finally the whole work for this slip protocol firmware really deserves some congratulations for connecting some old stuff to up to date networks! Many many thanks!

@palainp palainp closed this as completed Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant