SERIAL_IMX in RS485 mode - EOT, read back
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Stefan Agner <stefan@xxxxxxxx>, Linus Walleij <linus.walleij@xxxxxxxxxx>
- Subject: SERIAL_IMX in RS485 mode - EOT, read back
- From: Adam Rudziński <adam.rudzinski@xxxxxxxxxx>
- Date: Fri, 14 Sep 2018 09:27:10 +0200
- Cc: Dong Aisheng <aisheng.dong@xxxxxxx>, Shawn Guo <shawnguo@xxxxxxxxxx>, Pengutronix Kernel Team <kernel@xxxxxxxxxxxxxx>, Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>, Fabio Estevam <festevam@xxxxxxxxx>, Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx>, linux-serial@xxxxxxxxxxxxxxx, Baruch Siach <baruch@xxxxxxxxxx>, Clemens Gruber <clemens.gruber@xxxxxxxxxxxx>
- In-reply-to: <40051267720dfe715c8948185dd7788e@agner.ch>
- References: <3f93a756-c165-bf5d-a81e-c5909ba208aa@arf.net.pl> <CAOMZO5ArmmQvPfJR++VgXDDi8YBd8CJjHuFdLnegkCEaYJNnig@mail.gmail.com> <42fb908a-d0d0-af6b-42af-73120a6fe383@arf.net.pl> <CAOMZO5BBTroDav=LiVsC6zcGZ3vw0cCXLKtpGYQ4Y4V8XiseOg@mail.gmail.com> <7136ce4a-7a92-bc6b-48e7-9cca779ab00b@arf.net.pl> <20180911055428.tkqxwrtt6wdhe74x@pengutronix.de> <49001ccf-f081-5444-3bcd-be9aeb39cabc@arf.net.pl> <CACRpkda_wks20=SGpHG4xqpmWcmZ1gzQOtp-SEoWFHnPR70RMw@mail.gmail.com> <2b7b9409-7e2a-b78d-c24a-570a0ff4cbc6@arf.net.pl> <CACRpkdZ5i9YqcMyOqBsA37PnQpLGLwSzxmy3+V8aT7zkEwVBrw@mail.gmail.com> <40051267720dfe715c8948185dd7788e@agner.ch>
- User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
Hello Guys,
could you, please, give me also a hint on how to get some information
from the serial port driver?
1) Since RS485 is half-duplex, it is necessary to share transmission
time with other devices. I think that for reasons of flexibility the
preferred solution would be to control that from application, not from
the driver. But to do that properly, the information that the TX buffer
is empty would be welcome (note: not that TX buffer can accept more
bytes, but that there are no more left for sending out). Is it available
somewhere already?
2) On half-duplex RS485 bus collisions are possible. A way to detect
them could be to listen while transmitting. Here, I think, the preferred
way would be to have it done in the driver, which could compare sent and
received bytes and have a collision flag somewhere. Is it already
implemented, or is there any good place for that? And how do I access
that from application?
Best regards,
Adam
[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]