C programming question
- From: Valentin Bud <valentin.bud@xxxxxxxxx>
- Date: Tue, 7 Apr 2009 11:41:54 +0200
Hello community,
I have built with a micro controller a system of power plugs that can be
controlled through the serial port.
I have 2 plugs that i can start/stop and check the status of them. This is
accomplished by sending different
letters (eg. A/W) to start/stop one of the plugs and another set of letter
for the other plug and one letter
to check the status.
Taking into account the fact that my C skills are almost 0 how complicated
would be to write a program
so I can control that micro controller through the serial port. Or is there
some kind of program that can
read/write from/to the serial port from the command line. I don't want an
interactive program like minicom,
just a program that connects and send a command (a letter in my case) to the
serial port.
Why not minicom (or any other program like it)? My goal is to be able to
start/stop the plugs using a web interface.
I have tried using minicom and background it but when i log out minicom
closes. If minicom is started i can
send commands to ttyd0 with echo, but i can't read anything from serial.
Now back to my original question, how hard/complicated will it be to write
a C program to control the micro controller
through the serial port.
Of course on FreeBSD :).
thanks,
v
--
network warrior since 2005
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: C programming question
- From: Frank Shute
- Re: C programming question
- From: Chris Whitehouse
- Re: C programming question
- From: Oliver Fromme
- Re: C programming question
- From: John Almberg
- Re: C programming question
- Prev by Date: Re: Question about forcing fsck at boottime
- Next by Date: Re: C programming question
- Previous by thread: Migration to 7.1 ?
- Next by thread: Re: C programming question
- Index(es):
Relevant Pages
|