Results 1 to 2 of 2

Thread: Getting data from sensors

  1. #1
    Join Date
    Sep 2008
    Location
    Portugal
    Posts
    171
    Thanks
    57
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Getting data from sensors

    Hi
    This is a curiosity that came up to my mind today.
    Does anyone have experience in getting data from any kind of sensors?
    Imagine i want a program that measures the temperature every 5 minutes ... some thing like that.
    I need information about those equipments and wich could provide a easy approach to this subject.
    Thanks

  2. #2
    Join Date
    Jan 2007
    Posts
    177
    Thanks
    8
    Thanked 10 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Getting data from sensors

    The easiest way to approach this is to connect your Sensors to a common interface like USB or RS232.
    You can use QextSerialPort or equal for RS232 communication and libusb for USB communication. If your sensor doesn't support one of these interfaces, you can use a microcontroller for reading the sensor and map it to one of these interfaces (for example use a NTC or PTC for temperature measurement).

    The other method to read (builtin) sensors is the /proc directory within linux or some os calls within windows. You can also use drivers directly with ioctl or the /dev files. But this is very os related stuff.

Similar Threads

  1. data classification, ui widget & data integration and interaction
    By saman_artorious in forum Qt Programming
    Replies: 4
    Last Post: 3rd August 2012, 16:25
  2. Replies: 0
    Last Post: 10th September 2011, 13:38
  3. Replies: 0
    Last Post: 18th May 2011, 09:18
  4. Corrupt JPEG data: premature end of data segment
    By node_ex in forum Qt Programming
    Replies: 1
    Last Post: 19th August 2008, 08:57
  5. How to convert binary data to hexadecimal data
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 8th March 2006, 16:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.