driver – macOS acknowledges USB CDC-ACM serial port as dialup modem

0
21
driver – macOS acknowledges USB CDC-ACM serial port as dialup modem


I’m lately making an attempt to program STM32 microcontrollers beneath macOS, and I used my CMSIS-DAP suitable interface to flash the microcontroller.

Usually an CMSIS-DAP interface would seem as a USB composite system: it accommodates an HID system which is used to entry the debug port on STM32, and one other one as USB CDC ACM serial port (from which you’ll be able to entry a bodily serial port on the interface).

Below macOS, CDC serial ports are speculated to be acknowledged as /dev/tty.usbmodemXXX, nevertheless it would not seem on my Mac in any respect. Later I might discover out it was really acknowledged as a dial up modem (in Community tab of system preferences):

CMSIS-DAP Link interface recognized as modem

In fact I did not like what macOS did so I attempted deleting the system from Community tab and selected “No” when it asks me whether or not I need it to reappear subsequent time I plug it in, hoping it will let me entry the uncooked serial port system when community providers isn’t making an attempt to occupy it, and it didn’t. Serial port gadgets nonetheless does not present up. Later it seems Apple left no strategy to undo that so I can not restore my laptop to the way it behaved at first.

From the ioreg output (after I deleted it from Community and did a bit extra analysis on easy methods to present macOS system hierachy) I can see CDC ACM driver is selecting up the CDC serial port a part of the composite system however apparently IOSerialBSDClient isn’t current, which means serial port is after all not out there.

    | |   | | | +-o USB2.1 Hub@00100000  
    | |   | | |   +-o AppleUSB20Hub@00100000  
    | |   | | |   | +-o AppleUSB20HubPort@00110000  
    | |   | | |   | +-o AppleUSB20HubPort@00120000  
    | |   | | |   | | +-o CMSIS-DAP@00120000  
    | |   | | |   | |   +-o AppleUSBCDCCompositeDevice  
    | |   | | |   | |   +-o IOUSBHostInterface@0  
    | |   | | |   | |   | +-o AppleUserUSBHostHIDDevice  
    | |   | | |   | |   |   +-o IOHIDInterface  
    | |   | | |   | |   +-o IOUSBHostInterface@1  
    | |   | | |   | |   | +-o AppleUSBACMControl  
    | |   | | |   | |   +-o IOUSBHostInterface@2  
    | |   | | |   | |   +-o Android File Tra  
    | |   | | |   | |   +-o Android File Tra  

The issue right here is:

  1. Will I be capable to make macOS cease utilizing a dialup modem driver in my system, and simply let CDC ACM serial ports be TTY serial ports? Or power it use serial port driver for this system?

  2. How do I let the modem driver choose it up once more (i.e. simply undo the delete)? I already tried every part in an earlier submit and it will not work.

(The CMSIS-DAP interface’s flashing skill is completely advantageous. Simply lacking the digital serial port system from macOS. It might work beneath my Home windows laptop and even in Asahi Linux)

LEAVE A REPLY

Please enter your comment!
Please enter your name here