cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

341
Views
1
Helpful
1
Replies
Highlighted
Beginner

How to access serial bi-directionally through a container?

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?

Everyone's tags (1)
1 REPLY 1
Cisco Employee

Re: How to access serial bi-directionally through a container?

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.

CreatePlease to create content
Content for Community-Ad
FusionCharts will render here