2019-01-11 06:26 AM
Hi all,
I'm currently working on a GPS tracker module with STM32F446RE. We have the whole GPS feature done but now we are trying to implement communication.
When it comes to sending messages (SMS) or doing phone calls everything is fine. But now we want to do some secure connection to AWS server. They require TLS 1.2 so we can't use our module to communicate with AWS.
So far so good, we just need to use lwip + mbedtls with our board! But CubeMX does not allow us to do so because we don't have Ethernet, that firstly seems logical, but we want to do PPP over serial, so we don't need (and don't have anyway) Ethernet enabled.
So that is our first problem; the second problem we are facing is that we can't find any good resources or example for the use of lwip (ppp os) + mbed tls + stm32.
Does any one have an example of lwip working with pppos and also using Mbed TLS ? If one would only have an example working with lwip and pppos that would be wonderful and would help us advance in the project.
Regards,
Y.
2019-08-13 03:08 PM
Unfortunately I cannot help you but looking for an answer on the same issue. I need to set up an AWS IoT communication with STM32F4 and a GPRS modem. Have you been able to solve the problem or do you have any hints where I should look at? Thank you!
2019-12-29 11:28 PM
Hi everybody,
me too I'm facing this today. I need to setup lwip + pppos with STM32F4 and CubeMX. It is past a few time since you wrote here, have you solved it?
2019-12-30 12:44 AM
I still haven’t ... Simply built a manual tcp socket connection, until I can get some hints on how to implement PPPOS.
2019-12-30 12:53 AM
Have you already seen this post? https://habr.com/ru/post/419037/
It's written in russian but Google Translate works fine. I've found other similars articles to this one and, due to my poor experience, I didn't understand how to get it work on a board without any ethernet hardware on it.
2020-05-03 01:44 PM
I find it really weird that ST did not adapt CubeMX in such a way as to allow configuring LwIP over PPP. An UART should be sufficient to allow LwIP. This is a totally valid configuration. CubeMX insisting to have an Ethernet peripheral configured to allow activating LwIP is rather an annoying bug than a feature!
2020-05-04 01:31 AM
For using lwIP over serial you would have to implement a serial driver for lwIP on your own. In that case the question becomes - what does CubeMX give you over just taking lwIP from it's homepage?
2020-05-04 01:38 AM
I think lwIP is far from trivial, also PPP needs significant efforts to collect detailed descriptions and learn it ... I would expect a simple guide with at least a few comments to "implement this and that" which would help us to get started. Just like CubeMX generates all other codes for e.g. Ethernet. Now I feel I'm in the dark with this problem to get solved, though I believe this solution would be used by many others, so the community would benefit from it.
2020-05-04 06:21 AM
PPP is not really that complicated, I used to do a lot of PPP on Unix machines end of the 90s, so I know how it works. However, the point is here that I find it really annoying that one can not enable LwIP in cube without ethernet; on the other hand, MBEDTLS can be enabled, even without a TCP/IP stack.
Probably I will go the direct way and get LwIP from its original GIT repo.
2022-12-01 11:54 PM
greetings to everyone. Has anyone found the solution? What would you suggest for my project? Thank you.