Avoiding Reset
dnaddor
Posts: 26
We use the serial interface of the propeller chip as part of our product.
If I open the COM port normally, the chip will reset when it is opened, but not when it is closed.
If I play with the DTR settings in the DCB, I can get the chip not to reset when I open the port. But then it resets when I close the port!
Is there a way to open and close the COM port without causing a reset?
Thanks!
If I open the COM port normally, the chip will reset when it is opened, but not when it is closed.
If I play with the DTR settings in the DCB, I can get the chip not to reset when I open the port. But then it resets when I close the port!
Is there a way to open and close the COM port without causing a reset?
Thanks!
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
We may just put pullups on the couple of the hardware lines that go to the wrong state when the Propeller chip resets. I was hoping for a software-only solution without having to spin another board, but this may not be possible.
This could be done in software, using two programs on the PC:
1) a small "daemon" or server that runs all the time and controls the serial port, keeping it open constantly, and
2) a client program that runs on demand and communicates with the daemon via a local TCP or UDP port.
Essentially, you'd be creating your own serial driver wrapper that keeps the port open and uses network protocols for external communication.
-Phil
Steve
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Steve, N5AC