LwIP + FreeRTOS + Zynq zc702 - erroneous data byte offset when sending UDP from Zynq

Hello,
I'm sending UDP successfully from my zc702 board to a PC.  However if I send UDP datagrams larger than the Ethernet MTU, thus requiring lwIP to fragment my UDP datagram into multiple Ethernet frames, I get a mysterious data offset in received data seen in Wireshark.  The offset is either 8,16,24,32,40,48, or 56 bytes (8 byte increments).  The offset changes whenver I change code - even unrelated code in other FreeRTOS threads, but the offset is always one of those numbers.  For now as a hack I'm adding the required offset to the data payload pointer I pass to the lwip_sendto() function, which works until I change any code, then I have to use a different offset.
I've increased stack and heap size but no effect.  Again, it only happens when I send > Ethernet MTU (around 1500) bytes.
Has anyone seen this behaviour?
Thanks,
Randy

This reply is coming extremely late, so this is for the benefit of anyone else who is having a problem with IP fragmentation.  I was able to fix this by modifying the pbuf.c file in the lwip140_v1_06_a source code.  Just remove the call to the LWIP_MEM_ALIGN macro on line 379 -- delete the call but leave the rest of the line alone.  It was starting each new fragment at a 64-byte aligned location.  This caused the second fragment to start at the wrong location which then caused all of the other fragments to start at the wrong location.  I think what they meant to do was to align the first fragment but leave the rest alone.

Similar Messages

  • Retaining date/time stamp when copying files from a backup network drive

    How do I retain the date/time stamp when copying files from a backup such as a external drive or a network drive?

    i don't trust MA at all. known to create a lot of problems.
    instead, see the green box in this user tip.

  • Data network errors when manually switching from 3g to 2g

    Hi everyone,
    Apologies if this has been posted before but im running out of ideas! - Got my iphone 4 a couple of weeks ago and have noticed a rather irritating problem with it. For some reason, if i manually switch from 3g to 2g the data connection drops.. I get 'cannot activate cellular data network' errors and i have to toggle airplane mode on/off to reset the connection. Is this a network issue? - I live in London and am with Vodafone... Their tech support are useless as all they suggest is resetting the phone or getting it replaced. Its my third handset in 2 weeks and im getting close to calling it a day and sending the phone back to Apple. Anyone out there in a similar situation? - Advice??

    Bump
    So no-one has suffered this issue? - Not even fellow vodafone uk users?

  • Data gets cleared when i switch from one tab to other in SubTabLayout

    Hi,
    I have created a PageLayout with with region style SubTabLayout in it.
    I have created two tabs for this SubTabLayout which is using same VO.
    I have few MessageTextInputs type items on both the tabs.
    After entering data into these items of one tab, go to another tab and come back to first tab, data i entered in items on first tab get cleared.
    Can you please help me what setting should i have to do to keep the data in those items even i keep switching the tabs.
    Thanks
    Pavan

    Hi Sumit,
    can you please make me clear.
    my ProcessRequest has the following code.
    EmployeeAMImpl am = (EmployeeAMImpl)pageContext.getApplicationModule(webBean);
    String canid = pageContext.getParameter("param");
    EmpDetailsVOImpl vo= am.getEmpDetailsVO1();
    vo.setWhereClauseParams(null);
    vo.setWhereClauseParam(0,canid);
    vo.setMaxFetchSize(-1);
    vo.executeQuery();
    thanks
    Pavan

  • Date formatting issue when sending excel file via mail

    hello People ,
    I am facing date issue .
    I have inetrnal format of date as yyyymmdd.
    I am converting it into  YYYY-MM-DD.
    CONCATENATE gs_output-end_date(4)
                        gs_output-end_date+4(2)
                        gs_output-end_date+6(2)
                        INTO lv_date_to SEPARATED BY gc_seperator. " gc_separator = '-'.
            gs_output-end_date = lv_date_to.
    I am writing this date and sending an excel file via MAIL . I get date result as MM/DD/YYYY always.
    Now if i pass in YYYY.MM.DD and used the same code where gc_separtor = '.'.
    I get output as YYYY.MM.DD.
    Can any one give me an idea why in format YYYY-MM-DD it is getting overwritten but for yyyy.mm.dd it gives me as yyyy.mm.dd?
    Regards,
    Abhi..
    Edited by: Thomas Zloch on Jul 11, 2011 2:30 PM - subject enhanced

    Thanks , Rohit ,
    I have change my date format in SU01 settings .
    It is now made to [ YYYY-MM-DD] but still '-' is replaced by MM/DD/YYYY.
    Also note that when i format in the following way
       CONCATENATE gs_output-rdadate(4)
                        gs_output-rdadate+4(2)
                        gs_output-rdadate+6(2)
                        INTO lv_rda_date.
    instead of
       CONCATENATE gs_output-rdadate(4)
                        gs_output-rdadate+4(2)
                        gs_output-rdadate+6(2)
                        INTO lv_rda_date sepearted by '-'.
    I get output as YYYYMMDD.
    Regards,
    Abhishek.

  • A SWF Tag of type 75 contains 10 bytes of unread data at the end of the tag at byte offset 1762

    When building with Flash builder 4.7 I get two warnings I can't seem to track down.
    Those are
    "A SWF Tag of type 75 contains 10 bytes of unread data at the end of the tag at byte offset 1762" The other
    "A SWF Tag of type 75 contains 5464 bytes of unread data at the end of the tag at byte offset 797163"
    No file is pointed out or anything else to help.
    Any ideas what to look for, why this is a warning, possible implications & what to do?

    This is one output after running a variation of the script, but I get this   <!-- unknown tag=63 length=16 --> on all of the libraries
    Here is a link to the swc for further inspection https://dl.dropbox.com/u/154782/GoCoUtil.swc
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Parsing swf file:/Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.345990/AIRSDK/bin/GoCoUtil.swc.swf -->
    <swf xmlns="http://macromedia/2003/swfx" version="14" framerate="24.0" size="10000x7500" compressed="true" >
      <!-- framecount=1 length=12927 -->
      <FileAttributes useDirectBlit="false" useGPU="false" hasMetadata="true" actionScript3="true" suppressCrossDomainCaching="false" swfRelativeUrls="false" useNetwork="true"/>
      <Metadata>
            <![CDATA[<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'><rdf:Description rdf:about='' xmlns:dc='http://purl.org/dc/elements/1.1'><dc:format>application/x-shockwave-flash</dc:format><dc:title>Adobe Flex 4 Application</dc:title><dc:description>http://www.adobe.com/products/flex</dc:description><dc:publisher>unknown</dc:publisher><dc:creator>unknown</dc:creator><dc:l anguage>EN</dc:language><dc:date>Sep 20, 2012</dc:date></rdf:Description></rdf:RDF>
    ]]>
      </Metadata>
      <EnableDebugger2 password="NO-PASSWORD" reserved="0x1975"/>
      <!-- unknown tag=63 length=16 -->
      <ScriptLimits scriptRecursionLimit="1000" scriptTimeLimit="60"/>
      <SetBackgroundColor color="#FFFFFF"/>
      <ProductInfo product="FLEX" edition="NONE" version="4.6" build="23201" compileDate="9/20/12 12:41 PM"/>
      <DoABC name="com/gogogic/common/util/interfaces/IParsableList"/>
      <DoABC name="_5655ee2c6f5749799717c751ad05c55879a42026a02d38e5e206aab452dbcc6f_flash_display_Spr ite"/>
      <DoABC name="com/gogogic/common/util/ShallowCloner"/>
      <DoABC name="com/gogogic/common/util/GoCoDataUtil"/>
      <DoABC name="com/gogogic/common/util/PropertyParseError"/>
      <DoABC name="com/gogogic/common/util/interfaces/IDataChange"/>
      <DoABC name="com/gogogic/common/util/vo/DataChangeVO"/>
      <DoABC name="com/gogogic/common/util/GoCoUtilVersion"/>
      <DoABC name="com/gogogic/common/util/event/DataChangeEvent"/>
      <DoABC name="com/gogogic/common/util/PropertyParser"/>
      <SymbolClass>
        <Symbol idref="0" className="_5655ee2c6f5749799717c751ad05c55879a42026a02d38e5e206aab452dbcc6f_flash_displa y_Sprite" />
      </SymbolClass>
      <ShowFrame/>
    </swf>

  • Reading 21576 bytes of data at offset 3 in a buffer of total size 114

    Logs claim it's a 'buffer overflow' - [2015-Jan-05 22:32:41] RDP (0): Exception caught: BufferOverflowException in file '../../gryps/misc/containers/flexbuffer.h' at line 421
    Specifics: 
    attempting to connect to virtual box running on localhost:55985
    OSX: 10.9.5
    RDP: 8.0.12
    VirtualBox: 4.3.20
    [2015-Jan-05 22:32:41] RDP (0): --- BEGIN INTERFACE LIST ---
    [2015-Jan-05 22:32:41] RDP (0): lo0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): lo0 af=30 (AF_INET6) addr=::1 netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
    [2015-Jan-05 22:32:41] RDP (0): lo0 af=2 (AF_INET) addr=127.0.0.1 netmask=255.0.0.0
    [2015-Jan-05 22:32:41] RDP (0): lo0 af=30 (AF_INET6) addr=fe80::1%lo0 netmask=ffff:ffff:ffff:ffff::
    [2015-Jan-05 22:32:41] RDP (0): gif0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): stf0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): en0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): en0 af=30 (AF_INET6) addr=fe80::2acf:e9ff:fe1a:cc0d%en0 netmask=ffff:ffff:ffff:ffff::
    [2015-Jan-05 22:32:41] RDP (0): en0 af=2 (AF_INET) addr=192.168.10.108 netmask=255.255.255.0
    [2015-Jan-05 22:32:41] RDP (0): en4 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): en5 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): bridge0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): p2p0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): vboxnet0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): vboxnet1 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): vboxnet2 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): vboxnet3 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): vboxnet4 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): --- END INTERFACE LIST ---
    [2015-Jan-05 22:32:41] RDP (0): correlation id: 10b4ea14-964f-83df-bf55-4ff43fb10000
    [2015-Jan-05 22:32:41] RDP (0): Resolved 'localhost' to '127.0.0.1' using NameResolveMethod_DNS(1)
    [2015-Jan-05 22:32:41] RDP (0): Resolved 'localhost' to '::1' using NameResolveMethod_DNS(1)
    [2015-Jan-05 22:32:41] RDP (0): Resolved 'localhost' to 'fe80:1::1' using NameResolveMethod_DNS(1)
    [2015-Jan-05 22:32:41] RDP (0): Exception caught: BufferOverflowException in file '../../gryps/misc/containers/flexbuffer.h' at line 421
    User Message : Reading 12112 bytes of data at offset 3 in a buffer of total size 82
    [2015-Jan-05 22:32:41] RDP (0): correlation id: 10b4ea14-964f-83df-bf55-4ff43fb10000
    [2015-Jan-05 22:32:41] RDP (0): Resolved 'localhost' to '127.0.0.1' using NameResolveMethod_DNS(1)
    [2015-Jan-05 22:32:41] RDP (0): Resolved 'localhost' to '::1' using NameResolveMethod_DNS(1)
    [2015-Jan-05 22:32:41] RDP (0): Resolved 'localhost' to 'fe80:1::1' using NameResolveMethod_DNS(1)
    [2015-Jan-05 22:32:41] RDP (0): Exception caught: BufferOverflowException in file '../../gryps/misc/containers/flexbuffer.h' at line 421
    User Message : Reading 21576 bytes of data at offset 3 in a buffer of total size 114
    [2015-Jan-05 22:32:41] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2015-Jan-05 22:32:41] RDP (0): Protocol state changed to: ProtocolNegotiatingCredentials(2)
    [2015-Jan-05 22:32:41] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2015-Jan-05 22:32:41] RDP (0): Protocol state changed to: ProtocolNegotiatingCredentials(2)
    [2015-Jan-05 22:32:41] RDP (0): Protocol state changed to: ProtocolDisconnecting(7)
    [2015-Jan-05 22:32:41] RDP (0): Protocol state changed to: ProtocolDisconnected(8)
    [2015-Jan-05 22:32:41] RDP (0): ------ END ACTIVE CONNECTION ------
    ps: the editor for posting on this forum is absolutely the most terrible I had ever seen.

    Hi,
    Please let us know which OS you are trying to connect. Because if you are running Windows 8 and not Windows 8 Pro then you won't be able to connect to your PC from any device. Windows 8 can't host an RDP session.  
    Remote Desktop Client on Mac: FAQ
    http://technet.microsoft.com/en-in/library/dn473006.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • XML Element Byte Offset - Help!

    Hello. I have an xml file of the format:
    <TAG>
    <SUB>
    <DATA>DDDD</DATA>
    <DATA>DDDD</DATA>
    </SUB>
    <SUB>
    <DATA>DDDD</DATA>
    <DATA>DDDD</DATA>
    </SUB>
    </TAG>
    I need to find the byte offset for each <SUB> tag. Any suggestions?

    What I need is to find the byte offset of each SUB element in the file. When I write this piece of XML out, I need to know the position of each SUB element in that file so I can reference each one individually later.

  • Unexpected XMP_Error Invalid UTF-8 data byte

    Hi all,
    I'm using the XMP SDK 4.4.2 and with it the sample application "xmpcommands". This one is extremely helpful - but it fails when using files that have Umlauts(öäü) in the name. When calling, i.e.
    xmpcommand.exe get c:\Fileöäü.jpg
    the command returns:
    Unexpected XMP_Error Invalid UTF-8 data byte
    As soon as I remove the umlauts all is fine. I tracked to problem down to the function ToUTF16Native called from GetFileMode in xmpfiles_impl.cpp:
        FileMode GetFileMode ( const char * path )
            std::string utf16;    // GetFileAttributes wants native UTF-16.
            ToUTF16Native ( (UTF8Unit*)path, strlen(path), &utf16 );
            utf16.append ( 2, '\0' );    // Make sure there are at least 2 final zero bytes.
    It seems that the file path is NOT UTF8 encoded. This very likely as I'm working on Windows and there the command line encoding is ANSI.
    Is there something special I need to set when compiling on Windows?
    Does anyone have a solution for this?
    [UPDATE]
    I've converted the file path to UTF8 and now this error does not occure BUT now I get the error, that the file was not found! Grrr.....
    Cheers & THANKS,
    Jens
    www.finalcandidate.com

    Hi,
    Input to OpenFile() function needs to be a UTF8 string. "flówér.jpg" is in WinANSI, and needs to be converted to UTF8 string so that OpenFile can correctly find the file.
    For example, on Windows OS, you need to define a function as:
    void WinEncodingToUTF8 ( UINT codePage, const XMP_Uns8 * hostPtr, size_t hostLen, std::string * utf8 )
    int utf16Len = MultiByteToWideChar ( codePage, 0, (LPCSTR)hostPtr, (int)hostLen, 0, 0 );
    std::vector<UTF16Unit> utf16 ( utf16Len, 0 );   // MultiByteToWideChar returns native UTF-16.
    (void) MultiByteToWideChar ( codePage, 0, (LPCSTR)hostPtr, (int)hostLen, (LPWSTR)&utf16[0], utf16Len );
    FromUTF16Native ( &utf16[0], (int)utf16Len, utf8 );
    This function requires a function which is present in the file "UnicodeConversions.cpp". So you need to include a file "source/UnicodeConversions.hpp" in your project.
    The sample usage could be:
    std::string outputPath;
    WinEncodingToUTF8( 1252, (const XMP_Uns8 *)inputFile.c_str(), inputFile.size(), &outputPath );

  • Deserializing error -  Byte-Offset in XML

    Hi SAP gurus,
    I have created an ECC proxywith it corresponding logical port but when I test it using tcode SE80 I get the following error :
    An error occurred when deserializing in the simple transformation program /1SAI/TXJE038DFBE1E36238B3600, Byte-Offset in XML: 671 , ST: /1SAI/TXJE038DFBE1E36238B3600, Line:
    (When I test it using SOAPUI it runs ok)
    I have search a solution but I haven't found any. I only found the next two threads but none of them is answered.
    Can anybody help me please. I don't know the cause of this error.
    Thanks in advance and have a nice day.

    I have found the next threads but are not answered :
    Byte-Offset in XML
    https://scn.sap.com/thread/256405
    thanks

  • Error 100 File contains erroneous data. Normally for user data files.

    Hello.  We have a LabVIEW program that reads in test steps and data in order to execute a test sequence.  Recently we had to apply Retina and Gold Disk security patches in accordance with DOD security policies.  Now we are getting the following error:
    Error 100
    LabVIEW: File contains erroneous data.  Normally for user data files.
    We have not changed the code or files that the program is reading in.  My guess would be it is some sort of permission issue.  However, we have given the user modify permission to the entire C drive, and still get this error.  Does anyone have any ideas on what could be causing it?  Thanks!

    Do you have any backup copies of the files, by any chance? Is it possible the files were modified somehow (perhaps something extra was added when the new security measures were implemented)?
    How is the file being accessed? Is it occurring on the local machine, or are the files accessed from a remote location?
    Caleb Harris
    National Instruments | Mechanical Engineer | http://www.ni.com/support

  • Error code 100 - erroneous data

    Hi everybody,
    When I try to read a Labview measurement file I sometimes get the follwing error: 'Error 100 occurred at Read LabVIEW Measurement File -> File_Convert.vi. Possible reason: LabVIEW: File contains erroneous data. Normally for user data files.'
    However I have no idea what is causing this error and what I could do to resolve this problem. Should I look for a certain character in the LVM-file and remove it? For an example of a VI and a file that causes this error look in this discussion thread: http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000087CF0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    Thanks in advance for your help.
    Paul Perreijn

    I also have this issue and its rather disappoining to see that no one has returned a solution or even tried. 
    In my case I have Created an initial values array using math script and then output the values to a write measurement file; later on I use Read measurement file pointing at the same location to retrieve initial values and this is the point in which i am getting the error 
    Attachments:
    Stu_mydaq_labviewscript.vi ‏12 KB
    2features(subvi).vi ‏158 KB
    aquireandfilter(SubVI).vi ‏266 KB

  • Accessing bits of the data bytes and enable and disabling

    Hello i want to send data byte to the CAN and enable and disable one of its bits how to do?

    Hey Uday,
    I am unsure of what CAN device you are using, as well as what type of programming language you would like to develop in. With that being said I will assume one of our PCI CAN cards and that you will be using LabVIEW to program. Please take a look at the NI-CAN manual for help on programming your CAN card, specifically with reference to chapter 7.
    Thanks again and have a great day!
    Regards,
    Nicholas K
    National Instruments
    Applications Engineer

  • SAPGUI Stops responding:  Erroneous data came from server

    Hi Administrtors,
    I had been using SAPGUI 7.10 PL 14. When accessing to remote APP Server, the GUI stops responding. I have applied the new PL 15, and changed editor to 'New'. Now, it stops responding with a message "Erroneous data from server. SAP GUI will shutdown". With Old error, this warning is supressed, but there is no difference.
    Please help me on this.
    Nikhil Bose

    Hi Nikhil,
    Try to uninstall and delete SAP folder from your c:\program files .. where gui is installed. Make sure to save your saplogon.ini. Then do a fresh install.
    Also, see if you are not missing hosts file and all sap entries are there.
    Thanks,

  • Byte-offset

    how to get the byte offset of a text of a html file?

    how to get the byte offset of a text of a html file?By counting the characters to the text position and calculating the bytes from those, depending on the encoding. You can do the first part using string's indexOf().
    But I somewhat feel that you don't really care about the bytes, but the chars.

Maybe you are looking for

  • Display XML Idoc for people who do not understand XML

    Hi, does anybody know an easy way to make an Idoc XML readable for people who do not have any knowledge about XML? This request comes from our sales department. We store incoming ORDERS.ORDERS05 Idocs from customers in XML format on a file server bef

  • Restricting the varaibale by sign in the definition

    Hello Gurus, In a report for Aging by customer, I see that Debit/credit amount restricted by Net due date. The net due date is attached with a variable 0P_KETDAT. But the variable definition has > sign in the definition than =. How is this done. Than

  • How can I add folders to mail, using Hotmail?

    So, I just registered my hotmail to sync, but it only shows the inbox folder. I would like it to work just like it does with my iphone 4s or iPad 3 (all my registered mails show the original folders of the mails). I have already tried using Microsft

  • Log invalid/valid login attempts into a Table

    Hi, I need to log all invalid / valid login attempts into the Oracle DB into a Table in the DB. I am using forms front-end. What is the best approach to achieve this ? Thanks s

  • Link digital and analog signal?

    Hi, I am trying to "link" a couple of analog signals to a dital signal. I have a torque transducer with a integral quadrature encoder.  I am also monitoring a couple of other analog signals. The 3 analog signals are being monitored through simultaneo