From: Thorsten W. <tho...@we...> - 2007-03-13 19:51:29
|
Hi everybody, i got a HA-Interface with a build in FTDI-Serial USB chip. I put it into the USB Plug and get this in my messages: Mar 13 20:33:29 misterhouse kernel: ftdi_sio 1-2:1.0: device disconnected Mar 13 20:33:35 misterhouse kernel: usb 1-2: new full speed USB device usin= g address 15 Mar 13 20:33:35 misterhouse kernel: ftdi_sio 1-2:1.0: FTDI FT232BM Compatible converter detected Mar 13 20:33:35 misterhouse kernel: usb 1-2: FTDI FT232BM Compatible converter now attached to ttyUSB0 Mar 13 20:33:37 misterhouse usb.agent[15505]: ftdi_sio: already loaded Next i edit my mh.ini: I added this parms: @ Parameter f=C3=BCr HS485PCI serial1_port=3D/dev/ttyUSB0 serial1_baudrate=3D9600 serial1_datatype=3Draw serial1_handshake=3Ddtr and i wrote this short code-file: $HS485PCI =3D new Serial_Item('FD00000E30980000000006730003011486','ON','HS485PCI','serial1')= ; # Example on how to start and stop a serial port $v_HS485PCI =3D new Voice_Cmd("[start,stop] HS485PCI"); if ($state =3D said $v_HS485PCI) { print_log "HS485PCI $state"; ($state eq 'start') ? start $HS485PCI : stop $HS485PCI; } # Re-start the port, if it is not in use #start $HS485PCI if $New_Minute and is_stopped $HS485PCI and is_available $HS485PCI; if (my $data =3D said $HS485PCI) { =09print_log "HS485-Daten: $data"; =09} Then i restartet MH and got this: - creating serial1 object on port /dev/ttyUSB0 - creating Ibutton object on port /dev/ttyS0 - creating cm11 object on port /dev/ttyS1 everything seemed ok for me but when i try to send data, or connect to the Port i get these message: 13/03/2007 20:39:51 HS485PCI start Starting port HS485PCI on port 13/03/2007 20:39:51 Oops2: can't open device: at mh line 4869 when i try to send i get this: Error, serial port for HS485PCI has not been set: data=3DFD00000E30980000000006730003011486 Any hints? How i have to setup a USB-Serial-port so that it would work?? Thanks in Advance, regards=20 Thorsten. --=20 View this message in context: http://www.nabble.com/Problems-creating-USB-S= erial-Port-tf3398171.html#a9461985 Sent from the Misterhouse - User mailing list archive at Nabble.com. |