May-14th-2020, 09:07 AM
(This post was last modified: May-14th-2020, 09:08 AM by Armin@netPI.)
Hello Carsten,
yes you can access to NPIX RS485, als long as you map the correct "/dev/ttyS0" device to your container and set the GPIO 17 to direction output and value 1. This enables auto-direction control. In order to be able to set GPIOs in containers in general you have also to add the devive "/dev/gpiomem" to the container and to run it in "privileged" mode. This is all you need.
In order to let the netX run as ethernet interface just start a second container in parallel from here https://github.com/HilscherAutomation/ne...hernet-lan. Start is in host mode. Then the new network interface cifx0 witll be created on host side and you see it as second interface next to eth0 on the device's web-UI under network settings. There setup the ip configuration as standard. Make 100% sure that the system's Node-RED is not running because it would reconfigure the netX chip back to industrial ethernet support. This cannot run in parallel.
Thx
Armin
yes you can access to NPIX RS485, als long as you map the correct "/dev/ttyS0" device to your container and set the GPIO 17 to direction output and value 1. This enables auto-direction control. In order to be able to set GPIOs in containers in general you have also to add the devive "/dev/gpiomem" to the container and to run it in "privileged" mode. This is all you need.
In order to let the netX run as ethernet interface just start a second container in parallel from here https://github.com/HilscherAutomation/ne...hernet-lan. Start is in host mode. Then the new network interface cifx0 witll be created on host side and you see it as second interface next to eth0 on the device's web-UI under network settings. There setup the ip configuration as standard. Make 100% sure that the system's Node-RED is not running because it would reconfigure the netX chip back to industrial ethernet support. This cannot run in parallel.
Thx
Armin
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)