Usually when learning GPRS or DTU, often do not have their own server, many times we can only use this module to make a phone call to send a message, but with the rise of mobile internet, all walks of life began to get mobile access. For this requirement, TCP Mobile Access is available here.
Working principle Explanation (emphasis)
The specific method is to connect the specified port of the designated server, of course, you need a step authentication login, not anyone can use our resources, there are many people may be doing damage. The system has a user pool saved in the login and authentication through the user, and then like QQ, need to add friends to communicate, through one user to send request Friend request to another user, here is the user name information sent. When receiving an application, you can choose to accept or reject it. When the application is received, two users have established a link, and the rest of the content is TCP transmission.
1 Why do I need to login for the server? This is because this server is not private, can be said to a certain extent in common, many people know that the server's IP, if designed to connect only two ports can send data, then there will always be people trying to do not give him the authorization of the port, if this will seriously affect the person's communication, It may even affect the server's normal operation.
2 Why do I need a user name to find a user? Because everyone will get two two username, these two usernames are unique and randomly assigned, only the parties know, so you can find their own user name to another user name.
3 What's the limit? Of course there is a limit, the first is the speed limit, because this is the DTU or GPRS test is not a computer TCP test, all the speed will be displayed, the speed limit is 38400bps, is the second statistic, if the instantaneous rate is high, the total data in a second less than 38400 will not exceed the speed. At the same time background for statistical users, if there is no data within 2min, the background will automatically disconnect the user, so if free please send a "heartbeat package"!
The following illustration uses the method, mainly to connect the server to search for users and send data. DTU or GPRS use similar, here is a TCP test tool for example.
1 Purchase account number or apply to test account, link directly
2 Creating the connection input IP and port provided
3 Click "Connect" after confirming the target IP and port after clicking Create
4 Login with username and password, format $ username $ password, then click Send if username password is correct will return Welcome back ... Prompt information
5 Create a new connection and log in with another account
6 A pairing is required when two accounts are logged in. The pairing format is #对方名 #, as shown, when the request is sent, you will receive a prompt requesting that you have the request.
7 confirm pairing, when one account makes a request, another account will receive a pairing request, reply Y confirm establish connection at this time prompt connection has been ... Connection connection established successfully, two accounts can be transmitted through communication.
- This article fixed link: http://blog.tuzhuke.info/?p=231
DTU Test GPRS Test TCP server