Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] AIO-3399C rs232 transfers

11

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
11

【Linux】 AIO-3399C rs232 transfers

Posted at 4/26/2019 02:07:52      View:4719 | Replies:4        Print      Only Author   [Copy Link] 1#
Last edited by krtsmn In 4/26/2019 02:14 Editor

I need to transmit/receive data via rs232. AFAIK, AIO-3399C has 4 serial ports. I try to use /dev/ttyS0. It doesn't work. On other end of serial channel sent data aren't received and data sent from other end  aren't received at AIO-3399C. 'setserial' shows only one working serial port of four. I use standard kernel and rootfile from linux-SDK. What should I do to  solve the problem? 'setserial' output is below:
$ setserial -g /dev/ttyS[0123]
/dev/ttyS0, UART: 16550A, Port: 0x0000, IRQ: 37
/dev/ttyS1, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS2: Device or resource busy
/dev/ttyS3, UART: unknown, Port: 0x0000, IRQ: 0

Thank you.
Reply

Use props Report

792

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
792
Posted at 4/28/2019 14:37:14        Only Author  2#
Other ttyS had been used by other function.
Seeing link below . There are something new uart you can use.
http://wiki.t-firefly.com/en/AIO-3399J/driver_uart.html
Reply

Use props Report

28

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
28
Posted at 6/19/2019 22:51:15        Only Author  3#
I see the below for teh AIO-3399C but the RS232 didn't work for me on /dev/ttysWK1, I connected a USB to RS232 and it worked on /dev/ttyUSB0.
Using the image AIO-3399C-LVDS-UBUNTU18.04-GPT-20190304-1222.img

http://wiki.t-firefly.com/en/AIO-3399C/driver_uart.html

Is anyone successful in using the RS232 on AIO-3399C?
Reply

Use props Report

1387

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1387
Posted at 6/24/2019 11:29:07        Only Author  4#
Plz post the hardware connection picture, the kernel device tree setting (related to the series ports) and the test commands so that others can help you.
Reply

Use props Report

46

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
46
Posted at 3/2/2022 01:58:45        Only Author  5#
I can confirm that RS232 on the AIO-3399C does not work as described. I followed the steps described here: https://wiki.t-firefly.com/en/AIO-3399J/driver_uart.html

And I tried accessing the ports via Java. No luck, no data is transferred.

Maybe its because parity, stop bits, etc are wrong – but this is not documented, so this is hard to tell.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list