Click here to Skip to main content
12,951,983 members (66,008 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


7 bookmarked
Posted 28 May 2010

Transmit data from WinMo device to PC: SocketWedge and SocketSend

, 28 May 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
Source Code for Windows Mobile and PC showing socket communication and keyboard input emulation

Although you may find this combination useless, here is something that will transmit data from a Windows Mobile device to a PC and the PC will type (like a barcode scanner keyboard wedge) the transmitted data.

The workflow theory is:

  1. You scan a barcode or RFID TAG and the data is wedged into the SocketSend input textbox or you type some text into the textbox.
  2. You connect your mobile device to the network, where you have a Windows PC running SocketWedge.
  3. On the mobile within SocketSend, you tap the transmit button and the data is send to SocketWedge.
  4. SocketWedge receives the data and puts it in the keyboard message queue of a defined application.
  5. The data is typed into the target application.

There are some code snippets you may find useful for your apps:

On the Mobile (SocketSend)

  • A background task that does ping a server and gives status back
  • A ping coded for compact framework

On the PC (SocketWedge)

  • Background threads that accept socket connections
  • A nice keyboard input emulation using SendInput
  • A hex encoder/decoder, you can use \xHH for hex input of special chars

Attached are the source codes for Visual Studio 2005 targeting Windows or Windows Mobile 6 SDK.

<!-- Social Bookmarks BEGIN -->

<!-- Social Bookmarks END -->


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Germany Germany
No Biography provided

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170525.1 | Last Updated 28 May 2010
Article Copyright 2010 by hjgode
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid