-
Notifications
You must be signed in to change notification settings - Fork 145
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 send custom command #879
Comments
It works just fine for me. Why are you setting up command message as HEX string? Are you sure you are using latest version of the Traccar Web UI Mod? |
Hi! I'm using Ulbotech protocol in Bin mode because Text format is not working in some of the reason. When using text mode, the received commands are not processed on the server side. " " So because Text mode was never working for me I thought to use Bin mode. Also sending command in text are not working. Regarding your second question I just downloaded the latest version from: |
So, have you done any modifications to the original traccar code? From what I can see it should be sending text commands only in standard implementation. As for the log entries you are showing - they show what your device sends to traccar and not commands send from traccar. I am totally confused now. |
First of all no, absolutely no mods. Only mod I did is the config file. ((( As for the entries posted in my last post, those are samples of incoming messages, you are right. I only inserted those to show you what I'm receiving in txt or bin modes. I thought it is interesting for you why receiving in text mode isn't working for me. Getting back to my original problem You asked me why I'm using hex mode. I got confused and I thought hex mode is not allowed for sending commands. Either way sending command bin or text isn't working for me. Am I etering commands in the right way? Thanks you! |
From my understanding the only custom commands format, which is supported for now is text format. I don't know how it should work in your case and I don't have such device for testing. So, if you are using original 3.7 traccar, is the command sent interpreted correctly on your device? I think it should not. |
As mentioned earlier yes, custom commands sent in bin format with original Traccar 3.7 are working perfectly. Sending in text mode it is not working. |
Well, I think you have faced a bug in this project. It needs to be fixed in code. Until then you will not be able to send commands in binary format. |
What do you think when it will be fixed? Thanks! |
It will not be fixed in nearest future. Maybe within this month. Bug is in |
I haven't spent much time to interpret the code. " |
No, I think removing/commenting out whole code in 'if' branch and leaving only 'else' branch should work it out. But I am not sure. |
Unfortunately it's not working. |
Hi there!
Sending a custom command it seems not to work, however the same command using the original version of traccar 3.7 is working properly.
Log:
2016-10-02 19:54:35 DEBUG: [8F547004: 5072 > 91.87.128.nn]
2016-10-02 19:54:35 WARN: [8F547004] error - unsupported message type: class java.lang.String - IllegalArgumentException (...)
2016-10-02 19:54:35 INFO: [8F547004] disconnected
2016-10-02 19:54:36 INFO: [E4A2F80F] connected
2016-10-02 19:54:36 DEBUG: [E4A2F80F: 5072 < 91.87.128.nn] HEX: 2a545330312c38363833323330323531363639373323
Original traccar log:
2016-10-01 19:09:05 DEBUG: [149567DD: 5072 > 91.87.128.nn] HEX: 2a545330312c56455223
2016-10-01 19:09:06 DEBUG: [149567DD: 5072 < 91.87.128.nn] HEX: 2a545330312c3836383332333032353136343938362c3137303930363031313031362c5645523a312e3030353b312e3130373b31303a30393a31302d31382e30392e313623
Br.
Szabolcs
The text was updated successfully, but these errors were encountered: