Home→Forums→MonoBrick Communication Library→How to setup TCP/IP connection
- This topic has 5 replies, 3 voices, and was last updated 10 years, 8 months ago by Anders Søborg.
-
AuthorPosts
-
March 17, 2014 at 15:40 #4046
CH PParticipantHi,
I have been following Wifi setup instructions, but got stuck at the following steps,
which is quite unclear. Could you please elaborate in steps and tools for me?##########(Copied form the instruction page)######################
Sending a UDP message back to the EV3The contents of the data is irrelevant so just send a single byte. The important thing is that you send it to the source port that was used in the bricks broadcast message ( this is not port 3015). Once a message has been send the brick is ready to accept a TCP/IP connection.
Establish a TCP/IP connectionConnect to the brick using TCP/IP on port 5555 and use this connection to send the unlock message
Sending the unlock messageThe unlock message has the following format:
GET /target?sn=0016533F0C1E VMTP1.0
Protocol: EV3Where 0016533F0C1E is the serial number from the UDP broadcast. The brick should now reply with a 16 byte TCP/IP message with the following text:
Accept:EV340
indicating that the connection has been established. Now you should be able to send both system and direct commands to the brick over a WiFi connection.
#####################################################My questions from the above steps are:
1. How do I “Send a UDP message back to the EV3” before I make a connection? Is there a specific program?
I looked up menues on the Wireshark, but it seems to be a network monitoring program only.2. How do I send the “unlock message” ?
March 17, 2014 at 19:31 #4056
Anders SøborgKeymasterHi
I think that you might have mixed using “MonoBrick communication library to connect to the EV3 over a WiFi connection” with “Connecting the EV3 to a WiFi network”.
What is it you want to do?
Anders
April 8, 2014 at 23:00 #4124
anprietoParticipantHi,
I am also stuck on the same step.
In this page: http://www.monobrick.dk/guides/how-to-establish-a-wifi-connection-with-the-ev3-brick/
first step is to connect ev3 brick to wifi. That is easy and already done.
Second step to open connection is Establishing a TCP/IP, listening to an UDP message and sending back another message to open connection.
I need some help to do this entire second step.
thanks
antonioApril 10, 2014 at 19:24 #4129
Anders SøborgKeymasterHi Antonio
What is it that you are trying to do?
Are you trying to connect to the EV3 over a WiFi connection using MonoBrick communication library?
Anders
April 12, 2014 at 18:59 #4146
anprietoParticipantHi Anders,
yes I’m trying to do that, and it seems I have to stablish a tcp ip connection, wtih which I am having problems, as instructions here are not as clear as others: http://www.monobrick.dk/guides/how-to-establish-a-wifi-connection-with-the-ev3-brick/
April 14, 2014 at 08:20 #4158
Anders SøborgKeymasterHi
These instructions are if you need to know how a TCP/IP connection is established with the standard firmware. If you just need to use the MonoBrick communication library then simply follow this programming guide found here.
Anders
-
AuthorPosts
You must be logged in to reply to this topic.
Follow