cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1312
Views
1
Helpful
1
Replies

How to access serial bi-directionally through a container?

scott.mattan
Level 1
Level 1

We have followed the following guide, in order to set up our serial ports to communicate with the container.

https://communities.cisco.com/docs/DOC-63003

However, we are unable to get serial communications functioning properly.

Works:

Thing ==> Container-APP

Test Method:

Send a message from raspberry pi to Container.

echo "hello world" > /dev/ttyUSB1

Recieve message within the Container.

cat /dev/ttyS0

hello world

Doesn't work:

Container-APP ==> Thing

Test Method:

Send a message from Container to raspberry pi.

echo "hello world" > /dev/ttyS0

Recieve message within the Container.

cat /dev/ttyUSB1

Unfortunately "hello world" never appears on the raspberry pi.

We have tried various configurations and have so far been unable to proceed.  Does anyone have any experience with this that might be able to push me in the right direction?

1 Reply 1

Steve Zhang
Cisco Employee
Cisco Employee

You may use "show async 0" to show the first serial port of IR8x9. And please note the device name is LXC is /dev/ttyS1 (for Async0, and /dev/ttyS2 for the Async1).

Please checked the physical connection and configuration carefully. There is no problem for bi-direction of serial communication.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: