Wayne Stallwood wrote:
On Sunday 10 October 2004 8:30 pm, Ian bell wrote:
I want to program a single board computer (SBC) from a linux PC via a serial-port. The SBC includes a Flash memory microcontroller which is set into in circuit programming mode by pulsing one of the serial control lines e.g.RTS. Sending data to a serial port is no problem; in Linux/Unix everything is a file. But how to I operate the RS232 control lines?
I am pretty sure gtkterm can do what you want. I know it can give manual control to at least some of the lines. Maybe if you need to add this functionality into your own application it would at least be worth having a prod around gtkterm's source.
I came across gtkterm when googling around this topic. It certainly can toggle DTR etc but I need to apply a short series of pulses (faster than I can press the keys!) A look at its source code is a godd idea. Thanks.
To make matters worse I am doing this on a laptop which does not have a serial port so I am using a USB to serial adaptor.
This really gets me, I understand the need to dump some of the legacy interfaces to make laptops a managable size, but a serial port is still really useful to some. Even my Thinkpad doesn't have one, I have to resort to an expensive PCMCIA serial adapter when I want to mess with PIC's/Program a Cisco/Talk to someones PBX/mess about with an HP switch.
Never had much luck with those USB-Serial things
Strange. So far I never had any problems with them. Mine is from eBuyer (they are currently about £6) and it even produces + and - RS232 signals. I agree though about the demise of serial ports in laptops - totally stupid.
Ian