Re: [Linux-usb-users] Detecting unplugged device

2004-11-18 Thread Edward
Hello Tim, In that case you could use the -q option as well and check for 0 return status, e.g. x = system("grep -cq \'^S:.*DeviceName\' /proc/bus/usb/devices"); if (x==0) ...; #found Opening the file for reading and scanning the contents is also an option, just a little more work on your pa

[Linux-usb-users] linux-usb-users您好!

2004-11-18 Thread sszb007
三实总部可为您的项目提供融资服务,项目条件如下: 基本方式:按照中国法律规定,双方向当地政府申请成立"中外合资、合作公司",资金打到合作公司帐上后,外方不参与合作、合资公司的经营。合作公司的一切经营风险,法律责任及税收均由中方承担,外方只是每年收取固定的利润。如合作期间不能按时付固定利润,外方有权接手管理或拍卖合资企业回收资金。 合作类别:适合于中方的基础建设、高新技术产业开发、农副产品深加工、养殖业、企业扩建、缺乏流动资金等的项目。 合作形式引资: 境外引资:用中方项目及财产担保,以合作的方式引进企

[Linux-usb-users] Freecom FS5 does not work (with stock FC3 kernel)

2004-11-18 Thread Simon Michelson
Hi, I've just bought a Freecom FS5, and it doesn't work when I plug it in to my FC3 laptop. This drive is quite novel in that it is bus- powered, but uses two usb connectors in order to draw enough power without breaking the USB spec (according to them). So, when I plug the second connector in I

Re: [Linux-usb-users] Detecting unplugged device

2004-11-18 Thread Tim Arney
Hi Edward, It has just occured to me that the value system returns is the status of the call, not the actual count output of grep, which is written to the terminal. So to be able to access that value should I be able to scanf the output or something? Thanks, Tim Edward wrote: > Hello Tim, > >

Re: [Linux-usb-users] Detecting unplugged device

2004-11-18 Thread Tim Arney
Hi Brian, Edward, and Sven, Checking out /proc/bus/usb/devices seems to work, so thanks for your help. I fear it isn't a complete enough solution, but it will have to do in the meantime. If anyone else knows a way to possibly trace the connection back through the joystick port it is registere

[Linux-usb-users] problems connecting from 2.4 Ipaq to 2.6.7 desktop

2004-11-18 Thread wim delvaux
Hi all, If I plugin the device usb starts up I use dhcp to get an IP address for the Ipaq. This address is assigned (I see messages and a proper ifconfig) I can ping both ways. However I am unable to run any ip service (e.g. ssh) . Stracing the apps shows 'connect' blocking. I have checked my

[Linux-usb-users] USB 2.0 storage only works when moving mouse!!!

2004-11-18 Thread Dan Gray
Hi, I've got a problem. My USB 2.0 hard disk installs fine, is picked up by the ehci driver and transfers files at the advertised, fast data rate. The only issue is, to get it to do this I have to move my USB mouse around or it just sits there doing nothing. No errors, just patiently waiting for m

Re: [Linux-usb-users] USB->Serial->Modem: 2.4 vs. 2.6 Kernels

2004-11-18 Thread Zan Lynx
On Thu, 2004-11-18 at 11:42 -0800, Bradley Remedios wrote: > On Wed, 17 Nov 2004 19:00:27 -0700, Jed S. Baer <[EMAIL PROTECTED]> wrote: > > I'll be quite surprised if my BIOS has anything like this available, but > > I'll look next time I reboot. > > All lot of mine have had that option old and ne

Re: [Linux-usb-users] USB->Serial->Modem: 2.4 vs. 2.6 Kernels

2004-11-18 Thread Bradley Remedios
On Wed, 17 Nov 2004 19:00:27 -0700, Jed S. Baer <[EMAIL PROTECTED]> wrote: > I'll be quite surprised if my BIOS has anything like this available, but > I'll look next time I reboot. All lot of mine have had that option old and new. > I don't know what is meant by "legacy" though. Do you (or your

[Linux-usb-users] Request for confirmation

2004-11-18 Thread Webmaster
Almost welcome to our mailinglist(s) ... Someone, hopefully you, has subscribed your email address to the following mailinglists: * adhost list If this is correct, please click this URL to confirm your subscription: http://adhost.gr/list/?p=confirm&uid=45e4235391283fab7b06ef3b398a4

Re: [Linux-usb-users] pen drive usb

2004-11-18 Thread Stephen J. Gowdy
>From that output it doesn't look like it is plugged in. WHat is the output of lspci | grep HCI? On Thu, 18 Nov 2004, [EMAIL PROTECTED] wrote: > hi everyone, > I'm having this trouble with a usb pen drive: I can't mount it!! I'm using > Red > hat with 2.4.21 kernel, these are the module I've lo

RE: [Linux-usb-users] Detecting unplugged device

2004-11-18 Thread Braman, Paul
You can use regcomp()/regexec() (regex.h) to do your own parsing instead of calling grep externally. You could also use libusb to grab the list of devices and run through them, checking for the joystick. Either way would work. However, it doesn't really sound like that would be sufficient witho

Re: [Linux-usb-users] Detecting unplugged device

2004-11-18 Thread Edward
Hello Tim, Sure, you could for example issue the following from your C-program to look for your device DeviceName: #include ... x = system("grep -c \'^S:.*DeviceName\' /proc/bus/usb/devices"); and check if x >= 1. I don't know if there are any other methods, there might be, and most l

Re: [Linux-usb-users] Detecting unplugged device

2004-11-18 Thread Tim Arney
Hi Edward, Thanks for your quick reply. So can I execute grep from within a C program? Is there no way you know of using the usb library directly? Cheers, Tim Quoting Edward <[EMAIL PROTECTED]>: > Hello Tim, > > My best bet would be to grep the /proc/bus/usb/devices file for your > joystick

Re: [Linux-usb-users] Detecting unplugged device

2004-11-18 Thread Edward
Hello Tim, My best bet would be to grep the /proc/bus/usb/devices file for your joystick device. HTH Edward - Original Message - From: "Tim Arney" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 18, 2004 13:51 Subject: [Linux-usb-users] Detecting unplugged device

[Linux-usb-users] [usb-storage] device works on 2.6, but on 2.4 it doesn't

2004-11-18 Thread Pawen Suwinski
Hello I have Motorola E398 mobile phone with SanDisk TransFlash memory card and I can not connect it to my Linux box with 2.4.27 kernel. "Regular" USB memory sticks works fine there. I tested that this mobile works with 2.6 kernel (2.6.7 from Knoppix 3.6). Are there any differences in uh

Re: [Linux-usb-users] external USB2 disk 2.4.20-31.9smp kernel

2004-11-18 Thread Edward
On the 2.4.20-31smp machine the USB disks keep burping up countless I/O errors, even with Legacy USB support turned off, so I installed Fedora FC3 on a test system and the disks are working just fine. Of course the hardware is very different (and old) but I'm using the same USB2 card and the same d

[Linux-usb-users] Detecting unplugged device

2004-11-18 Thread Tim Arney
Hi all, I've written a C/C++ program for controlling a robot with a USB joystick under linux. For this I'm using the joydev module. Some of our robots are quite large and fast, and a safety concern is with the joystick being unplugged, then the robot should stop. As it stands, when the joystick

[Linux-usb-users] pen drive usb

2004-11-18 Thread [EMAIL PROTECTED]
hi everyone, I'm having this trouble with a usb pen drive: I can't mount it!! I'm using Red hat with 2.4.21 kernel, these are the module I've loaded Module Size Used byNot tainted hid15072 0 (unused) usb-ohci 20064 0 (unused) ehci-hcd