-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to prepare image data for client #3
Comments
Si si isty ze to bol validny obrazok? Mohlo sa to nespravne wget-nut? Mas logy z toho webserveru? |
Nevylucuju to, ale jak tak koukam do logu na webserveru tak je tam vse OK |
Jeste mne napada jedna vec. Jan 3 00:53:04 ZigBeeGate rc.local[396]: 2022-01-03 00:53:04,238 Got checkin request Jestli tohle nemuze zpusobit nejaky IO block (pomala SD karta ???) No kazdopadne mi ty dva requesty po sobe delaji problemy s mojim hackem IoTgetImage(url) v prepare_image() => posle 2x PendingInfo paket se stejnym imgUpdateVer = imgVer |
No nie je to uplne optimalne navrhnute, priznavam, station uz by mal vediet aky obrazok posle este pred tym ako pride request, je tam iba 100ms na odpoved a niektore systemy to nemusia stihat. |
hmmm, ten HTTP tam bude bottleneck, zvlast na pomalejsi lince zkusim to nejak "asynchronne na request" |
Ahoj, tak konecne funkcni "asynchronni" verze https://github.com/pklosko/epaper-station |
Info k https://twitter.com/pklosko/status/1476478308028141576?s=20
Po cca 16h provozu "Unable to prepare image data for client"
Prostredi:
RPiOS, buster@RPiZero
Linux ZigBeeGate 5.10.63+ #1496 Wed Dec 1 15:57:05 GMT 2021 armv6l GNU/Linux
start ststion.py from rc.local
cd /home/pi/epaper-station/; /usr/bin/python3 ./station.py&
Get image from web , periodicaly by CRON
/5 * * * ... wget -q -O /path/to/mac.png "https://myweb/epaper-png.php"
Toto jsem nalezl v logu:
cat daemon.log | grep rc.local | grep "Dec 30 09" | head -20
Dec 30 09:09:48 ZigBeeGate rc.local[394]: 2021-12-30 09:09:48,629 Got checkin request
Dec 30 09:09:48 ZigBeeGate rc.local[394]: 2021-12-30 09:09:48,637 CheckinInfo(swVer=1099511627785, hwType=1, batteryMv=2870, lastPacketLQI=33, lastPacketRSSI=179, temperature=0, rfu=b'\x00\x00\x00\x00\x00\x00')
Dec 30 09:09:48 ZigBeeGate rc.local[394]: 2021-12-30 09:09:48,639 Reading image file: c8ba94ff0130ca12.png
Dec 30 09:09:49 ZigBeeGate rc.local[394]: 2021-12-30 09:09:49,369 Unable to prepare image data for client [200, 186, 148, 255, 1, 48, 202, 18]
Dec 30 09:09:49 ZigBeeGate rc.local[394]: 2021-12-30 09:09:49,378 cannot identify image file <_io.BytesIO object at 0xb5c41900>
Dec 30 09:09:49 ZigBeeGate rc.local[394]: 2021-12-30 09:09:49,389 Got checkin request
Dec 30 09:09:49 ZigBeeGate rc.local[394]: 2021-12-30 09:09:49,390 CheckinInfo(swVer=1099511627785, hwType=1, batteryMv=2740, lastPacketLQI=33, lastPacketRSSI=179, temperature=0, rfu=b'\x00\x00\x00\x00\x00\x00')
Dec 30 09:09:49 ZigBeeGate rc.local[394]: 2021-12-30 09:09:49,405 Reading image file: c8ba94ff0130ca12.png
....
cat daemon.log | grep rc.local | grep "Dec 30 10" | head -20
Dec 30 10:36:11 ZigBeeGate rc.local[394]: 2021-12-30 10:36:11,127 Reading image file: c8ba94ff0130ca12.png
Dec 30 10:36:11 ZigBeeGate rc.local[394]: 2021-12-30 10:36:11,142 Unable to prepare image data for client [200, 186, 148, 255, 1, 48, 202, 18]
Dec 30 10:36:11 ZigBeeGate rc.local[394]: 2021-12-30 10:36:11,143 cannot identify image file <_io.BytesIO object at 0xb5a98450>
...
cat daemon.log | grep rc.local | grep "Dec 30 11" | head -20
Dec 30 11:04:50 ZigBeeGate rc.local[394]: 2021-12-30 11:04:50,916 Got checkin request
Dec 30 11:04:50 ZigBeeGate rc.local[394]: 2021-12-30 11:04:50,928 CheckinInfo(swVer=1099511627785, hwType=1, batteryMv=2870, lastPacketLQI=0, lastPacketRSSI=0, temperature=0, rfu=b'\x00\x00\x00\x00\x00\x00')
Dec 30 11:04:50 ZigBeeGate rc.local[394]: 2021-12-30 11:04:50,930 Reading image file: c8ba94ff0130ca12.png
Dec 30 11:04:51 ZigBeeGate rc.local[394]: 2021-12-30 11:04:51,004 PendingInfo(imgUpdateVer=4051434760, imgUpdateSize=15662, osUpdateVer=1099511627785, osUpdateSize=0, nextCheckinDelay=0, rfu=bytearray(b'\x00\x00\x00\x00'))
Dec 30 11:04:51 ZigBeeGate rc.local[394]: 2021-12-30 11:04:51,101 Got checkin request
Dec 30 11:04:51 ZigBeeGate rc.local[394]: 2021-12-30 11:04:51,108 CheckinInfo(swVer=1099511627785, hwType=1, batteryMv=2720, lastPacketLQI=0, lastPacketRSSI=0, temperature=0, rfu=b'\x00\x00\x00\x00\x00\x00')
Dec 30 11:04:51 ZigBeeGate rc.local[394]: 2021-12-30 11:04:51,109 Reading image file: c8ba94ff0130ca12.png
Dec 30 11:04:51 ZigBeeGate rc.local[394]: 2021-12-30 11:04:51,116 PendingInfo(imgUpdateVer=4051434760, imgUpdateSize=15662, osUpdateVer=1099511627785, osUpdateSize=0, nextCheckinDelay=0, rfu=bytearray(b'\x00\x00\x00\x00'))
Dec 30 11:33:43 ZigBeeGate rc.local[394]: 2021-12-30 11:33:43,146 Got checkin request
Dec 30 11:33:43 ZigBeeGate rc.local[394]: 2021-12-30 11:33:43,158 CheckinInfo(swVer=1099511627785, hwType=1, batteryMv=2860, lastPacketLQI=43, lastPacketRSSI=183, temperature=0, rfu=b'\x00\x00\x00\x00\x00\x00')
Dec 30 11:33:43 ZigBeeGate rc.local[394]: 2021-12-30 11:33:43,160 Reading image file: c8ba94ff0130ca12.png
Dec 30 11:33:43 ZigBeeGate rc.local[394]: 2021-12-30 11:33:43,224 PendingInfo(imgUpdateVer=3623677153, imgUpdateSize=15662, osUpdateVer=1099511627785, osUpdateSize=0, nextCheckinDelay=0, rfu=bytearray(b'\x00\x00\x00\x00'))
Dec 30 11:33:43 ZigBeeGate rc.local[394]: 2021-12-30 11:33:43,331 Got checkin request
Dec 30 11:33:43 ZigBeeGate rc.local[394]: 2021-12-30 11:33:43,338 CheckinInfo(swVer=1099511627785, hwType=1, batteryMv=2730, lastPacketLQI=43, lastPacketRSSI=183, temperature=0, rfu=b'\x00\x00\x00\x00\x00\x00')
Dec 30 11:33:43 ZigBeeGate rc.local[394]: 2021-12-30 11:33:43,339 Reading image file: c8ba94ff0130ca12.png
Dec 30 11:33:43 ZigBeeGate rc.local[394]: 2021-12-30 11:33:43,352 PendingInfo(imgUpdateVer=3623677153, imgUpdateSize=15662, osUpdateVer=1099511627785, osUpdateSize=0, nextCheckinDelay=0, rfu=bytearray(b'\x00\x00\x00\x00'))
Dec 30 11:33:43 ZigBeeGate rc.local[394]: 2021-12-30 11:33:43,598 Got chunk request
Dec 30 11:33:43 ZigBeeGate rc.local[394]: 2021-12-30 11:33:43,605 ChunkReqInfo(versionRequested=3623677153, offset=0, len=88, osUpdatePlz=0, rfu=b'\x00\x00\x00\x00\x00\x00')
Dec 30 11:33:43 ZigBeeGate rc.local[394]: 2021-12-30 11:33:43,612 ChunkInfo(offset=0, osUpdatePlz=0, rfu=0)
Dec 30 11:33:43 ZigBeeGate rc.local[394]: 2021-12-30 11:33:43,613 Reading image file: /tmp/3623677153.bmp
Dec 30 11:33:43 ZigBeeGate rc.local[394]: 2021-12-30 11:33:43,615 sending chunk 95 f5000000000000424d2e ...
Dec 30 11:33:43 ZigBeeGate rc.local[394]: 2021-12-30 11:33:43,680 Got chunk request
Dec 30 11:33:43 ZigBeeGate rc.local[394]: 2021-12-30 11:33:43,686 ChunkReqInfo(versionRequested=3623677153, offset=88, len=88, osUpdatePlz=0, rfu=b'\x00\x00\x00\x00\x00\x00')
The text was updated successfully, but these errors were encountered: