Post Reply 
[50G] connecting to Linux PC
04-15-2015, 07:43 PM (This post was last modified: 04-15-2015 08:01 PM by Thomas Ritschel.)
Post: #5
RE: [50G] connecting to Linux PC
After having a closer look into /var/log/syslog I noticed a few warning/error messages which I was able to trace back to some improper udev rules.

These are the relevant parts from the syslog:
Code:
Apr 10 13:03:54 XXXXXXXX ModemManager[718]: <warn>  (ttyUSB0): port attributes not fully set
Apr 10 13:03:54 XXXXXXXX hp-config_usb_printer: hp-config_usb_printer[3235]: error: This is not a valid device
Obviously the modem manager thinks the 50G is a serial modem. And then it is considered as a USB HP printer.

To get rid of this I did the following changes:

(1) In the file "/lib/udev/rules.d/77-mm-usb-serial-adapters-greylist.rules" I added:
Code:
# HP-49G+/50G device
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0121", ENV{ID_MM_DEVICE_MANUAL_SCAN_ONLY}="1"

(2) In the file "/lib/udev/rules.d/56-hpmud.rules" I changed:
Code:
# ENV{ID_HPLIP}="1" is for Ubuntu udev-acl
ATTR{idVendor}=="03f0", ATTR{idProduct}=="????", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes", ENV{hp_test}="yes", ENV{ID_HPLIP}="1"
into:
Code:
# ENV{ID_HPLIP}="1" is for Ubuntu udev-acl
ATTR{idVendor}=="03f0", ATTR{idProduct}!="0121", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes", ENV{hp_test}="yes", ENV{ID_HPLIP}="1"

These two modifications finally solved the problem and I'm now able to connect to the 50G using Kermit and also with HPTalx. Cool

Edit: I just confirmed that only the ModemManager was causing the problem. The second error (hp-config_usb_printer) isn't harmful. So one could omit the changes to "/lib/udev/rules.d/56-hpmud.rules" in step (2).
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [50G] connecting to Linux PC - BruceH - 04-14-2015, 10:00 PM
RE: [50G] connecting to Linux PC - Thomas Ritschel - 04-15-2015 07:43 PM



User(s) browsing this thread: 2 Guest(s)