Relay controller

2011-05-08 Thread Clayton Milos

Hi there

I'm looking for any help out there. I have a USB relay controller that 
should be seen as a modem. I think there was something similar working 
before under FreeBSD called a PICKit. When I look up the error I'm getting 
it points to this kit. The vendor ID seems to be the same.


The chip on the controller I have is a PIC18F24 J50.

When I plug it in on a FreeBSD8.2 AMD64 release I get the following:
root: Unknown USB device: vendor 0x04d8 product 0x000a bus uhub2
kernel: ugen2.2: Microchip Technology Inc. at usbus2

# usbconfig list
ugen2.2: CDC RS-232 Emulation Demo Microchip Technology Inc. at usbus2, 
cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON



If I plug it into my Linux netbook running Ubuntu it works fine and comes up 
as such:
[ 4607.992101] usb 5-1: new full speed USB device using uhci_hcd and address 
2

[ 4608.198575] usb 5-1: configuration #1 chosen from 1 choice
[ 4608.234905] cdc_acm 5-1:1.0: ttyACM0: USB ACM device
[ 4608.237372] usbcore: registered new interface driver cdc_acm
[ 4608.237385] cdc_acm: v0.26:USB Abstract Control Model driver for USB 
modems and ISDN adapters


I can provide access to the machine with device plugged into it.

Thanks
Clay 


___
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: Relay controller

2011-05-08 Thread Torfinn Ingolfsen
On Sun, 08 May 2011 14:59:24 +0100
Clayton Milos c...@milos.co.za wrote:

 Hi there
 
 I'm looking for any help out there. I have a USB relay controller that 
 should be seen as a modem. I think there was something similar working 
 before under FreeBSD called a PICKit. When I look up the error I'm getting 
 it points to this kit. The vendor ID seems to be the same.
 
 The chip on the controller I have is a PIC18F24 J50.
 
 When I plug it in on a FreeBSD8.2 AMD64 release I get the following:
 root: Unknown USB device: vendor 0x04d8 product 0x000a bus uhub2
 kernel: ugen2.2: Microchip Technology Inc. at usbus2
 
 # usbconfig list
 ugen2.2: CDC RS-232 Emulation Demo Microchip Technology Inc. at usbus2, 
 cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

That could be a CDCE device (communication class - ethernet). See cdce(4) man 
page.
Try to load the if_cdce kernel module, then plug in your device.
If that doen'st work, I'æm out of ideas.
-- 
Torfinn

___
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: Relay controller

2011-05-08 Thread Torfinn Ingolfsen
On Sun, 08 May 2011 20:46:41 +0100
Clayton Milos c...@milos.co.za wrote:

 Thanks Torfinn but that didn't work. It stil ldid not pick the device up.
 In Linux it picks it up as a modem and from what I've read up on the 
 internet you connect to the virtual serial port to control the relays.

You hvae troed the various usb serial modules, have you?
Like uark(4), ubsa(4), ubser(4), uchcom(4), uftdi(4), uplcom(4), uslcom
(4), uvscom(4) and umcs7840(4)?
HTH
-- 
Torfinn

___
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: Relay controller

2011-05-08 Thread Clayton Milos


- Original Message - 
From: Torfinn Ingolfsen torfinn.ingolf...@broadpark.no

To: freebsd-usb@FreeBSD.org
Sent: Sunday, May 08, 2011 6:56 PM
Subject: Re: Relay controller


On Sun, 08 May 2011 14:59:24 +0100
Clayton Milos c...@milos.co.za wrote:


Hi there

I'm looking for any help out there. I have a USB relay controller that
should be seen as a modem. I think there was something similar working
before under FreeBSD called a PICKit. When I look up the error I'm getting
it points to this kit. The vendor ID seems to be the same.

The chip on the controller I have is a PIC18F24 J50.

When I plug it in on a FreeBSD8.2 AMD64 release I get the following:
root: Unknown USB device: vendor 0x04d8 product 0x000a bus uhub2
kernel: ugen2.2: Microchip Technology Inc. at usbus2

# usbconfig list
ugen2.2: CDC RS-232 Emulation Demo Microchip Technology Inc. at usbus2,
cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON


That could be a CDCE device (communication class - ethernet). See cdce(4) 
man page.

Try to load the if_cdce kernel module, then plug in your device.
If that doen'st work, I'æm out of ideas.
--
Torfinn

Thanks Torfinn but that didn't work. It stil ldid not pick the device up.
In Linux it picks it up as a modem and from what I've read up on the 
internet you connect to the virtual serial port to control the relays.


Clay 


___
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


Problem with automount usb sd reader

2011-05-08 Thread dave jones
Hello,

I have a usb-based sdcard reader in my computer:
umass0: Generic USB Storage, class 0/0, rev 2.00/94.51, addr 2 on usbus4
umass0:  SCSI over Bulk-Only; quirks = 0x
umass0:2:0:-1: Attached to scbus2
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not
ready to ready change, medium may have changed)
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0

If I want to mount the sd card, I have to run true  /dev/da0 first
to create /dev/da0s1 device node.
In order to automount, I was trying to add the following lines in
/etc/devd.conf but doesn't work.
attach 10 {
device-name umass0;
action true  /dev/da0; mount /dev/da0s1 /mnt;
};

Any solutions? Thank you.

BR.
Dave.
___
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