Flatten to string for sending through TCP/IP contains CRLF characters

Hi,
I'm using a 'flatten to string' function to send some data through TCP/IP.
To minimise delays, I use the CRLF mode so that the receive function returns as soon as it receives a CRLF sequence (termination character).
I noted that every now and then only part of the data is transmitted because the flattened string itself sometimes (albeit rarely) contains CRLF characters.
I was wondering if this is correct behaviour, or if I'm missing something.I expected flatten to string to produce pure ASCII strings without special characters.
Now I first have to scan the string and replace possible CRLF characters by some known series of characters and do the opposite on the receiving side, and hope that this particular sequence never occurs.
Any comment is appreciated,
Manu
Certified LabVIEW Developer (CLD)
Solved!
Go to Solution.

mkdieric wrote:
Hi,
thanks for the feedback. I'll use the way you describe, by first sending the number of characters to expect.
Manu
Make sure you are consistent with the format for the number of butes. That is, always use an 8, 16 or 32 bit value. Which one you use is up to you and will depend on the size of your data. A 32 bit value is the most common size to use. Anyway what I am basically saying is that if you are inconsistent with what size number you use for the size you will get inconsistent results when you read the data since you will be interpretting the size incorrectly some of the time.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Similar Messages

  • Sending mail to domains containing extended characters?

    Hi!
    I'm having trouble sending e-mail with cfmail to domains
    containing characters like å ä ö. In mail.log I get
    the following message: "508 5.5.2 Illegal character in address".
    Is this a bug or a setting somewhere in the Administrator?
    Thanks in advance!
    Regards,
    Johan Fiske

    > Hi!
    >
    > I'm having trouble sending e-mail with cfmail to domains
    containing characters
    > like å ä ö. In mail.log I get the
    following message: "508 5.5.2 Illegal
    > character in address".
    >
    > Is this a bug or a setting somewhere in the
    Administrator?
    According to this:
    http://en.wikipedia.org/wiki/Domain_name_system#Internationalised_domain_names,
    it's legal to have those sort of characters in a domain name,
    but not a
    host name.
    But according to this:
    http://java.sun.com/products/javamail/javadocs/javax/mail/Address.html,
    it
    sticks to RFC 822 (
    http://www.ietf.org/rfc/rfc822.txt),
    which doesn't seem
    to differentiate between the host part and the domain part of
    an address,
    and only allows for ASCII 0-127 in the domain name.
    So the bottom line is those domain names - for the purposes
    of internet
    email addressing - aren't actually legal. So - strictly
    speaking - it's
    correct for CF to reject them.
    I would say you're screwed, unless you can find some
    alterative emailing
    system (not <cfmail>), and use that. But then again,
    the alternatives
    could quite possibly disallow those addresses too.
    Adam

  • How do I read/write many matrices through TCP server?

    I'm trying to modify the simple data client and the simple data server program in example in LabVIEW6i. How do I send a 2 dimension nummeric matrix? and also how do I send many numeric matrices at a time?

    The problem here is that at the receiving end, one cannot know how many
    bytes to read before unflattenning into the datatype.
    A method that works for *any* datatype (and any data transfer mechanism):
    Flatten the data to string.
    Flatten again the string to string; this adds a string lenght (U32) header
    to the string.
    Send the string.
    When receiving data, first read 4 bytes and convert to U32.
    Read this number of bytes.
    Typecast the string to the expected datatype.
    Jean-Pierre Drolet
    ----- Message d'origine -----
    De : "Mark Hanning-Lee"
    Groupes de discussion : comp.lang.labview
    Envoye : 6 septembre, 2001 22:21
    Objet : Re: How do I read/write many matrices through TCP server?
    > Lab Viewer wrote:
    > >
    > > Hi Irene,
    > > Re
    garding that example, probably you are wondering how can you pass a
    > > 2D array to Type Cast.VI (it accept only 1D array). The answer is
    > > Reshape Array.VI. Use this VI to transform your multidimensional array
    > > in a 1D array (after that use Type Cast.VI to transform it in a
    > > string). Also, you can use Array To Spreadsheet String.VI in order to
    > > obtain a string to send via TCP, but in this case the string is
    > > longer.
    >
    > Or better, wire the 2D array to the Flatten to String function, which
    > accepts any data type.
    >
    > When you receive the data, wire the string into the Unflatten from
    > String function. You'll need to wire a 2D array of the same
    > representation into the type input of that function.
    >
    > Mark
    LabVIEW, C'est LabVIEW

  • Can we send a tcp/ip message from a specific port to the client

    Hi All,
    Iam currently trying to send a tcp/ip message to a remote machine on a specific destination port. For each tcp/ip message that iam sending iam able to figure out that the source port varies each time. So I wanted to know if it is possible to maintain a source
    port for sending a tcp/ip message just like a destination Port. You can see my code below for reference:
     TcpClient client = new TcpClient();          
                client.Connect("xxx.xxx.xx.xx", 2024);
                NetworkStream clientStream = client.GetStream();
                ulong refno = GetSessionID();
                DateTime dt = DateTime.Now;
                string str = dt.Year.ToString() + "-" + dt.Month.ToString() + "-" + dt.Day.ToString() + " " + dt.Hour.ToString() + ":" + dt.Minute.ToString() +
    ":00";
                ASCIIEncoding encoder = new ASCIIEncoding();
                string Input2 = "<STX>Inquire<US>REF=203.163.253.55<US>RQN=" + refno.ToString() + "<US>DTE=" + str + "<US>ACI=5274<US>ACE=C<US>ACS=A<ETX>";
                string Input3 = "<STX>Inquire<US>REF=203.163.253.55<US>RQN=" + refno.ToString() + "<US>DTE=" + str + "<US>ACI=5274<US>ACE=C<US>ACS=A<ETX><CHECKSUM>";
                int length = Input2.Length;
                string hexValue = Input2.Length.ToString("X");
                string hexValue2 = length.ToString("X");
             //   string Input = "\x02 Inquire\x1F REF=203.163.253.55\x1F RQN=" + refno.ToString() + "\x1F DTE=" + str + "\x1F ACI=5274\x1F ACE=C\x1F ACS=A\x1F \x3 \\x" + hexValue2;
                string Input = "02Inquire1FREF=203.163.253.551FRQN=" + refno.ToString() + "1FDTE=" + str + "1FACI=52741FACE=C1FACS=A1F3" + hexValue2;
                byte[] buffer = encoder.GetBytes(Input);
                clientStream.Write(buffer, 0, buffer.Length);
                clientStream.Flush();
    ram

    Hi ram,
    The TcpClient class has a constructor that receives an IPEndPoint instance, this is the local EndPoint.
    The IPEndPoint consists of two parts, the IP address and the port to use. you can specify the local port with this parameter.
    IPAddress ipAddress = Dns.GetHostEntry (Dns.GetHostName ()).AddressList[0];
    int port=9999;
    IPEndPoint ipLocalEndPoint = new IPEndPoint(ipAddress, port);
    TcpClient tcpClientA = new TcpClient (ipLocalEndPoint);
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • My Tcp/ip multi-client server is not passing the data string into the flatten to string vi

    I am using labview Multi-connection cleint and server to build my own multi-client server connection.
      The problem i am having is that the data does not get through the flatten to string vi. Would anyone be kind enough to tell me why is that happening? and what I do to fix it.
      Attached code . My goal is to send data to the client via tcp/ip and use the data to perform certain task.
      Thanks a whole lot
    Attachments:
    multiconnection-server.vi ‏39 KB
    multiconnection-client.vi ‏21 KB

    Instead, I decided to upload the code and recent mods I have made to it .
    see attached
    Attachments:
    multiconnection-clienttest.vi ‏43 KB
    multiconnection-servertest.vi ‏21 KB

  • Sending file through TCP/IP

    Hi all,
    I would like to know whether LabVIEW is able to send file through TCP/IP. Can anyone please enlighten me on this. Thank You
    Rgds 

    Hi taytay,
    Of course it is possible !
    Go to function palette >> Communication >> TCP ; I have never used them but here they are.
    Go to Help >> Find examples.. and search for TCP, you'll find example code
    You can also purchase the "internet toolkit" that provide ready to use FTP VIs to send or copy simple/multiple file(s).
    Hope this helps.
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • I'm using UDP Send to send an 1D arry with 3 elements. On the other side I'm using UDP Read to read my 1D arry with 3 elements but they are coming in a string for somereason.

    Using UDP send to send a data across a connection to UDP read data by using a Port and IP. The data I'm sending is 1D array with 3-elements. I'm taking the 1D array on UDP send side and converting to a string before I send out b/c UDP can not read an array. So I'm using "Array to Spreadsheet String" to and sending it.
    On the Other Side I'm using UDP Read to read the data by listing to a port and capturing the data. I'm receving the data but they are in string format instead of 3 spreate elements. So how can I change that to 3 elements instead of string?
    Any help would be grea
    tful,
    Thanks
    Attachments:
    udp_send_data.vi ‏54 KB
    UDP_read_data.vi ‏55 KB

    It is usually easiest to take any data and flatten it to string before sending.
    On the receiving side, use unflatten from string, using the original data type as template.
    You can do this with any kind of data (array of strings, array of numbers, booleans, complicated clusters, etc, etc), see attached code image.
    Flatten and unflatten is very efficient and does not change the data. For example there is no rounding or formatting loss.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    FlattenUnflatten.gif ‏7 KB

  • Looking for .XSD for mail for sending the mail through mail adapter

    Hi Experts,
                      I am looking for .XSD file for sending mail.I am using Mail adapter to send mail to report error occur on creating PO document in my scenario to a specified department's email id.I searched for many blogs but not get any .XSD file for email.Looking for a suugesstion.
    Thanks
    Deepak

    Do you have S -user name and password? If not then never mind, Copy the below XSD, I took it from the link which I gave to you.
    <?xml version="1.0" encoding="utf-8" ?>
    <xs:schema targetNamespace="http://sap.com/xi/XI/Mail/30"
      xmlns:xi="http://sap.com/xi/XI/Mail/30"
      xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="Mail">
        <xs:annotation>
          <xs:documentation>Mail package for XI - Mail Adapter</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Subject" type="xs:string" minOccurs="0"/>
            <xs:element name="From" type="xs:string" minOccurs="0"/>
            <xs:element name="To" type="xs:string" minOccurs="0"/>
            <xs:element name="Reply_To" type="xs:string" minOccurs="0"/>
            <xs:element name="Content_Type" type="xs:string" minOccurs="0"/>
            <xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
            <xs:element name="Message_ID" type="xs:string" minOccurs="0"/>
            <xs:element name="X_Mailer" type="xs:string" minOccurs="0"/>
            <xs:element name="Content" minOccurs="0">
              <xs:annotation>
                <xs:documentation>any type</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="encoding" type="xs:string"/>
        </xs:complexType>
      </xs:element>
      <xs:element name="MailReceipt">
        <xs:annotation>
          <xs:documentation>Mail Receipt for XI - Mail Adaper</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Server" type="xs:string"/>
            <xs:element name="Format" type="xs:string"/>
            <xs:element name="UseMailPackage" type="xs:boolean"/>
            <xs:element name="Encoding" type="xs:string"/>
            <xs:element name="Subject" type="xs:string" minOccurs="0"/>
            <xs:element name="From" type="xs:dateTime" minOccurs="0"/>
            <xs:element name="To" type="xs:string" minOccurs="0"/>
            <xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>

  • I can not get my email to send through my iPad email. The email works for all other options. The error says I need to enter a password in setting, but I have entered the password numerous times to no avail. Any ideas?

    I can not get my email to send through my iPad email. The email works for all other options. The error says I need to enter a password in setting, but I have entered the password numerous times to no avail. Any ideas?

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
     Cheers, Tom

  • Provide simple example for Arbitrary data sending through NI4551(DSA)

    We Converted NI-DSA function palette
    in LabVIEW under Application
    Examples>>Advanced>>Arbitrary Output Example.
    But, We not exactly getting arbitrary wave. Our arbitrary data is correct. I think there is a problem with FFT settings. So Please Provide simple example for Arbitrary data sending through NI4551(DSA)

    Hello Sateesh!
    First, what versions of LabVIEW and NI-DSA are you using.  I have been searching around for the example you are refering too and I am not able to find it.  Are you creating and arb. wave in the frequency domain and then performing an FFT to get it to the time domain?  Next, remember your wave will only be as exact as the AO specs. of the hardware...
    The output conversions occur simultaneously at software-programmable rates from 1.25 to 51.2 kS/s in increments of 47.684 µS/s. The analog output circuitry uses eight-times oversampling interpolators with 64-times oversampling delta-sigma modulators to generate high-quality signals. Software-programmable attenuation of 0, -20, or -40 dB is available on the output channels. The PCI-4451 has excellent amplitude flatness of ±0.2 dB within DC to 23 kHz, and a THD of -90 dB at 1 kHz.
    Now, as far as obtaining other examples If you use the LabVIEW example finder and goto Hardware Input and Output>>Traditional DAQ>>Analog Output.  I would also in the lower right hand corner of the Example Finder select your 4451 this will show you all examples that work with your hardware.  I hope this helps a little but please give me more details we will go from there.   Have a great day!
    Allan S.
    National Instruments

  • IMessage issue: Changed password for my Apple ID this morning and now my iMessage is sending through my email?

    iMessage issue: Changed password for my Apple ID this morning and now my iMessage is sending through my email instead of my number and I haven't been receiving any texts through iMessage! I read the article, followed the steps, and it did not fix the problem. Help?

    Hello!
    On all of these devices, go to: Settings > iCloud and make sure they're updated with the new password. If you're talking about Macs, go to: "System Preferences > iCloud" too.

  • F5 Big IP 4000 Send /Return String for Exchange 2013

    Hi,
    I need to Implement F5 Big IP 4000 and need to set send / return string for Exchange 2013 server for OWA monitoring... Can anyone help me with Exact output String.
    Amit

    Hi,
    In the Send String box enter in GET /owa/healthcheck.htm.  In the
    Receive String box, enter in 200 OK.
    Here is a related article for your reference.
    http://port25guy.com/2013/07/24/how-to-use-managed-availability-in-exchange-2013-with-your-load-balancer/
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make
    sure that you completely understand the risk before retrieving any suggestions from the above link.
    Hope this is helpful to you.
    Best regards,
    Belinda Ma
    TechNet Community Support

  • What is a best app to use for sending text messages/pictures to non iPhone users through my iPad

    What is a best app to use for sending text messages/pictures to non iPhone users through my iPad

    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    How to Receive SMS Messages on an iPad
    http://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.html
    Apps for Texting http://appadvice.com/appguides/show/apps-for-texting
     Cheers, Tom

  • Receiving data through TCP Socket

    Hi all,
    I am trying to receive some data through TCP Socket from the
    server using XMLSocketClass. Ther server is responding with some
    data. But I can't access this data in my application. Pls tell me
    the reasons for not working of handler private function
    dataHandler(event:DataEvent):void .
    =============================================================================
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.collections.ArrayCollection;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.DataEvent;
    import flash.events.IOErrorEvent;
    import flash.net.XMLSocket;
    private var socket:XMLSocket;
    private var nextId:int;
    private var events:ArrayCollection = new ArrayCollection();
    public static var host:String = "34.234.43.97";
    public static var port:Number = 8002;
    public var xml:XML;
    private function connectToServer():void
    socket = new XMLSocket();
    socket.addEventListener(DataEvent.DATA, dataHandler);
    configureListeners(socket);
    socket.connect(host, port);
    //This function is Not working
    private function dataHandler(event:DataEvent):void {
    Alert.show("dataHandler: " + event.data);
    xml = new XML(event.data);
    Alert.show(xml); }
    private function
    configureListeners(dispatcher:IEventDispatcher):void {
    dispatcher.addEventListener(Event.CLOSE, closeHandler);
    dispatcher.addEventListener(Event.CONNECT, connectHandler);
    dispatcher.addEventListener(DataEvent.DATA, dataHandler);
    dispatcher.addEventListener(IOErrorEvent.IO_ERROR,
    ioErrorHandler);
    dispatcher.addEventListener(ProgressEvent.PROGRESS,
    progressHandler);
    dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    securityErrorHandler);
    private function closeHandler(event:Event):void {
    trace("closeHandler: " + event);
    private function ioErrorHandler(event:IOErrorEvent):void {
    trace("ioErrorHandler: " + event);
    private function progressHandler(event:ProgressEvent):void {
    trace("progressHandler loaded:" + event.bytesLoaded + "
    total: " + event.bytesTotal);
    private function
    securityErrorHandler(event:SecurityErrorEvent):void {
    trace("securityErrorHandler: " + event);
    /* private function dataHandler(event:DataEvent):void {
    trace("dataHandler: " + event);
    private function connectHandler(event:Event):void
    var obj:Object = new Object();
    obj.id = nextId++;
    obj.eventName="connect";
    obj.timestamp = new Date().valueOf();
    events.addItem(obj);
    private function sendData():void
    var xmlvalue:String=txtData.text.toString() ;
    var xmlfile:String =
    "<command>SndIns<parameter1>0x06</parameter1><parameter2>0x00</parameter2><parameter3>0x7 1</parameter3><parameter4>0x0F</parameter4><parameter5>0x11</parameter5><parameter6>0xFF</ parameter6></command>";
    socket.send(xmlfile);
    Alert.show(xmlfile);
    ]]>
    </mx:Script>
    <mx:HBox width="80%" horizontalAlign="center">
    <mx:TextInput id="txtData" name=""/>
    <mx:Button id="btnConnect" label="Connect"
    click="connectToServer();btnConnect.enabled = false"/>
    <mx:Button id="btnSend" label="Send Data"
    click="sendData()"/>
    <!--<mx:Button label="getData" id="btnGet"
    click="getData()"/>-->
    </mx:HBox>
    <mx:HBox x="10" y="30" width="100%">
    <mx:DataGrid width="80%" height="100%"
    dataProvider="{xml}">
    <mx:columns>
    <mx:Array>
    <mx:DataGridColumn headerText="Event Name"
    dataField="eventName"/>
    </mx:Array>
    </mx:columns>
    </mx:DataGrid>
    </mx:HBox>
    </mx:Application>

    Hi all,
    I am trying to receive some data through TCP Socket from the
    server using XMLSocketClass. Ther server is responding with some
    data. But I can't access this data in my application. Pls tell me
    the reasons for not working of handler private function
    dataHandler(event:DataEvent):void .
    =============================================================================
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.collections.ArrayCollection;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.DataEvent;
    import flash.events.IOErrorEvent;
    import flash.net.XMLSocket;
    private var socket:XMLSocket;
    private var nextId:int;
    private var events:ArrayCollection = new ArrayCollection();
    public static var host:String = "34.234.43.97";
    public static var port:Number = 8002;
    public var xml:XML;
    private function connectToServer():void
    socket = new XMLSocket();
    socket.addEventListener(DataEvent.DATA, dataHandler);
    configureListeners(socket);
    socket.connect(host, port);
    //This function is Not working
    private function dataHandler(event:DataEvent):void {
    Alert.show("dataHandler: " + event.data);
    xml = new XML(event.data);
    Alert.show(xml); }
    private function
    configureListeners(dispatcher:IEventDispatcher):void {
    dispatcher.addEventListener(Event.CLOSE, closeHandler);
    dispatcher.addEventListener(Event.CONNECT, connectHandler);
    dispatcher.addEventListener(DataEvent.DATA, dataHandler);
    dispatcher.addEventListener(IOErrorEvent.IO_ERROR,
    ioErrorHandler);
    dispatcher.addEventListener(ProgressEvent.PROGRESS,
    progressHandler);
    dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    securityErrorHandler);
    private function closeHandler(event:Event):void {
    trace("closeHandler: " + event);
    private function ioErrorHandler(event:IOErrorEvent):void {
    trace("ioErrorHandler: " + event);
    private function progressHandler(event:ProgressEvent):void {
    trace("progressHandler loaded:" + event.bytesLoaded + "
    total: " + event.bytesTotal);
    private function
    securityErrorHandler(event:SecurityErrorEvent):void {
    trace("securityErrorHandler: " + event);
    /* private function dataHandler(event:DataEvent):void {
    trace("dataHandler: " + event);
    private function connectHandler(event:Event):void
    var obj:Object = new Object();
    obj.id = nextId++;
    obj.eventName="connect";
    obj.timestamp = new Date().valueOf();
    events.addItem(obj);
    private function sendData():void
    var xmlvalue:String=txtData.text.toString() ;
    var xmlfile:String =
    "<command>SndIns<parameter1>0x06</parameter1><parameter2>0x00</parameter2><parameter3>0x7 1</parameter3><parameter4>0x0F</parameter4><parameter5>0x11</parameter5><parameter6>0xFF</ parameter6></command>";
    socket.send(xmlfile);
    Alert.show(xmlfile);
    ]]>
    </mx:Script>
    <mx:HBox width="80%" horizontalAlign="center">
    <mx:TextInput id="txtData" name=""/>
    <mx:Button id="btnConnect" label="Connect"
    click="connectToServer();btnConnect.enabled = false"/>
    <mx:Button id="btnSend" label="Send Data"
    click="sendData()"/>
    <!--<mx:Button label="getData" id="btnGet"
    click="getData()"/>-->
    </mx:HBox>
    <mx:HBox x="10" y="30" width="100%">
    <mx:DataGrid width="80%" height="100%"
    dataProvider="{xml}">
    <mx:columns>
    <mx:Array>
    <mx:DataGridColumn headerText="Event Name"
    dataField="eventName"/>
    </mx:Array>
    </mx:columns>
    </mx:DataGrid>
    </mx:HBox>
    </mx:Application>

  • Communicate a PC with GPRS module through TCP/IP

     I want to exchange data between a PC and a GPRS module.
    One problem i have is that my PC is on a local network and the IP my computer has, is the local IP. The server has a different IP through we connect to the internet. Which IP I must use and how?
    I know almost nothing about TCP/IP (i have use the Labview TCP/IP functions successfully at our local network) and i would like to ask for informations. I know it is a little irrelevant with Labview, but as there are many users who uses GPRS modules, i would like informations about how to connect a GPRS module through TCP/IP. Simple examples will be the best.
    Any informations, links, recommended books, will be highly appreciated.
    Thanks

    Pnt wrote:
    Thanks for answering Rolf.
    To be more clear : i have a GSM/GPRS module (like the well known Wavecom's modules (or Falcom, Telit...)). They accept AT commands and they have a D-sub-9 serial connector. They connect to serial port of the PC. I want to connect to the internet with TCP/IP (by sending AT commands). But i can not find any manual..! The module have some commands for TCP/IP but no explanation or examples. Those modems have no drivers, they accept only AT commands.
    For example i have to set APN and IP Address which i don't understant what i should write to. It is independant of Labview but i do not know where to look for information.
    If someone knows anything similar please reply.
    In that case what I wrote applies fully to you. You do not want to communicate with the modem from LabVIEW itself. You want to use TCP/IP and that means using the Windows socket library that the LabVIEW TCP/IP functions access. The modem then needs to be installed in the Windows system as a dialup adapter. There is really no other way to use a modem, GPRS or not, as TCP/IP communication path. Trying to implement TCP/IP,SLIP/PPP and all that in LabVIEW would be a many man year project with lots of problems and the likely chance that it will never fully work.
    So get your modem to work under Windows so that you can use your browser to view some internet pages and once that works you can also use the LabVIEW TCP/IP functions to communicate with whatever is there.
    Direct communication to the modem through AT commands would only make sense if you wanted to access the SMS facilities in that modem instead. Even that is not exactly trivial as I can attest to, especially if you want to make it work with more than one GSM modem type.
    Your modem manufacturer should be able to give you the necessary modem initialisation string to put your modem into the right GPRS mode and your mobile phone network provider should be able to tell you the dialing number to fill in the dialup configuration. No need to do anything else!
    As Wiebe explained rasdial.exe would then make it possible to connect to the internet under LabVIEW control.
    All in all it's doable but I have spent many hours to get it working last time I did. A few of those were spent waiting on the line for the support persons of the mobile network provider to answer my calls and then playing the ping pong game to get a person that actually knows what a computer is and that it's actually possible to connect a modem to it to use their services.
    Rolf Kalbermatter
    Message Edited by rolfk on 01-09-2008 06:06 PM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for