• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using node.js on NIOT-E-TP151-EN-RE
#4
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
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
using node.js on NIOT-E-TP151-EN-RE - by COswald - May-6th-2020, 11:17 AM
RE: using node.js on NIOT-E-TP151-EN-RE - by COswald - May-14th-2020, 08:35 AM
RE: using node.js on NIOT-E-TP151-EN-RE - by Armin@netPI - May-14th-2020, 09:07 AM
RE: using node.js on NIOT-E-TP151-EN-RE - by COswald - May-14th-2020, 09:56 AM
RE: using node.js on NIOT-E-TP151-EN-RE - by COswald - May-18th-2020, 07:03 AM
RE: using node.js on NIOT-E-TP151-EN-RE - by COswald - May-20th-2020, 10:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  NIOT-E-NPIX-RS485 LucioFiam 6 4,628 January-21st-2023, 05:20 PM
Last Post: Armin@netPI
  Node Red configuration LucioFiam 3 1,831 November-30th-2022, 05:14 PM
Last Post: Armin@netPI
  secure node-red with a username and password Christian_Rau 3 3,056 December-3rd-2021, 11:06 AM
Last Post: Armin@netPI
  cifx0 and Node-Red fabio1975 5 3,316 November-22nd-2021, 01:13 PM
Last Post: Armin@netPI
  Node red web UI issue DSongra 3 3,315 July-22nd-2021, 02:47 PM
Last Post: Armin@netPI
  Node-RED 'projects' possible on netPI? JG_KIT 2 2,449 July-20th-2021, 01:11 PM
Last Post: JG_KIT
  Node-RED: OpcUa Client node tad 4 4,640 June-9th-2021, 08:51 AM
Last Post: tad
  NIOT-E-NPIX-4DI4DO with netpi-netx container WalterSchaefer 3 6,932 November-25th-2020, 01:06 PM
Last Post: zen89
  Accessing a modbus device connected to RTE port from Node-RED tad 10 8,313 October-2nd-2020, 07:21 AM
Last Post: Armin@netPI
  5 x NL 50-Mpi and Node Red like colector data? Jotarod 4 4,093 September-14th-2020, 01:59 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)