Communication with the web pages in one single page with full duplex mode

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Communication with the web pages in one single page with full duplex mode

ソリューションへジャンプ
492件の閲覧回数
utsavikalpesh
Contributor V

Hi All,

 

I am using code warrior of v10.2 and of mqx v4.0. I created one project which based on web hvac.

 

Here I have used the checkbox instead of radio button and project working well.

 

But now on demand, I need to create code for communicate with the one single page as input will given by web - pages(check box) and output should need to be display on the same page.So I have merge the two .cgi function code(one for tx and other for rx) into same But the value of check box is not displaying.

 

Can anyone answer me why this is happening?

 

I also have attached my code of web-pages written on check box as well as .cgi function file .The other settings are done properly.

 

Or is there any other way to communicate in full duplex mode??

 

Is there any materials available for that?Plz reply

Original Attachment has been moved to: web_demo.txt.zip

0 件の賞賛
1 解決策
298件の閲覧回数
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Utsavi,


Well, in my experience; you need to have an event that is requesting for this data. Once I created an application that was a fusion of the "Freescale MQX 3.8\rtcs\examples\httpsrv"example.


This application was mixing in one HTML the files:
"\Freescale MQX 3.8\rtcs\examples\httpsrv\web_pages\rtc.html"

"\Freescale MQX 3.8\rtcs\examples\httpsrv\web_pages\led.html"

The trick here is the refresh that the rtc.html file is doing every second requesting for a CGI function. This 1 second timeout event is the one bringing the data back to the web pages.

This is an approach you could do to solve your duplex issue.

Hope this helps!


Regards,
Garabo

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
299件の閲覧回数
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Utsavi,


Well, in my experience; you need to have an event that is requesting for this data. Once I created an application that was a fusion of the "Freescale MQX 3.8\rtcs\examples\httpsrv"example.


This application was mixing in one HTML the files:
"\Freescale MQX 3.8\rtcs\examples\httpsrv\web_pages\rtc.html"

"\Freescale MQX 3.8\rtcs\examples\httpsrv\web_pages\led.html"

The trick here is the refresh that the rtc.html file is doing every second requesting for a CGI function. This 1 second timeout event is the one bringing the data back to the web pages.

This is an approach you could do to solve your duplex issue.

Hope this helps!


Regards,
Garabo

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
298件の閲覧回数
utsavikalpesh
Contributor V

Hi Garabo,

Thnx for reply.I have done it by using httpsrv and working perfectly...:smileyhappy::smileyblush:

0 件の賞賛