Second instance of rocnetnode

Add-ons to Rocrail that are not supported by the Rocrail team but are suppported here.

Second instance of rocnetnode

Postby Richard-TX » Thu Feb 13, 2014 2:23 pm

Accessing both I2C buses (unsupported)
At this time, only one I2C bus can be accessed by rocnetnode. It is possible to access both I2C buses on a Rpi but to do so requires than more than one instance of rocnetnode running. To have two (or more) instances start at boot time, two files have to be modified. They are /etc/init.d/rocnetnoded and /opt/rocnet/rocnetnode.sh. To run a second instance manually:

Code: Select all
sudo /opt/rocnet/rocnetnode -l /opt/rocnet -i rocnetnode2.ini&
   


To start the 2nd instance manually in the background so that you can close your telnet session: +

Code: Select all
sudo nohup /opt/rocnet/rocnetnode -l /opt/rocnet -i rocnetnode2.ini > nohup2.out 2>&1&



The requisite changes to the two startup files are fairly obvious. If you need help, please ask here.

There is no reason why more than 2 instances cannot be run. For example: A third instance could be run that would access devices on one of the two SPI buses.

DIY hint:
MCP23S17 SPI 16 port expander
User avatar
Richard-TX
Site Admin
 
Posts: 208
Images: 6
Joined: Sat Feb 04, 2012 8:10 pm

Return to Rocrail Add-Ons

Who is online

Users browsing this forum: No registered users and 1 guest

cron