Re: USB serial adapter, cu write: Device not configured

2012-03-20 Thread Fabio Dive
Dear Warren
thank you for your help, following your mail I found
an additional strange behavior of my system,
when I use cu, two processes are spawned at the same time:
(ps aux output)

seaman 80719   0.0  0.0  10048   1372   4  S+3:35PM0:00.00
cu -t -eo -l /dev/cuaU0 -s 19200
seaman 80720   0.0  0.0  10048   1360   4  S+3:35PM0:00.00
cu -t -eo -l /dev/cuaU0 -s 19200

on the console shell where cu lives I see:
seaman@bluehouse:~$ cu -t -eo -l /dev/cuaU0 -s 19200
can't open log file /var/log/aculog.
Connected
[Now I Hit ENTER]
write: Device not configured

Now the communication hold and I can't do nothing anymore, hitting
Enter or rebooting the remote device to see the bootstrap output
doesn't work. I need to get out with ENTER~.
And I get [EOT]

about my environment:

* cat /etc/devfs.rules
[localrules=10]
add path 'ugen*' mode 0660 group operator
add path 'usb/*' mode 0660 group operator

* cat /etc/rc.conf
hostname=bluehouse
ifconfig_em0=DHCP
powerd_enable=YES
# Set dumpdev to AUTO to enable crash dumps, NO to disable
dumpdev=NO
wlans_wpi0=wlan0
ifconfig_wlan0=WPA DHCP
background_dhclient=YES
moused_enable=NO
moused_nondefault_enable=NO
hald_enable=NO
linux_enable=YES
dbus_enable=YES
zfs_enable=YES
ntpd_enable=YES
#bitlbee_enable=YES
gateway_enable=YES
pf_enable=YES
pf_rules=/etc/pf.conf
pf_program=/sbin/pfctl
pflog_enable=NO
pflog_logfile=/var/log/pflog
pflog_program=/sbin/pflogd
fusefs_enable=NO
devd_enable=YES
devfs_system_ruleset=localrules

* cat /boot/loader.conf
if_wpi_load=YES
nvidia_load=YES
wlan_wep_load=YES
wlan_ccmp_load=YES
wlan_tkip_load=YES


Thank you for your help
f.




On Tue, Mar 20, 2012 at 15:23, Warren Block wbl...@wonkity.com wrote:
 On Sun, 18 Mar 2012, Warren Block wrote:

 On Sun, 18 Mar 2012, Fabio Dive wrote:

 Hello people!

 I write you because I have got a problem with the uplcom driver
 on FreeBSD 9.0, I tried a lot of different things, read all I found,
 manpages, forums, irc, google but still not able to solve my problem.

 I need to connect to my remote Alix board,
 the remote console setup is 19200 8N1.
 I am using a short USB Prolific Tec.. serial cable adapter with a
 NULL modem cable, the last one plugged one side to the Alix board,
 the other side to the adapter cable.

 Under Linux Debian everything is fine, so the hardware and cables
 should be ok, under Linux I used minicom and cu and tip without problems.
 With FreeBSD and NetBSD, big problems..the result is always
 the same, I can receive but I cannot transmit.

 (working as root)
 *cu -t -s 19200 -l /dev/cuaU0
 write: Device not configured
 (I can't transmit but I can receive the output if I reboot the remote
 alix board)


 Add the user to the dialer group.  If that doesn't do it, make sure the
 user has write permission to the USB device and /dev/cuaU0.


 Managed to locate my PL2303 cable, and it works on 9-stable amd64 built
 yesterday:

  % cu -l /dev/cuaU0 -s 19200
  can't open log file /var/log/aculog.
  Connected
  AT
  OK
  ~
  [EOT]

 I typed the AT.  If the USB cable is disconnected and reconnected while cu
 still has it open, typing a character produces

  write: Device not configured

 because the device disappeared when the USB cable was unplugged.  The send
 and receive LEDs on this modem also both go on, meaning some data is being
 continuously sent and echoed.

 /etc/devfs.rules (just the USB ones)

  [localrules=10]
  add path 'ugen*' mode 0660 group operator
  add path 'usb/*' mode 0660 group operator

 The user is a member of both dialer and operator groups.

 If it still does not work for you, check loader.conf and rc.conf for
 nonstandard settings.
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: USB serial adapter, cu write: Device not configured

2012-03-20 Thread Fabio Dive
I forget to remember that I am receiving the output of the remote device
if I bootstrap it, I even receive the login prompt, but I am not able
to transmit,
hitting a key produce:

write: Device not configured

thank you
f.



On Tue, Mar 20, 2012 at 15:23, Warren Block wbl...@wonkity.com wrote:
 On Sun, 18 Mar 2012, Warren Block wrote:

 On Sun, 18 Mar 2012, Fabio Dive wrote:

 Hello people!

 I write you because I have got a problem with the uplcom driver
 on FreeBSD 9.0, I tried a lot of different things, read all I found,
 manpages, forums, irc, google but still not able to solve my problem.

 I need to connect to my remote Alix board,
 the remote console setup is 19200 8N1.
 I am using a short USB Prolific Tec.. serial cable adapter with a
 NULL modem cable, the last one plugged one side to the Alix board,
 the other side to the adapter cable.

 Under Linux Debian everything is fine, so the hardware and cables
 should be ok, under Linux I used minicom and cu and tip without problems.
 With FreeBSD and NetBSD, big problems..the result is always
 the same, I can receive but I cannot transmit.

 (working as root)
 *cu -t -s 19200 -l /dev/cuaU0
 write: Device not configured
 (I can't transmit but I can receive the output if I reboot the remote
 alix board)


 Add the user to the dialer group.  If that doesn't do it, make sure the
 user has write permission to the USB device and /dev/cuaU0.


 Managed to locate my PL2303 cable, and it works on 9-stable amd64 built
 yesterday:

  % cu -l /dev/cuaU0 -s 19200
  can't open log file /var/log/aculog.
  Connected
  AT
  OK
  ~
  [EOT]

 I typed the AT.  If the USB cable is disconnected and reconnected while cu
 still has it open, typing a character produces

  write: Device not configured

 because the device disappeared when the USB cable was unplugged.  The send
 and receive LEDs on this modem also both go on, meaning some data is being
 continuously sent and echoed.

 /etc/devfs.rules (just the USB ones)

  [localrules=10]
  add path 'ugen*' mode 0660 group operator
  add path 'usb/*' mode 0660 group operator

 The user is a member of both dialer and operator groups.

 If it still does not work for you, check loader.conf and rc.conf for
 nonstandard settings.
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: USB serial adapter, cu write: Device not configured

2012-03-20 Thread Fabio Dive
the groups of the user seaman are:

seaman@bluehouse:~$ groups
seaman wheel kmem operator dialer vboxusers usb

thank you
f.

On Tue, Mar 20, 2012 at 15:49, Fabio Dive fabiod...@gmail.com wrote:
 I forget to remember that I am receiving the output of the remote device
 if I bootstrap it, I even receive the login prompt, but I am not able
 to transmit,
 hitting a key produce:

 write: Device not configured

 thank you
 f.



 On Tue, Mar 20, 2012 at 15:23, Warren Block wbl...@wonkity.com wrote:
 On Sun, 18 Mar 2012, Warren Block wrote:

 On Sun, 18 Mar 2012, Fabio Dive wrote:

 Hello people!

 I write you because I have got a problem with the uplcom driver
 on FreeBSD 9.0, I tried a lot of different things, read all I found,
 manpages, forums, irc, google but still not able to solve my problem.

 I need to connect to my remote Alix board,
 the remote console setup is 19200 8N1.
 I am using a short USB Prolific Tec.. serial cable adapter with a
 NULL modem cable, the last one plugged one side to the Alix board,
 the other side to the adapter cable.

 Under Linux Debian everything is fine, so the hardware and cables
 should be ok, under Linux I used minicom and cu and tip without problems.
 With FreeBSD and NetBSD, big problems..the result is always
 the same, I can receive but I cannot transmit.

 (working as root)
 *cu -t -s 19200 -l /dev/cuaU0
 write: Device not configured
 (I can't transmit but I can receive the output if I reboot the remote
 alix board)


 Add the user to the dialer group.  If that doesn't do it, make sure the
 user has write permission to the USB device and /dev/cuaU0.


 Managed to locate my PL2303 cable, and it works on 9-stable amd64 built
 yesterday:

  % cu -l /dev/cuaU0 -s 19200
  can't open log file /var/log/aculog.
  Connected
  AT
  OK
  ~
  [EOT]

 I typed the AT.  If the USB cable is disconnected and reconnected while cu
 still has it open, typing a character produces

  write: Device not configured

 because the device disappeared when the USB cable was unplugged.  The send
 and receive LEDs on this modem also both go on, meaning some data is being
 continuously sent and echoed.

 /etc/devfs.rules (just the USB ones)

  [localrules=10]
  add path 'ugen*' mode 0660 group operator
  add path 'usb/*' mode 0660 group operator

 The user is a member of both dialer and operator groups.

 If it still does not work for you, check loader.conf and rc.conf for
 nonstandard settings.
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


USB serial adapter, cu write: Device not configured

2012-03-18 Thread Fabio Dive
Hello people!

I write you because I have got a problem with the uplcom driver
on FreeBSD 9.0, I tried a lot of different things, read all I found,
manpages, forums, irc, google but still not able to solve my problem.

I need to connect to my remote Alix board,
the remote console setup is 19200 8N1.
I am using a short USB Prolific Tec.. serial cable adapter with a
NULL modem cable, the last one plugged one side to the Alix board,
the other side to the adapter cable.

Under Linux Debian everything is fine, so the hardware and cables
should be ok, under Linux I used minicom and cu and tip without problems.
With FreeBSD and NetBSD, big problems..the result is always
the same, I can receive but I cannot transmit.

(working as root)
*cu -t -s 19200 -l /dev/cuaU0
write: Device not configured
(I can't transmit but I can receive the output if I reboot the remote
alix board)
*minicom
test1  Cannot open /dev/ttyU0!
test2  Cannot open /dev/cuaU0!
(in a popup box)

#

A bit of my enviroment and some command output (commands by root):
I am using FreeBSD 9.0 with kernel and world compiled today with the last source
updated with csup. The laptop is a Lenovo IBM Thinkpad T61. 4Gbyte of RAM,
HD 40% used. Shell bash, X graphical enviroment with Fluxbox, the problem
exist even within the shell without load Xorg.


* usbconfig -d ugen1.2 show_ifdrv
ugen1.2: USB 2.0 To COM Device Prolific Technology Inc. at usbus1,
cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
ugen1.2.0: uplcom0: Prolific Technology Inc. USB 2.0 To COM Device,
class 0/0, rev 1.10/3.00, addr 2


* usbconfig -d ugen1.2 dump_device_desc
ugen1.2: USB 2.0 To COM Device Prolific Technology Inc. at usbus1,
cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

 bLength = 0x0012
 bDescriptorType = 0x0001
 bcdUSB = 0x0110
 bDeviceClass = 0x
 bDeviceSubClass = 0x
 bDeviceProtocol = 0x
 bMaxPacketSize0 = 0x0040
 idVendor = 0x067b
 idProduct = 0x2303
 bcdDevice = 0x0300
 iManufacturer = 0x0001  Prolific Technology Inc.
 iProduct = 0x0002  USB 2.0 To COM Device
 iSerialNumber = 0x  no string
 bNumConfigurations = 0x0001


* dmesg when I connect the cable:
ugen1.2: Prolific Technology Inc. at usbus1
uplcom0: Prolific Technology Inc. USB 2.0 To COM Device, class 0/0,
rev 1.10/3.00, addr 2 on usbus1

* KLDSTAT
Id Refs AddressSize Name
 1   36 0x8020 d58c20   kernel
 31 0x80f6c000 104ab40  nvidia.ko
 44 0x81fb7000 45218linux.ko
 51 0x82212000 13300f   zfs.ko
 61 0x82346000 2fb5 opensolaris.ko
 71 0x82349000 3d5d linprocfs.ko
 81 0x8234d000 24c19wpifw.ko
101 0x82374000 2a4c1pf.ko
111 0x8239f000 762  rtc.ko
121 0x82372000 1fd5 uplcom.ko

* stty -a -f /dev/cuaU0
speed 9600 baud; 0 rows; 0 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
   -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo
   -extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
   brkint -inpck -ignpar -parmrk
oflags: opost onlcr -ocrnl tab0 -onocr -onlret
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
   -dtrflow -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = undef;
   eol2 = undef; erase = ^?; erase2 = ^H; intr = ^C; kill = ^U;
   lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q;
   status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W;

I tried to change the above parameters with stty by
hand using cuaU0, cuaU0.init and cuaU0.lock before using cu, tip
and minicom. I tried different combinations to the parameters of
the connections but still the problem persist.

My problem is exactly the same to that reported here:
http://lists.freebsd.org/pipermail/freebsd-usb/2011-July/010443.html

If I try to do:
sysctl hw.usb.ucom.debug=15

I see in dmesg after cu -t -s 19200 -l /dev/cuaU0:

ucom_attach_tty: ttycreate: U0
ucom_attach: tp = 0xfe0005e08800, unit = 0, subunits = 1
ucom_open: tp = 0xfe0005e08800
ucom_dtr: onoff = 1
ucom_line_state: on=0x01, off=0x00
ucom_rts: onoff = 1
ucom_line_state: on=0x02, off=0x00
ucom_ring: onoff = 0
ucom_line_state: on=0x00, off=0x08
ucom_break: onoff = 0
ucom_line_state: on=0x00, off=0x04
ucom_status_change:
ucom_param: sc = 0xfe0005106880
ucom_dtr: onoff = 1
ucom_line_state: on=0x01, off=0x00
ucom_rts: onoff = 1
ucom_line_state: on=0x02, off=0x00
ucom_cfg_open:
ucom_ioctl: cmd = 0x402c7413
ucom_ioctl: cmd = 0x802c7416
ucom_ioctl: cmd = 0x2000740d
ucom_ioctl: cmd = 0x402c7413
ucom_ioctl: cmd = 0x802c7416
ucom_param: sc = 0xfe0005106880
ucom_ioctl: cmd = 0x8004667e
ucom_ioctl: cmd = 0x8004667d
ucom_status_change:
ucom_status_change:
ucom_get_data: cnt=0
ucom_outwakeup: sc = 0xfe0005106880
ucom_get_data: cnt=1
ucom_outwakeup: sc = 0xfe0005106880
ucom_outwakeup: sc = 0xfe0005106880
uplcom0: at uhub1, port 1, addr 2 (disconnected)
ucom_detach_tty: sc = 

Re: USB serial adapter, cu write: Device not configured

2012-03-18 Thread Fabio Dive
dear Warren,

I did everything you write me but even using devfs.rules or by hand
modify the ownership or write permission, or using the root user,
it doesn't work. These are the rules activated by rc.conf with:

devfs_system_ruleset=usb_devices


cat /etc/devfs.rules

[usb_devices=10]
add path 'ugen*' mode 0777 user seaman group dialer
add path 'ttyU*' mode 0777 user seaman group dialer
add path 'usb/*' mode 0777 user seaman group dialer
add path 'ums*' mode 0777 user seaman group usb
add path 'cuaU*' mode 0777 user seaman group dialer
add path 'da*s*' mode 0660 group usb

I put 7 just to be sure to try everything.. normally I just
need rw permissions.

Thank you
FabioDive

On Sun, Mar 18, 2012 at 18:32, Fabio Dive fabiod...@gmail.com wrote:
 Hello people!

 I write you because I have got a problem with the uplcom driver
 on FreeBSD 9.0, I tried a lot of different things, read all I found,
 manpages, forums, irc, google but still not able to solve my problem.

 I need to connect to my remote Alix board,
 the remote console setup is 19200 8N1.
 I am using a short USB Prolific Tec.. serial cable adapter with a
 NULL modem cable, the last one plugged one side to the Alix board,
 the other side to the adapter cable.

 Under Linux Debian everything is fine, so the hardware and cables
 should be ok, under Linux I used minicom and cu and tip without problems.
 With FreeBSD and NetBSD, big problems..the result is always
 the same, I can receive but I cannot transmit.

 (working as root)
 *cu -t -s 19200 -l /dev/cuaU0
 write: Device not configured
 (I can't transmit but I can receive the output if I reboot the remote
 alix board)
 *minicom
 test1  Cannot open /dev/ttyU0!
 test2  Cannot open /dev/cuaU0!
 (in a popup box)

 #

 A bit of my enviroment and some command output (commands by root):
 I am using FreeBSD 9.0 with kernel and world compiled today with the last 
 source
 updated with csup. The laptop is a Lenovo IBM Thinkpad T61. 4Gbyte of RAM,
 HD 40% used. Shell bash, X graphical enviroment with Fluxbox, the problem
 exist even within the shell without load Xorg.


 * usbconfig -d ugen1.2 show_ifdrv
 ugen1.2: USB 2.0 To COM Device Prolific Technology Inc. at usbus1,
 cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
 ugen1.2.0: uplcom0: Prolific Technology Inc. USB 2.0 To COM Device,
 class 0/0, rev 1.10/3.00, addr 2


 * usbconfig -d ugen1.2 dump_device_desc
 ugen1.2: USB 2.0 To COM Device Prolific Technology Inc. at usbus1,
 cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0110
  bDeviceClass = 0x
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 0x067b
  idProduct = 0x2303
  bcdDevice = 0x0300
  iManufacturer = 0x0001  Prolific Technology Inc.
  iProduct = 0x0002  USB 2.0 To COM Device
  iSerialNumber = 0x  no string
  bNumConfigurations = 0x0001


 * dmesg when I connect the cable:
 ugen1.2: Prolific Technology Inc. at usbus1
 uplcom0: Prolific Technology Inc. USB 2.0 To COM Device, class 0/0,
 rev 1.10/3.00, addr 2 on usbus1

 * KLDSTAT
 Id Refs Address            Size     Name
  1   36 0x8020 d58c20   kernel
  3    1 0x80f6c000 104ab40  nvidia.ko
  4    4 0x81fb7000 45218    linux.ko
  5    1 0x82212000 13300f   zfs.ko
  6    1 0x82346000 2fb5     opensolaris.ko
  7    1 0x82349000 3d5d     linprocfs.ko
  8    1 0x8234d000 24c19    wpifw.ko
 10    1 0x82374000 2a4c1    pf.ko
 11    1 0x8239f000 762      rtc.ko
 12    1 0x82372000 1fd5     uplcom.ko

 * stty -a -f /dev/cuaU0
 speed 9600 baud; 0 rows; 0 columns;
 lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
       -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo
       -extproc
 iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
       brkint -inpck -ignpar -parmrk
 oflags: opost onlcr -ocrnl tab0 -onocr -onlret
 cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
       -dtrflow -mdmbuf
 cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = undef;
       eol2 = undef; erase = ^?; erase2 = ^H; intr = ^C; kill = ^U;
       lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q;
       status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W;

 I tried to change the above parameters with stty by
 hand using cuaU0, cuaU0.init and cuaU0.lock before using cu, tip
 and minicom. I tried different combinations to the parameters of
 the connections but still the problem persist.

 My problem is exactly the same to that reported here:
 http://lists.freebsd.org/pipermail/freebsd-usb/2011-July/010443.html

 If I try to do:
 sysctl hw.usb.ucom.debug=15

 I see in dmesg after cu -t -s 19200 -l /dev/cuaU0:

 ucom_attach_tty: ttycreate: U0
 ucom_attach: tp = 0xfe0005e08800, unit = 0, subunits = 1
 ucom_open: tp = 0xfe0005e08800
 ucom_dtr: onoff = 1
 ucom_line_state: on=0x01, off=0x00
 ucom_rts: onoff