njfaria / SolPipLog

Logger for the PIP Inverter series ( USB / RS232 version )
Apache License 2.0
86 stars 32 forks source link

is it possible to set Serial Port Name in the config file? #79

Open pfostenberg opened 1 year ago

pfostenberg commented 1 year ago

Hi,

I have more than one USB devices and on some reboots the get reordered / swapped. other tools I can change to /dev/ttyUSBbms or /dev/ttyUSBpip. Set the names via a USB rule script. But can't set the port in the config file? I find only numbers?

BR and very nice tool!

Andreas

pfostenberg commented 1 year ago

Hi, I found a solution for my problem. It's more a work arround. My 2 USB devices are randomly ttyUSB1 or 0 ( swapped sometimes on boot) In the solpip config I can address only number ... 1...5 so 0,1 are random. So I wrote a serial rule where the USB id renames the device where the pip is connected to /dev/ttyUSB5 the config now access the no 5 constant. if it is 0 or 1 in real.... does not care and the device can reboot many times. Only I'm limited to 4 devices ... but only need 3 -:)

Hope someone can use this...