I've implemented VBus protocol (by TCP connection) in LUA to get it working with LM. I think that the code can be easily adpted for serial connection.
I'm able to monitor the plant status (temps, relays, etc).
But i've not found docs for controlling the plant (but I really didnt need it).
The code must be cleaned and has no comment in it (sorry).
I'll glad to share if you are interested.
(15.11.2016, 12:10)edgars Wrote: Hi Luca, you are welcome to share your code for a common good and for help to community Maybe somebody would optimize it for better operation.
Edgars,
just the time to reorganize it as a module and make generic and i'll post it here.
.
Now I've tested it with LM and it works.
I've update the luavbuspacket module to get profile data directly from it (have a look at example).
Direct commands are not yet implemented (maybe never).
It should not be difficult to implement them, but i've no use case to test it.
(12.11.2016, 15:45)HI,A lot of job since september, my LM reactor project stay... Thanks for this possibility, i have the USB Vbus adapter. I\ll try to understand your script and buy a LAN adapter (if i can't adapt it with usb adapter on LM usb port).thanks Wrote:
(15.07.2016, 16:13)69jtdti Wrote: Is there a solution to read or write with logic machine reactor or gateway to a RESOL solar automation, vbus dial?
for:
- making a visualisation with read parameters
- modify some of them with my knx installation or use it in script.
vbus it seems to be a special RS 485 or 232 bus. It's perhaps same as Viessmann KM bus.
I've implemented VBus protocol (by TCP connection) in LUA to get it working with LM. I think that the code can be easily adpted for serial connection.
I'm able to monitor the plant status (temps, relays, etc).
But i've not found docs for controlling the plant (but I really didnt need it).
The code must be cleaned and has no comment in it (sorry).
I'll glad to share if you are interested.
Hi 69jtdti,
it shouldn't be too difficult do complete the code adding direct connection to the bus by serial interface.
You should check if USB adapter make a serial device available to LM (i think it can be a RS485 to USB converter).
If it's so, you only need to get comm parameters (speed, etc) and make some small changes to the module.
Could you tell the model of USB adapter?
If you can put online the LM with USB adapter connected to it, I can (try to) check how it works.
I have created the different user libraries and the resident script. However, I got the following error:
Userlibrary luavbus: Line 116 attempt to index field 'socket' (a nil value)
I also tried to activate debug5 by changing warn in debug5 in the resident script but I don't get any debug messages.
do you have any ideas how to solve?
regards,
Joost
22.02.2017, 08:37 (This post was last modified: 22.02.2017, 08:39 by lpala.)
(23.01.2017, 12:41)69jtdti Wrote:
(12.11.2016, 15:45)HI,A lot of job since september, my LM reactor project stay... Thanks for this possibility, i have the USB Vbus adapter. I\ll try to understand your script and buy a LAN adapter (if i can Wrote:
(15.07.2016, 16:13)69jtdti Wrote: Is there a solution to read or write with logic machine reactor or gateway to a RESOL solar automation, vbus dial?
for:
- making a visualisation with read parameters
- modify some of them with my knx installation or use it in script.
vbus it seems to be a special RS 485 or 232 bus. It's perhaps same as Viessmann KM bus.
I've implemented VBus protocol (by TCP connection) in LUA to get it working with LM. I think that the code can be easily adpted for serial connection.
I'm able to monitor the plant status (temps, relays, etc).
But i've not found docs for controlling the plant (but I really didnt need it).
The code must be cleaned and has no comment in it (sorry).
I'll glad to share if you are interested.
Luca
(18.02.2017, 08:17)joost001 Wrote: Dear Luca,
I have created the different user libraries and the resident script. However, I got the following error:
Userlibrary luavbus: Line 116 attempt to index field 'socket' (a nil value)
I also tried to activate debug5 by changing warn in debug5 in the resident script but I don't get any debug messages.
do you have any ideas how to solve?
regards,
Joost
You're right, i've just uploaded a newer version in previous post.
This solves lua error, but you have probably some problem connecting the lan adapter, as the connect method return a nil.
Luca
(21.02.2017, 16:30)69jtdti Wrote: Hello, I have found this document to implement Vbus Protocol.
It's not very easy to understand for a beginner
The most of the protocol useful for integration with domotics is already in.
It's probably full of bugs.
Feel free to correct it and post them.
After this change, I still get the following error log, when I start the script
resol_deltasol 13.11.2017 11:08:49
User library "luavbus", Line 731: attempt to index global 'bit32' (a nil value)
resol_deltasol 13.11.2017 11:09:50
User library "luavbus", Line 149: attempt to index field 'socket' (a nil value)
(13.11.2017, 10:13)joost001 Wrote: After this change, I still get the following error log, when I start the script
resol_deltasol 13.11.2017 11:08:49
User library "luavbus", Line 731: attempt to index global 'bit32' (a nil value)
resol_deltasol 13.11.2017 11:09:50
User library "luavbus", Line 149: attempt to index field 'socket' (a nil value)
regards,
Joost
Hi Joost,
I'm sorry to be late.
It seem to not find the bit/bit32 module, it's strange.
The socket problem could be caused by work host/port. Could you try to connect using telnet/putty/nc etc to the port?
If it doesn't connect, check the ethernet adapter configuration.