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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
474 Views
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 Kudos
1 Solution
280 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
281 Views
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 Kudos
280 Views
utsavikalpesh
Contributor V

Hi Garabo,

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

0 Kudos