Atmel microcontroller, WIZnet and PolarSSL
Jesus
I'm working on a project and need to connect to a server by internet. I use an Atmel microcontroller which comunicates with WIZnet chip by SPI. I can establish communication between the microcontroller and the server and send GET requests, everything works fine but the problem is that I need use HTTPS.
WIZnet implements TCP/IP protocols (of course some more such as ARP, ICMP..etc). My question is, can I use POLAR SSL library in my project? Can the microcontroller do that work using WIZnet as intarface between layers? In the PolarSSL docummentation talks about OS for the microcontroller, is it neccesary? I have read that the code to implement SSL/TLS is pretty heavy but it shouldn't be a problem so I can choose any ATMEL microcontroller. I would really appreciate it if someone could give me some advice before starting the project.
WIZnet 5100. http://www.wiznet.co.kr/Sub_Modules/en/product/Product_Detail.asp?cate1=5&cate2=7&cate3=26&pid=1011
Thanks in advance
Paul Bakker
Yes, you have two options:
- rewrite 'net.c' to work with your WIZnet module.
- do the connect stuff in your own code and provide a net_read callback and net_write callback to the SSL layer..
Paul
TA
It is possible to use WIZnet. I have done this.
Arye Levin
Hi, I'm using ATSAMD21G18, and would like to know how can I do it too. I have W5500 controller and I want to add SSL/TLS layer to connect to my server.
Thanks in advance
Ron Eldor
Hi Arye,
As Paul mentioned above, you have two options:
- rewrite 'net.c' to work with your WIZnet module.
- do the connect stuff in your own code and provide a net_read callback and net_write callback to the SSL layer..
You can find more information in:
- https://tls.mbed.org/kb/how-to/mbedtls-tutorial
- https://tls.mbed.org/kb/how-to/how-do-i-port-mbed-tls-to-a-new-environment-OS
- https://tls.mbed.org/kb/compiling-and-building/how-do-i-configure-mbedtls
Regards,
mbed TLS Team member
Ron
Arye Levin
OK, Thanks for that. I just thought that maybe someone done something already, and can share some solutions. I will need to dig into it myself and do it.
Again, the references you gave me is great for starting point.
Arye