bmellink / IBusBM

Arduino library for RC IBUS protocol - servo (receive) and sensors/telemetry (send) using hardware UART
GNU General Public License v3.0
205 stars 51 forks source link

Sensor not working #38

Closed magnum3131 closed 1 year ago

magnum3131 commented 1 year ago

Hi,

I'am trying to make working your sensor example but my flysky Radio doesn't display anything.

The sensor Trame is well detected withe the trame 0x04, 0x81, 0x7A, 0xFF but after i nether received the PROTOCOL_COMMAND_TYPE: // 0x90, send sensor type

My card ESP32 with serial2, Radio Flysky NB4 and FGr4S rx

switch (buffer[0] & 0x0f0) { case PROTOCOL_COMMAND_DISCOVER: // 0x80, discover sensor cnt_poll++; // echo discover command: 0x04, 0x81, 0x7A, 0xFF stream->write(0x04); stream->write(PROTOCOL_COMMAND_DISCOVER + adr); chksum = 0xFFFF - (0x04 + PROTOCOL_COMMAND_DISCOVER + adr ); break; Any idea ?

Thanks

PB solve, My ESP32 as problem with Serial 2

magnum3131 commented 1 year ago

PB solve, My ESP32 as problem with Serial 2