public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* serial port (DCE mode)
@ 2011-12-08 23:36 Kristoff Bonne
  0 siblings, 0 replies; only message in thread
From: Kristoff Bonne @ 2011-12-08 23:36 UTC (permalink / raw)
  To: linux-kernel

Hi,


I have a problem with serial ports, both on a friendlyarm mini2440
(running the default linux distro) and on a pandaboard running ubuntu.

Perhaps somebody can explain if the issue I have is related to these
particular boards or something generic in the linux kernel.


I want to use these boards as a ham (radio amateur) digital voice modem
and therefor I need a way to tell the radio to start transmitting.
There are a number of ways to do this, but the most used system uses the
DSR or RTS pings of the serial port (ping 4 on a DB9) (which drives a
transistor that drives the PTT signal of the radio).


Sofar so good. Just use tiocmset to control these pins. Using this on a
PC works great.



However, on these boards, the DB9 serial port is wired as "DCE" (modem),
not as "DTE" (terminal). The reason is to be able to connect a PC to
that board with a simple straight cable.
So, the "out" pins are now not DTR (4) and RTS (7) (as on a PC), but DSR
(6) and CTS (8).

Here is my problem:
-> I can use the "tiocmset" system-call to set the DSR and CTS pins; but
-althou the system call itself returns a "success"- it has no effect.
Reading the status of the pins afterwards indicate shows that their
value have not changed.

-> I can use tiocmset to set the status of the DTR and RTS pins. Reading
the values afterwards do indicate that they have flipped.

However, as these pins are "in" on the DB9 interface of these these
boards; there is nothing I can do with them.



So, here is my question:
Is there something I need to do to tell the kernel that a certain serial
port is "DCE" and not "DTE" and that thereby, the direction of DTR, RTS,
DSR and CTS have switched.


Is this a generic linux kernel issue or something specific to these boards?




Many thanks in advance,
Cheerio! Kr. Bonne.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-12-08 23:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-08 23:36 serial port (DCE mode) Kristoff Bonne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox