2130 stops responding to program or serial events, looses connection to the computer.

11 years 8 months ago #29525767 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

Attachment Profile.zip not found

Attachments:

Please Log in or Create an account to join the conversation.

11 years 8 months ago #29525769 by Michael Burton
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

Please Log in or Create an account to join the conversation.

11 years 8 months ago #29525771 by roboteq
There are no known issue with serial connection.

We\'ll run your script and let you know shortly.

Please Log in or Create an account to join the conversation.

11 years 8 months ago #29525773 by roboteq
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.

Please Log in or Create an account to join the conversation.

11 years 8 months ago #29525777 by Michael Burton
I sent the entire script to Cosma this morning.

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.063 seconds