robots / gdm

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

Looking for info on GDM 4400 commands for RS232 port #14

Open Jesse-EE opened 4 months ago

Jesse-EE commented 4 months ago

I've wired up a cable that plumbs my Geodimeter 4400 Robotic station to both provide power and bi directional RS232 connections.

I'm quite sure I got it right, both data lines are idling around -13v.

The 4400 seems to detect when the RS232 is plugged in, and just says "Info 23" over and over with beeps. (Timeout.)

So it's like it detects that a geodat is plugged in by looking at the idle negative voltage on the RS232 data line, then shuts down the keypad and lets the geodat take over.

However, I see nothing on my terminal program on my computer, and it does not seem to respond at all to keystrokes.

I tried 9600 and 1200 bps and neither did anything.

It's like the 4400 is waiting for a magic sequence from the Geodat (which I haven't got.)

Any information on the bitrate and/or the available commands would be greatly appreciated!

robots commented 4 months ago

Hi,

rs232 connector is not really rs232 connector! The pinout is a bit different. There are 2 pins for 12V, 3pins for "geodimeter interface" and 2 pins serial port. But it is not compatible with RS232 dsub9 pinout!

iface

Here is the pinout from the iface board. Pins 1,7,5 need to be disconnected. If you touch them, firmware wants to talk over "geodimeter iface" and it will fail.

Jesse-EE commented 4 months ago

Hi,

rs232 connector is not really rs232 connector! The pinout is a bit different. There are 2 pins for 12V, 3pins for "geodimeter interface" and 2 pins serial port. But it is not compatible with RS232 dsub9 pinout!

...

Here is the pinout from the iface board. Pins 1,7,5 need to be disconnected. If you touch them, firmware wants to talk over "geodimeter iface" and it will fail.

Wow thanks! Are there any other clues you can drop? In general, is the "Geodimeter interface" even an async setup like RS232 is, with a start bit, some data bits, and a stop bit? Does it just use weird bitrates? What bitrates? Any clues that are handy would be appreciated!

(I'm a firmware coder and PCB designer so I don't mind exploring weird bitrates or even weird data protocols.)

Although mine is robotic, it I cannot for the life of me find any option to tell it to auto-lock onto an active target. I do have an active target for it.

But the old radio compartment is so huge on this thing if I could make it autotrack an active target I could stuff quite a bit of battery into where the old 450Mhz radio used to go, then use some modern (and legal LOL) serial over wireless solution.

robots commented 4 months ago

"geodimeter interface" is very different from UART. It uses 3 pins, one clock, one data tx, one data rx. It is the same inteface they use to communicate between boards (angle, servo, edm, tracker to main board, also geodat uses this interface). If you look at this repository's files, you will find board and firmware and software to communicate over the "geodimeter interface".

In the very recent update i have tested communication directly with the "angle board".

The original idea was that the interface board (which contains radio module) could be used as internal radio for the station.

Jesse-EE commented 4 months ago

"geodimeter interface" is very different from UART. It uses 3 pins, one clock, one data tx, one data rx. It is the same inteface they use to communicate between boards (angle, servo, edm, tracker to main board, also geodat uses this interface). If you look at this repository's files, you will find board and firmware and software to communicate over the "geodimeter interface".

In the very recent update i have tested communication directly with the "angle board".

The original idea was that the interface board (which contains radio module) could be used as internal radio for the station.

That makes sense! I've worked with clock+rx+tx synchronous protocols before!

Jesse-EE commented 4 months ago

Hi,

rs232 connector is not really rs232 connector! The pinout is a bit different. There are 2 pins for 12V, 3pins for "geodimeter interface" and 2 pins serial port. But it is not compatible with RS232 dsub9 pinout!

iface

Here is the pinout from the iface board. Pins 1,7,5 need to be disconnected. If you touch them, firmware wants to talk over "geodimeter iface" and it will fail.

If you're interested, PIN 8 has a function too:

On the Geodimeter 140 and my Geodimeter 4400, PIN 8 on the 9 pin power connector is the remote A/M button input. It's internally pulled to 5v, and you short it momentarily to ground to activate the A/M button.

This allows you to get the cross hairs lined up so perfect then hit the A/M button without touching or disturbing the station!