Jump to content

Recommended Posts

I new to the Ethernet card with the unitronics

is there a way to send a command to a LAN web page?

I'd Like to send commands like

HTTP:\\192.168.1.4/30000/00

HTTP:\\192.168.1.4/30000/01

and so in

 

Share this post


Link to post
Share on other sites

I may have led you astray.  It dawned on me when I looked at your code and your initial post that HTTP usually uses port 80.  It is also available in the Protocol choices when you configure a Socket Init.

Unless you're using one of the old controllers with the Standard Instruction Set like a V230.  Then it's not there.

The TCP_RAW block just throws out what you feed it.  What do you have connected to the other end?  Are you using an Ethernet terminal program to look at what it's sending?

Joe T.

Share this post


Link to post
Share on other sites

I'm trying to run a network relay

the relay is on IP 196.168.1.4 port 30000

the command to turn on relay number 1 is 192.168.1.4/30000/00 in a web browser

I tried using a number of ports including HTTP on port 80

I also tried using a V230, V570 and a V1040

every time I get a -6 on the status bit  = send failed

 

Share this post


Link to post
Share on other sites

You are out of my area of expertise with this.  Sorry.  But your code looks correct.  What about the terminal idea?

Unfortunately the Creators have gone home for the weekend.  Hopefully another forum member has some experience here.

Joe T.

Share this post


Link to post
Share on other sites

Wireshark should work as a packet sniffer in this experiment. Should be doable with Enhanced Vision controllers.  sorry I can't exactly tell you how to either. 

Share this post


Link to post
Share on other sites

Joe and Hots have way more knowledge on this than me, so probably showing my networking ignorance.....

Have you tried leaving the socket open?

Also, perhaps you could try doing the send as the entire address, port and activation number?  I only mention this because I frequently use cheap(er) PTZ cameras that often want a "complete" send when accessing them.   As in, the full http:// in the address as well.  Also, they often interchange : with / or vice versa without mentioning that in manuals.  I often have to muck around with addressing protocol to get them to work properly.   They sometimes use an "adjacent" port as well.  Do a sniff (Angry IP etc) on your network to make sure that the relay is just using the one port.

Ohh yeah...you do actually mean http://   don't you   ...    not http:\\ ??

Maybe this might help.  It will help to keep your weekend busy anyway!

cheers,

Aus

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×