jayofelony / pwnagotchi

(⌐■_■) - Deep Reinforcement Learning instrumenting bettercap for WiFi pwning.
Other
1.1k stars 125 forks source link

[BUG] waveshare v4 + Raspberry 4B busy error #200

Closed AchimGrolimund closed 2 months ago

AchimGrolimund commented 3 months ago

Describe the bug I can't get the Waveshare v4 to work. bought it:https://www.digitec.ch/de/s1/product/waveshare-250x122-213inch-schwarz-weiss-e-ink-display-raspberry-pi-hat-entwicklungsboard-kit-24963494?supplier=8244233

i made also some tests with waveshare _2 _3 _4 but nothing happens. ;-(

some logs on normal mode:

/usr/local/lib/python3.11/dist-packages/stable_baselines3/common/vec_env/base_vec_env.py:243: UserWarning: You tried to call render() but no `render_mode` was passed to the env constructor.
  warnings.warn("You tried to call render() but no `render_mode` was passed to the env constructor.")

logs in debug mode:

[2024-03-15 15:49:37,381] [INFO] Session-stats plugin loaded.
WARNING:root:ui.fps is 0, the display will only update for major changes
DEBUG:root:Got here
[2024-03-15 15:49:37,391] [WARNING] ui.fps is 0, the display will only update for major changes
INFO:root:initializing waveshare v2in13_V4 display
[2024-03-15 15:49:37,391] [DEBUG] Got here
[2024-03-15 15:49:37,392] [INFO] initializing waveshare v2in13_V4 display
DEBUG:pwnagotchi.ui.hw.libs.waveshare.epaper.v2in13_V4.epd2in13_V4:e-Paper busy
[2024-03-15 15:49:37,516] [DEBUG] e-Paper busy
DEBUG:pwnagotchi.ui.hw.libs.waveshare.epaper.v2in13_V4.epd2in13_V4:e-Paper busy release
[2024-03-15 15:49:37,517] [DEBUG] e-Paper busy release
DEBUG:pwnagotchi.ui.hw.libs.waveshare.epaper.v2in13_V4.epd2in13_V4:e-Paper busy
[2024-03-15 15:49:37,517] [DEBUG] e-Paper busy
DEBUG:pwnagotchi.ui.hw.libs.waveshare.epaper.v2in13_V4.epd2in13_V4:e-Paper busy release
[2024-03-15 15:49:37,518] [DEBUG] e-Paper busy release
DEBUG:pwnagotchi.ui.hw.libs.waveshare.epaper.v2in13_V4.epd2in13_V4:e-Paper busy
[2024-03-15 15:49:37,520] [DEBUG] e-Paper busy
DEBUG:pwnagotchi.ui.hw.libs.waveshare.epaper.v2in13_V4.epd2in13_V4:e-Paper busy release
[2024-03-15 15:49:37,520] [DEBUG] e-Paper busy release
DEBUG:pwnagotchi.ui.hw.libs.waveshare.epaper.v2in13_V4.epd2in13_V4:e-Paper busy
[2024-03-15 15:49:37,529] [DEBUG] e-Paper busy
DEBUG:pwnagotchi.ui.hw.libs.waveshare.epaper.v2in13_V4.epd2in13_V4:e-Paper busy release
[2024-03-15 15:49:37,529] [DEBUG] e-Paper busy release
INFO:root:[AI] loading /root/brain.json
[2024-03-15 15:49:38,098] [INFO] [AI] loading /root/brain.json
DEBUG:pwnagotchi.ui.hw.libs.waveshare.epaper.v2in13_V4.epd2in13_V4:e-Paper busy
[2024-03-15 15:49:38,110] [DEBUG] e-Paper busy
DEBUG:pwnagotchi.ui.hw.libs.waveshare.epaper.v2in13_V4.epd2in13_V4:e-Paper busy release
[2024-03-15 15:49:38,111] [DEBUG] e-Paper busy release

Environment (please complete the following information):

Config

main.name = "paw"
main.whitelist = [
        "Anonym",
        "16:67:49:82:EF:B3",
]
ui.display.enabled = true
ui.display.type = "waveshare_4"
ui.display.color = "white"
# ui.display.rotation = 180
rai68 commented 2 months ago

What does connect with pins (not soldered) mean, can you show how its connected

AchimGrolimund commented 2 months ago

Hey @rai68 here the picture.

image

it is directly on the pins. like an RPI0WH. I still have an adapter to connect the display individually to the pins, but I don't know which pins run what. (pinout unknown)

image

rai68 commented 2 months ago

This looks like a broken waveshare

Edit: either DOA or just no longer working see if you can contact supplier

AchimGrolimund commented 2 months ago

i will first try to find a example script for my ESP32 to see if really the HW is the problem and then i will contact them.

:-( First e-Paper and broken or broken after 1 day :-( bad vipes :D

rai68 commented 2 months ago

Yes forgot about the example scripts, theres a python one you can download for the Pis

AchimGrolimund commented 2 months ago

do you know just one for the Rasperys? i have only found something for the PICO

rai68 commented 2 months ago

https://www.waveshare.com/wiki/2.13inch_e-Paper_HAT_Manual#Python_2

git clone https://github.com/waveshare/e-Paper.git
cd e-Paper/RaspberryPi_JetsonNano/
Download the demo (you can skip this step if you have downloaded it.).
wget https://files.waveshare.com/upload/7/71/E-Paper_code.zip
unzip E-Paper_code.zip -d e-Paper
cd e-Paper/RaspberryPi_JetsonNano/
Alternate decompression method:
sudo apt-get install p7zip-full
7z x E-Paper_code.zip -O./e-Paper
cd e-Paper/RaspberryPi_JetsonNano/
Run the demo:
# Make sure it's in e-Paper/RaspberryPi_JetsonNano/
cd python/examples/
python3 epd_2in13_V4_test.py
AchimGrolimund commented 2 months ago

unfortunately, as you said, the hardware seems to be defective. I have connected the display with the individual pins and the connector, as well as packed directly onto the board. but unfortunately both are unsuccessful. also always with the bussy log

i have now reported it to the seller and ordered 2 new ones ;-)

Thanks alot for the Help! that is awsome fast ;-)