PPP connection with GPRS modem and FRDM-K64F

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PPP connection with GPRS modem and FRDM-K64F

1,101 Views
darshan_shah1
Contributor II

Hi,

Is there any guide or example for establishing ppp connection with FRDM-K64F and GPRS modem (BG96).

I have read some of posts GPRS demo - FRDM-K64F vs MQX 4.2 vs BGS2T modem - working now  yet I dont find example "rtcs_gprs_twrk60n512" as written in the link.

I also have seen ppp related functions in frdmk64f_se_SE05x_cloud_azure example in lwip stack yet I am not able to clearly understand how to use it.

Please guide me.

Tags (3)
0 Kudos
5 Replies

859 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Darsan:

PPP connection with GPRS is supported in MQX 4.2.

Freescale_MQX_4_2\rtcs\examples\gprs\build\iar\rtcs_gprs_twrk60n512

Unfortunately, MQX 4.x is no longer available now, MQX v5 is a continuation of MQX classic product under low-cost commercial licensing terms.   Please refer to below link for more details

MQX™ v5 Software Solutions | NXP 

Regards

Daniel

0 Kudos

859 Views
darshan_shah1
Contributor II

Hi,

I am able to see ppp guide in doc/lwip/doc/ppp.txt. What is this used for?

Is really PPP support not without MQX™ v5 Software Solutions 

0 Kudos

859 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Darshan:

This doc is from lwip develop team, it introduces PPP interface for lwip.

You can refer to it  for your own application.

Regards

Daniel

0 Kudos

859 Views
darshan_shah1
Contributor II

ok thank you. So with this also unit can establish ppp connectivity? Correct?

I tried with this no luck. PPPOS is established but after some LCP request I am getting NO Carrier message from the modem.

Data from K64: ATD*99#

Data from Modem:

Data from Modem: CONNECT 150000000

Data from Modem: ~�}#�!}!} } }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"�A~~�}#�!}"}!} }4}"}&} } } } }%}&} } X<}'}"}(}"}<�~~�}#�!}!}!} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"�}:~~�}#�!}!}"} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"}!�~~�}#�!}!}#} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"E�~~�}#�!}!}$} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"�$~~�}#�!}!}%} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"�~~�}#�!}!}&} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"} �~~�}#�!}"}!} }4}"}&} } } } }%}&} } X<}'}"}(}"}<�~~�}#�!}!}'} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"D�~~�}#�!}!}(} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"��~~�}#�!}!})} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"��~~�}#�!}!}*} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"}#=~~�}#�!}!}+} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"Gf~~�}#�!}!},} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"��~~�}#�!}"}!} }4}"}&} } } } }%}&} } X<}'}"}(}"}<�~~�}#�!}!}-} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"ε~~�}#�!}!}.} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"}"X~~�}#�!}!}/} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"F}#~~�}#�!}!}0} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"��~~�}#�!}!}1} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"؆~~�}#�!}!}2} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"}4k~~�}#�!}!}3} }9}"}&} } } } }#}%�#}%}%}&�.�i}'}"}(}"P0~~�}#�!}"}!} }4}"}&} } } } }%}&} } X<}'}"}(}"}<�~

Data from Modem: NO CARRIER

Here is my callback function.

/*
* PPPoS serial output callback
*
* ppp_pcb, PPP control block
* data, buffer to write to serial port
* len, length of the data buffer
* ctx, optional user-provided callback context pointer
*
* Return value: len if write succeed
*/
static u32_t output_cb(ppp_pcb *pcb, u8_t *data, u32_t len, void *ctx)
{
uart_transfer_t sendXfer;
status_t ret;

PRINTF("LEN: %d Data: %s \r\n", (int)len, (char*)data);
sendXfer.data = data;
sendXfer.dataSize = len;
ret = UART_SendEDMA(NBIOT_MODEM_UART, &g_uartEdmaHandle, &sendXfer);
vTaskDelay(pdMS_TO_TICKS(300));
return ret;
}

Please help me with this.

0 Kudos

859 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Darshan:

Sorry this source is from lwip stack,we don't port PPP to SDK yet, and currently no plan to port  PPP to SDK.

I would suggest you post your questions to lwip forum.

lwIP 

lwIP: PPP 

Regards

Daniel

0 Kudos