Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Sending and receiving messages to a network device that does NOT have an IP address
Forum Updated to NodeBB v4.3 + New Features

Sending and receiving messages to a network device that does NOT have an IP address

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.5k 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.
  • P Offline
    P Offline
    PBoucher72
    wrote on last edited by
    #1

    I am using QT 4.8.4 but can upgrade to 5.x if needed

    I have a network device that I need to communicate with, The problem is this device does NOT have an IP address only a MAC address. the manufacturer of this device has samples to communicate with it using --WinPCap which is pretty specific to windows. What I need is a way to send and receive messages to this device using only it's MAC address on both Windows and iOS.

    Can anyone point me in the right direction?
    is this even possible in QT?
    is there some other package that I should be looking at?

    if it at all helps this is the packet that is sent to the device using their software and captured via WireShark.
    the first 6 bytes are the mac address of the device,
    the next 6 are the address of my NIC card
    followed by the packet data

    @0a 0a c5 a6 00 0d 2c 27 d7 28 ea 77 88 e1 00 38
    a0 00 b0 52 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 e8 ca 9d 50 98 40 00 80
    1a 00 b6 00 6c 32 b6 00 5c f2 f4 07@

    edited to correct typo

    1 Reply Last reply
    0
    • B Offline
      B Offline
      BlastDV
      wrote on last edited by
      #2

      Hi!

      I assume you have direct conection with the device you're mentioning, I mean, your machine and the device are in the same LAN.

      If so, then you may take a look to the Sockets API provided for C++, where you can open your own connections between the two machines by creating and running a basic client and server written by yourself. Since you can't do this with TCP or UDP sockets as you only have the MAC address of your device, you may also want to check the RAW Sockets implementation within the same API I just mentioned.

      But no matter what I say, the topic may get very extense if you don't specify what kind of device are you trying to connect to.

      Can you give us more information?

      (8) Just live your life blind like me (8)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Moschops
        wrote on last edited by
        #3

        If you mean winpCap, that's a port of the *nix pcap library. Searching for an iOS port of it should turn it up for iOS.

        1 Reply Last reply
        0
        • P Offline
          P Offline
          PBoucher72
          wrote on last edited by
          #4

          Hi BlastDV,

          thank you for the tips. yes the device and the client PC are on the same local network. I was afraid that there was not QT solution for it.

          the device in question is a Power Line Communication chip that we are integrating onto our own device. same technology as found in "Linksys Powerline AV 4-Port Network Adapter Kit" but for a completely different market.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved