[NTLK] Einstein/NCX serial communication test versions as binary release.
mm at matthiasm.com
Sun Feb 26 05:15:06 EST 2017
> On Feb 20, 2017, at 7:58 PM, Jake Bordens <jake at allaboutjake.com> wrote:
> If you have “socat” on our machine (install through homebrew) you can create a PTY in /dev that looks and acts like a serial port:
>> sudo socat -d -d -d PTY,raw,mode=666,echo=0 PIPE:/Users/jake/Library/Application\ Support/Einstein\ Emulator/ExtrSerPortSend\!\!PIPE:/Users/jake/Library/Application\ Support/Einstein\ Emulator/ExtrSerPortRecv
> When run, gives you:
>> 2017/02/20 13:57:02 socat N PTY is /dev/ttys002
>> 2017/02/20 13:57:02 socat N opening named pipe "/Users/jake/Library/Application Support/Einstein Emulator/ExtrSerPortSend" for reading
>> 2017/02/20 13:57:02 socat N opening named pipe "/Users/jake/Library/Application Support/Einstein Emulator/ExtrSerPortRecv" for writing
>> 2017/02/20 13:57:02 socat N starting data transfer loop with FDs [5,5] and [7,8]
> The only downside is that it doesn’t enumerate as a serial port, so many apps that enumerate serial devices won’t show your emulated device.
My previous answer did completely ignore the awesome trick that you did here! Rerouting the named pipes is really wonderful! I used socat in a different way, but this is really really helpful when we can't modify the original tools and still want to use the pipe approach!
More information about the NewtonTalk