Shop OBEX P1 Docs P2 Docs Learn Events
rs232 propeller reset — Parallax Forums

rs232 propeller reset

grouchygrouchy Posts: 16
edited 2009-12-29 12:28 in Propeller 1
I have my demoboard connectd to the serial port of my pc, the pc running visualbasic. When the visual basic program closes the comm port, the propeller does a reset. How do I prevent this?





▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Rudy's CNC Freeware·· http://www.enter.net/~schleinkofer

Comments

  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2009-12-29 03:46
    disconnect the DTR signal for normal operation as this is used for reset control.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    *Peter*
  • DroneDrone Posts: 433
    edited 2009-12-29 08:29
    If you disconnect DTR, you will need to reconnect it once again to program the propeller. You may also try changing the serial port connection to the propeller from DTR to RTS. As it is now, the Propeller Tool V1.2.6 (current) pulls both DTR and RTS low when it programs the propeller. But it may be that your VB application won't pull RTS down when it terminates, you'll have to try it out and see.

    You can control which pin does the propeller reset, RTS, DTR or both in the propeller tool via Edit > Preferences > Operation > Port Management > Propeller Reset Signal. However I have found this setting to be dysfunctional, the propeller tool always pulls down both RTS and DTR no matter how you set this option. Parallax has refused to even reply to my email and forum postings regarding this bug.

    Regards, David
  • Toby SeckshundToby Seckshund Posts: 2,027
    edited 2009-12-29 10:07
    I have put a jumper on my inteface to prevent this. I also put two on to be able to swap rx and tx over ( having got it wrong before,and of course, never since)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Style and grace : Nil point
  • DroneDrone Posts: 433
    edited 2009-12-29 12:28
    Did you verify my conclusion that the propeller tool V1.2.6 is pulling RTS down with DTR no matter how you set it in Preferences. More feedback would help us if you verify this. In-general (may not help your specific situation with your VB app), if the propeller-tool leaves RTS alone (high) when programming then we can make a serial dongle that is pin-compatible with the very expensive USB prop-plug, no power needed from the target propeller board (all parallax boards off-the-shelf) - hence the requirement for another pin. As this issue goes on and on without parallax response, it seems either parallax is too busy to deal with this bug (likely) or they are intentionally pulling both DTR and RTS low no matter what to make prevent the creation of inexpensive serial cables that would take market-share away from the prop-plug (unlikely IMHO knowing Parallax). But soooo long without a response from parallax worries me.

    Regards, DR
Sign In or Register to comment.