jeelabs / esp-link

esp8266 wifi-serial bridge, outbound TCP, and arduino/AVR/LPC/NXP programmer
Other
2.85k stars 723 forks source link

Getting 962100 Serial Bridge Baud Rate? #151

Closed matthewmellor closed 8 years ago

matthewmellor commented 8 years ago

Hi I'm just getting started using the esp-link firmware and I'm trying to send data through the serial bridge at 921600 baud. The web UI maxes at setting the value to 460800 baud but I figure there must be a setting that I could change within the code to raise the cap to 921600. Anyone know where I might start looking in the code? Thanks

tve commented 8 years ago

If you look at the http request being issued by one of the baud rate change buttons you can simply change the number and issue it manually. Sorry, don't have it handy right this minute. Note that you won't be able to sustain long bursts at 962100, there just isn't enough memory for buffering...

matthewmellor commented 8 years ago

Thanks for your help. I was able to change what you said, managed to get it to compile, and am now stuck with the buffering issue. Do you know a work around for this? Buy a different esp with more memory? I'm using the feather huzzah esp8266 which uses the esp-12 and has 4MB of Flash. Alternatively, is there something I could do with the buffering? My end goal is to continuously stream data (from a force sensor which needs the high baud rate) to my computer and then to analyze it in matlab.

tve commented 8 years ago

I'm not sure what to recommend. It's not going to be easy to stream at those data rates without packet loss. There are a bunch of tricks to save some memory that the esp-link code is currently using, but that will only get you so far.

I'm going to close this ticket 'cause there's nothing actionable for me. If you have further questions or issues please reopen.