07.07.2025, 11:20
What is your LM hardware version (printed on the sticker on the side of the housing)?
Create an event script mapped to a binary object to control USB power power:
Check System config > Status > System log, you should see that USB converter is disconnected when the port is powered down. Similar to this:
Create an event script mapped to a binary object to control USB power power:
Code:
state = event.getvalue() and 'high' or 'low'
io.writefile('/dev/usbctrl', state)
Check System config > Status > System log, you should see that USB converter is disconnected when the port is powered down. Similar to this:
Code:
Jul 7 11:17:03 LogicMachine kern.info kernel: [11838588.128976] cp210x 1-1:1.0: device disconnected
Jul 7 11:17:03 LogicMachine kern.info kernel: [11838588.128729] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
Jul 7 11:17:03 LogicMachine kern.info kernel: [11838588.128345] usb 1-1: USB disconnect, device number 4