-
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
Make the MQTT handler still parse the message if Teltonika adds new parameters in a firmware update #25
Comments
@maherbm hey, thanks for making an issue! This was a design choice I made early-on, since I assume that people that use this integration from Teltonika would also parse the AVL IDs as instructed in the tutorial. I'd suggest you first try to generate the AVL IDs as instructed and then either importing them or replacing the contents of For me to look into this further, I would need at least 1 payload that contains the AVL ID parameter that creates the issue. Thanks! |
Dear @pankalog, Thank you for your response. You are right, I should have first performed the AVL ID parsing :-).
Furthermore, regarding the AVL ID parsing code, I noticed the following issues:
with the following code that fakes a browser User-Agent
I hope the information I provided with help to solve the mentioned issues. If you have any question, please don't hesitate to contact me :-) Thank you and best regards, Maher |
@maherbm thanks for your reply, makes debugging a bit easier. I'll try to fix this soon, I'll make some bullet points on my to-do list. What exactly would you like the resulting attribute to be, if its corresponding AVL data is not found? The only data I have of that is just the AVL ID, so the name of it would just be the ID, and the value would be a string containing the value from the payload. Also, for the AVL ID parser, I'd greatly appreciate a pull request! I also struggled with this parser recently with their crawler limitations, so I botched it up with hitting Thanks! Panos |
Hello,
I am testing Teltonika FMC003 with a new custom firmware that we received from Teltonika.
I could not make it work with fleet management as it seems MQTT handler drops out directly after coming across a parameter that was not predefined in the FMC003.json, while the Teltonika device keeps trying to resend the message.
The exact issue happens in line 135 of TeltonikaDataPayload.java
https://github.com/openremote/fleet-management/blob/b13a60df8d2f56f1108fcf640fb7cf13b5d30957/manager/src/main/java/telematics/teltonika/TeltonikaDataPayload.java#L135C13-L135C14
throw new IllegalArgumentException("Key " + entry.getValue().toString() + " not found in finalParams");
First this line shows the parameter value instead of the key. This did cost me a bit of extra time to figure out the problem from the logs ;-).
Second, IMHO, this line should not throw an exception but just log the error, and the code should continue with the parameters that have been identified. Would it be possible to perform this change to the code?
Thank you and best regards
The text was updated successfully, but these errors were encountered: