FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

12688 questions

15067 answers

24145 comments

47111 members

0 votes
101 views 2 comments
by
Greeting,

I've got the TRB245 and I've configured the modbus serial master to get two registers from a slave. Then, I need to format the register data inside the modem to get a floating point and finally sending it using the data to server service. 1# Is there a way of doing this?

2# Can I run a python script inside the TRB245? the python command is not found when log in using ssh, and the flash memory is not enough to install it.

Thanks

1 Answer

0 votes
by

Hello,

What you want to achieve is not directly possible with built-in router features, but a script may be a solution.

If you reset the router to factory defaults, you should have enough space to be able to install python successfully via CLI/SSH, using the following commands:

  • opgk update
  • opkg install python3-light

Best regards,

by
is there any documentation regarding using the modbus rs485 of the TRB245 through python?

Thanks
by
Unfortunately, there is no such documentation.