Reply
Posts: 4
Registered: ‎09-18-2017
Accepted Solution

CP210X USB to UART Bridge VCP Driver Not Loading (Mac OS X 10.12.6 Sierra)

I am trying to load the CP210X driver onto my Mac (OS X 10.12.6 Sierra) to work with my

ESP8266 and the driver does not seem to be loading.

 

I've used Coolterm and the only Port listed is a bluetooth port, no USB to UART. I've re-scanned Serial Ports and it does nothing.

 

 

Solutions I have tried:

 

1) Used 7 different microUSB cords to no avail.

 

2) Uninstalled the current version of the driver (5.0.1) and then installed the version in Legacy MacVCP Driver (4.11.2). I installed a second time as was suggested in one thread.

 

3) Tried signing the kext manually (but I think this fix only pertained to an older version of the driver)

 

 

Diagnostic Information:

 

1) /Library/Extensions

 

$ ls /Library/Extensions/ | grep SiLabs
SiLabsUSBDriver.kext

2) kextstat

 

$ kextstat | grep silabs
156 0 0xffffff7f83317000 0x9000 0x9000 com.silabs.driver.CP210xVCPDriver (5.0.1) 70693BED-378F-3880-8045-B2BD04C7938A <103 19 4 3>

but after a few minutes...

 

$ kextstat | grep silabs
* no output *

 

3) kextutil

 

$ kextutil -tn /Library/Extensions/SiLabsUSBDriver.kext
/Library/Extensions/SiLabsUSBDriver.kext appears to be loadable (including linkage for on-disk libraries).

 

4) /dev

 

$ ls /dev | grep SILAB
* no output

 

 

5) ioreg

 

 

$ ioreg -p IOUSB
+-o Root <class IORegistryEntry, id 0x100000100, retain 15>
+-o Root Hub Simulation Simulation@14000000 <class AppleUSBRootHubDevice, id$
+-o Bluetooth USB Host Controller@14300000 <class AppleUSBDevice, id 0x100$ +-o USB2.0-Serial@14200000 <class AppleUSBDevice, id 0x100000607, register$

 

 

6) Mac System Report shows my USB device:

 

 

USB2.0-Serial:

  Product ID:	0x7523
  Vendor ID:	0x1a86
  Version:	2.62
  Speed:	Up to 12 Mb/sec
  Location ID:	0x14200000 / 5
  Current Available (mA):	500
  Extra Operating Current (mA):	0

 

7) Serial Ports

 

$ ls -lah /dev/cu*
crw-rw-rw-  1 root  wheel   20,   1 Sep 18 11:11 /dev/cu.Bluetooth-Incoming-Port
$ ls -lah /dev/tty.*
crw-rw-rw-  1 root  wheel   20,   0 Sep 18 11:11 /dev/tty.Bluetooth-Incoming-Port

 

8) The device is powered on and can be reset or connected to via wifi

 

 

Any help is much appreciated!!! Thank you!

Posts: 4
Registered: ‎09-18-2017

Re: CP210X USB to UART Bridge VCP Driver Not Loading (Mac OS X 10.12.6 Sierra)

couple diagnostics I forgot to include:

 

9) ioreg diff

 

$ ioreg -w 0 > ~/no-device.txt
$ ioreg -w 0 > ~/with-device.txt
$ diff ~/with-device.txt ~/no-device.txt > ~/diff-device.txt
* no output *

10) ioreg detail

 

$ ioreg -p IOUSB -l
...
+-o USB2.0-Serial@14200000  <class AppleUSBDevice, id 0x100000810, register$
        {
          "sessionID" = 4202402270758
          "iManufacturer" = 0
          "bNumConfigurations" = 1
          "idProduct" = 29987
          "bcdDevice" = 610
          "Bus Power Available" = 250
          "USB Address" = 6
          "bMaxPacketSize0" = 8
          "iProduct" = 2
          "iSerialNumber" = 0
          "bDeviceClass" = 255
          "Built-In" = No
          "locationID" = 337641472
          "bDeviceSubClass" = 0
          "bcdUSB" = 272
          "USB Product Name" = "USB2.0-Serial"
          "PortNum" = 2
          "non-removable" = "no"
          "IOCFPlugInTypes" = {"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBFam$
          "bDeviceProtocol" = 0
          "IOUserClientClass" = "IOUSBDeviceUserClientV2"
          "IOPowerManagement" = {"DevicePowerState"=0,"CurrentPowerState"=3,"Ca$
          "Device Speed" = 1
          "idVendor" = 6790
          "IOGeneralInterest" = "IOCommand is not serializable"
          "IOClassNameOverride" = "IOUSBDevice"
        }
Posts: 233
Registered: ‎08-19-2015

Re: CP210X USB to UART Bridge VCP Driver Not Loading (Mac OS X 10.12.6 Sierra)

Hi @mckeon,

 

The following link contains additional information intended to assist in troubleshooting problems with the CP210x VCP driver on Mac OS:

 

http://community.silabs.com/t5/Interface-Knowledge-Base/Troubleshooting-the-CP210x-USB-to-UART-Bridg...

 

Do any of the suggestions there help or reveal any additional useful information?  I will inquire among our driver experts in the meantime to see if we can offer any additional assistance.

 

Regards,

Mitch

Posts: 4
Registered: ‎09-18-2017

Re: CP210X USB to UART Bridge VCP Driver Not Loading (Mac OS X 10.12.6 Sierra)

Thanks for sending the troubleshooting link. Two of the diagnostics there I had already run and included in my first post.

 

It looks like the logging has changed in Sierra, but here is the command I ran with the output I believe is related to this issue:

 

$ log show --last 1m
...
2017-09-19 16:26:47.986758-0700 0x7da22 Default 0x0 370 icdd: (ICALogging) [com.apple.imagecapture.icdd] #ICDebug - 51:{ICWiredBrowser.m} (USB terminate) 2017-09-19 16:26:47.986793-0700 0x7da22 Default 0x0 370 icdd: (ICALogging) [com.apple.imagecapture.icdd] #ICDebug - 344:{ICWiredBrowser.m} (--> USB Terminate) 2017-09-19 16:26:47.987040-0700 0x7da22 Default 0x0 370 icdd: (ICALogging) [com.apple.imagecapture.icdd] #ICDebug - 363:{ICWiredBrowser.m} (Reclaiming Resource: USB2.0-Serial) 2017-09-19 16:26:47.987081-0700 0x7da22 Default 0x0 370 icdd: (ICALogging) [com.apple.imagecapture.icdd] #ICDebug - 371:{ICWiredBrowser.m} (0 USB Descriptions Managed) 2017-09-19 16:26:47.987103-0700 0x7da22 Default 0x0 370 icdd: (ICALogging) [com.apple.imagecapture.icdd] #ICDebug - 373:{ICWiredBrowser.m} (<-- USB Terminate) 2017-09-19 16:26:47.987193-0700 0x8af8c Default 0x0 370 icdd: (ICALogging) [com.apple.imagecapture.icdd] #ICDebug - 504:{ICDDMessageCenter.m} (-Rem USB2.0-Serial - 0x0/0x0/0x0 - 0x14200000 - ICDeviceDescriptionUndefined)
...

Hope that's helpful and thank you for looking into my issue.

Posts: 19
Registered: ‎01-17-2017

Re: CP210X USB to UART Bridge VCP Driver Not Loading (Mac OS X 10.12.6 Sierra)

Hi. I wanted to look into this issue. It looks like you are able to load the Silabs KEXT without an issue. And yes, you can expect the OS to unload it when it is not being used. The operating system will load it when it finds a device that matches the driver.

 

And you aren't seeing a device getting mounted in /dev.

 

The first thing I went to look at was the VID/PID of the device you are using. From your post the PID your device is using is 0x7523 or 29987 in decimal form. The vendor ID is 0x1a86 or 6790. I don't see these values showing up for any of the supported personalities for our driver. When I looked up that vendor and product ID combo I see "QinHeng Electronics" and it appears to be the HL-340 USB-Serial adapter.

 

 

Are you sure that this product uses a Silabs CP210x chip? If so, do you know which specific chip it uses? Have you contacted QinHeng Electronics about this issue?

Posts: 4
Registered: ‎09-18-2017

Re: CP210X USB to UART Bridge VCP Driver Not Loading (Mac OS X 10.12.6 Sierra)

I feel like an idiot. Thank you! I found that other driver and uploaded and it's working fine. If anyone else needs to download the HL-340 USB-Serial adapter, I had difficulty navigating the manufacturer's website, so I downloaded it (for Mac) from this page: https://blog.sengotta.net/signed-mac-os-driver-for-winchiphead-ch340-serial-bridge/