check if device connected or not

Hello sir/madam,

I need some sample codings in vb.net so as to know whether my SmartDevice is connected to my USB drive/PC or not

any clues



Answer this question

check if device connected or not

  • Aditya Kirloskar

    You need to be more specific. Connected to what Your PC via AS Internet LAN Know on which side Code on PC needs to know if device is connected Code on device needs to know if PC is connected

    Connections to PC and USB drive are very different. For starters, it's different kind of USB (host vs. client). Detection would be very different for these cases you've combined into one.



  • LKeene

    You can check whether the device is connected to ActiveSync, using :

    // if the device is in the cradle and connected to ActiveSync

    // then the desktop computer can be accessed using the hostname

    // "PPP_PEER"

    IPAddress nullAddress = new IPAddress(0);

    IPHostEntry activeSync = Dns.GetHostByName("PPP_PEER");



  • Justin.V

    ello Sir/Madam,

    I am developing a PDA smartdevice application where data is stored in sqlce and then i am synchronizing this data with sql server 2000 database server.

    Before synchronization, i want to check if my PDA is connected to the PC or not. Is there any clue for developing this code in vb.net

    if i am not wrong, PDA devices are connected to USB devices, so i wil need sample code in vb.net for detecting my PDA with PC.

    Suggestions


  • check if device connected or not