Re: linux development
"Roger Binns" <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <011601c5570e$e1530440$3501a8c0@rogersqyvr14d3> |
> I am using an LG VX6000 with the FutureDial usb-to-serial cable. You really should have got a straight USB cable. Anyway your cable uses a Prolific PL2303 USB to serial chip and this chip is very widely used. An OS level device driver is needed. > Can't you just probe all the devices that are 'possible' Bitpim targets? Yes. We already have code that does that. The problem is what do we do if "/dev/usb/ttyUSB0" can't be opened in your case. Is that because of permissions issues, because someone else already has it open, or because your cable is actually connected to ttyUSB1? > mean you can still group all possible Bitpim targets in one location and > then probe those targets. If a cellphone is on the other end, great, else > keep probing. Right? That is exactly what the code currently does, except we can't extract any meaning from open failures, nor can we map devices seen on the USB busses to the corresponding device nodes. > It seems like my best bet is to selfishly get it working on my system first. > Then try to abstract the solution to cover different combinations of > Linux. Yup. > Is there an easy way to run a subset of the Bitpim code? No need. Plug your cable in. Then from user space C code see if you can work out which USB device is attached to /dev/usb/ttyUSB0. Also see if you can be notified when the cable gets plugged in. Lastly I need to be able to "diagnose" open fails on that device. That means telling the difference between permissions issues, the device not existing at all, someone else having it open etc. BTW you can run comscan.py by itself. There is also a usbscan.py. Run the build script in native/usb if you want to run the latter. Roger ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click