Grove RS485 : Modbus RTU communication

Hope this could help someone, it’s not the solution I need but a little step forward.

Thanks to user Kenta IDA that posted this code :
Wio Terminal Grove UART · GitHub

I got the LEFT grove port working as per picture enclosed

While RS485 grove module accept both 3.3 and 5v, some receiving device can’t cope with 3.3v signal given by grove port so in this case you’ve to modify the cable and get the 5v and gnd from rpi connector

Here is a picture of the modified cable :

Going on with experiments because the RIGHT grove port (the one I need) isn’t working with the code provided by Kenta IDA.