pr3y / Bruce

Predatory ESP32 Firmware
https://bruce.computer
GNU Affero General Public License v3.0
491 stars 80 forks source link

CYD2USB GPS SUPPORT #352

Open flaryx32 opened 1 day ago

flaryx32 commented 1 day ago

Describe the bug:

CYD2USB, cannot detect GPS module.

Steps To Reproduce:

Expected behavior:

GPS being detected

Actual behavior:

GPS not being detected

Additional context / logs:

The gps module is connected to the JST 4-pin connector near the MicroUSB port like so: GPS -> CYD
VCC -> VIN
GND -> GND
TX -> TX
RX -> RX

GPS module used:NEO-6M

Usefull links: https://github.com/Fr4nkFletcher/ESP32-Marauder-Cheap-Yellow-Display (They support the GPS with that firmware trough that port so i thought the same but can't find more info for where i should put the module for bruce).

IncursioHack commented 2 hours ago

Hello flaryx, I don't have the CYD and the GPS you mentioned, in Bruce's code we use the TinyGPS++ library, you must first check if the GPS mentioned is supported by the library in question, if not, we suggest using a GPS supported by the library.

https://github.com/pr3y/Bruce/blob/3b0166e5f67b3cba2d0bdcb13ee0dedec7287318/src/modules/wifi/wardriving.h#L13

Another case is that the connection needs to follow the platform.io order.

https://github.com/pr3y/Bruce/blob/3b0166e5f67b3cba2d0bdcb13ee0dedec7287318/platformio.ini#L1504

Out of curiosity, also try inverting keeping TX -> RX and RX -> TX.

flaryx32 commented 1 hour ago

Hi IncursioHack, it seems that TinyGPS++ supports my GPS module,

Another case is that the connection needs to follow the platform.io order.

can you explain this a bit better i am not sure i understood.

Also at the moment i already soldiererd TX->TX and RX->RX, and since i am learning to soldier i am not really confident in de-soldiering them to re soldier them... So i am sorry abt that :(