Jump to content

Serial Port debugging: Difference between revisions

From LinuxMCE
Esperanto (talk | contribs)
New page: == Debugging serial Port (Com port/RS-232) == You can use minicom (apt-get install minicom) # minicom then press ctcl-a z to open the help interface select 'o' goto 'Serial port set...
 
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[Category: Development]]
== Debugging serial Port (Com port/RS-232)  ==
== Debugging serial Port (Com port/RS-232)  ==


Line 28: Line 29:


When you type the command the device should respond.
When you type the command the device should respond.
Testing turn of delay command line for my TV:
* echo "ka 01 01"> /dev/ttyS1;sleep 7.4;echo  "kb 01 01" > /dev/ttyS1

Latest revision as of 19:26, 24 August 2009

Debugging serial Port (Com port/RS-232)

You can use minicom (apt-get install minicom)

# minicom

then press ctcl-a z to open the help interface

select 'o'

goto 'Serial port setup'

Set the Serial device to the port you want to test In my case I also had to set:

- Bps/Par/Bits: 9600 8N1
- Hardware Flow Control : No

Exit this screen and then select:

  • 'Save setup as dfl'

(this makes this configuration default next time you start minicom)

Exit this screen

then reinitialize the modem (m)

you should enable local echo so you can see what you type.

  • ctrl-a e

When you type the command the device should respond.

Testing turn of delay command line for my TV:

  • echo "ka 01 01"> /dev/ttyS1;sleep 7.4;echo "kb 01 01" > /dev/ttyS1