From: Steven P. <n9...@n9...> - 2004-01-12 03:38:50
|
On Jan 11, 2004, at 4:07 AM, Roger Binns wrote: > Steven, can you please update the comscanmac function in comscan.py > to note if the device is a serial or modem. I think the Mac uses > /dev/cu.usbserial and /dev/cu.usbmodem respectively. res["class"] > should be set the the right value in the loop. I'm not sure if it is that simple... Maybe it is for the drivers/cables commonly used for cell phones, but, for example, the very popular USB<-->Serial adapters made by KeySpan show up like this: - /dev/tty.KeyUSA28X<geo>1 -- or -- /dev/cu.KeyUSA28X<geo>1 - /dev/tty.KeyUSA28X<geo>2 -- or -- /dev/cu.KeyUSA28X<geo>2 where <geo> is the 2 or more digit geographical name. (e.g. "913" means USB bus #9, host hub port #1 and external hub port #3) I did find a reference to the Prolific chipset and the driver they have for MacOS X does, as far as I can tell, use usbserial. Since this is so arbitrary, depending on the vendor's driver and choice of text string they use when constructing the name, I'd hesitate to code to it, it's not quite a standard. However, if there is a choice that must be made to make things work properly I guess we can just punt and hope for the best. -. ----. -.-- - -.-- Steve Palm - n9...@n9... -. ----. -.-- - -.-- |