Author Topic: CDC for just a serial port  (Read 14608 times)

Barry Twycross

  • Frequent Contributor
  • ****
  • Posts: 263
CDC for just a serial port
« on: February 04, 2015, 07:54:15 pm »
We use a CDC interface, we use this just as a serial port and any higher level protocol is just faked. It claims to be an ACM device responding to the AT command set.

This mostly works well on most OSs we're interested in, I inherited the project like this and as it worked, so I never changed it. But we have found one OS which insists on talking AT commands to it, which causes a few issues.

Is there a way to declare a device as just a serial port which will work with the inbox drivers of Mac OS, Windows and Linux? Looking over the CDC docs I can't say its obvious. I tried cutting out the CDC control interface and just leaving the data interface and that didn't work.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: CDC for just a serial port
« Reply #1 on: February 04, 2015, 08:43:10 pm »
I have seen only the ACM/AT-command option.

Tsuneo

  • Frequent Contributor
  • ****
  • Posts: 145
Re: CDC for just a serial port
« Reply #2 on: February 05, 2015, 03:57:41 am »
But we have found one OS which insists on talking AT commands to it, which causes a few issues.

Do you mean this behavior of Mac OSX ?
On MacOSX 10.5 and later, you'll see "A new network interface has been attached" dialog, when a CDC device is plugged in to the Mac. You have to push "Cancel" button on this dialog. Otherwise, OS grabs the device as a network modem. If you don't want to see this dialog any more for your device, follow to this Tech note.

"Suppressing the Network Configuration Dialog"
http://developer.apple.com/library/mac/#qa/qa2009/qa1667.html

Unfortunately, above web page misses the links to the examples of codeless KEXTs
I attached them to this post. - can't attach
Attached to this post in Microchip forum
http://www.microchip.com/forums/FindPost/574306

Tsuneo

Barry Twycross

  • Frequent Contributor
  • ****
  • Posts: 263
Re: CDC for just a serial port
« Reply #3 on: February 05, 2015, 01:20:46 pm »
We're not seeing that issue, and now you mention it, I'm not sure why we don't.

We're having an issue with Ubuntu Linux, at least one Trusty Tahr installation has a 10s delay before the user can attach to the CDC. Looking at the traffic I was seeing it try and fail AT command, but taking 10s about doing it. Other linux installations I've looked at send the AT commands but don't take 10s about doing it, so we've never noticed it as an issue before.

Tsuneo

  • Frequent Contributor
  • ****
  • Posts: 145
Re: CDC for just a serial port
« Reply #4 on: February 15, 2015, 09:52:35 am »
Quote
We're having an issue with Ubuntu Linux
Modem manager on Ubuntu does probing to your CDC-ACM device.
Disable it on Ubuntu, using udev rules for the VID/PID of your device.
http://ubuntuforums.org/showthread.php?t=2056285&p=12581391#post12581391

Tsuneo

Barry Twycross

  • Frequent Contributor
  • ****
  • Posts: 263
Re: CDC for just a serial port
« Reply #5 on: March 02, 2015, 01:35:13 pm »
Thanks Tsuneo, stopping the modem manager solved the users issue.