RS485 of the Neuron
-
Hi
-
I am programmer with B4J/Pi4J. I know, Every Neuron has one RS-485 port. Could i write my protocol to connecting other device !?
-
Pi4J support I2C and SPI. Could I write Java app control neuron directly(I don't want to use your Evok API) ?
Bye
-
-
Hi,
for better understanding, see this picture:
This repository https://github.com/UniPiTechnology/neuron_tcp_modbus_overlay contains overlay for the Neuron CPUs to work and also a daemon Modbus TCP Server that provides access to the IOs (except the 1Wire) and also creates a VTY for the serial line. So if you do not want to use Evok, use that or you can also write it on your own if you want.
-
Hi
Sorry, My English isn't good. your mean is I can use modbus tcp through spi to access I/O. -
Hi
Could i write my own protocol to connecting other device through RS-485 !? The RS485 mapping to dev/extcomm/0/0 or /dev/extcomm/1/0 !?
Bye
-
@Bill-Lee The protocol used on the SPI is not exactly the same as Modbus. So you should use the TCP Modbus Server that we provide (maps of registers to IOs can be found at http://downloads.unipi.technology) it will create the /dev/extcomm/x/y serial line.
The /dev/extcomm/0/0 and 1/0 both points to the same serial line (since there is only one). It is only for some developers to ease acces to it.