Skip to content
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

Can not send commands #659

Closed
Ruben1966 opened this issue May 5, 2016 · 10 comments
Closed

Can not send commands #659

Ruben1966 opened this issue May 5, 2016 · 10 comments

Comments

@Ruben1966
Copy link

I install the traccar-windows-32-3.5.zip (date 17-Apr-2016), but when I sent a command it show me the next error:"{"reason":"java.lang.reflect.InvocationTargetException: null","success":false}", please see the attached image.

You will find attached the traccar config files and logs files
Please help me to fix this trouble
Best regards

Ruben

traccar1
services wrapper logs .docx
traccar server logs.docx

@Ruben1966
Copy link
Author

Attached you also will find traccar config files
traccar.txt

@vitalidze
Copy link
Owner

The reason of this issue is that such command is not supported by the device:

INFO   | jvm 1    | 2016/05/05 11:54:11 | Caused by: java.lang.RuntimeException: Command positionPeriodic is not supported in protocol h02
INFO   | jvm 1    | 2016/05/05 11:54:11 |   at org.traccar.BaseProtocol.sendCommand(BaseProtocol.java:45)
INFO   | jvm 1    | 2016/05/05 11:54:11 |   at org.traccar.database.ActiveDevice.sendCommand(ActiveDevice.java:46)
INFO   | jvm 1    | 2016/05/05 11:54:11 |   ... 59 more

@Ruben1966
Copy link
Author

Thank you very much

Please let me know, what should I do to solve this problem

@vitalidze
Copy link
Owner

You need to implement this particular command for the protocol your device is using. All commands sending is implemented on the "backend" project: https://github.com/tananaev/traccar According to this particular file the "Position periodic" is actually implemented: https://github.com/tananaev/traccar/blob/master/src/org/traccar/protocol/H02Protocol.java However, it's support is not yet released, i.e. it is not included in traccar 3.5. So you should either build it yourself from sources or wait until traccar 3.6 is released.

@Ruben1966
Copy link
Author

Thank you very much

I'm new using traccar, what the tab ¨ import¨ is for

@vitalidze
Copy link
Owner

You can import positions for device from a GPX file.

@Ruben1966
Copy link
Author

Thank you very much

@inghenryh
Copy link

I have the same error, I have gps with gps103 protocol and when I send a command appears this
screenshot5

I think I know the error, when the installation is a command that had to replace the traccar.xml

I had to replace

Old:

     SELECT userid, deviceId FROM user_device;

but in the installation of the original file traccar 3.5 this command does not appear

     SELECT userid, deviceId FROM user_device;

command does not appear like that I can not replace:

     U.id AS SELECT userid, d.id deviceId AS FROM users u, d WHERE devices u.admin = 1      UNION      Ud.users_id AS SELECT userid, ud.devices_id AS FROM users_devices ud deviceId      INNER JOIN users u ON ud.users_id = u.id      WHERE AND u.readOnly u.admin = 0 = 0

I think that's the problem.

Excuse my English

@vitalidze
Copy link
Owner

@inghenryh message from your screenshot is completely different from the message from @Ruben1966 It actually means that command has been sent successfully.

@inghenryh
Copy link

and because only appears {}? should not appear "the command has been sent"?

2016-05-31 13:38 GMT+08:00 Vitaly Litvak [email protected]:

@inghenryh https://github.com/inghenryh message from your screenshot is
completely different from the message from @Ruben1966
https://github.com/Ruben1966 It actually means that command has been
sent successfully.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#659 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ARfoKjhEUwPVBFxZGayhOUEWf2wDYFVAks5qG8lUgaJpZM4IYemd
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants