Results 1 to 5 of 5

Thread: find connected network devices

  1. #1
    Join Date
    Aug 2010
    Posts
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default find connected network devices

    Is there a way to get a list of all devices that are connected to the network. I've a ip camera connected and i need to find it without knowing the ip adress. The camera does support upnp. Is that a way to reconize the camera?

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: find connected network devices

    You could use a RARP request to broadcast the MAC address of the camera, and then you will get the IP address.

    If the MAC address could change (ie, multiple cameras), then you need to find a broadcast packet that the cameras will respond to (eg. you broadcast to 192.168.255.255 and the camera responds to you with an "I'm here!" packet which of course includes it's IP address).

    The later is typically how it's normally done.

  3. #3
    Join Date
    Aug 2010
    Posts
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: find connected network devices

    Thanks for your reply.
    It's not possible to change the mac address of the camera. How can i broadcast a message and ask all devices to return their ip address if the mac address is equal to 00:14:5C:84:xx:xx? What Qt modules do i need to use?

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: find connected network devices

    You'll need to use RARP (Reverse ARP) and zero Qt modules support it as it's considered low level networking. You'll have to write OS-specific code for each OS you wish to support.

    Or ask the manufacturer of the camera if there is a broadcast message that the camera will respond to. If the camera comes with example software, it'll typically use this kind of method to identify the camera on your network. This you can do with Qt. If you have the example software which works in this way, you can snoop the communications and see how it works.

  5. #5
    Join Date
    Aug 2010
    Posts
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: find connected network devices

    It worked. The manufactor of the camera told me to send a broadcast message on port 13364. The camera will send a response.
    Thanks

Similar Threads

  1. Replies: 1
    Last Post: 13th December 2010, 22:58
  2. How get the list of usb devices
    By newb in forum Qt Programming
    Replies: 2
    Last Post: 5th June 2010, 05:24
  3. Getting informed about newly connected network adapters
    By RThaden in forum Qt Programming
    Replies: 2
    Last Post: 19th January 2010, 15:51
  4. Replies: 1
    Last Post: 6th March 2007, 15:27

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.