Python3-pyserial

Hello,

Io have asked these questions before, but my last inquiry was closed without a real answer.

My question: We are using TRB145 with a python - program that reads RS485 with python3-pyserial.

On a TRB142 that pyserial - package doesn’t seem to be available ( opkg install nano doesen’t seem to be workin eather).

What can we do to resolve this problem?

Greetings,

You can install pip by following the instructions provided here: Setting up Python on RutOS - Teltonika Networks Wiki

Once pip is installed, use the following command to install the pyserial package:
pip install pyserial

Best Regards,
Justinas

Dear Justinas,

I thank you for the information, that procedure works!

In the meantime, I have also noticed that similar/the same libraries can be obtained by completing the repository-links in the OPKG folder.

Can you think of a reason why only the first solution should be used?

Kindest regards

Simon

But now the new packages made us run out of memory:

“No space left on device”

Filesystem Size Used Available Use% Mounted on
/dev/root 12.3M 12.3M 0 100% /
tmpfs 78.1M 468.0K 77.6M 1% /tmp
/dev/ubi0_1 84.0M 84.0M 0 100% /overlay
/dev/root 12.3M 12.3M 0 100% /rom/etc
overlay 84.0M 84.0M 0 100% /etc
overlay 84.0M 84.0M 0 100% /usr/local
tmpfs 512.0K 0 512.0K 0% /dev
ubi1:modem 42.3M 33.9M 8.4M 80% /firmware
ubi2:storage 123.6M 52.0K 118.9M 0% /log

Removing the new pip - packages made it possible to execute our scripts egain, but I’m affraid that the problem occurs egain in time.

Can we clean up something or so?

Greetings,

System files cannot be deleted, as doing so may cause the device to malfunction or stop working entirely.

The TRB142 does not support storage memory expansion. To expand storage, you would need a device equipped with either a USB port (for a flash drive) or an SD card slot.

You can find a list of devices that support storage memory expansion at the links below:

Best Regards,
Justinas