- Forum
- Roboteq Motor Controllers
- Troubleshooting
- 2130 stops responding to program or serial events, looses connection to the computer.
2130 stops responding to program or serial events, looses connection to the computer.
- Michael Burton
- Topic Author
- Offline
Less
More
- Posts: 64
- Thank you received: 1
11 years 8 months ago #29525767
by Michael Burton
2130 stops responding to program or serial events, looses connection to the computer. was created by Michael Burton
After sitting for a while the controller stops responding. I have the watchdog off and serial is the only command type that is active.
This happens with and without a program running.
Reattaching the serial line does not reconnect the controller.
Profile attached
This happens with and without a program running.
Reattaching the serial line does not reconnect the controller.
Profile attached
Attachment Profile.zip not found
Please Log in or Create an account to join the conversation.
- Michael Burton
- Topic Author
- Offline
Less
More
- Posts: 64
- Thank you received: 1
11 years 8 months ago #29525769
by Michael Burton
Replied by Michael Burton on topic Re:2130 stops responding to program or serial events, looses connection to the computer.
A bit more information.
I was sending data out the serial IO for a log Using this code.
I have stopped calling this log subroutine and have not had a lockup. It uses timer 2 and only updates the data every 2 seconds. Could this have been the problem?
log: \' prints values to the log for debug Not needed for flight
if GetTimerCount(2) = 0 then \'check timer to see if we should output the log
print(\"lperr 1 \", GetValue(_E, 1),\"\\n\" )
print(\"lperr 2 \", GetValue(_E, 2),\"\\n\" )
print(\"trim \", trim, \"\\n\")
print(\"joy x \", joyx, \"\\n\")
print(\"joy y \", joyy, \"\\n\")
Print(\"l motor \",newleftmotorpos, \"\\n\")
Print(\"r motor \", newrightmotorpos, \"\\n\")
Print(\"flare \", flare, \"\\n\")
Print(\"joyUpUnits \", joyupUnits, \"\\n\")
print(\"joyDnUnits \", joydnunits, \"\\n\")
SetTimerCount(2,2000) \'set log interval 1000 = 1 second
end if
Return
I was sending data out the serial IO for a log Using this code.
I have stopped calling this log subroutine and have not had a lockup. It uses timer 2 and only updates the data every 2 seconds. Could this have been the problem?
log: \' prints values to the log for debug Not needed for flight
if GetTimerCount(2) = 0 then \'check timer to see if we should output the log
print(\"lperr 1 \", GetValue(_E, 1),\"\\n\" )
print(\"lperr 2 \", GetValue(_E, 2),\"\\n\" )
print(\"trim \", trim, \"\\n\")
print(\"joy x \", joyx, \"\\n\")
print(\"joy y \", joyy, \"\\n\")
Print(\"l motor \",newleftmotorpos, \"\\n\")
Print(\"r motor \", newrightmotorpos, \"\\n\")
Print(\"flare \", flare, \"\\n\")
Print(\"joyUpUnits \", joyupUnits, \"\\n\")
print(\"joyDnUnits \", joydnunits, \"\\n\")
SetTimerCount(2,2000) \'set log interval 1000 = 1 second
end if
Return
Please Log in or Create an account to join the conversation.
- roboteq
11 years 8 months ago #29525771
by roboteq
Replied by roboteq on topic Re:2130 stops responding to program or serial events, looses connection to the computer.
There are no known issue with serial connection.
We\'ll run your script and let you know shortly.
We\'ll run your script and let you know shortly.
Please Log in or Create an account to join the conversation.
- roboteq
11 years 8 months ago #29525773
by roboteq
Replied by roboteq on topic Re:2130 stops responding to program or serial events, looses connection to the computer.
We\'d need your entire script in order to test it here.
Your routine looks ok. Instead of sending all every 1s, send 1/4 of it ever 250ms. There may be a data overrun at the outputs.
Your routine looks ok. Instead of sending all every 1s, send 1/4 of it ever 250ms. There may be a data overrun at the outputs.
Please Log in or Create an account to join the conversation.
- Michael Burton
- Topic Author
- Offline
Less
More
- Posts: 64
- Thank you received: 1
11 years 8 months ago #29525777
by Michael Burton
Replied by Michael Burton on topic Re:2130 stops responding to program or serial events, looses connection to the computer.
I sent the entire script to Cosma this morning.
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
- Forum
- Roboteq Motor Controllers
- Troubleshooting
- 2130 stops responding to program or serial events, looses connection to the computer.
Time to create page: 0.063 seconds