-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Support discovery of USB dongles #178
Comments
I would like to provide a first PR for this issue, enabling the discovery of the USB dongles that are available to me:
|
Thanks Henning - I was hoping you were planning to add this :)
|
dongle) Adds discovery participants for the USB-serial discovery of Eclipse SmartHome, able to discover three Telegesis dongles (from the Qivicon brand) and one Ember dongle (from Bitron Video brand). Bug: openhab#178 Signed-off-by: Henning Sudbrock <[email protected]>
dongle) Adds discovery participants for the USB-serial discovery of Eclipse SmartHome, able to discover three Telegesis dongles (from the Qivicon brand) and one Ember dongle (from Bitron Video brand). Bug: openhab#178 Signed-off-by: Henning Sudbrock <[email protected]>
dongle) Adds discovery participants for the USB-serial discovery of Eclipse SmartHome, able to discover three Telegesis dongles (from the Qivicon brand) and one Ember dongle (from Bitron Video brand). Bug: openhab#178 Signed-off-by: Henning Sudbrock <[email protected]>
dongle) Adds discovery participants for the USB-serial discovery of Eclipse SmartHome, able to discover three Telegesis dongles (from the Qivicon brand) and one Ember dongle (from Bitron Video brand). Bug: openhab#178 Signed-off-by: Henning Sudbrock <[email protected]>
dongle) Adds discovery participants for the USB-serial discovery of Eclipse SmartHome, able to discover three Telegesis dongles (from the Qivicon brand) and one Ember dongle (from Bitron Video brand). Bug: openhab#178 Signed-off-by: Henning Sudbrock <[email protected]>
dongle) Adds discovery participants for the USB-serial discovery of Eclipse SmartHome, able to discover three Telegesis dongles (from the Qivicon brand) and one Ember dongle (from Bitron Video brand). Bug: openhab#178 Signed-off-by: Henning Sudbrock <[email protected]>
dongle) Adds discovery participants for the USB-serial discovery of Eclipse SmartHome, able to discover three Telegesis dongles (from the Qivicon brand) and one Ember dongle (from Bitron Video brand). Bug: openhab#178 Signed-off-by: Henning Sudbrock <[email protected]>
…ber dongle) (#179) * [178] Support Discovery of USB dongles (for some Telegesis and one Ember dongle) Adds discovery participants for the USB-serial discovery of Eclipse SmartHome, able to discover three Telegesis dongles (from the Qivicon brand) and one Ember dongle (from Bitron Video brand). Bug: #178 Signed-off-by: Henning Sudbrock <[email protected]> * Address review comments by @cdjackson and @tomhoefer. * Rename constant for USB product ID for one Qivicon/Telgesis USB dongle. * Add flow control configuration for Ember discovery result (to XONOFF) * Use constant for specifying flow control in ember USB discovery participant Signed-off-by: Henning Sudbrock <[email protected]>
Hi @hsudbrock, I have seen that the discovery of the USB devices, and naming the different dongles via udev, do not seem to interface very well (at least for me). The discovery participant is returning the /dev/ttyUSBx (for instance) and using the discovered device name as representationProperty. But this name might change between reboots, so normally, when using different dongles, we symlink to it (i.e. /dev/telegesis-1 -> /dev/ttyUSB0) via udev rules. With the USB discovery, if for some reason the devname changes between reboots, the dongle becomes unusable. On the other side, if after discovering it I manually change the serial port of the device to the persistent name symlink, it will keep on appearing as new device in the inbox (yes, I can hide it, but it is annoying and maybe misleading for current users). Changing the representationProperty to the serial number (or maybe vip_pid_serial) might prevent it from appearing again in the inbox (not sure), but would still require to manually change the serial port to the symlink. Would it make sense to change (this is ESH, not OH):
To some thing like (this is pseudocode, just to check if this would make sense to you):
I know it is not the most efficient, as it traverses the the full dev directory looking for symlinks to the discovered path, but allows to honour the different dongle naming persistence. Pedro |
@puzzle-star maybe it's better to create a new issue since this is closed a long time now, and it will get lost. |
Done :) |
Thanks.
… On 24 Nov 2018, at 11:49, Pedro ***@***.***> wrote:
Done :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#178 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AA_kQ93889iG3ekD3DaOLl2UFmylblMKks5uyTJWgaJpZM4TN6v4>.
|
Context
With eclipse-archived/smarthome#5315, Eclipse SmartHome supports the discovery of USB dongles which provide a serial port. To participate in this discovery, bindings can provide an instance of
org.eclipse.smarthome.config.discovery.usbserial.UsbSerialDiscoveryParticipant
. ThisUsbSerialDiscoveryParticipant
will be called for newly discovered USB dongles with serial port, getting information about the USB dongle, the serial port, and the USB interface attached to the serial port. TheUsbSerialDiscoveryParticipant
can then provideDiscoveryResult
s for supported USB dongles.Issue
The ZigBee binding should participate in this discovery, and provide
DiscoveryResult
s for ZigBee USB dongles.The text was updated successfully, but these errors were encountered: