USB serial adapter, cu write: Device not configured

Fabio Dive fabiodive at gmail.com
Tue Mar 20 15:45:28 UTC 2012


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:35PM    0:00.00
cu -t -eo -l /dev/cuaU0 -s 19200
seaman     80720   0.0  0.0  10048   1360   4  S+    3:35PM    0:00.00
cu -t -eo -l /dev/cuaU0 -s 19200

on the console shell where cu lives I see:
seaman at 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 <wblock at 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.


More information about the freebsd-usb mailing list