Hello,
I would like to know if the nRF9160 supports RS485 MODBUS Communication protocol ?
Hello,
I would like to know if the nRF9160 supports RS485 MODBUS Communication protocol ?
Hi Tobjorn,
Thanks for the update. So, Could I use an external Modbus library file from Arduino to develop on the software side ? How compatible is it to use the external libraries for the internal nRF development applications ?
Regards,
Adeel.
Hi Adeel
In theory you can do that, yes, but any code interfacing to hardware peripherals (such as timers or the UART) will have to be changed.
How much work this is is hard to say. You usually get an idea when you port the code over and try to compile it, based on the number of errors that pop up ;)
Best regards
Torbjørn
Hi Tobjorn.
Haha, That is true while porting codes and that is why I was looking around for some libraries:).
While looking around for other options, I found one open source Library for Modbus RTU (liblightmodbus) that is compatible with Zephyr.
https://github.com/linumiz/liblightmodbus
Maybe this could be an option to try out as well. It would be too much of an ask but could you enquire with any of your team members whether they have used this library.
In any case, I will try to go ahead and work around with this and will update if I get any success :).
Regards,
Adeel.
Hi Adeel
I did some asking around, but I couldn't find anyone that has experience with this library unfortunately.
That said it should be relatively easy to integrate if it supports Zephyr and the Zephyr driver model.
The best of luck
Best regards
Torbjørn
Hi Tobjorn,
Just wanted to let you know that this library can be used and is compatible with Zephyr.
http://jacajack.github.io/liblightmodbus/master_8h.html#afbcff357011e2f7c2eb0469ef80e0d7d
I worked around with it and got it working :). So, if anyone needs any info to start over with modbus, you can suggest this alternative.
Regards,
Adeel.