From owner-freebsd-questions@FreeBSD.ORG Thu Mar 14 21:31:30 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D27142A2 for ; Thu, 14 Mar 2013 21:31:30 +0000 (UTC) (envelope-from amijaresp@gmail.com) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx1.freebsd.org (Postfix) with ESMTP id 8C386D0B for ; Thu, 14 Mar 2013 21:31:30 +0000 (UTC) Received: by mail-ve0-f180.google.com with SMTP id jx10so2125537veb.11 for ; Thu, 14 Mar 2013 14:31:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=9IXYMzk4VIpPgchg23t+lIHltqEaI0ki2yg9NrE/uQY=; b=mNNBwzb0ki9ESBNBH/SzkyNEcDQRu3z9OUGK0ylh9MUbNc/poyIj0hcuWqewQCMMgN 14DrzMrfqJzQDJyk6GuPnBnhjqTEhP/jHno1Gyg5TAVGxB2Tka1PLcvXrYrwpvCXKMIc 2WqYXj7pNKSE7C0Vmcc7zTXaCQe/RvmJMPZv3kKfSGktT575hMzfjd0jEazyF6wZQT2F pRsBEWLlkD/YuRfmYCAm+/IH0y9LUao0P0MZt/bvoIzE4ds4HTorfHNC9voEbrrewLOW WKMEmsmpKWt3mKQ7b9bJBbfxrYgEPoGdyMOqQ/JUOIe3bzbrXWShV0ce0dkbbfT+IfJ+ iuXQ== MIME-Version: 1.0 X-Received: by 10.52.24.114 with SMTP id t18mr3323386vdf.62.1363296684107; Thu, 14 Mar 2013 14:31:24 -0700 (PDT) Received: by 10.58.118.4 with HTTP; Thu, 14 Mar 2013 14:31:23 -0700 (PDT) Date: Thu, 14 Mar 2013 17:01:23 -0430 Message-ID: Subject: Identify USB device with devd From: Alberto Mijares To: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Mar 2013 21:31:30 -0000 Hi list, I have 3 USB GSM modems and I want to trigger some actions when they are plugged to the system. Each modem must trigger a different action, the problem is how to identify each modem because 1) none of the modems have a serial number iSerialNumber = 0x0000 2) two of three modems have same idProduct, so I can't rely on this 3) I don't know how to get the exact USB port where the modem is plugged. I can get the bus with the variable port # Hub port number (USB) // man devd.conf but this is not enough information. Any suggestion? Thanks in advance. Regards, Alberto Mijares