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.
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
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
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
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.