CN110049010A - A kind of method and system of distributed platform terminal device connection server - Google Patents

A kind of method and system of distributed platform terminal device connection server Download PDF

Info

Publication number
CN110049010A
CN110049010A CN201910185713.2A CN201910185713A CN110049010A CN 110049010 A CN110049010 A CN 110049010A CN 201910185713 A CN201910185713 A CN 201910185713A CN 110049010 A CN110049010 A CN 110049010A
Authority
CN
China
Prior art keywords
setting
server
terminal device
data
port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910185713.2A
Other languages
Chinese (zh)
Other versions
CN110049010B (en
Inventor
赵定金
朱正辉
张常华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Baolun Electronics Co ltd
Original Assignee
Guangzhou Baolun Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Baolun Electronics Co Ltd filed Critical Guangzhou Baolun Electronics Co Ltd
Priority to CN201910185713.2A priority Critical patent/CN110049010B/en
Publication of CN110049010A publication Critical patent/CN110049010A/en
Application granted granted Critical
Publication of CN110049010B publication Critical patent/CN110049010B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to platform terminal equipment to connect server field, and in particular to a kind of method, system, platform and the storage medium of distributed platform terminal device connection server.Obtain server log-on data information;According to server log-on data information, the first setting connection and the first setting port are established, establishes the second setting connection and the second setting port;Client terminal start-up data information is obtained, and transformat data packets are connected by the second setting;By the second setting connection and the second setting port, the formatted data packet of client is obtained;Parsing obtains formatted data packet, and modifies processing to format data packets;According to modification treated formatted data packet, passes through the first setting connection and the first setting port and complete normal data communication.In the case where can making user that the change of network environment, the address server ip be used to need to reset at any time, complicated modification mode is reduced, it is automatic to connect upper server.

Description

A kind of method and system of distributed platform terminal device connection server
Technical field
The present invention relates to platform terminal equipment to connect server field, and in particular to a kind of distributed platform terminal device company Connect method, system, platform and the storage medium of server.
Background technique
Terminal device is connected with server, because being communicated by tcp, terminal device needs to know the address ip of server, It could normal communication.Under some use environments, need to modify the address server ip.Common method is remotely connected by ssh Bonding tool modifies the configuration file of equipment or affixes one's name to web server in upper side and configured by webpage.This mode is in terminal In the case that number of devices is more, modification seems more troublesome one by one.
Summary of the invention
For above in a fairly large number of situation of terminal device, the defect for the problem that modification seems more troublesome one by one, The present invention provides a kind of method and system of distributed platform terminal device connection server, makes to use distributed system in user When, the change of network environment is used at any time, in the case that the address server ip needs to reset, reduces complicated modification mode, And then realize the upper server of automatic connection.
The present invention is realized especially by following technical scheme:
A kind of method of distributed platform terminal device connection server, the method specifically comprise the following steps:
Obtain server log-on data information;
According to server log-on data information, the first setting connection and the first setting port are established, the second setting company is established It connects and the second setting port;
Client terminal start-up data information is obtained, and transformat data packets are connected by the second setting;
By the second setting connection and the second setting port, the formatted data packet of client is obtained;
Parsing obtains formatted data packet, and modifies processing to format data packets;
It is complete by the first setting connection and the first setting port according to modification treated formatted data packet At normal data communication.
Further, first setting is connected as tcp connection;
The second setting connection udp connection.
Further, the first setting port is 18001;
The second setting port is 19201.
Further, the data length of the formatted data packet is 16 bytes, using hexadecimal, data head with Itc is as mark.
Further, client terminal start-up data information is obtained in step, and transformat data is connected by the second setting In packet, it is additionally provided with time threshold.
Further, the first setting connection and the first setting port are established according to server log-on data information in step, It establishes in the second setting connection and the second setting port, further includes establishing multicast address;
The multicast address are as follows: 225.0.0.88.
Further, it is parsed in step and obtains formatted data packet, and modified processing to format data packets In, further includes:
Judge formatted data packet whether be client device issue data information;If so, formatted data is believed Breath packet is rewritten as the ip address data information of the server according to multicast address data information, and the formatted data changed is believed Breath packet passes terminal device back, otherwise abandons corresponding formatted data packet.
Further, described to judge whether formatted data packet is data information that client device issues, including First judgement and the second judgement;
Described first is judged as the data length for judging formatted data packet;
Described second, which is judged as, judges whether the data head of formula data packets is equal to itc.
Further, it is parsed in step and obtains formatted data packet, and modified processing to format data packets It later, further include that circulation monitors the data packet that processing server port receives.
To achieve the above object, the present invention also provides a kind of system of distributed platform terminal device connection server, institutes The system stated specifically includes:
First acquisition unit, for obtaining server log-on data information;
Unit is established in connection and port, for establishing the first setting connection and first according to server log-on data information Port is set, the second setting connection and the second setting port are established;
Packets unit connects transformat for obtaining client terminal start-up data information, and by the second setting Data packets;
Second acquisition unit, for obtaining the formatted data of client by the second setting connection and the second setting port Packet;
Data parsing unit obtains formatted data packet for parsing, and modifies place to format data packets Reason;
Communication unit, for according to modification treated formatted data packet, by the first setting connection and Complete normal data communication in the first setting port.
Further, the data parsing unit, comprising:
First judgment module, for judging the data length of formatted data packet;
Second judgment module, for judging whether the data head of formula data packets is equal to itc;
Monitoring module, for recycling the data packet monitoring processing server port and receiving.
To achieve the above object, the present invention also provides a kind of platform of distributed platform terminal device connection server, packets It includes:
Processor, memory and distributed platform terminal device connection server platform control program;
The platform courses program wherein is executed in the processor, the distributed platform terminal device connects service Device platform courses program is stored in the memory, the distributed platform terminal device connection server platform control Program realizes the method and step of the distributed platform terminal device connection server.
To achieve the above object, the present invention also provides a kind of computer-readable storage mediums, described computer-readable Storage medium is stored with distributed platform terminal device connection server platform control program, and the distributed platform terminal is set Standby connection server platform controls program, realizes the method and step of the distributed platform terminal device connection server.
Compared with prior art, the invention has the following advantages:
A kind of method that the present invention connects server by distributed platform terminal device:
A kind of method of distributed platform terminal device connection server, the method specifically comprise the following steps:
Obtain server log-on data information;
According to server log-on data information, the first setting connection and the first setting port are established, the second setting company is established It connects and the second setting port;
Client terminal start-up data information is obtained, and transformat data packets are connected by the second setting;
By the second setting connection and the second setting port, the formatted data packet of client is obtained;
Parsing obtains formatted data packet, and modifies processing to format data packets;
It is complete by the first setting connection and the first setting port according to modification treated formatted data packet At normal data communication.
And correspondingly system unit:
First acquisition unit, for obtaining server log-on data information;
Unit is established in connection and port, for establishing the first setting connection and first according to server log-on data information Port is set, the second setting connection and the second setting port are established;
Packets unit connects transformat for obtaining client terminal start-up data information, and by the second setting Data packets;
Second acquisition unit, for obtaining the formatted data of client by the second setting connection and the second setting port Packet;
Data parsing unit obtains formatted data packet for parsing, and modifies place to format data packets Reason;
Communication unit, for according to modification treated formatted data packet, by the first setting connection and Complete normal data communication in the first setting port.
It can make user when using distributed system, use the change of network environment at any time, the address server ip needs In the case where resetting, complicated modification mode is reduced, it is automatic to connect upper server, and in server ip address modification When, without modifying the configuration of multiple terminal devices, equipment can directly connect server, improve connection speed.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the method framework flow diagram that a kind of distributed platform terminal device of the present invention connects server;
Fig. 2 is the system architecture schematic diagram that a kind of distributed platform terminal device of the present invention connects server;
Fig. 3 is the system module configuration diagram that a kind of distributed platform terminal device of the present invention connects server;
Fig. 4 is the platform architecture schematic diagram that a kind of distributed platform terminal device of the present invention connects server;
Fig. 5 is computer-readable storage medium configuration diagram in an embodiment of the present invention;
The object of the invention is realized, the embodiments will be further described with reference to the accompanying drawings for functional characteristics and advantage.
Specific embodiment
Purposes, technical schemes and advantages to facilitate the understanding of the present invention are clearer, with reference to the accompanying drawing and have The invention will be further described for the embodiment of body, and those skilled in the art can be by content disclosed in the present specification easily Understand further advantage and effect of the invention.
The present invention also can be implemented or be applied by other different specific examples, and the various details in this specification is also Various modifications and change can be carried out without departing from the spirit of the present invention based on different viewpoints and application.
It is to be appreciated that if relating to directionality instruction (such as up, down, left, right, before and after ...) in the embodiment of the present invention, Then directionality instruction be only used for explain under a certain particular pose (as shown in the picture) between each component relative positional relationship, Motion conditions etc., if the particular pose changes, directionality instruction is also correspondingly changed correspondingly.
In addition, being somebody's turn to do " first ", " second " etc. if relating to the description of " first ", " second " etc. in the embodiment of the present invention Description be used for description purposes only, be not understood to indicate or imply its relative importance or implicitly indicate indicated skill The quantity of art feature." first " is defined as a result, the feature of " second " can explicitly or implicitly include at least one spy Sign.It secondly, the technical solution between each embodiment can be combined with each other, but must be with those of ordinary skill in the art's energy Based on enough realizations, when the combination of technical solution appearance is conflicting or cannot achieve, it will be understood that this technical solution In conjunction with being not present, also not the present invention claims protection scope within.
Preferably, a kind of method of distributed platform terminal device of the invention connection server is applied at one or more In a terminal or server.The terminal is that one kind can be automatic to carry out numerical value meter according to the instruction for being previously set or storing The equipment of calculation and/or information processing, hardware includes but is not limited to microprocessor, specific integrated circuit (Application Specific Integrated Circuit, ASIC), programmable gate array (Field-Programmable Gate Array, FPGA), digital processing unit (Digital Signal Processor, DSP), embedded device etc..
The terminal can be desktop PC, notebook, palm PC and cloud server etc. and calculate equipment.It is described Terminal can carry out human-computer interaction by modes such as keyboard, mouse, remote controler, touch tablet or voice-operated devices with client.
The present invention is to realize that distributed platform terminal device connects player method data, a kind of distributed platform provided The method and system of terminal device connection server.
As shown in Figure 1, be the embodiment of the present invention, a kind of method of the distributed platform terminal device connection server provided Flow chart.
In the present embodiment, the distributed platform terminal device connects player method, can be applied to have aobvious Show in the terminal or fixed terminal of function, the terminal is not limited to PC, smart phone, tablet computer, peace Desktop computer or all-in-one machine equipped with camera etc..
The distributed platform terminal device connection player method also can be applied to by terminal and by network and institute It states in the hardware environment that the server that terminal is attached is constituted.Network includes but is not limited to: wide area network, Metropolitan Area Network (MAN) or local Net.The distributed platform terminal device connection player method of the embodiment of the present invention can be executed by server, can also be by Terminal executes, and can also be and is executed jointly by server and terminal.
For example, for the terminal for needing to carry out distributed platform terminal device connection server, it can directly at the terminal The connection server capability of distributed platform terminal device provided by method of the invention is integrated, or installation is for realizing this hair The client of bright method.For another example, method provided by the present invention can be with Software Development Kit (Software Development Kit, SDK) form operate in the equipment such as server, in the form of SDK provide distributed platform terminal Distributed platform terminal can be realized by provided interface in the interface of equipment connection server capability, terminal or other equipment Equipment connects server capability.
As shown in Figure 1, the present invention provides a kind of method of distributed platform terminal device connection server, the method Specifically comprise the following steps, the sequence of step can change in the flow chart according to different requirements, and certain steps can save Slightly.
Obtain server log-on data information;
According to server log-on data information, the first setting connection and the first setting port are established, the second setting company is established It connects and the second setting port;
Client terminal start-up data information is obtained, and transformat data packets are connected by the second setting;
By the second setting connection and the second setting port, the formatted data packet of client is obtained;
Parsing obtains formatted data packet, and modifies processing to format data packets;
It is complete by the first setting connection and the first setting port according to modification treated formatted data packet At normal data communication.
Specifically, first setting is connected as tcp connection;The second setting connection udp connection.
The first setting port is 18001;The second setting port is 19201.
In embodiments of the present invention, the data length of the formatted data packet is 16 bytes, using hexadecimal, Data head is using itc as mark.
Preferably, obtaining client terminal start-up data information in step, and pass through the second setting connection transformat data letter In breath packet, it is additionally provided with time threshold.
In step according to server log-on data information, the first setting connection and the first setting port are established, establishes second It further include establishing multicast address in setting connection and the second setting port;The multicast address are as follows: 225.0.0.88.
It is parsed in step and obtains formatted data packet, and modified in processing to format data packets, further includes:
Judge formatted data packet whether be client device issue data information;If so, formatted data is believed Breath packet is rewritten as the ip address data information of the server according to multicast address data information, and the formatted data changed is believed Breath packet passes terminal device back, otherwise abandons corresponding formatted data packet.
Specifically, described to judge whether formatted data packet is data information that client device issues, including the One judgement and the second judgement;
Described first is judged as the data length for judging formatted data packet;
Described second, which is judged as, judges whether the data head of formula data packets is equal to itc.
Formatted data packet is obtained preferably, parsing in step, and modifies to format data packets and handles it It afterwards, further include that circulation monitors the data packet that processing server port receives.
That is, the constituent element that technical solution of the present invention is mainly concerned with has local area network, multiple terminal devices, net Line, interchanger, server, dhcp server (obtaining ip for terminal device), control computer and the web run on it.
Embodiment one:
Server and client side's equipment pre-defines a multicast address 225.0.0.88, defines privately owned data structure lattice Formula.Client obtains the address server ip by cast communication udp, and connection normal communication is then established with server.
Specifically, the proprietary data format is that data length is 16 bytes, with hexadecimal representation.Data head with For itc as mark, hexadecimal representation is 0x69 0x74 0x63, and intermediate 5 bytes are fixed as 0x01 0x00 0x00 0x00 0x10, then 4 bytes are the address client device ip below, and last 4 bytes are assigned a value of the address server ip.
Such as: server ip address is 192.168.1.251, and hexadecimal representation is 0xc0 0xa8 0x01 0x64.Visitor Family end equipment IP address is 192.168.1.100, and hexadecimal representation is 0xc0 0xa8 0x01 0xfb.Wherein hexadecimal 0xc0 indicates that 192, hexadecimal 0xa8 indicate 168, and hexadecimal 0x01 indicates 1, and hexadecimal 0xfb is expressed as 251,16 System 0x64 indicates 100.
Client is sent: 0x69 0x74 0x63 0x01 0x00 0x00 0x00 0x10 0xc0 0xa8 0x01 0x64 0x00 0x00 0x00 0x00。
Server returns: 0x69 0x74 0x63 0x01 0x00 0x00 0x00 0x10 0xc0 0xa8 0x01 0x64 0xc0 0xa8 0x01 0xfb。
Specific to server end: in server starting, establishing tcp connection, bind predefined port 18001, wait Client connection.
Preferably, establishing udp connection when server starts, binding predefined port 19201, be added predefined group Address 225.0.0.88 is broadcast, and the network data of the monitoring reception port in real time.
Specifically, if receiving multicast packet, data are parsed.Judge whether be terminal device issue data.Sentence first Whether disconnected length is equal to 16 bytes, is not to abandon.Then judge whether the head of data packet is equal to itc, be not to abandon.
If it is, 4, data packet end byte to be rewritten as to the ip address date of server.It will be counted by udp unicast According to returning to terminal device.
Further, circulation, which is monitored, handles the data packet that the port receives.
Specific to client, in equipment starting, udp communication is first created, proprietary data format by definition assembles data Packet.
Send packaged data packet to the server-side of designated multicast address 225.0.0.88 and designated port 19201. Waiting for server returned data.
Specifically, in step, timeout mechanism is also set up, time-out time is 5 seconds.Packaged data are retransmitted if time-out Packet, repeat the server-side for sending packaged data packet to designated multicast address 225.0.0.88 and designated port 19201 and Waiting for server returned data step, until receiving data.
Preferably, parsing data if receiving data.It first determines whether length is equal to 16 bytes, is not then heavy Hair jumps to the server-side step for sending packaged data packet to designated multicast address 225.0.0.88 and designated port 19201 Suddenly.Then judge whether the head of data packet is equal to itc, be not to retransmit, jump to and send designated groups for packaged data packet Broadcast the server-side step of address 225.0.0.88 and designated port 19201.Finally with parsing server ip from 4, end byte Location.
Finally, establishing tcp connection using the address server ip and predefined port 18001, start normal communication.
To achieve the above object, the present invention also provides a kind of systems of distributed platform terminal device connection server, such as Shown in Fig. 2, the system is specifically included:
First acquisition unit, for obtaining server log-on data information;
Unit is established in connection and port, for establishing the first setting connection and first according to server log-on data information Port is set, the second setting connection and the second setting port are established;
Packets unit connects transformat for obtaining client terminal start-up data information, and by the second setting Data packets;
Second acquisition unit, for obtaining the formatted data of client by the second setting connection and the second setting port Packet;
Data parsing unit obtains formatted data packet for parsing, and modifies place to format data packets Reason;
Communication unit, for according to modification treated formatted data packet, by the first setting connection and Complete normal data communication in the first setting port.
Specifically, as shown in figure 3, the data parsing unit, comprising:
First judgment module, for judging the data length of formatted data packet;
Second judgment module, for judging whether the data head of formula data packets is equal to itc;
Monitoring module, for recycling the data packet monitoring processing server port and receiving.
Step detail is being described above, and details are not described herein again;
To achieve the above object, the present invention also provides a kind of platforms of distributed platform terminal device connection server, such as Shown in Fig. 4, comprising:
Processor, memory and distributed platform terminal device connection server platform control program;
The platform courses program wherein is executed in the processor, the distributed platform terminal device connects service Device platform courses program is stored in the memory, the distributed platform terminal device connection server platform control Program realizes the method and step of the distributed platform terminal device connection server.Such as:
Obtain server log-on data information;
According to server log-on data information, the first setting connection and the first setting port are established, the second setting company is established It connects and the second setting port;
Client terminal start-up data information is obtained, and transformat data packets are connected by the second setting;
By the second setting connection and the second setting port, the formatted data packet of client is obtained;
Parsing obtains formatted data packet, and modifies processing to format data packets;
It is complete by the first setting connection and the first setting port according to modification treated formatted data packet At normal data communication.
Step detail is being described above, and details are not described herein again;
In the embodiment of the present invention, the distributed platform terminal device connects server platform internal processor, can be with It is made of, such as can be made of the integrated circuit of single package integrated circuit, is also possible to by multiple identical functions or not The integrated circuit of congenerous encapsulation is formed, including one or more central processing unit (CentralProcessingunit, CPU), microprocessor, digital processing chip, graphics processor and combination of various control chips etc..Processor is connect using various Mouthful and connection take all parts, by running or execute the program being stored in memory or unit, and call and deposit The data in memory are stored up, to execute the various functions and processing data of distributed platform terminal device connection server;
It is flat to be mounted on distributed platform terminal device connection server for storing program code and various data for memory In platform, and the access realized high speed in the process of running, be automatically completed program or data.
The memory includes read-only memory (Read-OnlyMemory, ROM),
Random access memory (RandomAccessMemory, RAM), programmable read only memory (ProgrammableRead- OnlyMemory, PROM), Erasable Programmable Read Only Memory EPROM (ErasableProgrammableRead-OnlyMemory, EPROM), disposable programmable read-only memory (One-timeProgrammableRead-OnlyMemory, OTPROM), electronics Erasing type can make carbon copies read-only memory (Electrically-ErasableProgrammableRead-OnlyMemory, EEPROM), CD-ROM (CompactDiscRead-OnlyMemory, CD-ROM) or other disc memories, disk storage Device, magnetic tape storage or any other the computer-readable medium that can be used in carrying or storing data.
To achieve the above object, the present invention also provides a kind of computer-readable storage mediums, as shown in figure 5,
The computer-readable storage medium is stored with distributed platform terminal device connection server platform control journey Sequence, the distributed platform terminal device connection server platform control program, realize that the distributed platform terminal is set The method and step of standby connection server.Such as:
Obtain server log-on data information;
According to server log-on data information, the first setting connection and the first setting port are established, the second setting company is established It connects and the second setting port;
Client terminal start-up data information is obtained, and transformat data packets are connected by the second setting;
By the second setting connection and the second setting port, the formatted data packet of client is obtained;
Parsing obtains formatted data packet, and modifies processing to format data packets;
It is complete by the first setting connection and the first setting port according to modification treated formatted data packet At normal data communication.
Step detail is being described above, and details are not described herein again;
In the description of embodiments of the present invention, it should be noted that in flow chart or described otherwise above herein Any process or method description be construed as, indicate to include one or more for realizing specific logical function or mistake Module, segment or the part of the code of the executable instruction of the step of journey, and the range packet of the preferred embodiment of the present invention Include other realization, wherein sequence shown or discussed can not be pressed, including according to related function by it is basic simultaneously Mode or in the opposite order, Lai Zhihang function, this should be managed by the embodiment of the present invention person of ordinary skill in the field Solution.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processing module or other can be from instruction Execute system, device or equipment instruction fetch and the system that executes instruction) use, or combine these instruction execution systems, device or Equipment and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, store, communicating, propagating Or transfer program uses for instruction execution system, device or equipment or in conjunction with these instruction execution systems, device or equipment Device.The more specific example (non-exhaustive list) of computer-readable medium include the following: there are one or more wirings Electrical connection section (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium because can then be edited for example by carrying out optical scanner to paper or other media, interpret or when necessary with Other suitable methods are handled electronically to obtain described program, are then stored in computer storage.
Through the invention the step of, system, platform and storage medium can make user when using distributed system, The change for using network environment at any time in the case that the address server ip needs to reset, reduces complicated modification mode, automatically Server in connection, and in server ip address modification, without modifying the configuration of multiple terminal devices, equipment can directly connect Upper server, improves connection speed.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (13)

1. a kind of method of distributed platform terminal device connection server, which is characterized in that the method specifically includes as follows Step:
Obtain server log-on data information;
According to server log-on data information, establish the first setting connection and the first setting port, establish the second setting connection and Second setting port;
Client terminal start-up data information is obtained, and transformat data packets are connected by the second setting;
By the second setting connection and the second setting port, the formatted data packet of client is obtained;
Parsing obtains formatted data packet, and modifies processing to format data packets;
According to modification treated formatted data packet, completed just by the first setting connection and the first setting port Regular data communication.
2. a kind of method of distributed platform terminal device connection server according to claim 1, which is characterized in that institute The first setting stated is connected as tcp connection;
The second setting connection udp connection.
3. a kind of method of distributed platform terminal device connection server according to claim 1, which is characterized in that institute The the first setting port stated is 18001;
The second setting port is 19201.
4. a kind of method of distributed platform terminal device connection server according to claim 1, which is characterized in that institute The data length for the formatted data packet stated is 16 bytes, and using hexadecimal, data head is using itc as mark.
5. a kind of method of distributed platform terminal device connection server according to claim 1, which is characterized in that in Step obtains client terminal start-up data information, and is connected in transformat data packets by the second setting, when being additionally provided with Between threshold values.
6. a kind of method of distributed platform terminal device connection server according to claim 1, which is characterized in that in Step establishes the first setting connection and the first setting port according to server log-on data information, establish the second setting connection and It further include establishing multicast address in second setting port;
The multicast address are as follows: 225.0.0.88.
7. a kind of method of distributed platform terminal device connection server according to claim 1, which is characterized in that in Step parsing obtains formatted data packet, and modifies in processing to format data packets, further includes:
Judge formatted data packet whether be client device issue data information;If so, by formatted data packet The ip address data information of the server, and the formatted data packet that will change are rewritten as according to multicast address data information It passes terminal device back, otherwise abandons corresponding formatted data packet.
8. a kind of method of distributed platform terminal device connection server according to claim 7, which is characterized in that institute State judge formatted data packet whether be client device issue data information, including first judgement and second judgement;
Described first is judged as the data length for judging formatted data packet;
Described second, which is judged as, judges whether the data head of formula data packets is equal to itc.
9. a kind of method of distributed platform terminal device connection server according to claim 1, which is characterized in that in Step parsing obtains formatted data packet, and modifies after processing to format data packets, further includes that circulation is monitored The data packet that processing server port receives.
10. a kind of system of distributed platform terminal device connection server, which is characterized in that the system specifically includes:
First acquisition unit, for obtaining server log-on data information;
Unit is established in connection and port, for establishing the first setting connection and the first setting according to server log-on data information The second setting connection and the second setting port are established in port;
Packets unit connects transformat data for obtaining client terminal start-up data information, and by the second setting Packet;
Second acquisition unit, for obtaining the formatted data information of client by the second setting connection and the second setting port Packet;
Data parsing unit obtains formatted data packet for parsing, and modifies processing to format data packets;
Communication unit, for passing through the first setting connection and first according to modification treated formatted data packet Port is set and completes normal data communication.
11. a kind of system of distributed platform terminal device connection server according to claim 10, which is characterized in that
The data parsing unit, comprising:
First judgment module, for judging the data length of formatted data packet;
Second judgment module, for judging whether the data head of formula data packets is equal to itc;
Monitoring module, for recycling the data packet monitoring processing server port and receiving.
12. a kind of platform of distributed platform terminal device connection server characterized by comprising
Processor, memory and distributed platform terminal device connection server platform control program;
The platform courses program wherein is executed in the processor, the distributed platform terminal device connection server is flat Platform control program is stored in the memory, and the distributed platform terminal device connection server platform controls journey Sequence realizes the method and step of distributed platform terminal device connection server as claimed in any one of claims 1-9 wherein.
13. a kind of computer-readable storage medium, which is characterized in that the computer-readable storage medium storage is distributed Formula platform terminal equipment connects server platform and controls program, and the distributed platform terminal device connects server platform control Processing procedure sequence realizes the method step of distributed platform terminal device connection server as claimed in any one of claims 1-9 wherein Suddenly.
CN201910185713.2A 2019-03-12 2019-03-12 Method and system for connecting distributed platform terminal equipment with server Active CN110049010B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910185713.2A CN110049010B (en) 2019-03-12 2019-03-12 Method and system for connecting distributed platform terminal equipment with server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910185713.2A CN110049010B (en) 2019-03-12 2019-03-12 Method and system for connecting distributed platform terminal equipment with server

Publications (2)

Publication Number Publication Date
CN110049010A true CN110049010A (en) 2019-07-23
CN110049010B CN110049010B (en) 2022-03-08

Family

ID=67274779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910185713.2A Active CN110049010B (en) 2019-03-12 2019-03-12 Method and system for connecting distributed platform terminal equipment with server

Country Status (1)

Country Link
CN (1) CN110049010B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111193765A (en) * 2019-11-18 2020-05-22 腾讯科技(深圳)有限公司 Device connection method, device, computer device and computer-readable storage medium
CN111327639A (en) * 2020-03-19 2020-06-23 刘奇峰 Socket communication method and device
CN111786822A (en) * 2020-06-17 2020-10-16 许昌许继软件技术有限公司 Remote management method for internet protocol shutdown
CN112738187A (en) * 2020-12-24 2021-04-30 合安科技技术有限公司 Safe connection method and device of equipment, electronic equipment and storage medium
CN113497783A (en) * 2020-03-19 2021-10-12 北京沃东天骏信息技术有限公司 Method and device for processing data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101099334A (en) * 2005-12-20 2008-01-02 松下电工株式会社 Systems and methods for providing a network bridge for udp multicast traffic
CN106997306A (en) * 2016-01-26 2017-08-01 阿里巴巴集团控股有限公司 Physical machine Data Migration to high in the clouds methods, devices and systems
US20170331926A1 (en) * 2016-05-16 2017-11-16 Mellanox Technologies Tlv Ltd. System-wide synchronized switch-over of multicast flows
CN109150766A (en) * 2018-10-19 2019-01-04 泰华智慧产业集团股份有限公司 The method and apparatus of dynamic addressing server in local area network based on UDP multicast

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101099334A (en) * 2005-12-20 2008-01-02 松下电工株式会社 Systems and methods for providing a network bridge for udp multicast traffic
CN106997306A (en) * 2016-01-26 2017-08-01 阿里巴巴集团控股有限公司 Physical machine Data Migration to high in the clouds methods, devices and systems
US20170331926A1 (en) * 2016-05-16 2017-11-16 Mellanox Technologies Tlv Ltd. System-wide synchronized switch-over of multicast flows
CN109150766A (en) * 2018-10-19 2019-01-04 泰华智慧产业集团股份有限公司 The method and apparatus of dynamic addressing server in local area network based on UDP multicast

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111193765A (en) * 2019-11-18 2020-05-22 腾讯科技(深圳)有限公司 Device connection method, device, computer device and computer-readable storage medium
CN111327639A (en) * 2020-03-19 2020-06-23 刘奇峰 Socket communication method and device
CN113497783A (en) * 2020-03-19 2021-10-12 北京沃东天骏信息技术有限公司 Method and device for processing data
CN111327639B (en) * 2020-03-19 2022-07-22 刘奇峰 Socket communication method and device
CN113497783B (en) * 2020-03-19 2024-01-16 北京沃东天骏信息技术有限公司 Method and device for processing data
CN111786822A (en) * 2020-06-17 2020-10-16 许昌许继软件技术有限公司 Remote management method for internet protocol shutdown
CN112738187A (en) * 2020-12-24 2021-04-30 合安科技技术有限公司 Safe connection method and device of equipment, electronic equipment and storage medium
CN112738187B (en) * 2020-12-24 2022-07-05 合安科技技术有限公司 Safe connection method and device of equipment, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110049010B (en) 2022-03-08

Similar Documents

Publication Publication Date Title
CN110049010A (en) A kind of method and system of distributed platform terminal device connection server
US11792307B2 (en) Methods and apparatus for single entity buffer pool management
CN101621440B (en) Remote multi-path serial port communication mapping system
US20180262388A1 (en) Remote device deployment
CN107566541A (en) Capacitor network resource allocation methods, system, storage medium and electronic equipment
EP1838035A2 (en) Network device managing apparatus and method
US9240899B2 (en) Method for implementing virtual network port and embedded device for implementing virtual network port
CN104317255A (en) Internet-of-things-based intelligent household control system
EP3235271A1 (en) Methods for enabling delay-awareness in the constrained application protocol (coap)
CN107861760A (en) BIOS collocation method, terminal and server
CN102761534B (en) Realize the method and apparatus of media access control layer Transparent Proxy
CN103095703B (en) A kind of method, equipment and system realizing network and serial port data interactive
CN106452833B (en) Data transmission method for RTU multi-protocol dynamic loading
CN108494637B (en) Method for intelligent household equipment to be in butt joint with Control4 system
CN103795632A (en) Data message transmission method, related equipment and system
CN113709810B (en) Method, equipment and medium for configuring network service quality
CN103051716A (en) Method and system for redirecting network-oriented serial device
CN108449246A (en) A kind of intelligent domestic system based on instant message applications Yu Internet of Things Network Communication
CN109413001A (en) The method and device of safeguard protection is carried out to the interaction data in cloud computing system
CN108462590A (en) The monitoring method and device of network flow, terminal
CN111404739B (en) System for configuring serial port networking attribute
CN108768727A (en) Access method, electronic device and the readable storage medium storing program for executing of third party's service
CN102739806A (en) VXI-11 network automatic discovery method for LXI instrument on basis of DSP (Digital Signal Processor)/BIOS (Basic Input Output System) operation system
CN106331051A (en) File transmission method and system, file receiving device and file transmission device
CN112272202B (en) Method and system for communication between management software server and system internal components

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: No. 56 Nanli East Road, Shiqi Town, Panyu District, Guangzhou City, Guangdong Province, 510000

Patentee after: Guangdong Baolun Electronics Co.,Ltd.

Address before: 510000 Building 1, industrial zone B, Zhongcun street, Panyu District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU ITC ELECTRONIC TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address