Thread: how to communicate and get back data from a specific devices using C language

  1. #1
    Registered User
    Join Date
    Oct 2013
    Posts
    24

    how to communicate and get back data from a specific devices using C language

    I have a device that have some communication protocols and it will respond and send some specific data when somebody communicates with the device. I tried to build a C code that will send those protocols to the device and then store those sending data. Now I don't understand that how to send those commands. Other things than that I can manage with the file handling programming.Is there any predefined function using which it will send some specific data or something like that??

    Is there any idea about this?? Any new idea would be really appreicated.

    Thanks

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    Presumably the device comes with some physical means of communicating with the computer (say a port, a connector, an antenna) as well as a specification of the protocol it uses to communicate.

    Generally speaking, however, the means of communicating with physical devices is not specified in the C standard. That is typically achieved via some logical interface (for example, an API - Application Programmer Interface - or a set of functions in a library that can be called from a C program). If you're lucky, the device uses a common port that most computers ship with and your host operating system will have some built-in means of communicating with that port (say a device driver and API). If not, the supplier of the device would normally provide such a library (which would be tailored for your host system and development environment if needed).
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help - Output specific data from 2 txt files
    By plat in forum C++ Programming
    Replies: 1
    Last Post: 10-12-2012, 07:36 PM
  2. Getting Specific Data from a file
    By darknite135 in forum C++ Programming
    Replies: 4
    Last Post: 12-31-2007, 11:41 PM
  3. Getting information/data from USB devices.
    By ang_ks in forum Windows Programming
    Replies: 6
    Last Post: 07-10-2007, 09:08 AM
  4. Entering specific data
    By fantim in forum C Programming
    Replies: 1
    Last Post: 02-28-2005, 01:47 PM

Tags for this Thread