Hi Chris,
I having a problem with connecting a Teensy 4.1 in MWorks 12.2. I hope you can help me out.
Here is the code I am running:
var teensy_connection = 0
firmata teensy (
serial_port = '/dev/cu.usbmodem161512901'
data_interval = 5ms
reconnect_interval = 500ms
connected = teensy_connection
alt=teensy
) {
}
protocol {
start_io_device (teensy)
wait (1s)
if (teensy_connection == 1) {
report('Teensy connected')
}
stop_io_device(teensy)
}
and here are the logs:
27:54:55: Configuring Firmata device "teensy"...
27:54:58: WARNING: Received unexpected command (0x30) from Firmata device "teensy"
27:54:59: WARNING: Received unexpected command (0x30) from Firmata device "teensy"
27:55:00: ERROR: Firmata device "teensy" did not respond to request for protocol version
27:55:00: Experiment successfully loaded, using protocol: idp105553180631423
27:55:04: Opened data file: /Users/vladyslav/Documents/MWorks/Data/vladyslav-teensy-20250516-204357.mwk2
27:55:04: Setting protocol to idp105553180631423
27:55:04: Running MWorks 0.12.2 (2023.10.02)
27:55:04: Current date/time is Fri May 16 20:43:57 CEST 2025
27:55:04: Using protocol idp105553180631423
27:55:04: Called start on state system
27:55:04: Starting state system....
27:55:05: State system ending
27:55:05: Resetting experiment
Best,
Vladyslav