Sending and receiving messages to a network device that does NOT have an IP address
-
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
-
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?
-
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.
-
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.