Re: Relay controller

2011-05-09 Thread Hans Petter Selasky
On Sunday 08 May 2011 19:56:39 Torfinn Ingolfsen wrote:
  # 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

The modem part of CDC is implemented by umodem.

kldload umodem

--HPS
___
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


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