-
Notifications
You must be signed in to change notification settings - Fork 12
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
Not a valid juicebox message... #116
Comments
@BeneWilh one thing interesting in your log is the messages have protocol version "v08", I never seen that before. Will be nice if you add information about your device on the Wiki . https://github.com/JuiceRescue/JuiceboxRescueWiki/wiki/Firmware-Versions https://github.com/JuiceRescue/JuiceboxRescueWiki/wiki/Hardware-Versions |
@ivanfmartinez I am owning a Juicebox 32Pro from 08/2018, all data were already available in the Wiki, I added v08.
which means - if I understand it correctly communication is without encryption. IP/command/ver returns:
I restarted the box without internet, reconnected to internet and the error still exists and v08 ist used. Logging_branch_jb_commands_log 2024-11-16.txt as changing amps/power via HomeAssistand was not working for me (also not with v07) its dificukt to exclude App usage (in europe the apps till works and at leat you can manually adjust charging, which is annoying). First time i see v08 in my logs is 2024-11-14 15:28:23; 2024-11-14 15:27:36 was the last time v07 is in the protocol
any suggestions? |
@BeneWilh apparently the directory server is allways returning encrypt : false when requesting by browser and giving other results when juicebox requests. The local control should work for v07 or v09 protocols. On v07 YOU MUST WAIT some minutes after starting juicepassproxy because JPP needs to know what is the offline current and that value will be sent when the device does not have responses from server for 5 minutes. https://github.com/JuiceRescue/juicepassproxy/pull/69/files#diff-01e6d9ffed056a02cae8d8a0ec5d476a64d017bf85c0d5a94bb23ca21f33f5aaR231 If you enable DEBUG on JPP and restart the juicebox you can see the debug messages that came from juicebox and this will show when the directory server indicates that juicebox should use encryption, you will see
If you have specific problems with local control you should give more information on an specific issue. You HAVE do block the access from your device to the directory server to keep unencrypted protocol and JPP will work decoding and passing data to enel x, and with local control. I have just commited some adjusts for this v08 message dont get generic errors on the detection of v08 encrypted messages. At this moment when your device is using encrypted protocol we cant decode the messages. |
resulting in: Logging_branch_jb_commands_log 2024-11-17 1409.txt after using telnet set ud c h "IP" setting IP to my juicepassproxy the Juicebox returned from v08 to v07 and data are read. waiting now 6 min to optain offline charing value to start adapting charging amps
changing value in HA:
and no effect on the Juicebox. suggestions @ivanfmartinez |
@BeneWilh the device using encryption indicates that they still have any type of internet access or a different firmware that have different behaviour enabling the encryption. All information that we have until now indicates that encryption is defined by the directory server. Your router have a way to capture packets ? a full capture can indicate if it was connecting to any external server or not before enabling encryption. If you have a full capture and dont want to send here with serial you can send by email (my id at gmail) or t.me/ivanfmartinez or discord . For logging only on JPP I think the best way is doing redirect on router (not telnet) and restart JPP before juicebox. This way we can see the juicebox debug messages on JPP. Your log from 15:17:48 to 15:17:49 are not enough to confirm that control is not working, because the updated values from juicebox comes from 1 or 2 status messages later. I have removed the old code that are still giving exceptions on encrypted messages and pushed to my branch. |
@ivanfmartinez
then i waited for the JP to come online and restarted JPP... values are readable, ntp error exists still... changing amps does not work (no effect). Will send you the full logging. Thank you! |
It seems that even all UDP Ports for the JB are blocked the change to v08 (now v08L) is happening.
|
@BeneWilh the L is the first byte after version , and not apper to be related to the version itself as other logs indicate different value. As far I have seen just "v08" already indicate encrypted, and for v09 they put extra character to indicate. |
if you recall my other loggs, the "L" wasnt there, thats new. I blocked all UDP Ports on my Fritzbox and eventhoug the JB changed to v08L =>> From JuiceBox: b'<>:v08L\xa4\t\x00\x00\x0.... |
@BeneWilh have you tried blocking ALL ports, not just UDP ports? I know that the command messages (ports 8047 & 8042) are UDP, but that comes after the directory service lookup. I think the initial lookup is TCP. If I look at my logs, I see my router blocking https traffic (TCP 443) from my JB to some internet host. I suggest blocking EVERYTHING from the JB to the internet. You then need to allow UDP 8042 (and maybe 8047) from the JB to JPP, and you have to allow some sort of DNS lookup by the JB, and the details of that depend on which JPP method you are using. |
@carrel-gr on blocking all internet traffic for JB i had some failures on DNS for JB in the logging, so i though blocking al UDP Ports should be enough to prevent canging to encrypted... but I was wrong. Now i blocked all traffic for JB to the internet. JPP has full access... but I'm struggeling with commands & Enel X App... (using Ivan's latest brach as a manual installation) |
Can you describe your struggle? This isn't enough information. Do you need to continue using the Enel X app? I set the IGNORE_ENELX option and removed the app fro my phone. Only HA now controls my JB. I didn't want two masters, as that's bound to cause problems. And I trust that HA will still be around tomorrow. Can't say as much for enel x. |
@carrel-gr using [https://github.com/ivanfmartinez/juicepassproxy/tree/juicebox_commands] I'm starting JPP with
(also tried)
I see all data in MQTT Browser and life values in HA & EnelX App including online / offline wanted (after 6 min). Changing the Amps in the app or HA is not changing anything in JB so, you see: wanted 13 A => actual state 20A
and charging amps are not changed even waiting for an other couple of messages... seems my JB is not accepting the change |
Why set an enelx ip when using ignore_enelx? If your enel x app is working, then enelx is also 'controlling' your JuiceBox. I don't have any idea how to help in that situation. I suggest you first get things to a state where the enel x app says that your JB is offline and only HA is controlling it. Also do you need update_udpc? Which "option" (A, B, or C) are you using? Also I see your system is v07 and my experience here has been with v09. You may need wiser people than I for v07 help if that is related to your issue. |
@carrel-gr I tested already several options... with / without enelx, with IP and without. The problem is always the same... Homeassistant commands are not accepted by the JB. It migth be a issue with v07... if somebody has an idea what to test, happy to get help. |
@ivanfmartinez
I got an error using the newest branch, please check.
"A JuicePass Proxy task failed: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9e in position 32: invalid start byte"
Details in the attached log. Thank you very much!
Logging_branch_jb_commands_log 2024-11-14.txt
The text was updated successfully, but these errors were encountered: