Comments (2)
Yes, there is a way around this.
Please read these links:
- This project is dormant - which will explain why you should be starting at SensorsIot/IOTstack.
- The assumptions IOTstack makes so you understand that this is a "your mileage may vary" situation.
The ttyAMA0
device is the Raspberry Pi serial port. Apparently, "AMA" is the name of the bus on the Raspberry Pi SOC that connects to the UART.
Because /dev/ttyAMA0
is pretty much guaranteed to exist on a Raspberry Pi, it is used fairly often in IOTstack service definitions, both "for real" and as a placeholder.
Node-RED is an example of a "for real" mapping:
- /dev/ttyAMA0:/dev/ttyAMA0
With that in place a flow using the node-red-node-serialport
add-on node can access the serial port on the Raspberry Pi (left hand side of the above mapping) by communicating with the container's serial port (right hand side of the above mapping).
It doesn't matter whether any node or flow is or isn't using
/dev/ttyAMA0
. The mapping makes the serial port available inside the container in case a node or flow wants to use it. It's a subtle difference.
Octoprint and Zigbee2MQTT are examples of "placeholder" usage. Until you connect your 3D printer or Zigbee adapter, you don't know how it is going to show up in /dev
. Each of those service definitions maps:
- /dev/ttyAMA0:/dev/ttyACM0
Because Docker-Compose can find the left hand side of the mapping, it will at least start both the stack as a whole and any containers using that mapping.
The process running inside the container may well get upset and go into a restart loop (Zigbee2MQTT does) but that's a separate matter.
Anyway, in the case of Node-RED, you can solve this problem by doing one of the following:
-
Delete or comment-out the line containing
/dev/ttyAMA0
; or -
For your particular hardware, figure out which device connects to your serial port and substitute it. For example, if
/dev/ttyS0
leads to your UART, change the line to be:- /dev/ttyS0:/dev/ttyAMA0
The approach you take depends on whether you have plans to communicate with the serial port - assuming that exists on your hardware.
I hope this makes sense?
from iotstack.
Phill Thanks for the detailed explanation. With this it makes sense.
from iotstack.
Related Issues (20)
- menu.sh error HOT 2
- unable to stop and remove Hassio containers in IOTstack HOT 1
- zigbee2mqtt
- menu.sh just checks for current version HOT 2
- Home Assistant Native keeps coming back after removal HOT 1
- Zigbee2MqttAssistant: Unable to connect to MQTT server mosquitto HOT 2
- chown -R 1883:1883 ./volumes/mosquitto does not accept "Y" HOT 1
- ImportError: No module named 'blessed' HOT 1
- running rtl_433 container problem HOT 7
- influxdb.conf ... changing the retention of data HOT 1
- how to retrive an old image HOT 5
- How Do I get rid of Pihole ? I tried everything. HOT 5
- IOT stack vs raspberry pi OS bullseye HOT 5
- installation script incorrectly prompting version types HOT 2
- Concerned about prerequisites HOT 3
- pi.hole only works intermittently. HOT 3
- can't install new nodes in Node-Red due to no connection of node-red container with internet HOT 1
- i2c in nodered HOT 2
- Integrating Telegram Nodes into Node-RED HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iotstack.