Re: [Hamlib-developer] RotorEZ 'p' command results
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: Orv B. <or...@or...> - 2003-02-13 00:36:33
|
On Wed, 2003-02-12 at 14:44, Nate Bargmann wrote: [SNIP] > > Very interesting, Orv! > > So, it appears the semi-colon is the first character of the returned > string. Of course it moves to the right on each successive read as > there are always characters left in the buffer from previous commands > (1, then 2, then 3, and so on). > > Can you edit rotorez/rotorez.h, line 34 and change the line: > > #define AZ_READ_LEN 3 > > to > > #define AZ_READ_LEN 4 > > for me? > > Then you should see consistent strings reported on the line below RX 4 > bytes. It will do no harm to set it higher, say 5 or 6 as the read > function will merely have wait the time out time. > > Please post that output and I should be able to fix it tonight. > > 73, de Nate >> DONE. I changed it to 4, and it looks like that fixed it. The azimuth readout is now correct and consistent. Notice that I read it out several times and it showed 333 degrees on all tries. I then commanded the rotor to turn to 0 degrees. The readbacks after that consistently show it at 0 degrees (well, 359 degrees, which is rounded to 0). Nice work, Nate! 73 - Orv W6BI - [obeach@jake hamlib-1.1.4cvs-030210]$ cd tests [obeach@jake tests]$ ./rotctl -m 401 -s 4800 -r /dev/ttyS0 -vvvv rot:rot_init called rot: loading backend rotorez rotorez: initrots_rotorez called rot_register (401) rot_register (402) rot_register (403) rotorez: rotorez_rot_init called rot:rot_open called Opened rot model 401, 'Rotor-EZ' Rot command: p rotorez: rotorez_rot_get_position called rotorez: rotorez_send_priv_cmd called TX 4 bytes 0000 41 49 31 3b AI1; RX 4 bytes 0000 3b 33 33 33 ;333 rotorez: azimuth = 0.0 degrees Azimuth: 0.000000 Elevation: 33.519203 Rot command: p rotorez: rotorez_rot_get_position called rotorez: rotorez_send_priv_cmd called TX 4 bytes 0000 41 49 31 3b AI1; RX 4 bytes 0000 3b 33 33 33 ;333 rotorez: azimuth = 0.0 degrees Azimuth: 0.000000 Elevation: 33.519203 Rot command: p rotorez: rotorez_rot_get_position called rotorez: rotorez_send_priv_cmd called TX 4 bytes 0000 41 49 31 3b AI1; RX 4 bytes 0000 3b 33 33 33 ;333 rotorez: azimuth = 0.0 degrees Azimuth: 0.000000 Elevation: 33.519203 Rot command: P 000 Azimuth: Elevation: 000 rotorez: rotorez_rot_set_position called rotorez: rotorez_send_priv_cmd called TX 7 bytes 0000 41 50 31 30 30 30 3b AP1000; rotorez: rotorez_send_priv_cmd called TX 4 bytes 0000 41 4d 31 3b AM1; Rot command: p rotorez: rotorez_rot_get_position called rotorez: rotorez_send_priv_cmd called TX 4 bytes 0000 41 49 31 3b AI1; RX 4 bytes 0000 3b 33 35 39 ;359 rotorez: azimuth = 0.0 degrees Azimuth: 0.000000 Elevation: 33.519203 Rot command: p rotorez: rotorez_rot_get_position called rotorez: rotorez_send_priv_cmd called TX 4 bytes 0000 41 49 31 3b AI1; RX 4 bytes 0000 3b 33 35 39 ;359 rotorez: azimuth = 0.0 degrees Azimuth: 0.000000 Elevation: 33.519203 Rot command: p rotorez: rotorez_rot_get_position called rotorez: rotorez_send_priv_cmd called TX 4 bytes 0000 41 49 31 3b AI1; RX 4 bytes 0000 3b 33 35 39 ;359 rotorez: azimuth = 0.0 degrees Azimuth: 0.000000 Elevation: 33.519203 Rot command: -- Orv Beach <or...@or...> |