Click here to Skip to main content
15,891,423 members
Home / Discussions / Mobile
   

Mobile

 
QuestionRemote control using the bluetooth function of the cell phone Pin
followait27-Jun-07 2:58
followait27-Jun-07 2:58 
QuestionBlackberry Pin
shers26-Jun-07 20:12
shers26-Jun-07 20:12 
QuestionIssue with Type.GetConstructor() Pin
Dr. Spack25-Jun-07 4:58
Dr. Spack25-Jun-07 4:58 
QuestionSQL CE Query Performance Pin
Ferudun Atakan24-Jun-07 22:43
Ferudun Atakan24-Jun-07 22:43 
AnswerRe: SQL CE Query Performance Pin
João Paulo Figueira5-Jul-07 1:34
professionalJoão Paulo Figueira5-Jul-07 1:34 
QuestionHow to Connect PC to Nokia Series 60 Phone Pin
Brady Kelly24-Jun-07 22:25
Brady Kelly24-Jun-07 22:25 
Questionhow to monitor network connections on windows mobile 2005 Pin
AmarjeetSinghMatharu24-Jun-07 22:11
AmarjeetSinghMatharu24-Jun-07 22:11 
QuestionUSB Removable Drive Detection in Win CE 5.0 Pin
cyberanee21-Jun-07 21:03
cyberanee21-Jun-07 21:03 
I have an data-acquisition application in which data-logging is performed constantly and data is stored in a CF Card, which acts as the primary data-storage device for the system.

The Windows CE image that i have loaded has support for automatic detection of USB mass storage devices.

The User can retrive the data from the system (CF Card) thru USB Drive.

There is no screen or console , it is an industrial Controller.

The data acquistion goes on constantly , and the application periodically polls the USB slot to see if the user has inserted any USB Drive in it.

For this, i use the standard CreateFile() function in order to detect if the user has inserted USB Pen Drive into USB slot or not. I get the handle to the device using CreateFile(), is user has inserted it. If he has, then all reqd. data from the CF Card is copied to the USB drive.

if ((hFile=CreateFile(_TEXT"DSK2:",GENERIC_WRITE,
FILE_SHARE_READ|FILE_SHARE_WRITE, NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL, NULL))!=INVALID_HANDLE_VALUE)
{Do further processing}

NOTE: Here DSK2: is the disk number of the Pen Drive

Whenever the user insertes the USB Drive, the OS detects this, and CreateFile function therefore returns successfully with the USB dive handle. Thus, USB Drive is detected.

Now, the problem is that sometimes, although the Pen Drive is inserted, it is not detected by the OS, whearas at other times it is. That is, in the Windows Explorer, where I can see the CF Card mounted as "Hard Disk" and USB Pen Drive as "Hard Disk2", sometimes, this "Hard Disk2" is not seen. It leads me to the conclusion that the USB Dive is not mounted by the Windows Device Manager. Even if i remove the Pen Drive and re-insert it, it will not be detected hence-forth , once it is not detected. I don't know how to make the OS detect it then , the only way i know is rebooting the system. (Which is definetely not the solution!!)

What can possibly be causing this irregular behavior?

At such times, I cannot obtain a handle to the device using CreateFile. Is there any alternate way to obtain access to the USB device, rather than relying on Windows OS, and the Device Manager??

I have also completely checked the hardware, to verify that there is no problem on hardware side, no loose connections etc. Another important point is that the LED on the USB Pen Drive always glows when I insert the Pen Drive, even when it is not detected by Windows CE.

Regards,
CR
QuestionHow to add textbox column in datagrid? Pin
Guru_yogi20-Jun-07 20:33
Guru_yogi20-Jun-07 20:33 
QuestionRead cell phone number from sim card programmatically Pin
Kuber K20-Jun-07 9:45
Kuber K20-Jun-07 9:45 
Questiondatabase handling in PALM OS Pin
shobhit verma20-Jun-07 3:43
shobhit verma20-Jun-07 3:43 
QuestionWhat to do for Mobile Development Pin
ashu84code18-Jun-07 20:06
ashu84code18-Jun-07 20:06 
Questionevaluating connectivity Pin
sfm118-Jun-07 9:12
sfm118-Jun-07 9:12 
QuestionDouble Buffering for PocketPC Pin
mfz@h16-Jun-07 21:21
mfz@h16-Jun-07 21:21 
AnswerRe: Double Buffering for PocketPC Pin
arcticbrew17-Jun-07 14:04
arcticbrew17-Jun-07 14:04 
AnswerRe: Double Buffering for PocketPC Pin
Don Rolando17-Jun-07 21:16
Don Rolando17-Jun-07 21:16 
Questiona socket exception on async tcp Pin
Veelone16-Jun-07 18:21
Veelone16-Jun-07 18:21 
AnswerRe: a socket exception on async tcp Pin
Veelone17-Jun-07 17:37
Veelone17-Jun-07 17:37 
QuestionInstalling Windows Mobile 5.0 or 6.0 Pin
Clickok16-Jun-07 4:37
Clickok16-Jun-07 4:37 
AnswerRe: Installing Windows Mobile 5.0 or 6.0 Pin
Mike Dimmick20-Jun-07 4:48
Mike Dimmick20-Jun-07 4:48 
QuestionControl Library? Pin
Vertyg015-Jun-07 1:05
Vertyg015-Jun-07 1:05 
QuestionHow to control network connection? Pin
whiteclouds14-Jun-07 21:54
whiteclouds14-Jun-07 21:54 
QuestionWhich files are required for PDA ? Pin
Tridip Bhattacharjee14-Jun-07 21:31
professionalTridip Bhattacharjee14-Jun-07 21:31 
QuestionGPS error ASUS P535 Pin
kowriv14-Jun-07 5:22
kowriv14-Jun-07 5:22 
AnswerRe: GPS error ASUS P535 Pin
arcticbrew14-Jun-07 6:01
arcticbrew14-Jun-07 6:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.