LPCXpresso5468 with HTTPS protocol

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPCXpresso5468 with HTTPS protocol

跳至解决方案
3,198 次查看
nithin3200
Contributor III

 

Hi,

My project I need to send data through the HTTPS protocol. To understand this code i gone through the lwip_httpsrv_mbedTSL_bm demo code. This application demonstrates an HTTPS Server
set up on lwIP TCP/IP and the mbedTLS stack with bare metal. The user uses an Internet browser to send an https request for connection. The board acts as an HTTPS server and sends a Web page back to the PC. 

For my project the board acts as an HTTPS client and pc as server. For this application is there any demo code is available. Reference is using LPCXpresso5468 board only.

 

 

0 项奖励
1 解答
2,043 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, there is no driver for that device, but the communication is SPI maybe you could find the driver and mount in the SPI example in the SDK.

Best regards,
Pavel 

在原帖中查看解决方案

0 项奖励
22 回复数
2,991 次查看
nithin3200
Contributor III

Hello Pavel,

Thanks for the supporting. So can you share the link for the sample SDK code. Which having board as client and pc act as a server. 

BR

Nithin 

0 项奖励
2,966 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, on this page you can search the SDK Welcome | MCUXpresso SDK Builder (nxp.com).

You will find all the examples available for that board.

Best regards,
Pavel

0 项奖励
3,003 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, my name is Pavel, and I will be supporting your case, I reviewed your request, and the example available by NXP is in the SDK.

Best regards,
Pavel

0 项奖励
2,952 次查看
nithin3200
Contributor III

Hello Pavel,

I have gone through all the lwip demos are under Lpcxpresso 54628 board lwip examples folder. In that lwip_httpssrv_mbedTLS_bm and lwip_httpssrv_mbedTLS_freertos, these two codes only for https, remaining all are for other protocols.

As I mentioned in previous message these two codes Lpcxpresso 54628 board act as a https server and pc as a client. but my requirement is that board should act as client and pc as a server. For this application can I get any API?

0 项奖励
2,930 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, I am afraid this application wasn't made, I don't know the reason there is an example in the k64, maybe you could understand the functionality, and for a tool could you check the Hercules setup utility?

Best regards,
Pavel

0 项奖励
2,883 次查看
nithin3200
Contributor III

Hello,

 

Can you share the link for K64.not able to find.

 

BR 

Nithin N

0 项奖励
2,844 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, sorry I reviewed the SDK of the K64 and has the same example as server, could you elaborate further about your application? the server is where the page is allocated, and if you want the example as a client to connect to a PC for send telemetry the connection suggest is WebSocket or MQTT. I suggest review that protocols maybe are what you are looking for, and this example is available for your board.

Pavel_Hernandez_0-1687463150557.png

Best regards,
Pavel

0 项奖励
2,824 次查看
nithin3200
Contributor III

 

Hello 

My project I need to use HTTPS protocol to communicate the web server. To understand this code, I have gone through NXP SDK LPCXpresso54628_lwip_httpssrv_mbedTLS_bm demo code. The lwip_httpsrv_mbedTSL_bm demo application demonstrates an HTTPS Server set up on lwIP TCP/IP and the mbedTLS stack with bare metal. The user uses an Internet browser to send an https request for connection. The board acts as an HTTPS server and sends a Web page back to the PC.
 
But my requirement is the PC should act as a server and board act as a client. Board should send the https request for connection. Able to send some dynamic data to web server also. Pc act as a server and able to receive the data from the board and displaying the web page. For this application is there any demo code is available?
 
 
BR 
Nithin
0 项奖励
2,792 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, I am afraid there is not a demo available in the SDK as you require, but you could try to search for examples based on the PHY LAN8720A.

Best regards,
Pavel

0 项奖励
2,763 次查看
nithin3200
Contributor III

Hello,

Thanks for the replay.  LPCXpresso54628_lwip_httpssrv_mbedTLS_bm demo code, board is sending the static web page to pc. if I need to send dynamic values. How can I do that in this code?

 

BR 

Nithin N 

0 项奖励
2,642 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, when you put a dynamic value on your page is easier to refresh the page, you need to put a command line in the HTTP page buffer.

Best regards,
Pavel

0 项奖励
2,620 次查看
nithin3200
Contributor III

Hello,

 

Sorry, I didn't understand.to send dynamic value I need to use any particular function?

 

 

BR

Nithin 

0 项奖励
2,541 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, sorry I have misspelled, I do not have a lot of knowledge of HTTP, but I mean to modify the buffer of HTML and refresh the page with the HTML command.

Pavel_Hernandez_1-1688079615164.png

Best regards,
Pavel

0 项奖励
2,344 次查看
nithin3200
Contributor III

Hello,

 

Thanks for the reply. If demo code board act as a server. In the code where they initialize client and server configuration.

 

BR

Nithin 

0 项奖励
2,310 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, I suggest you can try to review the echo example and then try to implement the server. I recommend reviewing the flow chart about the server vs the client.

Best regards,
Pavel

0 项奖励
2,175 次查看
nithin3200
Contributor III

Hello,

 

Thanks for the replay. Now I established the tcp connection using Lwip_tcpecho code. 

Now if I want to send some data to server how can I do that? Using this code.

Can I get the link for demo code  lwip_httpscli_mbedTLS.?

This code can use LPCXpresso54628 board?

 

BR 

Nithin

0 项奖励
2,147 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, I do not know about that example maybe you can port if the board that was made is similar to the LPC54628, I reviewed in the SDK and that example is not available. 

Pavel_Hernandez_0-1688767520703.png

I suggest reviewing more information about sockets in C to understand how to send data.

Best regards,
Pavel

0 项奖励
2,148 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, I do not know about that example maybe you can port if the board that was made is similar to the LPC54628, I reviewed in the SDK and that example is not available. 

Pavel_Hernandez_0-1688767520703.png

I suggest review more information about sockets in C to understand how to send data.

Best regards,
Pavel

0 项奖励
1,920 次查看
nithin3200
Contributor III

Hello,

 

if I need to send some adc value to server. Am using LTC2335 adc. Interface this adc is there any sample code available in sdk?.

 

BR 

Nithin 

0 项奖励
2,044 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, there is no driver for that device, but the communication is SPI maybe you could find the driver and mount in the SPI example in the SDK.

Best regards,
Pavel 

0 项奖励