GTOCP3 and serial
drgert1
Hello All,
I am in a mighty struggle with serial protocol. Esp. how many configurations there are that will make it not work. Ultimate plan is to use a serial Bluetooth dongle at the mount (AP1200 with GTOCP3 V2 chip). But for now I just want to see that a text terminal program on the PC can talk to the PC can talk to the GTOCP3 and get ASCII answers. And that's just my question. If I hook up the laptop to the GTOCP3 (the way I up to now always do) via serial cable and serial-to-USB adapter, is there a simple 'Hello' -> 'OK' conversation that I can have with the controller? Just so that I can see that communication is established. Something like an 'AT' ->'OK'. In plain ASCII. Using 'PuTTY' on the laptop. What's the procedure? I understand that the AP driver sends tons of data between the laptop and the mount. I don't even want to include the driver here. Just type on the keyboard, see the echo, hit a command + enter, and see the answer from the controller. (preferably a non-destructive command) BTW, the BT adapter wants to know if the port is DCE or DTE. Can someone answer for the GTOCP3 ?? Thanks, Gert
|
|
Woody Schlom
Gert,
I don’t know if this helps, but when I use my RN-270 (or SkyBT) serial to BT devices with my Mach1-GTO w/ CP3 controller, I don’t change ANY of the DIP switches on the serial to BT device – I leave them all in their default positions.
And in that configuration, I can use either SkySafari running on an Android phone or tablet, or TheSkyX running on my laptop along with COM2TCP.
I never needed to change a single setting. And that’s a good thing for me.
Woody
From: main@ap-gto.groups.io [mailto:main@ap-gto.groups.io] On Behalf Of drgert1 via groups.io
Sent: Monday, September 07, 2020 2:20 PM To: main@ap-gto.groups.io Subject: [ap-gto] GTOCP3 and serial
Hello All,
|
|
drgert1
Hi Woody,
Thank you for the kind feedback. My own experience is that these things don't work for me 'out of the box' so I have to travel the path of step by step debug / understanding / fixing / deployment. To me that also let's me understand why something works, and what I did to make it work. I'll keep looking for a way to establish a known-good terminal to GTOCP3 communication by existing cable and then step by step deploy the BT. Thanks & Clear Skies, Gert
|
|
michaeljhanson@...
Hi Gert,
Since a PC is the "terminal", so the CPx is the data communications equipment, DCE. A standard straight-through RS-232 cable is used from a computer or USB-to-serial-converter, to the unit. We use dumb data terminal programs like TeraTerm and HyperTerm *ALL* the time, in exactly the manner you describe. The command set has it's origins in the old LX200 textual command set, so it is easy to issue them manually for diagnostic purposes. The command set is published on the AP web-site. However, examples of commands I use regularly to determine if a unit is alive, "reachable", and that I am even using the correct comm port in the computer, include "read version" :V# (three characters), and "read local time" :GL# (4 characters). You'll want the terminal emulator "local echo" enabled as the CPx does not "echo". The moment you power up the unit, it will transmit a single character, "1". That way you know the unit is powered and the embedded software is actually trying to doing something. This may be the single most powerful diagnostic feature. The serial communication parameters are also published on the AP website. But to summarize here for ease in setting up the terminal emulator: 9600 baud, No Parity, 8 bits, 1 stop bit, No handshake. Occasionally, folks "complain" about the lack of parity, but the serial interface remains the most reliable by far. Happy Hacking! Regards, Mike Hanson
|
|
Roland Christen
Send :V# and you will get the version number back.
Rolando
-----Original Message-----
From: drgert1 via groups.io <drgert1@...> To: main@ap-gto.groups.io Sent: Mon, Sep 7, 2020 4:20 pm Subject: [ap-gto] GTOCP3 and serial Hello All,
I am in a mighty struggle with serial protocol. Esp. how many configurations there are that will make it not work. Ultimate plan is to use a serial Bluetooth dongle at the mount (AP1200 with GTOCP3 V2 chip). But for now I just want to see that a text terminal program on the PC can talk to the PC can talk to the GTOCP3 and get ASCII answers. And that's just my question. If I hook up the laptop to the GTOCP3 (the way I up to now always do) via serial cable and serial-to-USB adapter, is there a simple 'Hello' -> 'OK' conversation that I can have with the controller? Just so that I can see that communication is established. Something like an 'AT' ->'OK'. In plain ASCII. Using 'PuTTY' on the laptop. What's the procedure? I understand that the AP driver sends tons of data between the laptop and the mount. I don't even want to include the driver here. Just type on the keyboard, see the echo, hit a command + enter, and see the answer from the controller. (preferably a non-destructive command) BTW, the BT adapter wants to know if the port is DCE or DTE. Can someone answer for the GTOCP3 ?? Thanks, Gert
|
|
drgert1
Hi,
When I test this on the bench with the GOTCP3 (V2 chip) removed from the mount and disconnected from motors (AP1200), will it impair stored data on gear phase / PEM / disrupt operation once re-connected to the mount ?? Thanks, Gert
|
|
Roland Christen
What are you testing?
Rolando
-----Original Message-----
From: drgert1 via groups.io <drgert1@...> To: main@ap-gto.groups.io Sent: Tue, Sep 8, 2020 2:01 pm Subject: Re: [ap-gto] GTOCP3 and serial Hi,
When I test this on the bench with the GOTCP3 (V2 chip) removed from the mount and disconnected from motors (AP1200), will it impair stored data on gear phase / PEM / disrupt operation once re-connected to the mount ?? Thanks, Gert
|
|
drgert1
Ultimate plan is to use a serial Bluetooth dongle at the mount (AP1200 with GTOCP3 V2 chip).
But for now I just want to see that a text terminal program on the PC can talk to the GTOCP3 and get ASCII answers. Cheers, Gert
|
|
doesn't APCC have a built-in terminal?
Ultimate plan is to use a serial Bluetooth dongle at the mount (AP1200 with GTOCP3 V2 chip). --
|
|
Roland Christen
Yes.
Rolando
-----Original Message-----
From: Brian Valente <bvalente@...> To: main@ap-gto.groups.io Sent: Tue, Sep 8, 2020 3:20 pm Subject: Re: [ap-gto] GTOCP3 and serial doesn't APCC have a built-in terminal?
Ultimate plan is to use a serial Bluetooth dongle at the mount (AP1200 with GTOCP3 V2 chip).
|
|
haha yes, i guess i should have been more declarative ;) APCC *has* a built-in terminal, and you could just click on it and open up the terminal window and begin typing in your commands directly to the mount Brian
On Tue, Sep 8, 2020 at 1:23 PM uncarollo2 <chris1011@...> via groups.io <chris1011=aol.com@groups.io> wrote:
--
|
|