Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serial port list does not show usb product_id anymore buy product description instead #1278

Closed
erikkallen opened this issue Aug 3, 2017 · 0 comments

Comments

@erikkallen
Copy link
Contributor

  • SerialPort Version: 5.0.0

  • NodeJS Version: 7.10.1

  • Operating System and Hardware Platform: Linux Ubuntu 17.04 64 bit

  • Have you checked the right version of the api docs?: yes

  • Are you having trouble installing and you checked the Installation Special Cases docs? no

  • Are you using Electron and have you checked the Electron Docs?:no

Summary of Problem

The SerialPort.list port object no longer contains the productID of the usb device

Steps and Code to Reproduce the Issue

Plug in an arduino or FTDI or Michrochip serial device
Run the following code:

SerialPort.list(function (err, ports) {
        log.debug(ports);
});

Output before commit 4fc1404
{ manufacturer: 'Microchip Technology Inc.',
serialNumber: undefined,
pnpId: 'usb-Microchip_Technology_Inc._Simple_CDC_Device_Demo-if00',
locationId: undefined,
vendorId: '04d8',
productId: 'f793',
comName: '/dev/ttyACM0' }

Output after commit

{ manufacturer: 'Microchip Technology Inc.',
serialNumber: undefined,
pnpId: 'usb-Microchip_Technology_Inc._Simple_CDC_Device_Demo-if00',
locationId: undefined,
vendorId: '04d8',
productId: 'Simple CDC Device Demo',
comName: '/dev/ttyACM0' }

erikkallen added a commit to erikkallen/node-serialport that referenced this issue Aug 3, 2017
Fixes serialport#1278 The productID should be a number not a description string
@lock lock bot locked and limited conversation to collaborators Feb 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants