Question about "Using Adobe Flex to have Live data on Web Site"

I use Cobra board.

Have anybody tried the example “Using Adobe Flex to have Live data on Web Site” successfully? Link: http://www.tinyclr.com/codeshare/entry/315

After downloading the example I have run the project in VB2010 and typed the IP of Cobra in webbrowserFirefox, but I saw nothing.

I don’t know what is " Adobe Flex", should I install something before running the example?

Can anybody help me?

If you do not know what functionality Adobe Flex provides why are you trying to use this example?

What are you trying to build?

@ Mike -

I want to find a example about dada access between “EMX” and “http webbrowser”. I really want to know how can I monitor information( live data) on my board via the browser.

The example looks like pass me, so I want to try the example.

The “rebuild solution” is successful, but after typing IP of Cobra in webbrowser I saw nothing.

Show you code please.

The code is in Codeshare, Link:

http://www.tinyclr.com/codeshare/entry/315

you can download the project.

I think I have the problem about Resources, but I don’t know how can I correct it. It seems that I need some special “Resource” (see picture).

Are you sure that network configuration is setup correctly on Cobra? IP address etc.

I have checked the network configuration withj “MFDeploy” (see picture)

After running the example I tyoed the IP “192.168.1.200” I saw nothing.

Doesn’t look right. Open command prompt on your PC and run ipconfig

tell me what does it show for IPv4 Address and Default Gateway

Also check this thread:

http://www.tinyclr.com/forum/topic?id=4078

@ Architect -

The name of example is “Using Adobe Flex to have Live data on Web Site”. How can I use the “Adobe Flex”? Should I setup the “Adobe Flex”?

I haven’t used the “Adobe Flex”.
I just downloaded the project, ran it in Visual Studio 2010 and typed IP of Cobra in Firefox webbrowser.

Quickly reading the original description of the project, it appears that there are three endpoint involved with this example.

There is the user, who makes a HTTP request to the FEZ, which is redirected via HTTP to a Flex Server, running on another machine, which then establishes a TCP/IP connection back to the FEZ, and requests status information. The Flex server then sends the results back to the user via HTTP.

This example will do nothing if the Flex server is not there.

Seems to be a very focused sample program, done by someone who wanted to use a Flex server. I suspect this is a bit of overkill for normal Web based access to a FEZ.

@ Architect -

the IPv4 Address is “192.168.178.74” and Default Gateway “192.168.178.”(see picture)

So knowing that information and the IP address you have tried, what does it tell you? :wink:

@ Architect -

It tells me the current IP adress of my computer is “192.168.178.74”.

and it also tells you that local ip address 192.168.1.200 is not on your network

try something like 192.168.178.75 (change last octet until you can ping that address) on Cobra

also make sure you set the Default Gateway on Cobra.

@ Architect -

you mean I should change the IP address of Cobra to something like “192.168.178. XXX”, so that all IP address are in a lokal

right?

Correct.

@ Architect -

ok, I have set the IP “192.168.178.99” and Default Gateway “192.168.178.74” for my Cobra.

It seems that the webbrowser can access EMX after running the project, but it’s still nothing in webbrowser.

The “Output” of Visualstudio showed me : (see picture)



The thread '<No Name>' (0x2) has exited with code 0 (0x0).
Listening For Socket Connection
Processing HTTP Request
Look For SD File:/index.html
File Does not Exist:/index.html
Processing HTTP Request
Look For SD File:/favicon.ico
File Does not Exist:/favicon.ico

some files are missing, but I think I have downloaded complete project from Codeshare.

Of course, read my prior post.

Also address the messages about missing files on SD. Project does not put files on SD.

Check Default Gateway again. You used your PC IP.

@ Architect -

I have set IP “192.168.178.120” and Default Gateway “192.168. 178.1” for my Cobra. (see picture 1)

The IP of my computer is “192.168.178.74” and Default Gateway of my computer is “192.168.178.1” (see picture 2)

After running project, I typed “192.168.178.120” in firefox browser and it’s white.

The “output” showed me as follow:


The thread '<No Name>' (0x2) has exited with code 0 (0x0).
Listening For Socket Connection
Processing HTTP Request
Look For SD File:/index.html
File Does not Exist:/index.html
Processing HTTP Request
Look For SD File:/favicon.ico
File Does not Exist:/favicon.ico
Processing HTTP Request
    #### Exception System.Net.ProtocolViolationException - 0x00000000 (5) ####
    #### Message: Invalid HTTP request String: 
    #### System.Net.HttpListenerRequest::ParseHTTPRequest [IP: 003e] ####
    #### System.Net.HttpListenerContext::get_Request [IP: 000d] ####
    #### FastloadMedia.NETMF.Http.WebServer::ThreadProc [IP: 002f] ####
A first chance exception of type 'System.Net.ProtocolViolationException' occurred in System.Http.dll
Socket already closed
    #### Exception System.Net.Sockets.SocketException - CLR_E_FAIL (6) ####
    #### Message: 
    #### Microsoft.SPOT.Net.SocketNative::poll [IP: 0000] ####
    #### System.Net.Sockets.Socket::Poll [IP: 0011] ####
    #### System.Net.Sockets.Socket::Accept [IP: 0017] ####
    #### System.Net.HttpListener::AcceptThreadFunc [IP: 0020] ####
    #### SocketException ErrorCode = -1728053248
    #### SocketException ErrorCode = -1728053248
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in Microsoft.SPOT.Net.dll
    #### SocketException ErrorCode = -1728053248
    #### SocketException ErrorCode = -1728053248
The thread '<No Name>' (0x6) has exited with code 0 (0x0).
Processing HTTP Request
    #### Exception System.Net.ProtocolViolationException - 0x00000000 (5) ####
    #### Message: Invalid HTTP request String: 
    #### System.Net.HttpListenerRequest::ParseHTTPRequest [IP: 003e] ####
    #### System.Net.HttpListenerContext::get_Request [IP: 000d] ####
    #### FastloadMedia.NETMF.Http.WebServer::ThreadProc [IP: 002f] ####
A first chance exception of type 'System.Net.ProtocolViolationException' occurred in System.Http.dll
Socket already closed
    #### Exception System.Net.Sockets.SocketException - CLR_E_FAIL (9) ####
    #### Message: 
    #### Microsoft.SPOT.Net.SocketNative::poll [IP: 0000] ####
    #### System.Net.Sockets.Socket::Poll [IP: 0011] ####
    #### System.Net.Sockets.Socket::Accept [IP: 0017] ####
    #### System.Net.HttpListener::AcceptThreadFunc [IP: 0020] ####
    #### SocketException ErrorCode = -1728053248
    #### SocketException ErrorCode = -1728053248
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in Microsoft.SPOT.Net.dll
    #### SocketException ErrorCode = -1728053248
    #### SocketException ErrorCode = -1728053248
The thread '<No Name>' (0x9) has exited with code 0 (0x0).