Hi Max2612,
oder ändere dein Device auf /dev/ttyUSB0 dies sollte auch gehen.
Gruß
Marco
oder ändere dein Device auf /dev/ttyUSB0 dies sollte auch gehen.
Gruß
Marco
SUBSYSTEMS=="usb",KERNEL=="ttyUSB*", ATTRS{serial}=="FTZ7F2FP", SYMLINK+="enocean"
SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="USBEnocean" MODE="7777"
admin@smarthome:/usr/smarthome$ sudo /etc/init.d/udev restart [sudo] password for admin: [ ok ] Stopping the hotplug events dispatcher: udevd. [ ok ] Starting the hotplug events dispatcher: udevd.
2016-01-06 10:29:48,673 ERROR Main Plugin enocean exception: Could not configure port: (25, 'Inappropriate ioctl for device') -- plugin.py:__init__:57
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 306, in _reconfigurePort
iflag, oflag, cflag, lflag, ispeed, ospeed, cc = termios.tcgetattr(self.fd)
termios.error: (25, 'Inappropriate ioctl for device')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/smarthome/lib/plugin.py", line 53, in __init__
plugin_thread = Plugin(smarthome, plugin, classname, classpath, args)
File "/usr/smarthome/lib/plugin.py", line 80, in __init__
exec("self.plugin = {0}.{1}(smarthome{2})".format(classpath, classname, args))
File "<string>", line 1, in <module>
File "/usr/smarthome/plugins/enocean/__init__.py", line 104, in __init__
self._tcm = serial.Serial(serialport, 57600, timeout=0.5)
File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 260, in __init__
self.open()
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 280, in open
self._reconfigurePort()
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 308, in _reconfigurePort
raise SerialException("Could not configure port: %s" % msg)
serial.serialutil.SerialException: Could not configure port: (25, 'Inappropriate ioctl for device')
admin@smarthome:/usr/smarthome$ lsusb Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. Bus 001 Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0403 Future Technology Devices International, Ltd
idProduct 0x6001 FT232 USB-Serial (UART) IC
bcdDevice 6.00
iManufacturer 1 EnOcean GmbH
iProduct 2 EnOcean USB 300 DB
iSerial 3 FTZ7F2FP
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 90mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 2 EnOcean USB 300 DB
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Status: 0x0000
(Bus Powered)
SUBSYSTEMS=="usb", \
ATTRS{manufacturer}=="EnOcean GmbH" \
SYMLINK+="enocean-usb"
[enocean]
class_name = EnOcean
class_path = plugins.enocean
serialport = /dev/enocean-usb
2016-01-06 16:07:50,060 DEBUG Main Plugin: enocean -- plugin.py:__init__:43
2016-01-06 16:07:50,196 WARNING Main enocean: No valid enocean stick ID configured. Transmitting is not supported -- __init__.py:__init__:100
2016-01-06 16:07:50,203 ERROR Main Plugin enocean exception: Could not configure port: (25, 'Inappropriate ioctl for device') -- plugin.py:__init__:57
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 306, in _reconfigurePort
iflag, oflag, cflag, lflag, ispeed, ospeed, cc = termios.tcgetattr(self.fd)
termios.error: (25, 'Inappropriate ioctl for device')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/smarthome/lib/plugin.py", line 53, in __init__
plugin_thread = Plugin(smarthome, plugin, classname, classpath, args)
File "/usr/smarthome/lib/plugin.py", line 80, in __init__
exec("self.plugin = {0}.{1}(smarthome{2})".format(classpath, classname, args))
File "<string>", line 1, in <module>
File "/usr/smarthome/plugins/enocean/__init__.py", line 104, in __init__
self._tcm = serial.Serial(serialport, 57600, timeout=0.5)
File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 260, in __init__
self.open()
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 280, in open
self._reconfigurePort()
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 308, in _reconfigurePort
raise SerialException("Could not configure port: %s" % msg)
serial.serialutil.SerialException: Could not configure port: (25, 'Inappropriate ioctl for device')
def send_learn_radiator_valve(self, id_offset=0):
if (id_offset < 0) or (id_offset > 127):
logger.info("enocean: ID offset out of range (0-127). Aborting.")
return
logger.info("enocean: sending learn telegram for radiator valve")
self._send_radio_packet(id_offset, 0xA5, [0x00, 0x00, 0x00, 0x00])
2016-12-31 16:46:59 DEBUG enocean enocean: received header with data_length = 10 / opt_length = 0x07 / type = 1 2016-12-31 16:46:59 DEBUG enocean enocean: accepted package with type = 0x01 / len = 24 / data = [0x55, 0x00, 0x0a, 0x07, 0x01, 0xeb, 0xa5, 0x80, 0x20, 0x45, 0x80, 0x01, 0x93, 0xcd, 0x82, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0x59, 0x00, 0xe9]! 2016-12-31 16:46:59 INFO enocean enocean: radio message: choice = a5 / payload = [0x80, 0x20, 0x45, 0x80] / sender_id = 0193CD82 / status = 0 / repeat = 0 2016-12-31 16:46:59 DEBUG enocean enocean: radio message with additional info: subtelnum = 1 / dest_id = FFFFFFFF / signal = -89d
2016-12-31 17:21:48 DEBUG enocean enocean: received header with data_length = 1 / opt_length = 0x00 / type = 2 2016-12-31 17:21:48 DEBUG enocean enocean: accepted package with type = 0x02 / len = 8 / data = [0x55, 0x00, 0x01, 0x00, 0x02, 0x65, 0x00, 0x00]! 2016-12-31 17:21:48 DEBUG enocean enocean: sending command returned code = OK
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.


Kommentar