← General Discussion
Martin Hermann@martinhermann· 927 views

not able to connect to teensy 4.1 from python

Hello all,

my electronic box build is based on AR4, but the robot is AR3. Therefore i use the AR4_teensy41_CUI skatch.

situation:

i can connect from Arduino (both (Arduino + Teensy) SW-packags installed) to Teensy to upload sketch:

but when i open the python AR4 Software and set the com to: 4 (and click on the button: "Set Com Teensy") it still shows the error message: "unable to establish communications with Teensy 4.1 controller:

any suggestions how to debug/check the connection?

br Martin

Comment 5

Martin Hermann

minor update: when I try to save the config, i get an error in console:

(ar4-py37) PS C:\........\Annin Robotics\AR4 HMI interface source> python .\AR4.py

Exception in Tkinter callback

Traceback (most recent call last):

File "C:\.....\anaconda3\envs\ar4-py37\lib\tkinter\__init__.py", line 1705, in __call__

return self.func(*args)

File ".\AR4.py", line 4262, in SaveAndApplyCalibration

toolFrame()

File ".\AR4.py", line 4012, in toolFrame

ser.write(command.encode())

NameError: name 'ser' is not defined

note about the windows exe app: when i run the exe version, only a small window starts and the curser spins but the main app is not started.

Simon Coelho

Make sure you’re using the correct baud

joshwalsh678

Did you ever figure this out? I am having a similar communication issue after upgrading my AR3.

Martin Hermann

Hello Simon, the baud rate is set in the app to 9600. my problem with the new app version is that I can not connect to Teensy when I select the correct com port. I still try to understand what the problem is.

somehow i wonder that it looks like that this problem is only on my end. even when i run a vm on win10, i have exactly the same issue.

anyway, I will post an update once i have some news on this.

br Martin

Duane Read

Having almost the same issue, Unable to connect to teensy, if I put in the com port and click the button, the screen freezes and the circle just spins, as soon as I disconnect or reset the teensy it starts back again but still wont connect to the teensy

5 replies

Photos