bolderflight / sbus

Arduino and CMake library for communicating with SBUS receivers and servos.
MIT License
373 stars 132 forks source link

Can not Recv Sbus data with ESP8266 #77

Open lsors opened 5 months ago

lsors commented 5 months ago

this lib work well for ESP32 use two hardware Serial,but this time I want to use ESP8266 to handle sbus data, UART0 for code download and SBus RX, and Debug info output in a softwareSerial, build ok, but sbus_rx.read always false

bfs::SbusRx sbus_rx(&Serial) sbus_rx.read == false

board: WeMos D1 R2 mini esp8266 Arduino IDE 2.2.1

lsors commented 5 months ago

I change source code , use [espsoftwareSerial] as SBus RX, and UART0 as debug output, it works , and need change CPU freq at 160Mhz, use default setting 80Mhz will have error data recv, this way will downgrade CPU performence, not a good solution, it better find root issue ,let UART0 as sbus Rx

Eisbaeeer commented 2 weeks ago

I change source code , use [espsoftwareSerial] as SBus RX, and UART0 as debug output, it works , and need change CPU freq at 160Mhz, use default setting 80Mhz will have error data recv, this way will downgrade CPU performence, not a good solution, it better find root issue ,let UART0 as sbus Rx

Can you provide your changes reagarding softwareserial? Changing CPU freq. is already done. Thanks.