evilsocket / pwnagotchi

(⌐■_■) - Deep Reinforcement Learning instrumenting bettercap for WiFi pwning.
https://pwnagotchi.ai/
Other
7.75k stars 1.15k forks source link

[BUG] GPS and SPI e-paper conflict #902

Closed Hexalt closed 3 years ago

Hexalt commented 4 years ago

Describe the bug I definitely seem to be running into conflict when using the screen and GPS together. No output on /dev/ttyS0 or /dev/serial0 when enabled SPI is enabled.

The 2.13inch e-Paper HAT requires SPI. If the screen is enabled and SPI is disabled then the Pwnagotchi service will fail to run and gps output is sent on /dev/ttyS0 or /dev/serial0. Pwnagotchi service will load if screen is disabled.

To Reproduce Steps to reproduce the behavior:

  1. Connect e-paper and GPS to GPIO pins
  2. Enable waveshare_2 display, SPI, and Serial Port hardware
  3. Reboot
  4. No GPS output on /dev/ttyS0 or /dev/serial0.

Expected behavior Everything boots up. GPS output on /dev/ttyS0 or /dev/serial0.

Environment (please complete the following information):

Additional context Reproduced on a new install of Pwnagotchi.

ajaswa commented 4 years ago

I have the same problem with a fresh install of Pwnagotchi.

Environment:

Pwnagotchi version 1.5.3 Type of hardware Raspberry Pi Zero WH 2.13inch e-Paper HAT Ublox GPS NEO-6M UPS-Lite V1.2

I came across this post suggesting a solution to the issue: https://community.pwnagotchi.ai/t/serial-uart-not-working-on-gpio-14-and-gpio-15/306/6

I spent some time sorting though the code and finding where that header file is complied for pwnagotchi and swapped it out for the header file that does not tie up the uart gpio pins. Any feedback would be greatly appreciated.