Notifications
Clear all

Nikon Communication Interface Manual

10 Posts
3 Users
0 Reactions
0 Views
(@wilba)
Posts: 52
Registered
Topic starter
 

This might be useful to others so i am posting.
As part of my Android app development I wanted to get values and control my total station.

My total station does not have Bluetooth, but I have tested with a com bridge on my pc (Eltima Serial Splitter >Redirect) and I can get set values.

You all have good results with Parani-SD1000, mine has just arrived DHL so i am about to try it out!

Attached files

Communication_Interface_Manual_for_NikonTS_Rev4.pdf (1 MB) 

 
Posted : 09/08/2016 2:09 am
(@wilba)
Posts: 52
Registered
Topic starter
 

The Parani works really well simple to setup now controlling total station without the pc from phone!

 
Posted : 09/08/2016 2:53 am
(@john-hamilton)
Posts: 3347
Registered
 

Very interesting to me that the document has both the Trimble and Nikon logo. I wish they would release a similar document for the S6, but Trimble has always been known for being very proprietary. This is probably leftover from the days when Nikon was a separate company.

 
Posted : 09/08/2016 4:41 am
(@wilba)
Posts: 52
Registered
Topic starter
 

John Hamilton, post: 385296, member: 640 wrote: Very interesting to me that the document has both the Trimble and Nikon logo. I wish they would release a similar document for the S6, but Trimble has always been known for being very proprietary. This is probably leftover from the days when Nikon was a separate company.

It may be possible to listen in on the Bluetooth / COM and decode the results.
I decoded most of the useful strings before i got the official document.

 
Posted : 09/08/2016 4:49 am
(@john-hamilton)
Posts: 3347
Registered
 

I thought about that before, but I assumed that since Carlson and other third party DC makers don't support the Trimble gear that it must not be possible to reverse-engineer the interface, or at least very difficult.

 
Posted : 09/08/2016 4:53 am
(@jim-frame)
Posts: 7277
 

The word I got from a developer was that Trimble began either encrypting its data stream or otherwise locking out non-Trimble devices with the advent of the S6. I don't imagine they've stopped that practice.

 
Posted : 09/08/2016 4:58 am
(@john-hamilton)
Posts: 3347
Registered
 

That is what I figured, otherwise someone would have done it. As I mentioned many times here, I have been using Trimble since 1986, and have no complaints about quality, etc, and have no plans or desire to change, but this is the one thing I hate about them.

I don't mind paying a premium for quality, especially since it helps me make money, but I fail to see the reason behind not releasing any of this information.

 
Posted : 09/08/2016 5:03 am
(@wilba)
Posts: 52
Registered
Topic starter
 

John Hamilton, post: 385298, member: 640 wrote: ... Carlson and other third party DC makers don't support the Trimble gear that it must not be possible to reverse-engineer the interface, or at least very difficult.

Something to bear in mind when purchasing new or second hand equipment.

 
Posted : 09/08/2016 12:52 pm
(@wilba)
Posts: 52
Registered
Topic starter
 

One of the difficult parts to decode was a random character following the main text. eg

SOH Start of Heading
C Uppercase C
T Uppercase T
STX Start of Text
? Question mark
B Uppercase B
A Uppercase A
T Uppercase T
ETX End of Text
R Uppercase R
EOT End of Transmission
CR Carriage Return
LF Line Feed

I thought it might be some kind of checksum or validation, which was correct but i would have never decoded the formula, unless i was Alan Turing.
It's called BCC presumably Byte Check Code.

BCC= (S MOD 40h) + 20h (h = hex)
‰ÛÏS‰Û in above formulae is the lower one byte of the total sum from ‰ÛÏSender code‰Û
to ‰ÛÏETX‰Û (=before BCC). ‰ÛÏBCC‰Û can be any value between 20h and 5Fh
* Compare the BCC in the received data and the calculated value.
If they are the same, the communication was successfully done.

Before i implemented this in my Android app I wanted to understand how values are calculated in Excel. Attached is a PDF showing this.

Attached files

COM PROTOCOL_AFTER.pdf (70 KB) 

 
Posted : 09/08/2016 1:11 pm
(@wilba)
Posts: 52
Registered
Topic starter
 

A side effect of taking trying to code my own Android data recorder.
I have the control codes to get and set temperature and pressure.

Whist I'm in the field, I always try to be methodical and vigilant to keep this updated, but with all the other things to do I wished that this was automated in some way.

Now I can get the temperature and pressure from an android phone, and compare it to the total station, if it is out by a certain value I can raise an notification on the phone and / or set the value. Though I can't keep the phone in my pocket !

Attached files

COM PROTOCOL_AFTER cnd.pdf (51.9 KB)  COM PROTOCOL_AFTER decode.pdf (88.3 KB) 

 
Posted : 11/08/2016 12:26 pm