robots / gdm

Geodimeter totalstaion toolkit and documentation
GNU General Public License v3.0
9 stars 0 forks source link

2 minute boot delay if radio missing #13

Open Jesse-EE opened 2 months ago

Jesse-EE commented 2 months ago

I put firmware for a 5605 (With a radio) onto my 5601 (without a radio) and it causes a 2 minute delay on powerup before it starts responding to either the CU or the Ranger/TSCe.

Is there a way I can disable it from expecting to find a radio? Evidently it waits for 2 minutes trying to get a response from the radio before proceeding.

Unfortunately, this sometimes causes the CU to power off before the 5600 is ready to play!

WORK AROUNDS:

1: Use a data collector which you can connect any time, including after the 2 minute timeout. 2: Power up CU via it's own power port, and when it goes into offline mode, unplug power. Next time it is powered up, it may pause and say "Powered off by illegal function, press OK" and the prompt may wait there for long enough that the 2 minutes is up and the 5600 is ready to play. 3: Install a radio out of any other 5600 or 600 series. You don't have to use the radio, it just needs to be able to say "hi" to it.

As a side note, the radio bay inside the 5600/600 series is huge. I think a 2 or 3 hour battery could be placed inside there, possibly with a modern legal bluetooth wireless bridge radio.

As another side note, the OEM radio (H25, 0.1W, 450Mhz) probably communicates via RS232 because there's a MAX232C chip on there. It should not be too hard to put a scope on there and figure out which is data pins and find out what text exchange takes place, and make a small micro chip emulate that so the unit believes there's a radio there.

Even without the radio, it does seem to do all the other functions, including tracking an RMT.

robots commented 2 months ago

The firmware dump also contains configuration of "available" peripherals. Its possible to "disable" the radio by changing the Fw you upload to the station.

Jesse-EE commented 2 months ago

The firmware dump also contains configuration of "available" peripherals. Its possible to "disable" the radio by changing the Fw you upload to the station.

That makes sense!

Is there any information available on how I can turn on/off "available" peripherals?

Also, is there a field in the firmware I can change to make it think it's a 5601 that it really is?

Also, have you looked at all into the protocol for the built in radio? I see it's gota a MAX232 so it's likely RS232. With all that space in there it would be fun to load it with batteries and a microcontroller that pretends to be the OEM radio but uses some modern legal radio link. I keep telling myself I should poke around in there with scope/logic analyzer but haven't got around to it yet.

robots commented 2 months ago

From the firmware point of view all stations are the same, 560x, 550x, 600, all stations are the same. The name is given as field in the firmware, and the peripherals are enabled in one big array. The better precision is that the "calibration" data is more precise. I am not even sure that the HW is different. It all looks the same when i checked. So for me the HW versions are: 400, 4400, 500, 600+5600+5500 (these are all the same, just trimble 5xxx versions are yellow, and have new EDM - DR (direct reflection) or time of flight DR 200/300)

I dont have access to the firmware reverse project now. So i can not help you instantly.

The radio protocol is: AT commands. But i dont have them documented. + there are 2 extra pins. These pins are connected to the PWR board (power supply). One pin can keep the radio enabled even when station is OFF, and second pin can wake up the station remotely (yes, RPU can turn off and turn on station).

robots commented 2 months ago

Its their own AT commands. Dont expect full AT modem command set :-)

Jesse-EE commented 2 months ago

Its their own AT commands. Dont expect full AT modem command set :-)

Understood! I'm used to interfacing Microchip PIC mcu's to strange little wifi modules, Italian cellular modules, Iridium satellite modems, and the like -- and they all have their own strange set of ill documented AT commands :-D

Jesse-EE commented 2 months ago

All very interesting! And thank you so much for the responses and info!

I dont have access to the firmware reverse project now. So i can not help you instantly.

That sounds ominous....

The radio protocol is: AT commands. But i dont have them documented. + there are 2 extra pins. These pins are connected to the PWR board (power supply). One pin can keep the radio enabled even when station is OFF, and second pin can wake up the station remotely (yes, RPU can turn off and turn on station).

Excellent to know! Thank you!

It sounds like you have enough information collected that a person could actually write an open source OS for the series, and bring life into a lot of these old robotic stations.

I'm sure you're incredibly busy but if you ever wish to shoot me an email, here's my email address partremmaps@gmail.com I would certainly enjoy chatting with you about your experience with these old Geodimeters!