[GH-ISSUE #215] OpenEPaperLink-PyStation Help needed #2325

Closed
opened 2026-03-20 21:05:33 +01:00 by sascha_hemi · 3 comments
Owner

Originally created by @nikkisstuff on GitHub (Feb 1, 2024).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/215

I have flashed my cc2531 with the correct firmware and the tag displays AP Found. I have put my png image in the OpenEPaperLink-PyStation folder and renamed it with the mac address but it will not upload. What am i missing? It returns

2024-02-01 20:46:53,155 - logic - INFO - Checkin from MAC 78:01:05:56:1c:85:c6:00
2024-02-01 20:46:53,156 - logic - INFO - No image found for 78:01:05:56:1c:85:c6:00
2024-02-01 20:47:33,369 - logic - DEBUG - <AvailableDataRequest: outerChecksum=23, sourceMac=00c6851c56050178, innerChecksum=110, lastPacketLQI=54, lastPacketRSSI=-81, temperature=0, batteryMv=24588, hwType=0, wakeupReason=0>

Originally created by @nikkisstuff on GitHub (Feb 1, 2024). Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/215 I have flashed my cc2531 with the correct firmware and the tag displays AP Found. I have put my png image in the OpenEPaperLink-PyStation folder and renamed it with the mac address but it will not upload. What am i missing? It returns 2024-02-01 20:46:53,155 - logic - INFO - Checkin from MAC 78:01:05:56:1c:85:c6:00 2024-02-01 20:46:53,156 - logic - INFO - No image found for 78:01:05:56:1c:85:c6:00 2024-02-01 20:47:33,369 - logic - DEBUG - <AvailableDataRequest: outerChecksum=23, sourceMac=00c6851c56050178, innerChecksum=110, lastPacketLQI=54, lastPacketRSSI=-81, temperature=0, batteryMv=24588, hwType=0, wakeupReason=0>
Author
Owner

@sirexeclp commented on GitHub (Feb 2, 2024):

I'm currently working on improving the pyStation in our forked repo.
You can take a look at the upload_image.py script.
https://github.com/Chaostreff-Potsdam/zonen-tags/blob/docker/tag_configurator/upload_image.py

For the original PyStation you need to put your images in a sub-directory named cache.
Also make sure that your current working directory is ARM_Tag_FW/cc2531_OEPL/OpenEPaperLink-PyStation and running the main.py as a script from there like python3 main.py.

<!-- gh-comment-id:1924542268 --> @sirexeclp commented on GitHub (Feb 2, 2024): I'm currently working on improving the pyStation in our forked repo. You can take a look at the upload_image.py script. https://github.com/Chaostreff-Potsdam/zonen-tags/blob/docker/tag_configurator/upload_image.py For the original PyStation you need to put your images in a sub-directory named `cache`. Also make sure that your current working directory is `ARM_Tag_FW/cc2531_OEPL/OpenEPaperLink-PyStation` and running the `main.py` as a script from there like `python3 main.py`.
Author
Owner

@nikkisstuff commented on GitHub (Feb 2, 2024):

Thanks For your help i will defiantly look at your fork.

I added the cache folder but when it try's to upload i get the following error. I am using a hanshow nebular tag.

C:\Users\nikki\Desktop\Project folders\openEpaperlink\OpenEPaperLink-master\OpenEPaperLink-master\ARM_Tag_FW\cc2531_OEPL\OpenEPaperLink-PyStation>main.py
2024-02-02 21:36:50,951 - logic - DEBUG - <AvailableDataRequest: outerChecksum=55, sourceMac=00c6851c56050178, innerChecksum=126, lastPacketLQI=63, lastPacketRSSI=-81, temperature=0, batteryMv=24588, hwType=0, wakeupReason=0>
2024-02-02 21:36:50,951 - logic - INFO - Checkin from MAC 78:01:05:56:1c:85:c6:00
Traceback (most recent call last):
  File "C:\Users\nikki\Desktop\Project folders\openEpaperlink\OpenEPaperLink-master\OpenEPaperLink-master\ARM_Tag_FW\cc2531_OEPL\OpenEPaperLink-PyStation\main.py", line 274, in <module>
    Logic().main_loop()
  File "C:\Users\nikki\Desktop\Project folders\openEpaperlink\OpenEPaperLink-master\OpenEPaperLink-master\ARM_Tag_FW\cc2531_OEPL\OpenEPaperLink-PyStation\main.py", line 106, in main_loop
    self.parseUart(b[0])
  File "C:\Users\nikki\Desktop\Project folders\openEpaperlink\OpenEPaperLink-master\OpenEPaperLink-master\ARM_Tag_FW\cc2531_OEPL\OpenEPaperLink-PyStation\main.py", line 81, in parseUart
    self.handle_adr(data_request);
  File "C:\Users\nikki\Desktop\Project folders\openEpaperlink\OpenEPaperLink-master\OpenEPaperLink-master\ARM_Tag_FW\cc2531_OEPL\OpenEPaperLink-PyStation\main.py", line 143, in handle_adr
    data = self.pic.get_image(mac + ".png", data_type)
  File "C:\Users\nikki\Desktop\Project folders\openEpaperlink\OpenEPaperLink-master\OpenEPaperLink-master\ARM_Tag_FW\cc2531_OEPL\OpenEPaperLink-PyStation\pic_fs.py", line 35, in get_image
    data = self.load_image(image_path, data_type)
  File "C:\Users\nikki\Desktop\Project folders\openEpaperlink\OpenEPaperLink-master\OpenEPaperLink-master\ARM_Tag_FW\cc2531_OEPL\OpenEPaperLink-PyStation\pic_fs.py", line 81, in load_image
    is_similar = abs(pixel[0] - c[0]) < 128 \
TypeError: 'int' object is not subscriptable 
<!-- gh-comment-id:1924737889 --> @nikkisstuff commented on GitHub (Feb 2, 2024): Thanks For your help i will defiantly look at your fork. I added the cache folder but when it try's to upload i get the following error. I am using a hanshow nebular tag. ``` C:\Users\nikki\Desktop\Project folders\openEpaperlink\OpenEPaperLink-master\OpenEPaperLink-master\ARM_Tag_FW\cc2531_OEPL\OpenEPaperLink-PyStation>main.py 2024-02-02 21:36:50,951 - logic - DEBUG - <AvailableDataRequest: outerChecksum=55, sourceMac=00c6851c56050178, innerChecksum=126, lastPacketLQI=63, lastPacketRSSI=-81, temperature=0, batteryMv=24588, hwType=0, wakeupReason=0> 2024-02-02 21:36:50,951 - logic - INFO - Checkin from MAC 78:01:05:56:1c:85:c6:00 Traceback (most recent call last): File "C:\Users\nikki\Desktop\Project folders\openEpaperlink\OpenEPaperLink-master\OpenEPaperLink-master\ARM_Tag_FW\cc2531_OEPL\OpenEPaperLink-PyStation\main.py", line 274, in <module> Logic().main_loop() File "C:\Users\nikki\Desktop\Project folders\openEpaperlink\OpenEPaperLink-master\OpenEPaperLink-master\ARM_Tag_FW\cc2531_OEPL\OpenEPaperLink-PyStation\main.py", line 106, in main_loop self.parseUart(b[0]) File "C:\Users\nikki\Desktop\Project folders\openEpaperlink\OpenEPaperLink-master\OpenEPaperLink-master\ARM_Tag_FW\cc2531_OEPL\OpenEPaperLink-PyStation\main.py", line 81, in parseUart self.handle_adr(data_request); File "C:\Users\nikki\Desktop\Project folders\openEpaperlink\OpenEPaperLink-master\OpenEPaperLink-master\ARM_Tag_FW\cc2531_OEPL\OpenEPaperLink-PyStation\main.py", line 143, in handle_adr data = self.pic.get_image(mac + ".png", data_type) File "C:\Users\nikki\Desktop\Project folders\openEpaperlink\OpenEPaperLink-master\OpenEPaperLink-master\ARM_Tag_FW\cc2531_OEPL\OpenEPaperLink-PyStation\pic_fs.py", line 35, in get_image data = self.load_image(image_path, data_type) File "C:\Users\nikki\Desktop\Project folders\openEpaperlink\OpenEPaperLink-master\OpenEPaperLink-master\ARM_Tag_FW\cc2531_OEPL\OpenEPaperLink-PyStation\pic_fs.py", line 81, in load_image is_similar = abs(pixel[0] - c[0]) < 128 \ TypeError: 'int' object is not subscriptable ```
Author
Owner

@nikkisstuff commented on GitHub (Feb 2, 2024):

I have found the problem The image i resized was not the correct format

<!-- gh-comment-id:1924743421 --> @nikkisstuff commented on GitHub (Feb 2, 2024): I have found the problem The image i resized was not the correct format
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/OpenEPaperLink#2325