Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. data transfer between pc and microcontroller

data transfer between pc and microcontroller

Scheduled Pinned Locked Moved C / C++ / MFC
c++hardwarelearning
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Muhammad Azeem Azam
    wrote on last edited by
    #1

    I want to write a program in Visual C++ to transfer and receive data between a computer and microcontroller over wireless LAN. I have to implement TCP/IP Protocol for Data Transfer. From where should i start. I am the beginner. Thanks

    D M M 3 Replies Last reply
    0
    • M Muhammad Azeem Azam

      I want to write a program in Visual C++ to transfer and receive data between a computer and microcontroller over wireless LAN. I have to implement TCP/IP Protocol for Data Transfer. From where should i start. I am the beginner. Thanks

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Muhammad Azeem Azam wrote:

      I am the beginner.

      Which begs the question, "Why are you starting with such an ambitious project?"


      "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

      "Judge not by the eye but by the heart." - Native American Proverb

      H 1 Reply Last reply
      0
      • M Muhammad Azeem Azam

        I want to write a program in Visual C++ to transfer and receive data between a computer and microcontroller over wireless LAN. I have to implement TCP/IP Protocol for Data Transfer. From where should i start. I am the beginner. Thanks

        M Offline
        M Offline
        Mike Dimmick
        wrote on last edited by
        #3

        I hope your microcontroller control board already has a library implementation of TCP/IP and 802.11; actually I'm a bit surprised that there's room for it in the device's RAM. From the PC side, you should be looking at the Windows Sockets APIs. Best starting point for that is the Winsock Programmer's FAQ[^]. If there is a library implementation for your microcontroller, it probably also uses the sockets API.

        Stability. What an interesting concept. -- Chris Maunder

        1 Reply Last reply
        0
        • D David Crow

          Muhammad Azeem Azam wrote:

          I am the beginner.

          Which begs the question, "Why are you starting with such an ambitious project?"


          "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

          "Judge not by the eye but by the heart." - Native American Proverb

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          DavidCrow wrote:

          "Why are you starting with such an ambitious project?"

          wow :-D

          _**


          **_

          WhiteSky


          1 Reply Last reply
          0
          • M Muhammad Azeem Azam

            I want to write a program in Visual C++ to transfer and receive data between a computer and microcontroller over wireless LAN. I have to implement TCP/IP Protocol for Data Transfer. From where should i start. I am the beginner. Thanks

            M Offline
            M Offline
            mdivya
            wrote on last edited by
            #5

            Since this is too general a question, I will try to answer using my own experience, with a similar project. If it fits your case fine, otherwise provide more details, and maybe you will get the answers. I am assuming that you have a micro-controller board with TCP/IP support. You want to connect it to a PC over a network and build your application above that. If the micro_controller has a TCP/IP Server waiting to serve a client, then you need to implement the Client on the PC (or Vice Versa). Since you most probably want to have something working quickly and build upon that, you can start by doing a search for a simple TCP client (or server depending on what you have on the other side). Download the project and build it. Next you need to configure (eg: Port Number etc..). Here you need the details on how the Server is set up. You can do this without knowing the details of the protocol (just an overall idea as to Client/Server relationship and the config parameters will suffice). This will bring you to the point of an actual connection being setup between the Server and the Client. After this, you need to fill in the blanks by providing whatever it is your application level is. This should get you started; you can expand upon it as you go along. At some point in time, you can rewrite it to be more efficient for your particular case. Good Luck. Cheers, Marigowda Divya

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups