LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending and receiving GSM Packets in Ethernet

Hi,
 
It is possible to send and receive Ethernet Packets using WinPCap in LabVIEW. By this way a program can send any type of RAW packets at different bytes.
 
Likewise is it possible to send and receive GSM Packets from LabVIEW? Is it possible to create 26 Frame Multiframe, each containing 8 Frame?
 
Thanks,
Soundar
0 Kudos
Message 1 of 4
(3,126 Views)
Hello,

WinPcap can be used in labVIEW by calling the DLL api, which is open.

http://winpcap.mirror.ethereal.com/301a/docs/main.html

If the GSM packets are a protocol ontop of UDP/TCP, then yes you would just have to implement the protocol and use the UDP/TCP VI's to comunicate.

If not, then you might  have to find a thrid party piece of code/DLL/.NET assembly that does and interface it with LabVIEW.

Creating the frames will pose no problem as long as you know the exact make-up of the frames in bits or bytes (sequence of U8).

Kind regards,

André
Regards,
André (CLA, CLED)
Message 2 of 4
(3,118 Views)

Thank you for the information.  Is there a way to send RAW ethernet packets without using Winpcap?  UDP sender will not work since the packets formed are not formated as such.  The problem I have with Winpcap is understanding the structures and understanding how to interface Labview with pointers to structures.  For example:

Boolean PacketSendPacket( LPADAPTER AdapterObject, LPPACKET lpPacket, BOOLEAN Sync)

My guess it the best approach to this is to write a wrapper to it.  My skill at writing wrappers is pretty limited, mostly a couple examples.  What would the best approach of a wrapper?  My thoughts, which are pretty limited, is to pass the elements (packet info) to a .dll that then includes the PacketSendPacket function in it.  Or is there a better way to handle pointers to structures in Labview? 

Thanks in advance, really appreciate this forum and learning the language.

 

Andy

0 Kudos
Message 3 of 4
(3,052 Views)

Hi,

Would you like to use TCP or UDP communication? We have several examples in the LabVIEW Help that show these types of communication. You can access these examples by choosing Help»Find Examples in LabVIEW.

Here are some other documents that explain more about TCP and UDP communication. Let me know if this helps!

 
Amanda Howard
Americas Services and Support Recruiting Manager
National Instruments
0 Kudos
Message 4 of 4
(3,026 Views)