|
So I having a problem connecting G-S to my SatNOGS v3.1 rotator. I have setup a controller device under Hardware settings but do not see how to tell G-S that the rotator speeks EASYCOMIII protocol at 9600 baud on /dev/ttyACM0 (i'm using an RPi5 for my server). I've hunted through DeepWiki but don't see anything specific about conveying parameters for rotctld. I've tried launching rotctld separately on the localhost but I'm not seeing any interaction with G-S in my terminal when I try to connect with the rotator. G-S simply reports there was an error connecting to the rotator. There must be something in setup that I'm missing. Could someone enlighten me please? |
Replies: 7 comments 28 replies
|
G-S does not configure the serial protocol directly; its controller is a SATROTCTL client and connects to rotctl -l | grep -i easycomm
rotctld -m <listed-model-number> -r /dev/ttyACM0 -s 9600 -T 0.0.0.0 -t 4533 -vvvvTest first with |
|
Thank you very much for that response.
So I launch rotctld as I normally do when using gpredict:
$ rotctld -m 204 -r /dev/ttyACM0 -s 9600 -T 0.0.0.0 -t 4533 -vvvvv
rotctld, Hamlib 4.6.2 2025-02-09T21:03:50Z SHA=870364 64-bit
Report bugs to ***@***.***>
rot_init called
initrots4_easycomm called
rot_register (201)
rot_register (202)
rot_register (204)
easycomm_rot_init called
rot_open called
serial_open: /dev/ttyACM0
serial_setup: tcgetattr
serial_setup: cfmakeraw
serial_setup: cfsetispeed=9600,0x000d
serial_setup: cfsetospeed=9600,0x000d
serial_setup: data_bits=8
serial_setup: stopbits=1
serial_setup: parity=0
serial_setup: Handshake=None
serial_setup: tcsetattr TCSANOW
ser_set_dtr: DTR=0
ser_set_rts: RTS=0
Opened rot model 204, 'EasycommIII'
Backend version: 2022312180, Status: Stable
So far so good. But when I test, rotctld reports an error:
$ printf 'p\nq\n' | nc 127.0.0.1 4533
Connection opened from 127.0.0.1:57292
rotctl(d): p '' '' '' ''
rot_get_position called
easycomm_rot_get_position called
easycomm_transaction called: AZ
write_block(): TX 3 bytes
0000 41 5a 0a AZ.
easycomm_transaction read_string failed with status -5:Unknown error -5
easycomm_rot_get_position got error: -5
rotctl_parse: NETROTCTL_RET -5
Connection closed from 127.0.0.1:57292
I should note this is my first time using HamLib on RPi5 Trixie. I have used HamLib/rotctld successfully on RPi4 BULLSEYE and other AMD64 versions of Ubuntu to control this same rotator. but that is an earlier version of HamLib.
any further suggestions you or anyone else might have are welcome.
Message ID: ***@***.***>
|
|
On a whim this morning, I fired up an RPi4 with BULLSEYE and connected rotator to that machine. Also enabled rotctld as I have in the past. Back on G-S host, I configured the rotator to use the RPi4's hostname and port 4533. Press 'Connect' and it is working. Now I'm confused as to why rotctld throws errors when running locally on my G-S host? |
|
That result isolates the problem below G-S: the RPi5 With G-S and rotctld -V
rotctl -l | grep -i easycomm
ls -l /dev/ttyACM0
fuser /dev/ttyACM0Then test the same model directly on the Pi 5: rotctl -m <same-model-id-as-Pi4> -r /dev/ttyACM0 -s 9600 -vvvv
# at the rotctl prompt:
pIf that fails only on Trixie, check that the user is in |
|
I am reading here that |
|
Yes, |
Ok. I understand now.
A few minutes ago, I built Hamlib v4.6.0 from source and tested it on the RPi5 and it worked perfectly. v4.6.2 is the problem.
I just checked and discovered v4.6.2 was a dependency of Gpredict which I had installed a few weeks before trying G-S. Trying to figure out how to remove v4.6.2. Its like a klingon. After removing gpredict and autoremove dependencies... hamlib is still hanging around. It might just be easier for me to start with a fresh install and try all over again.
Anyway, thank you for all your help with this. I am so sorry about all the time we lost trying to find the problem.