Send and receive data packets on the network

Hi all.

Let's say I have a GPRS Modem that sends a data packet to an IP address of a server.

How can I receive and read the packet data using Labview?

In other words, how can I send a packet of data to the server using Labview?

Thank you.

Dear UOI,

First of all, in my opinion, you must decide which protocol you we will use to connect both sides of the application.

Is that UDP or TCP, for example?

Reading of the package depends on the Protocol, according to me. But it is possible.

About these two examples of Protocol that I quoted, that's two white papers for you to analyze.

LabVIEW basic TCP/IP communication

Communication UDP in LabVIEW

Kind regards

Tags: NI Software

Similar Questions

  • I am new to the ethernet communication using labview. I don't have any material. I have two laptop, I need to send and receive data through these 2 portable by using labview. Kindly help me on this.

    I am new to the ethernet communication using labview. I don't have any material. I have two laptop, I need to send and receive data through these 2 portable by using labview. Kindly help me on this.

    Dennis has already said: for a direct PC - PC connection, you need a cross over cable. If you connect through a router or a switch, you use a standard cable.

  • Is it possible to send and receive RTP streams on the same computer?

    Hi all

    I tried sending an RTP stream and receive it on the same computer, but it did not work. I use the AVTransmit2 and AVReceive2 classes, I assumed that these classes are popular, so I have not included the code for them) for this.

    It works perfectly fine when a computer sends using AVTransmit2 and another receiver using AVReceive2. However, when, on the same computer, I get the following error in AVReceive2:
     Cannot create the RTP Session: Unrecognized Windows Sockets error: 0: Cannot bind 
    The address I used for transmission and reception is: 224.144.251.104/22200

    And I also discovered that it IS possible to send and receive streams on the same computer using JMStudio, but I found it very hard to dissect its code.
    How can this be achieved using these two classes, that is, the AVTransmit2 and the AVReceive2?

    Any suggestions will be greatly appreciated.
    private String createTransmitter() {
    ...
    localAddr = new SessionAddress( InetAddress.getLocalHost(), port);
    destAddr = new SessionAddress( ipAddr, port);
    

    You can do this instead:

    localAddr = new SessionAddress( InetAddress.getLocalHost(), SessionAddress.ANY_PORT);
    
  • Send and receive data via the Ethernet Port?

    Hello

    I am trying to acquire details of LAN/Ethernet from the PC through LabVIEW.Like details, we get the date & time, etc Serial Port system, is it possible to get the details of my PC via LabVIEW.My LAN aims to sebd and Receive via Ethernet Port command.

    The last time I did it, I used the range of tcp. (I go ctrl + space for quick menu then type tcp). Open a connection to the network device, and then use tcp read/write, depending on the case. There are examples that can be very useful

  • Sending and receiving data PIC18F4550

    OK, I have seen some forums on the way to talk with the LabView PIC18F4550 and did not find any solution up there, usually all the subjects this is ended with nothing.

    OK, here's what I've done so far:

    Part of microcontroller: I have downloaded the example of the Microchip Solutions, compiled the example for PICDEM card, however I have no card PICDEM, so I just set up my own simple Board with minimum elements. I have run this example on my PIC18F4550 and also used the standard Human Interface Device driver, I have run the example application and could turn on/off the LEDs and read potentiometer values. Then, once I saw that the device is working, I uninstalled the driver and unplugged my USB device.

    Now: I found the manual on the site of NOR, which explains how to generate the pilot tool of NI-VISA, I went through it, and with generated success driver for my device and then I installed this driver, plugged my USB with PEAK and could see its properties etc.

    So far seems ok. Now appears as a last step, I want to read data let the potentiometer through the PEAK.

    According to the previous manual, now I use VISA Interactive Control tools, what im going to do now is to send requests to my PIC and get response/data from it.

    Take a look at some of the code of the firmware on my PIC:

    Sub ProcessIO (void)
    {
    Blink the LEDS according to the status of the USB device
    If (blinkStatusValid)
    {
    BlinkUSBStatus();
    }

    Tasks user Application USB
    < configured_state)||(usbsuspendcontrol="=1))">

    If (!.) HIDRxHandleBusy (USBOutHandle)) //Check if data received from the host.
    {
    Switch(ReceivedDataBuffer[0]) //Look the host data sent, to see what kind of application specific command, he sent.
    {
    0 x 80-case: //Toggle control LED
    blinkStatusValid = FALSE; Stop the flashing of the LED automatically, will now control manually.
    If (mGetLED_1 () == mGetLED_2())
    {
    mLED_1_Toggle();
    mLED_2_Toggle();
    }
    on the other
    {
    If (mGetLED_1 ())
    {
    mLED_2_On();
    }
    on the other
    {
    mLED_2_Off();
    }
    }
    break;
    0 x 81-case: //Get State of push button
    ToSendDataBuffer [0] = 0x81; Back to the PC host the command echo we assume in the first byte. In this case, the command Get Pushbutton State.
    if(SW3 == 1) //pushbutton no hurry, the pull up resistance on the circuit board is pulling on the high PORT pin
    {
    ToSendDataBuffer [1] = 0x01;
    }
    else //sw3 should be == 0, push-button is pressed and overwhelming pull upward resistance
    {
    ToSendDataBuffer [1] = 0x00;
    }
    If (!.) HIDTxHandleBusy (USBInHandle))
    {
    USBInHandle = HIDTxPacket (HID_EP,(BYTE*) & ToSendDataBuffer [0], 64);
    }
    break;

    0 x 37-case: command /Read. POT Use ADC to measure an analog voltage on one of the pins of I/o ANxx and returns the result to the host
    {
    WORD_VAL w;

    If (!.) HIDTxHandleBusy (USBInHandle))
    {
    mInitPOT();
    w = ReadPOT(); ADC lets read the pin I/O voltage. See the relevant HardwareProfile - the stem of I/O that it will measure in the xxxxx.h file.
    Some advice from demo, as the Council PIC18F87J50 FS USB plug-in Module, do not have a potentiometer (when used stand-alone).
    This function call will always make however the analog voltage on the I/O pin. To make the demonstration more interesting, it
    suggests that an external adjustable analog voltage must be applied to this PIN.


    ToSendDataBuffer [0] = 0 x 37; Back to host the command echo we assume in the first byte. In this case, the command Read POT (analog voltage).
    ToSendDataBuffer [1] = w.v [0]; Measure the analog voltage LSB
    ToSendDataBuffer [2] = w.v [1]; Measure the analog voltage MSB

    USBInHandle = HIDTxPacket (HID_EP,(BYTE*) & ToSendDataBuffer [0], 64);
    }
    }
    break;
    }
    Rearm OUT for the next package endpoint
    USBOutHandle = HIDRxPacket (HID_EP,(BYTE*) & ReceivedDataBuffer, 64);
    }

    } //end ProcessIO

    As you can see he is ProcessIO function, with the presentation of the main switch, for example case 0 x 37: means if it gets this value from the host, it must send the value of the potentiometer to USB.

    Now, what I tried to do is, in the interactive control of VISA, I selected the tab Interface IO and then tried to send the query with the value 0 x 37 in the field of the wValue, the bmRequestType was 0 x 0, and what I get is weird values I don't think that are the actual values of the potentiometer read... (I tried to change the potentiometer then do ask again and got the same values)

    I also tried to experiment with basic i/o tab and got the same weird things...

    so at this point, what I am doing wrong? what I need to / supposed to do now?

    or can u point me to the source of valuable information?

    or the LabView guru on this site, tell me please your opinion on this subject?


  • Cannot send and receive UDP

    I'm doing a code to send and receive of UDP. The code works fine on the simulator of 4.2.

    But the same code doen't work on the device.

    String u = "udp://" + server_addr + ":" + server_port + ";" + client_port + "/internet.beeline.ru|UDP;tunnelauthusername=beeline;tunnelauthpassword=beeline";
    
    socket = (DatagramConnection)Connector.open(u);
    
    Datagram dt = socket.newDatagram( socket.getMaximumLength() );
    dt.setData( data, 0, length );
    
    socket.send( dt );
    
    socket.close();
    
    u = "udp://:" + client_port + "/internet.beeline.ru|UDP;tunnelauthusername=beeline;tunnelauthpassword=beeline";
    
    socket = (DatagramConnection)Connector.open(u);
    
    Datagram packet = socket.newDatagram(fullPkt, length);
    
    socket.receive(packet);
    

    BB 8300 with OS throws IOException in an attempt to send UDP in the line of 4.2.2.166

    socket.send( dt );
    

    BB 8100 with 4.5.0.110 resembles could not send UDP no exception thrown

    but never receive any UDP server.

    Such a code should work on 4.5 OS, at least I'm able to see rtsp video to youtube which use UDP.

    The cause is the firewall carrier that bloks incoming UDP for the phone.

    Also firewall change source port of the datagram received by the server.

    The solution I see is to protocols rtsp/rtp simuilate to bypass the firewall of carrier.

  • Yesterday, I could send and receive emails, today I can't. Webmail works fine. Help!

    I checked with my ISP. All settings OK and I can send and receive e-mails on the webmail and a windows mail IMAP account OK. ISP tech support said the problem is certainly in Thunderbird. Beginning yesterday it worked fine, but the night last and this morning I can't send or receive e-mails. I have not modified parameters.

    Check your firewall and make sure Thunderbird is not blocked. Sometimes an upgrade to a new version will appear in the firewall as a new program and it blocks.

    The webmail and client e-mail use server completely different so all it proves is that you know your user name and password.

    With regard to the correct settings, confirmed by the help desk, my more personal experience of the help desk cannot be a correct configuration if she got hit in the face. You can post your info troubleshooting here and maybe someone will be able to spot a problem. The title of the Help menu is troubleshooting Info. Then clear the check box to include personal information. Click on copy to C! ipboard then that stick to a window of response here.

    Given that you can't send or receive the prime suspect is the firewall.

  • Is anyone having problems with their 6 s new more not to send and receive images through text messages unless your cell data are lit?  Even if I'm on wifi, I won't get it the pic unless the cell data is on?

    Is a person with problems with their new 6s more iPhone send and receive pictures via SMS?  Even if I'm on WIFI, I have my cellular data button turned to receive a picture. Then in turn instead to use WIFI, it devours my data plan. If to halfway through the month I get warnings that my data plan has almost disappeared. I did everything, including resetting the phone to factory settings. It also does not send a text if IMessage is turned on. It switches immediately to Imessaging which of course, again use my data plan. Of course, I could use some help with this. BTW, my text messaging service is connected to my phone number and not my email. Who was one of the suggestions that support Apple told me to check. Never in my life have had so many problems with a phone since I bought this iphone 6 s.

    Mgibson2425 wrote:

    Is a person with problems with their new 6s more iPhone send and receive pictures via SMS?  Even if I'm on WIFI, I have my cellular data button turned to receive a picture. Then in turn instead to use WIFI, it devours my data plan. If to halfway through the month I get warnings that my data plan has almost disappeared. I did everything, including resetting the phone to factory settings. It also does not send a text if IMessage is turned on. It switches immediately to Imessaging which of course, again use my data plan. Of course, I could use some help with this. BTW, my text messaging service is connected to my phone number and not my email. Who was one of the suggestions that support Apple told me to check. Never in my life have had so many problems with a phone since I bought this iphone 6 s.

    SMS is a function of the carrier, you will need to contact your cell phone provider and see what is the matter.

    IMessage uses very little data.

  • Wireless drops IE7 but emails still send and receive the Satellite Pro L20

    I will try to write this, so it is logic-

    Satellite Pro L20

    Card Atheros AR5005G Wireless - Driver version 7.6.0.130

    Windows XP, Office 2003, IE 7,.

    Router Netgear WGR614 v6 wirless.

    When using a product like Utorrent my conection sharing internet it falls P2P file comes with - cannot display the page - usually I select the network diagnostics and he responds with consult the manufacturer of your computer for help.

    E-mails still send and receive ok - my wife on her cell phone can still access internet ok (so I don't think it's a fault of router)

    After I close the application down and let it during 5 minutes to share files so I can access the internet. If I connect directly to the router via a cable that I have all of the problems that makes me think it's a fault of the wireless adapter

    Can anyone help?

    Thank you very much

    Alex

    Hello

    Eventually the large amount of data that occurs during the influences of P2P file sharing or Skype session of the internet connection.

    Sometimes this question is displayed on my laptop if 2 or three laptops are connected to the same router.

    However, have you tried a few solutions stallions like WLan driver updated for example?

    Please check the Toshiba Wlan portal and install the latest version of the driver:
    http://APS.toshiba-tro.de/WLAN/

    Good luck

  • Connects to the router, but cannot send or receive data

    I have a WRT54G.  I can find the network and connect to the router, but I can't send or receive data.  I tried to connect directly to the router and I still not able to send or receive data. Both computers on the router has the same problem.  I did a reset the router back to the settings by default and still no luck.  Any thoughts?  Thanks in advance for the help.

    The first thing you can try is when you the Modem and the router is connected to the other, disconnect the power from the router and Modem, wait 30 seconds and then plug in the power to the Modem and once all the lights are solid, then connect the power supply to the Linksys router, now check if you are able to go online. If still no then...

    Who is your ISP. So I think you need to re - configure all settings of your router again.

    If your Internet Service is cable follow this link

    If your Internet Service is DSL follow this link

  • Thunderbird ceased to send and receive with the new update of Windows 10.

    Thunderbird ceased to send and receive e-mail. When I tried to send I got: "the message send failed.
    The message cannot be sent because the connection to the Outgoing server (SMTP) smtp.comcast.net was lost in the middle of the transaction. Try again. "My email loads on my tablet is not comcast. Firefox works is not my internet. Clues?

    Please start * Windows * safe mode with active network
    -win10 http://windows.microsoft.com/en-us/windows-10/change-startup-settings-in-windows-10
    Always in Windows safe mode, start thunderbird in safe mode
    - http://support.mozillamessaging.com/en-US/kb/safe-mode

    Problem disappear?
    Just reply to inform us of the results.

    Do you have non-comcast accounts where this does not happen?

  • My messages send and receive txt messages not iMessage on my iPhone and I don't know how to solve the problem to send and receive messages as iMessage

    My messages send and receive txt messages not iMessage on my iPhone and I don't know how to solve the problem to send and receive messages as iMessage

    Settings > messages > iMessage turn off then turn it back on...

    If it does not sign of your apple under messages ID.  Settings > General > reset > reset all settings (will not erase data).

    Then log in messages

  • Number of send and receive packets

    Hi all

    We use getNumberOfPacketsReceived() and getNumberOfPacketsSent() of RadioInfo and it returns the number of send/receive IP packets by the radio, but we want number if bytes, how convert us no. Byte. packages? refers to the relationship between 1 equal packet bytes.

    Kind regards

    Shekhar.

    These methods must return the number of bytes returned.  There is a problem with BlackBerry handheld software version 4.5.0 that caused these methods return the number of packages instead.

    This has been fixed in recent versions of 4.6.0 and BlackBerry terminal software 4.7.0.

  • HP ENVY 15 notebook PC TS: send and receive desapered on Bluetooth icon files in the quadrangle of the desire win 8.1

    I can't stay send or receive files via bluetooth on my laptop since I updated to 8.1?

    Send and receive files option desapered on Bluetooth icon

    Fact and it doesn't have a jep, I can the upgrated to window 10 and that solved the problem with bluetooth, but create a new with thw wireless, luckily I got a very good support of intel. I think I migh solve the problem with the wi - fi disconecting all time with them.at less it works better now.

  • Bluetooth, send and receive the option

    I got my lenovo ideapad y510 p 2 days I tried bluetooth once it was working, but after upgrade to win 8.1 didn't send or receive option in the bluetooth icon menu I reinstalled bluetooth driver please I help me I can't send or receive anything via bluetooth

    OK thanks I could solve my problem acually the solution was easier than I imagined

    Just delete the programs bluetooth driver and do not install again and I have the option in the menu and now be able to send and receive very normally

Maybe you are looking for

  • import a photo to another library

    Hello I have been using a library of Photos on OneDrive for quite awhile. This synchronizes moderately fortunately throughout my three Macs using OneDrive. I don't bother not associable with my iPhone or iPad. However, it seems that Photos are so hou

  • 15 - ba045ur: problems with BCM43142 Win7 64

    Hello. After 2 days of seacrhing I had working driver for this device (6.20.55.51), but it is not working properly - the changes of signal and the speed is low. So, how can I solve this problem?

  • HP TouchSmart 17 t-j100 as ENVY: HP ENVY TouchSmart 17 t-j100 Quad Edition CTO

    My sons laptop has come loose on the left side at the hinge.  He is the College 300 miles away.  The unit is about 2 years old and seems to be a common problem with the forums.  How can this be repaired?  You can buy a full case?  Could there be a mi

  • simulation does not work

    I composed a few diodes the wizard of components, such as the diode acts like a switch perfect to 0.7 volts.  For some reason any SPICE simulation does not run.   If I include one of these diodes in other circuits, the circuit will not simulate.  The

  • Best graphics card for dc7900 SFF

    Hi all My PC is a HP dc7900 SFF. Its having a Q45 chipset. I need to upgrade to a dedicated graphics card. The only problem I am facing is I know that pci-e slot of the PC is limited to 35 watts max draw. If anyone can recommend the best graphics car