AnsweredAssumed Answered

Setting up RTCS for FRDM64KF gateway pourposes and PPP

Question asked by Tiago Germano on Apr 9, 2015
Latest reply on Apr 16, 2015 by Radek Sestak



I´m using the FRDMK64F kit to test the firmware while the PCB is being developed.

The final pourpose if to create a Gateway with a 3G module.


I´m using MQX 4.1 and RTCS, using the KDS IDE.


In my application, I´m redirecting IP packets from the Ethernet to the PPP channel in the serial.

The PPP in serial is already working. I have a 3G modem connected in it and I´m able to establish a connection to the mobile network without problems.


My MK64F will be used as a gateway.


I have some issues to get reply from the Internet for a host request in the Ethernet


2 cases:


Case A)

In this case, I enabled the NAT. Now I´m able to get replies for IP packets from the Ethernet host to the Internet via the PPP channel, but, there is a problem:

- With NAT enabled, the host in the Ethernet can PING a address in the Internet and also some telnet connections are possible too.

- But, when I try to open a HTTP connection, it does not work. I see some replies in the PPP channel. I´m using also a ethernet sniffer where I can see that there are problems with "fragment packets".


So, by looking at the MQX_RTCS_USER_GUIDE.pdf I see that this is really a limitation when using NAT. It is written there.


Case B)

* Withou NAT enabled.

- I think I do not need to use NAT. I just enabled NAT (in case A) bacause I could not get a reply from the internet even for a PING sent from the Ethernet Host. I wonder if the gateway protocols work well, like EGP or GGP or RIP, and if this could be the reason for the reply from the internet is not coming back to my PING request from the Ethernet host. I see that no EGP, GGP or other gateway protocol is coming out throught the PPP channel. May be there is something missing in my setup of the RTCS library.


Do you have any suggestions for the case A or case B? I think case B is just a matter of setting up the RTCS correctly, but I did not find what to do and not sure if the RCTS support this GGP or EGP protocols.


I tried to use



without success so far.


Any help is very welcome.


Thanks in advance,