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
Implement more commands for the watch protocol (Techkoo) #2702
Comments
I was able to set the timezone via traccar :-) awesome stuff |
Really interesting would be of course to be able to send and receive voice messages as well :-) |
You don't need to reverse engineer it. There is official documentation available. |
Where? |
You can find the link on the documentation page on the website: |
Thank you - but my findings are slightly different (SOS Number, additionally the ability to set the time zone). |
If you want to add new command, just add them to existing protocol encoder. |
Okay, hope I find the time for it.
Is the GUI also customizable? Like with dropdowns with available time zones
and such?
|
What do you mean by customizable? It's possible to do anything in the source code. |
:-D But is it already easily possible to define in the commands which input types they expect from the GUI? |
I think it's fairly simple because there are already some examples. |
Okay, that's what I wanted to hear ... let's see if I can do it. Thank you :) |
But I think the voice recording and receiving thing would be a bit complicated, right? (also does not really belong in that piece of software, but would be interesting) |
Yes, it would be more complicated, but it's still possible to implement. We can store it in a blob in the database. I plan to implement similar functionality for images. |
Problem: Positive time zone needs to be + prepended, custom formatter does not seem to be called
Strange ... the clock currently has a 0.5hrs offset. i.e. when I set 1.5h I get UTC+1 |
@tananaev What about saving state on the traccar server, for example the phone book, as I have to transmit always the full phone book. Or the current language, as Setting the time zone goes with setting the language. |
No, it hasn't been done for other devices. I guess it's possible to save it in device attributes, but I'm not sure if it's the best idea. |
What would be the disadvantage? What are the device attributes originally meant for? |
Attributes are meant to store any additional information. I guess the main disadvantage I can think of is that data can before out of sync with what is set up on the device. |
… value formatter + not needed anyways, I was experiencing some bug in the watch
Sure, data could be out of sync, but practically will not be (at least in the case of that watch), because you are not able to set the parameters in another way then SMS and DataCenter (Traccar). |
Maybe it's fine. I can't think of any other issues. |
By the way, I noticed that your commits are not linked to your GitHub account. I guess you are using different email. |
Concerning the custom commands: Currently we enter the full command which contains the watch's ID and the command Character count in Hex. But this would be a backwards-compat breaker of course. @tananaev What do you think? |
I think it makes sense. That's how many other custom commands work. |
Okay, will implement if I find a time. Just caring about backwards-compat ... maybe I switch to the old (current) way if the command starts with |
I don't think it's worth including any backward compatibility. |
How remove phone book by custom command
|
This file lists commands for the watch protocol. https://github.com/tananaev/traccar/files/213814/3g.elec.comm.protocol.docx Most importand would be:
Also it sends LBS data, which is ignored by traccar, even though it would be supported in general.
|
bonour ,Pouvez-vous me dit comment cacher le clavier munerique de composition de numero |
What I did: Connected with telnet to the control server
Then I "authenticated" as a watch using the debug output from traccar.
Now I can send commands using the SeTracker android app.
Replace$ID$ with the ID.
Upload Interval in seconds 60 min
1 min
[3G*$ID$0009UPLOAD,60]
SOS Number 1, 2, 3
Phone Book (00710071 seems to be an encoded name)
[3G*$ID$*0053*PHB,1111111,0066007200690065006e00640031,2222222,0066007200690065006e00640032,,,,,,]
up to 10 friends from the app, but sends only 10 - probably it is waiting some kind of "okay"
Let the watch ring
Set timezone: (GMT +1)
Plus GMT+8:30 summer time
[3G*$ID$0009LZ,0,+9.5]
Language + Timezone (5 = German)
Seems to use 0007 for full-hour offset and 0009 for .5
Set silence time
Power off
Monitor call back
Save-zone does not send anything to the app (but traccar can do the same)
Set Hearts
The text was updated successfully, but these errors were encountered: