I am using ARTY as part of a control system by making a serial connection between ARTY and a computer using the UART functionality. I supply ARTY with 5VDC external power, and have set the power selection jumper as appropriate.
Sometimes parts of the control system get into a bad state and I want to reset ARTY. One way to do this is to physically press the PROG button. ARTY then loads it's program from flash and is reset. I then initiate a new serial connection between ARTY and a computer using UART and I'm good to go. The problem with this is that it requires a physical presence at the control system. My goal is to be able to reset ARTY without a human onsite after remoting into the computer. Is there a way to "press the PROG button" in software via a UART command, even if ARTY is not expecting to receive a command via UART?
Alternatively, I can reset ARTY by power cycling the 5VDC supply, and then unplugging and plugging back in (cycling) the microUSB cable. Power cycling the 5VDC can be controlled remotely if I set up a computer-controlled relay. (Maybe I can do the same for the USB connection, but I'm unsure. For now, assume that I can't.) I have tried power cycling the 5VDC but not cycling the microUSB cable, and while ARTY does reset, I cannot successfully establish a new serial connection between ARTY and the computer after this. If I then do cycle the microUSB cable I can establish a new serial connection. My best guess is that the computer is still bound to the serial connection so it cannot "rebind", but I'm really not sure what is happening. Is this a Linux problem or an ARTY problem, or both?
Question
emfries
Hello,
I am using ARTY as part of a control system by making a serial connection between ARTY and a computer using the UART functionality. I supply ARTY with 5VDC external power, and have set the power selection jumper as appropriate.
Sometimes parts of the control system get into a bad state and I want to reset ARTY. One way to do this is to physically press the PROG button. ARTY then loads it's program from flash and is reset. I then initiate a new serial connection between ARTY and a computer using UART and I'm good to go. The problem with this is that it requires a physical presence at the control system. My goal is to be able to reset ARTY without a human onsite after remoting into the computer. Is there a way to "press the PROG button" in software via a UART command, even if ARTY is not expecting to receive a command via UART?
Alternatively, I can reset ARTY by power cycling the 5VDC supply, and then unplugging and plugging back in (cycling) the microUSB cable. Power cycling the 5VDC can be controlled remotely if I set up a computer-controlled relay. (Maybe I can do the same for the USB connection, but I'm unsure. For now, assume that I can't.) I have tried power cycling the 5VDC but not cycling the microUSB cable, and while ARTY does reset, I cannot successfully establish a new serial connection between ARTY and the computer after this. If I then do cycle the microUSB cable I can establish a new serial connection. My best guess is that the computer is still bound to the serial connection so it cannot "rebind", but I'm really not sure what is happening. Is this a Linux problem or an ARTY problem, or both?
Thanks in advance.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.