Hi, I'm using the MC9S12NE64 with the Freescale version of OpenTCP and I'm having some problems the the tcp/ip-stack. It sometimes doesn't ACK received data packets, which results in retransmissions. The problem doesen't seem to be related to high volume traffic all, tough the problem becomes more acute when a lot of data is being received and transmitted. Is someone using this tcp/ip-stack and having the same problems as me? I would also be interested in other peoples experiences with OpenTCP. Best Wishes Johnny Karlsson
MC9S12NE64
Started by ●June 8, 2005
Reply by ●June 8, 20052005-06-08
If you cannot resolve your problem, you may want to check out CMX at www.cmx.com. CMX offers a small TCP/IP stack called CMX-MicroNet that works quite well on the MC9S12NE64 and is fully supported, etc. A free evaluation version of the software for this chip can be downloaded from the CMX website, as well.
Reply by ●June 9, 20052005-06-09
<embeddedsys999@hotmail.com> wrote in message news:1118237285.864533.108910@f14g2000cwb.googlegroups.com...> If you cannot resolve your problem, you may want to check out CMX at > www.cmx.com. CMX offers a small TCP/IP stack called CMX-MicroNet that > works quite well on the MC9S12NE64 and is fully supported, etc. A free > evaluation version of the software for this chip can be downloaded from > the CMX website, as well.Mine is running in Uip.... but only 7Kb/S from MMC card for each conenction :( but it kan handle 10 connections a 7Kb/s..... (caused by windowze is quite slow to ack) Kasper
Reply by ●June 10, 20052005-06-10
"Repzak" <repzakGED@hotmail.com> wrote in message news:<42a877c0$0$18650$14726298@news.sunsite.dk>...> <embeddedsys999@hotmail.com> wrote in message > news:1118237285.864533.108910@f14g2000cwb.googlegroups.com... > > If you cannot resolve your problem, you may want to check out CMX at > > www.cmx.com. CMX offers a small TCP/IP stack called CMX-MicroNet that > > works quite well on the MC9S12NE64 and is fully supported, etc. A free > > evaluation version of the software for this chip can be downloaded from > > the CMX website, as well. > > > Mine is running in Uip.... > > but only 7Kb/S from MMC card for each conenction :( > > but it kan handle 10 connections a 7Kb/s..... > (caused by windowze is quite slow to ack) > > KasperI found the the problem now, it was a bug in OpenTCP, i sent a patch to the maintainer of Freescale OpenTCP so hopefully the fix will be integrated in the next release. 7Kb/S seems really slow if your using the MC9212NE64, i can't give you a speed mesurement for OpenTCP but it seems faster then that.
Reply by ●June 10, 20052005-06-10
johnny.karlsson@gmail.com (Johnny Karlsson) writes:> I found the the problem now, it was a bug in OpenTCP, i sent a patch > to the maintainer of Freescale OpenTCP so hopefully the fix will be > integrated in the next release.If it's a reasonably small patch, could you just post it here for the rest of us? Thanks! Eric
Reply by ●June 10, 20052005-06-10
Could you please explain what was the problem and how to fix it? that would be very helpful for us that are working with OpenTCP on NE64. Thanks
Reply by ●June 13, 20052005-06-13
"ReneT" <Rene.Trenado@Embeddia.com> wrote in message news:<1118426888.066207.318380@g43g2000cwa.googlegroups.com>...> Could you please explain what was the problem and how to fix it? that > would be very helpful for us that are working with OpenTCP on NE64. > > > ThanksOk, i'll try and exlain it here, i could make a patch if you want me to. This applies to the latest Freescale OpenTCP(FSOTCP_1-0.tgz) release. In the tcp.c, function process_tcp_in(), line 1335 we have this return statement. "return(0); //jpw added per steve testing". This return statement is used when a ack is received when we are in Connected mode. The problem with that is if the received package contains both data and ack then the data gets discarded. So removing the line "return(0); //jpw added per steve testing" solves the problem. This does cause the possibility that a DATA event in the event handler function may happen even when there is no data. But i guess that it should be possible to recieve empty data packages. If not then it easy to check before issuing the data event if the len variable is bigger than zero. //Johnny
Reply by ●July 14, 20052005-07-14
>Hi, I'm using the MC9S12NE64 with the Freescale version of OpenTCP and >I'm having some problems the the tcp/ip-stack. It sometimes doesn't >ACK received data packets, which results in retransmissions. The >problem doesen't seem to be related to high volume traffic all, tough >the problem becomes more acute when a lot of data is being received >and transmitted. Is someone using this tcp/ip-stack and having the >same problems as me? I would also be interested in other peoples >experiences with OpenTCP. > >Best Wishes > >Johnny Karlsson >Hi, I'm also using the MC9S12NE64 with the OpenTCP from Freescale and I' haveing some Problems with the ACK. It sometimes ACK received data with a old sequence number and therefore there are a lot of retransmissions. Th problem is independent from traffic. It seems that soc->receive_next wil not be incremented correctly. Does someone know about the problem? Best Regards, Florian Eibensteiner This message was sent using the comp.arch.embedded web interface o www.EmbeddedRelated.com
Reply by ●July 29, 20052005-07-29
florian skrev:> >Hi, I'm using the MC9S12NE64 with the Freescale version of OpenTCP and > >I'm having some problems the the tcp/ip-stack. It sometimes doesn't > >ACK received data packets, which results in retransmissions. The > >problem doesen't seem to be related to high volume traffic all, tough > >the problem becomes more acute when a lot of data is being received > >and transmitted. Is someone using this tcp/ip-stack and having the > >same problems as me? I would also be interested in other peoples > >experiences with OpenTCP. > > > >Best Wishes > > > >Johnny Karlsson > > > > Hi, I'm also using the MC9S12NE64 with the OpenTCP from Freescale and I'm > haveing some Problems with the ACK. It sometimes ACK received data with an > old sequence number and therefore there are a lot of retransmissions. The > problem is independent from traffic. It seems that soc->receive_next will > not be incremented correctly. > > Does someone know about the problem? > > Best Regards, > > Florian Eibensteiner > > > > > > This message was sent using the comp.arch.embedded web interface on > www.EmbeddedRelated.comHi, this could be related the the bug i reported. Please try the recommended solution i posted. If that doesn't work the perhaps your could post some more detailed information about the problem. Best Regards Johnny Karlsson
Reply by ●August 1, 20052005-08-01
> >florian skrev: > >> >Hi, I'm using the MC9S12NE64 with the Freescale version of OpenTCand>> >I'm having some problems the the tcp/ip-stack. It sometimes doesn't >> >ACK received data packets, which results in retransmissions. The >> >problem doesen't seem to be related to high volume traffic all, tough >> >the problem becomes more acute when a lot of data is being received >> >and transmitted. Is someone using this tcp/ip-stack and having the >> >same problems as me? I would also be interested in other peoples >> >experiences with OpenTCP. >> > >> >Best Wishes >> > >> >Johnny Karlsson >> > >> >> Hi, I'm also using the MC9S12NE64 with the OpenTCP from Freescale anI'm>> haveing some Problems with the ACK. It sometimes ACK received data witan>> old sequence number and therefore there are a lot of retransmissionsThe>> problem is independent from traffic. It seems that soc->receive_nexwill>> not be incremented correctly. >> >> Does someone know about the problem? >> >> Best Regards, >> >> Florian Eibensteiner >> >> >> >> >> >> This message was sent using the comp.arch.embedded web interface on >> www.EmbeddedRelated.com > >Hi, this could be related the the bug i reported. Please try the >recommended solution i posted. If that doesn't work the perhaps your >could post some more detailed information about the problem. > >Best Regards > >Johnny Karlsson > >Hi, i have removed that statement but it doesn't help. Your patch enable receiving data packets without the PSH flag, but the software on the p always sets this flag. As i mentioned before, soc->receive_next seems to be false. Every secon or third packet is retransmitted because sequence number check (in tcp. line 1340) fails. I used the original FSOTCP_1.0, therefore the problem must be in ever application where MC9S12NE64 is used as client. Best Regards Florian Eibensteiner This message was sent using the comp.arch.embedded web interface o www.EmbeddedRelated.com