Serial adapters/Linux/ModemManager: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
Some hosts, including XOs with recent OLPC OS builds, include a USB modem detector, ''modemmanager'', which opens any newly plugged adapter, configures it for 57600 baud, and transmits AT commands to elicit a response from a modem. This may interfere with use of a serial adapter. There are several workarounds:
Some hosts include a USB modem detector, ''modemmanager'', which opens any newly plugged adapter, configures it for 57600 baud, and transmits AT commands to elicit a response from a modem. This may interfere with use of a serial adapter. There are several workarounds:
*wait out the delay, and connect the coloured serial cable after starting screen,
*wait out the delay, and connect the coloured serial cable after starting screen,
*remove the ModemManager package, permanently preventing probe of USB modems, type this:
*remove the ModemManager package, permanently preventing probe of USB modems, type this:
Line 5: Line 5:
*add udev rules to exclude the adapter, add this to {{Code|/etc/udev/rules.d/01-local}}:
*add udev rules to exclude the adapter, add this to {{Code|/etc/udev/rules.d/01-local}}:
:<pre>ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ENV{ID_MM_DEVICE_IGNORE}="1"</pre>
:<pre>ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ENV{ID_MM_DEVICE_IGNORE}="1"</pre>

Affected hosts include:
*XOs with recent OLPC OS builds,
*Ubuntu,
*Debian.

Latest revision as of 21:20, 14 January 2014

Some hosts include a USB modem detector, modemmanager, which opens any newly plugged adapter, configures it for 57600 baud, and transmits AT commands to elicit a response from a modem. This may interfere with use of a serial adapter. There are several workarounds:

  • wait out the delay, and connect the coloured serial cable after starting screen,
  • remove the ModemManager package, permanently preventing probe of USB modems, type this:
sudo rpm -e ModemManager && sudo killall modem-manager
  • add udev rules to exclude the adapter, add this to /etc/udev/rules.d/01-local:
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ENV{ID_MM_DEVICE_IGNORE}="1"

Affected hosts include:

  • XOs with recent OLPC OS builds,
  • Ubuntu,
  • Debian.