09-29-2008 03:24 AM
Hi,
I doing project related to bluetooth module testing. Default communicate to BT is through UART, and i going to switch to USB mode by dump some patches files into and restart to select USB mode.
The problem here is in order to let windows to detect the device, it need to unplug & plug in again USB, so it is possible to do it as "programmable" instead manually do to it??
thanks and regards,
Simon
09-29-2008 10:54 PM
Hi Simon,
From your problem, when do you need to replug the USB device. Is it that you are working on your application and the use USB is disconnected? Are you using LabVIEW on this project?
Normally the window will automatically detect the USB when it is pluged in. If the USB is already pluged in and I cannot see, or the device is not datected in MAX, I will use refresh (F5) to find the device.
Please make sure that you have already installed the right driver for the device. You can down load drivers from NI web site.
Regards,
Gunyapart D.
National Instruments
Application Engineer
NI ASEAN
09-30-2008 01:10 AM
hi,
I came across some interesting information. I thought it might be what you are looking for.
Check out on the link below.
http://digital.ni.com/public.nsf/allkb/1D120A90884C25AF862573A700602459?OpenDocument
Gunyapart
09-30-2008 01:59 AM
Hi Gunyapart D,
I do use Labview for this project.
My scenario is like this, my USB cable always plug into the board, and iniatially windows will detect as unrecognised device because i still haven;t dump in the patches files;
after dump in those patch files and reselect for USB entry mode, the window still detect as unrecognised device even i refresh it, maybe somehow or somewhere hold the stage and required to unplug and plug in the USB cable.
I would like to going for automation, so one of the method can do is to cut off the D+/D- USB line by configure some switches to control it which related to hardware.
Somehow i wander is it possible to control from OS(window XP) side to cut off the USB line??
thanks and regards,
Simon
09-30-2008 04:54 AM
Hi Gunyapart,
Thanks for the info, i have download the package for devcon, but i don;t know why it cannot work as i run cmd--> goto the folder where i save and run the exec files, seem it just prompt me the winzip self extrator.. any idea how this work??
thanks and regards,
Simon
09-30-2008 06:23 AM
Try to restart the device after you set the mode, or call a function to re-enumerate, or even just shut down and turn back on the USB section of the device.
Windows will not try to re-connect to a device unless the device 'disconnects' and 'reconnects'.