Cobrapin - Finding correct port for stm32 boards - win10

105 views
Skip to first unread message

leeoneil

unread,
Apr 23, 2022, 12:44:10 PM4/23/22
to MPF Users
Hello everyone.
Sorry i'm stuck, i don't understand what to put in the initial config for those ports.
I have a cobrapin.

The example :
hardware: platform: opp driverboards: gen2 opp: #Use the USB ports defined by your OS for the two STM32 boards ports: /dev/ttyACM0, /dev/ttyACM1

Where to find the information in Win10 please ?
I tried the properties
Is this something like Port_#0002.Hub_#0003 ?

Thank you for your help !

OPP

unread,
Apr 23, 2022, 5:26:31 PM4/23/22
to MPF Users
Hit the windows button and search for Device Manager.  Expand Ports (COM & LPT) and see what is listed there without the board plugged in.  Plug in the first USB port and see what new port shows up.  (It will be something like COM6 but really depends on your machine.)  Plug in the second USB and see what new port shows up.  I'm guessing Cobra put something on the silkscreen indicating which is the first USB and which is the second USB port.  Put those COM numbers into the yaml.  Hopefully that helps
-H

leeoneil

unread,
Apr 23, 2022, 6:09:14 PM4/23/22
to MPF Users
Oh you mean i can put something simple like :
Ports : /COM4, COM5

Just like that ?
Thank you, i'll try !

OPP

unread,
Apr 24, 2022, 9:51:53 AM4/24/22
to MPF Users
If it is a low number, I think it is:
ports: com3, com4

If it is a high number, sometimes you have to do something like this:
ports:  \\.\COM10, \\.\COM11

Most of my projects use linux, so it has been a while since I've used a COM port.
-H

leeoneil

unread,
Apr 24, 2022, 1:04:19 PM4/24/22
to MPF Users
Thank's !!!!

cobra18t

unread,
Apr 25, 2022, 1:29:31 AM4/25/22
to MPF Users
And just to tie this conversation back to the documentation, here is the relevant section:
https://docs.missionpinball.org/en/dev/hardware/opp/config.html?highlight=serial%20port#adding-the-port-to-your-config-file
Reply all
Reply to author
Forward
0 new messages