None of the pi's I have seen are doing serial on the pi itself. Its usb then to whatever its connecting to either direct usb or via a usb to serial adapter. You would need to have driver software or software in general to control the adapters speed.
If it's s real serial port (/dev/ttyS* or /dev/ttyUSB* vs /dev/hidraw*) the speed setting is controlled by the software opening the device.None of the pi's I have seen are doing serial on the pi itself. Its usb then to whatever its connecting to either direct usb or via a usb to serial adapter. You would need to have driver software or software in general to control the adapters speed.
If Solarassistant supported selecting a device by path (/dev/serial/by-path), the names of the devices would be stable as long as they are plugged to the same ports.Since I run webmin on my SA I can reboot the usb stack anytime I want which would solve the problem instantly if its the usb stack. If it's the usb source device it isn't going to help. I'm luck since I'm using serial to usb adapters to read my stuff so it has behaved perfectly so far.
If you can disconnect in the solar assistant menu and then pick the device from the list when using the connect button it's the device itself that's changing its id. There isn't much you can do there.
When connected to a Linux machine, does it show as /dev/ttyUSB*? Running dmesg after unplugging/plugging should show this info near the bottom, something like this:On a growatt SPF5000es, there is only a usb port for comms. So it is usb to usb no serial ports in the equation.
120667.622213] ch341 1-1:1.0: device disconnected
[120706.637892] usb 1-1: new full-speed USB device number 7 using xhci_hcd
[120706.786653] usb 1-1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.54
[120706.786677] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[120706.786685] usb 1-1: Product: USB2.0-Ser!
[120706.788874] ch341 1-1:1.0: ch341-uart converter detected
[120706.789428] ch341-uart ttyUSB0: break control not supported, using simulated break
[120706.789758] usb 1-1: ch341-uart converter now attached to ttyUSB0
Here is some of my Log I am having USB issue for sure.can one of you guys that are way smarter than me that can help?
[...]
Bus 001 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
[...]
USB1 is the other growatt invertor, even if I swap cables it always reports issue with USB 1You have an FT232 device. Unplug it and plug it again and 'dmesg' should show it as a ttyUSB device, I think, serial communications enabled (i.e. the software opening the device can select a baud rate used for communications). I would not worry about ttyUSB1 errors
Now, if you're using solarassistant, the trick part is to find a way to change the baud rate used when connecting to this device. I don't know whether SA can do that (yet?)
That's good news. Do you have a link to the cables you used?Ok well I received the high dollar USB cables and I didnt even reboot the PI and everything connected and hasn't even posted any CRC errors. I have rebooted and it connected back up again. I sure hope this works long term, and maybe this could help others.
That's good news. Do you have a link to the cables you used?
TIA
That looks really bad. Either the devices attached to USB1 and USB2 are borked or the USB bus itself is done... But maybe just a reboot fixes it?
I think SA recommends a Pi3.Mmm, that's a raspi3 with only USB 2 ports. Those provide up to 500mA versus 900mA for USB 3 ports like those in the Pi4