diglet wrote: ↑Sat Apr 15, 2023 4:43 pm
It's not supposed to be compatible, but I think it should work with the serial redirect hack I described
If you can't get it to work, let me know, then I'll hurry up with official intiface support.
Restim supports changing the carrier frequency, carrier amplitude modulation and volume over the API. Can also change all those settings in the UI.
Finally got restim working with a virtual tty and sending commands to it manually. The only problem is that a virtual tty is not considered a physical serial port, so it does not show up when asking the OS for a list of serial ports.. With restim this isn't a problem, since you can just enter the path to the tty in the settings manually and it'll work anyway. But intiface central only has automatic detection, where it fails to find my virtual tty.
If you have time, perhaps you could add some more prints to serialproxy? For example check the return code from self.port.open and print self.port.error() in case it is false. And in case of success, maybe print the name of the serial port similar to what it does for tcp and udp?
Another thing I've noticed is that "matplotlib.backends.backend_qt5agg" caused an error on one of my computers, while it worked on another with a different Linux distribution. However "matplotlib.backends.backend_qtagg" worked on both, so perhaps this is the best way to import it, if it works on Windows too?
In case anyone else wants to try, here's the steps:
As root:
Code: Select all
socat -dd -v pty,link=/dev/ttyVirtS0,rawer pty,link=/dev/ttyVirtS1,rawer
As root (in a different terminal or using sudo):
As your user:
In app:
Go to settings, enable serial port and write "/dev/ttyVirtS0" in the COM port field. For testing: Disable "Auto-expand L0"
In a terminal:
You should see the "control dot" in the triangle move near the bottom between left and right.
You should see the control dot move to the top of the triangle.
Took me a little time to figure out, but L010 and L099 won't work with auto-expand L0 and I don't know enough about tcode so I just disabled it.