Re: Help with writing device driver for RS-485 transceiver

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, Mar 24, 2007 at 09:50:05AM +0800, WANG Zhen wrote:
> 2007/3/23, Erik Mouw <mouw@xxxxxxxxxxxx>:
> >Like I said, there is no way the 3085 can generate an interrupt, so
> >this approach is useless. You somehow have to hook up the 3085 to the
> >UART (this might need some extra circuits) and treat the whole thing
> >as a normal serial port.
> 
> Actually, I plan to use MODBUS-RTU over serial line protocol [1] to
> pack the data into a frame before transmit and unpack the frame after
> receiving it, can I still treat 'the whole thing' as a normal serial
> port?

Sure, why not. You can do the whole thing in userspace, but you could
also write a line discipline.

> And one more question: the development board that I'm using was
> shipped with a working ARM Linux (2.4.18-rmk7), but I don't know how
> to enable UART1 and UART2 from the kernel source code (these is only a
> '/dev/ttyS0' device node under /dev which stands for UART0).

Eeeewwww! You are really running ancient crap on that board (over
*five* years old)! The S3C2410 support in current kernels is so much
better that you really don't want to run anything less than the latest
2.6 kernel. From the look of it all three serial ports are supported in
2.6.21-rc5.


Erik

- -- 
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGB7Z0/PlVHJtIto0RArXEAJ9BIU14Rsl5jOz5IJkjT5209J4jTQCgh1r1
vkIYVdBb1h/GpELw++pP1ss=
=t0/Y
-----END PGP SIGNATURE-----

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux