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
The nRF9160 does not have RS485 support, no.
You would need some kind of driver chip to convert from UART to RS485.
Best regards
Torbjørn
Hello Torbjorn,
would the STR485 be suitable? What about the software side ?
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.
Hi Adeel
That is excellent news, thanks for sharing your findings
Feel free to verify your answer, then it is easier to see that the case is resolved if someone with a similar issue discovers it.
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.
Hi Adeel,
Could you please let me know how did you work around the liblightmodbus library to work with. It would be very helpful.
Best regards
yugesh
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.
Hi Adeel,
Could you please let me know how did you work around the liblightmodbus library to work with. It would be very helpful.
Best regards
yugesh
Hi Yugesh,
You can get started with this Github project that includes liblightmodbus sample : https://github.com/linumiz/zephyr/tree/liblightmodbus
It has been configured to be used with Zephyr. So you can work around with this :) .
Regards,
Adeel.
Hi Adeel,
Thank you so much for your information :).
Regards,
yugesh