help for self-made serial driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello people.

i don't know if my question should be here. please inform me if not where
i can get some help.

i have writen a kernel module in order to communicate with a home network
through my serial port. the module work ok when i connect my pc with
another pc via NULL modem cable ( i do this to test my module). but when i
try to communicate with the real network i can't receive anything.

in order to communicate with this network a small device is connected to
my serial port as shown below

  _______      ____________
 |       |     |          |
 | my pc |-----| gateway  |------  network (let's say a ligth actuator)
 |_______|     |__________|

when ever i press the light actuator it send a message A. the purpose of
the gateway is to convert the package from the network to serial data,so
there is a voltage conversion from 24V (in the network) to 12V for the
serial hardware. The problem is that i don't receive the message A. When i
use the linux serial driver i get the message so i guess that i do
something wrong in my driver. As long as i have red from manuals of the
serial port i haven't found anything about voltage conversion.
When i connect my computer with another one ( pc 2 ) via NULL modem and
send from pc 2 the message A my driver works fine so i guess that my
processing on the serial stream is ok. Am i missing something about the
serial hardware?

i do the kernel module just to practise in kernel development as a hobbie.
I can do my job with the linux serial driver but i would like to learn how
to handle my computer resources  by myself.

thank you

-
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux