dgatf / msrc

Multi Sensor for RC with RP2040 - FrSky D, SmartPort, XBUS, SRXL, IBUS, SBUS, Multiplex Sensor Bus, Jeti Ex Bus, Hitec
GNU General Public License v3.0
165 stars 39 forks source link

No GPS on iBUS #119

Closed wamboin23 closed 4 months ago

wamboin23 commented 9 months ago

Unable to get GPS working with iBus.

Using NEO6M GPS and RP2040-Zero. Confirmed NEO6M working as expected using both ESP8266 and direct serial to PC.

Flysky transmitter finds GPS as sensor(s), but all zeros for all GPS related data.

Compiled with simulated sensors as test, and transmitter displays data as defined in SIM_SENSORS.

Have tried disabling all other sensors to ensure no conflicts.

Debug data from MSRC GUI as follows:

USB. Debug enabled USB (115) Ibus (210) < 4 A2 59 FF Ibus (132) > 6 A2 0 0 57 FF Ibus (120) < 4 A3 58 FF Ibus (120) > 8 A3 0 0 0 0 54 FF Ibus (120) < 4 A4 57 FF Ibus (120) > 8 A4 0 0 0 0 53 FF Ibus (120) < 4 A5 56 FF Ibus (120) > 8 A5 0 0 0 0 52 FF Ibus (120) < 4 A6 55 FF Ibus (120) > 6 A6 0 0 53 FF Vspeed (224): 0.00 Distance (224): 0.00 Ibus (118) < 4 A7 54 FF Ibus (118) > 6 A7 0 0 52 FF Ibus (118) < 4 A8 53 FF Ibus (118) > 6 A8 0 0 51 FF Ibus (118) < 4 A9 52 FF Ibus (118) > 6 A9 0 0 50 FF Ibus (116) < 4 A1 5A FF Ibus (116) > 6 A1 0 0 58 FF Ibus (116) < 4 A2 59 FF Ibus (116) > 6 A2 0 0 57 FF Ibus (116) < 4 A3 58 FF Ibus (116) > 8 A3 0 0 0 0 54 FF Ibus (116) < 4 A4 57 FF Ibus (116) > 8 A4 0 0 0 0 53 FF Ibus (116) < 4 A5 56 FF Ibus (116) > 8 A5 0 0 0 0 52 FF Ibus (116) < 4 A6 55 FF Ibus (116) > 6 A6 0 0 53 FF Ibus (116) < 4 A7 54 FF Ibus (116) > 6 A7 0 0 52 FF Ibus (116) < 4 A8 53 FF Ibus (116) > 6 A8 0 0 51 FF Ibus (116) < 4 A9 52 FF Ibus (116) > 6 A9 0 0 50 FF Ibus (116) < 4 A1 5A FF Ibus (116) > 6 A1 0 0 58 FF Ibus (116) < 4 A2 59 FF Ibus (116) > 6 A2 0 0 57 FF Ibus (116) < 4 A3 58 FF Ibus (116) > 8 A3 0 0 0 0 54 FF Ibus (116) < 4 A4 57 FF Ibus (116) > 8 A4 0 0 0 0 53 FF Ibus (116) < 4 A5 56 FF Ibus (116) > 8 A5 0 0 0 0 52 FF Ibus (116) < 4 A6 55 FF Ibus (116) > 6 A6 0 0 53 FF Ibus (116) < 4 A7 54 FF

dgatf commented 5 months ago

MSRC is not reading data from the GPS, as there is no GPS output in debug. That's why you see all zeroes in receiver from GPS.

Please check GPS connections and baudrate:

  1. GPS is connected to GPIO 6
  2. GPS baudrate should be the same as in MSRC gui (9600bps by default)
  3. GPS is connected to a 5v suply and connected to a GND pin in MSRC

You should see something like this: Captura desde 2024-02-24 10-12-32

You can disconect the receiver to MSRC to focus on the GPS issue. Captura desde 2024-02-24 10-16-49

dgatf commented 4 months ago

There was some issues with the gps. Fixed with commit 8d7dff8