modbus

Using NeoBook to control external hardware and devices.

Moderator: Neosoft Support

Locked
User avatar
frednet
Posts: 88
Joined: Fri Sep 23, 2005 4:29 am
Location: netherlands

modbus

Post by frednet » Mon Jul 24, 2017 1:58 pm

Has anyone managed to control a modbus device through neobook?
Building a rotating Solar panel I need a way to get the data from the epever solar charge controller into neobook.
here is a link to a pdf about the specificshttps://www.google.nl/url?sa=t&rct=j&q= ... 2A&cad=rja
I'm looking for a routine to read the real time data. Anyone with experience doing something like that?

Neosoft Support
NeoSoft Team
Posts: 5628
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA
Contact:

Re: modbus

Post by Neosoft Support » Fri Jul 28, 2017 5:40 pm

If you're using a serial (com port) interface, you could try this plug-in:

http://neosoftwarecom.ipower.com/neoboo ... =3&lid=279

Otherwise, it probably would require a custom plug-in.
NeoSoft Support

User avatar
frednet
Posts: 88
Joined: Fri Sep 23, 2005 4:29 am
Location: netherlands

Re: modbus

Post by frednet » Sat Feb 24, 2018 3:26 am

Neosoft Support wrote:If you're using a serial (com port) interface, you could try this plug-in:

http://neosoftwarecom.ipower.com/neoboo ... =3&lid=279

Otherwise, it probably would require a custom plug-in.
Sorry for the delay, I missed your response.
I have been wrestling with the serial port module.
I want of cource no less than saving the world with this :)

Modbus rtu is a serial protocol used for reading and controlling the solar charger that now feeds part of my energy needs, hence saving the world....

everywere I read the modbus protocol is easy... well heck, not if you are on windows. in 1984 life was so much easyer, just peeking and pooking with my atom computer. Bget and bput commands just to read and write hex characters wherever I want. End of ranting :)

I'm not getting anywhere with the plugin npCompWriteString and npCompReadString commands. in the example below a string is given that needs to be send as hex string, but how can i do that?
Read real-time battery voltage Device ID:0x01 Function code: 0x04 Register Address: 0x3104 Register count: 0x0001 Send command: 01 04 31 04 00 01 7E F7
Receive command: 01 04 02 04 CE 3A 64 Read Holding Register Value: 0x04CE 0x04CE (hex) = 1230 (dec) 1230 / 100 = 12.3 volt
It seems to me the plugin only wants to send asci, or am i overlooking the obvios here somewhere?

any help very much appreciated.. Fred

Locked