View Single Post
  #69   Spotlight this post!  
Unread 29-01-2008, 19:41
outpaddling outpaddling is offline
Registered User
no team
 
Join Date: Jan 2008
Location: USA
Posts: 6
outpaddling will become famous soon enough
Re: how to build a VEX programming module

Apparently so, but I'm not sure exactly how yet. Can someone explain what the handshake combination is?

I bought my son a VEX kit over the holidays, and wrote a VEX loader for *nix shortly afterward.

I made a serendipitous discovery that Mac OS X and Linux trigger programming mode by accident when the port is closed. (FreeBSD does not.) This happens reliably with both the USB/serial adapter and with a direct connection to the serial port on Linux. I'm using the orange programming module that came with the EasyC kit.

I can prevent it from happening by dropping RTS using an ioctl() call before the port is closed. Apparently OS X and Linux drop RTS when the port is closed, and this is *part* of the handshake to trigger programming mode. I have tried various combinations of dropping and raising RTS and other control lines, with no success turning on programming mode.

Thanks,

Jason
Reply With Quote