Trying to setup firmware, no luck

UPDATE: I had sent the wrong firmware, somehow did not save the last time I made edits. Now I Have homing correct but am still having issues with communicating with HamLib and getting a -5 Error

so far ive got the software to compile, but i keep getting -5 errors from HamLib, Gpredict showing ERROR in antenna control. Which i think is a no data return error, but dont know how to change the code to fix it and not break the code.

I am getting movment with setepper motors but it is the same movement and only the y axis is providing that majority of movement.

Below I have the output of HamLib and my Arduino firmware

stepper_motor_controller_v7.zip (16.4 KB)

stepper_motor_controller_v7.zip (15.9 KB)

Hamlib op.txt (3.8 KB)

Not sure which hamlib version do you use, but maybe you have a similar issues with this one post:

Unfortunately the project is stalled, so no updates expected from LSF except if someone wants to take over and run the project.

It does move the rotator but only elevation, unless the azmuith moved a little and I didnt see it. Here is what hamlib returned

Connection opened from 127.0.0.1:63320
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.
read_string_generic called, rxmax=32 direct=1, expected_len=1
read_string_generic(): Timed out 0.501 seconds after 0 chars, direct=1
easycomm_transaction read_string failed with status -5:Unknown error
easycomm_rot_get_position got error: -5
rotctl_parse: NETROTCTL_RET -5
rotctl(d): P β€˜149.54’ β€˜18.05’ β€˜β€™ β€˜β€™
rot_set_position called az=149.54 el=18.05
rot_set_position: south_zero=0
easycomm_rot_set_position called: 149.539993 18.049999
easycomm_transaction called: AZ149.5 EL18.0

write_block(): TX 15 bytes
0000 41 5a 31 34 39 2e 35 20 45 4c 31 38 2e 30 0a AZ149.5 EL18.0.
rotctl_parse: NETROTCTL_RET 0
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.
read_string_generic called, rxmax=32 direct=1, expected_len=1
read_string_generic(): Timed out 0.505 seconds after 0 chars, direct=1
easycomm_transaction read_string failed with status -5:Unknown error
easycomm_rot_get_position got error: -5
rotctl_parse: NETROTCTL_RET -5
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.
read_string_generic called, rxmax=32 direct=1, expected_len=1
read_string_generic(): Timed out 0.504 seconds after 0 chars, direct=1
easycomm_transaction read_string failed with status -5:Unknown error
easycomm_rot_get_position got error: -5
rotctl_parse: NETROTCTL_RET -5
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.
read_string_generic called, rxmax=32 direct=1, expected_len=1
read_string_generic(): Timed out 0.510 seconds after 0 chars, direct=1
easycomm_transaction read_string failed with status -5:Unknown error
easycomm_rot_get_position got error: -5
rotctl_parse: NETROTCTL_RET -5
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.
read_string_generic called, rxmax=32 direct=1, expected_len=1
read_string_generic(): Timed out 0.511 seconds after 0 chars, direct=1
easycomm_transaction read_string failed with status -5:Unknown error
easycomm_rot_get_position got error: -5
rotctl_parse: NETROTCTL_RET -5
rotctl(d): S β€˜β€™ β€˜β€™ β€˜β€™ β€˜β€™
rot_stop called
easycomm_rot_stop called
easycomm_transaction called: SA SE

write_block(): TX 7 bytes
0000 53 41 20 53 45 20 0a SA SE .
rotctl_parse: NETROTCTL_RET 0
Connection closed from 127.0.0.1:63320

Here is what i get with 4.6.5

rot_init called
initrots4_easycomm called
rot_register (201)
rot_register (202)
rot_register (204)
easycomm_rot_init called
rot_token_lookup called lookup timeout
rot_set_conf called
rot_set_conf: timeout=β€˜500’
frontrot_set_conf called
rot_token_lookup called lookup retry
rot_set_conf called
rot_set_conf: retry=β€˜0’
frontrot_set_conf called
rot_open called
serial_open: serial port \.\COM5 is OK
serial_open: \.\COM5
serial_setup: tcgetattr
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
Connection opened from 127.0.0.1:53819
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.
read_string_generic called, rxmax=32 direct=1, expected_len=1
read_string_generic(): Timed out 0.502 seconds after 0 chars, direct=1
easycomm_transaction read_string failed with status -5:Unknown error
easycomm_rot_get_position got error: -5
rotctl_parse: NETROTCTL_RET -5
rotctl(d): P β€˜65.43’ β€˜15.11’ β€˜β€™ β€˜β€™
rot_set_position called az=65.43 el=15.11
rot_set_position: south_zero=0
easycomm_rot_set_position called: 65.430000 15.110000
easycomm_transaction called: AZ65.4 EL15.1

write_block(): TX 14 bytes
0000 41 5a 36 35 2e 34 20 45 4c 31 35 2e 31 0a AZ65.4 EL15.1.
rotctl_parse: NETROTCTL_RET 0
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.
read_string_generic called, rxmax=32 direct=1, expected_len=1
read_string_generic(): Timed out 0.502 seconds after 0 chars, direct=1
easycomm_transaction read_string failed with status -5:Unknown error
easycomm_rot_get_position got error: -5
rotctl_parse: NETROTCTL_RET -5
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.
read_string_generic called, rxmax=32 direct=1, expected_len=1
read_string_generic(): Timed out 0.501 seconds after 0 chars, direct=1
easycomm_transaction read_string failed with status -5:Unknown error
easycomm_rot_get_position got error: -5
rotctl_parse: NETROTCTL_RET -5
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.
read_string_generic called, rxmax=32 direct=1, expected_len=1
read_string_generic(): Timed out 0.503 seconds after 0 chars, direct=1
easycomm_transaction read_string failed with status -5:Unknown error
easycomm_rot_get_position got error: -5
rotctl_parse: NETROTCTL_RET -5
rotctl(d): S β€˜β€™ β€˜β€™ β€˜β€™ β€˜β€™
rot_stop called
easycomm_rot_stop called
easycomm_transaction called: SA SE

write_block(): TX 7 bytes
0000 53 41 20 53 45 20 0a SA SE .
rotctl_parse: NETROTCTL_RET 0
Connection closed from 127.0.0.1:53819

YES it is working properly now! thank you. I noticed that it was 4.5.4 later and now its is working. my dyslexia in progress :stuck_out_tongue:

1 Like