Click here to Skip to main content
15,914,163 members
Home / Discussions / Mobile
   

Mobile

 
QuestionHow to add icon in the taskbar of smartphone windows mobile 5.0 Pin
AshimaWalia3-Jul-07 17:30
AshimaWalia3-Jul-07 17:30 
QuestionWindowsIdentity in CF 2.0 Pin
Talal Sultan3-Jul-07 6:00
Talal Sultan3-Jul-07 6:00 
QuestionConsole app Pin
tuga-x3-Jul-07 1:37
tuga-x3-Jul-07 1:37 
AnswerRe: Console app Pin
Mike Dimmick3-Jul-07 10:25
Mike Dimmick3-Jul-07 10:25 
GeneralRe: Console app [modified] Pin
tuga-x9-Jul-07 4:07
tuga-x9-Jul-07 4:07 
GeneralRe: Console app Pin
tuga-x12-Jul-07 1:07
tuga-x12-Jul-07 1:07 
Questionautomatic Install "sql.wce4.armv4.CAB" wiht Application CAB file Pin
PavanPareta2-Jul-07 23:08
PavanPareta2-Jul-07 23:08 
AnswerRe: automatic Install "sql.wce4.armv4.CAB" wiht Application CAB file Pin
Mike Dimmick3-Jul-07 10:31
Mike Dimmick3-Jul-07 10:31 
GeneralRe: automatic Install "sql.wce4.armv4.CAB" wiht Application CAB file Pin
PavanPareta4-Jul-07 18:01
PavanPareta4-Jul-07 18:01 
QuestionBeginner's question.. please help! Pin
alias_sher2-Jul-07 18:19
alias_sher2-Jul-07 18:19 
QuestionHow to add reference to Microsoft.WindowsMobile.dll? Pin
binnypaul2-Jul-07 16:02
binnypaul2-Jul-07 16:02 
Questionusb-rs232 problem in winows vista?? Pin
Mir_As1-Jul-07 1:14
Mir_As1-Jul-07 1:14 
QuestionData Access Application Block Pin
Vertyg029-Jun-07 5:50
Vertyg029-Jun-07 5:50 
QuestionHow to send keystroke in compact framework 2.0? Pin
scoroop27-Jun-07 21:13
scoroop27-Jun-07 21:13 
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 

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.