CN114598689A - Interactive method and device of IOT (input/output) equipment, computer equipment and storage medium - Google Patents
Interactive method and device of IOT (input/output) equipment, computer equipment and storage medium Download PDFInfo
- Publication number
- CN114598689A CN114598689A CN202210221181.5A CN202210221181A CN114598689A CN 114598689 A CN114598689 A CN 114598689A CN 202210221181 A CN202210221181 A CN 202210221181A CN 114598689 A CN114598689 A CN 114598689A
- Authority
- CN
- China
- Prior art keywords
- server
- login
- iot equipment
- connection
- iot
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000002452 interceptive effect Effects 0.000 title claims description 13
- 230000003993 interaction Effects 0.000 claims abstract description 52
- 230000004044 response Effects 0.000 claims abstract description 46
- 230000000977 initiatory effect Effects 0.000 claims abstract description 29
- 238000004590 computer program Methods 0.000 claims description 17
- 239000000203 mixture Substances 0.000 claims 1
- 239000002994 raw material Substances 0.000 claims 1
- 238000004891 communication Methods 0.000 description 13
- 230000008569 process Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
Abstract
The invention provides an interaction method, an interaction device, computer equipment and a storage medium of IOT equipment, wherein the method comprises the steps of sending an HTTP connection request to a server end through an IOT equipment end, and after the server end returns connection response information to indicate that the connection is successful, HTTP login is successful; after HTTP login is successful, initiating a websocket login request to a server by the IOT equipment end, when the login failure times are not more than three times, continuing to initiate the websocket login request, and after the login is successful, performing data interaction between the IOT equipment end and the server in a websocket form; when the failure times of initiating the websocket login request to the server side by the IOT equipment side are more than three times, initiating the login request to the server side by the IOT equipment side in a tcpsocket mode, and establishing connection with the server in a tcp mode to perform data interaction. The invention can improve the success rate of network data interaction between the IOT equipment and the server and improve the compatibility of equipment network interaction.
Description
Technical Field
The present invention relates to the field of device interaction technologies, and in particular, to an interaction method and apparatus for an IOT device, a computer device, and a storage medium.
Background
The websocket protocol is a protocol at the application layer based on the HTTP protocol, and before the websocket protocol does not appear, the connection established through the HTTP protocol is non-persistent and unidirectional. Therefore, when the client and the server need to communicate in time, the communication is performed in a polling manner in most cases, and the communication manner needs to consume a large amount of traffic and server resources.
Before the IOT equipment using the websocket as a network communication protocol performs network interaction with a server, a single websocket login request mode is generally adopted, and when part of routers which can filter out websocket data packets are encountered, the abnormal situation of network interaction occurs.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: an interaction method, an interaction device, computer equipment and a storage medium of an IOT device are provided, and the success rate of the connection interaction between the IOT device and a server is improved.
In order to solve the technical problems, the invention adopts the technical scheme that: an interactive method of an IOT device includes the following steps,
an HTTP connection request is sent to a server through an IOT device end, and HTTP login is successful after the server returns connection response information to indicate that connection is successful;
after HTTP login is successful, initiating a websocket login request to a server by the IOT equipment end, when the login failure times are not more than three times, continuing to initiate the websocket login request, and after the login is successful, performing data interaction between the IOT equipment end and the server in a websocket form;
when the failure times of initiating the websocket login request to the server side by the IOT equipment side are more than three times, initiating the login request to the server side by the IOT equipment side in a tcpsocket mode, and establishing connection with the server in a tcp mode to perform data interaction.
Further, the step that the IOT equipment terminal sends HTTP connection request to the server terminal, and the server terminal returns connection response information to show that the connection is successful, then HTTP login is successful specifically comprises,
the IOT equipment terminal sends an HTTP connection request to the server terminal;
after receiving the HTTP connection request sent by the IOT equipment terminal, the server terminal returns the connection response information of the server terminal to the IOT equipment terminal;
the IOT equipment terminal analyzes the connection response information of the server terminal and judges whether the analyzed connection response information is successfully connected;
if the analyzed connection response information shows that the connection is successful, the HTTP login of the IOT equipment end is successful.
Further, the connection response information returned by the server side includes the IP address and the port number of the server.
Further, when the failure frequency of initiating the websocket login request to the server side by the IOT equipment side is more than three times, the IOT equipment side initiates the login request to the server in a tcp key mode, and establishes connection with the server in a tcp mode to perform data interaction specifically comprises the steps of,
when the failure times of initiating a websocket login request to the server end by the IOT equipment end are more than three times, analyzing the IP address and the port number of the server from the connection response information of the server end;
according to the IP address and the port number of the server, the IOT equipment terminal initiates a login request to the server terminal in a tcpsocket mode;
after login is successful, the IOT equipment end establishes connection with the server end in a tcp mode to perform data interaction.
The invention also provides an interactive device of the IOT equipment, which comprises,
the HTTP login module is used for sending an HTTP connection request to the server through the IOT equipment terminal, and the server returns connection response information to indicate that the connection is successful, and then the HTTP login is successful;
the Websocket login module is used for initiating a Websocket login request to the server side by the IOT equipment side after HTTP login is successful, continuing to initiate the Websocket login request when the login failure frequency does not exceed three times, and performing data interaction between the IOT equipment side and the server in a Websocket form after the login is successful;
and the Tcpsocket login module is used for initiating a login request to the server by the IOT equipment end in a Tcpsocket mode when the failure frequency of initiating the websocket login request to the server by the IOT equipment end is more than three times, and establishing connection with the server in a tcp mode to perform data interaction.
Further, the HTTP login module is specifically configured to,
the IOT equipment terminal sends an HTTP connection request to the server terminal;
after receiving the HTTP connection request sent by the IOT equipment terminal, the server terminal returns the connection response information of the server terminal to the IOT equipment terminal;
the IOT equipment terminal analyzes the connection response information of the server terminal and judges whether the analyzed connection response information is successfully connected;
if the analyzed connection response information shows that the connection is successful, the HTTP login of the IOT equipment end is successful.
Further, in the HTTP login module, the connection response information returned by the server side includes an IP address and a port number of the server.
Further, the Tcpsocket login module is specifically configured to,
when the failure times of initiating a websocket login request to the server end by the IOT equipment end are more than three times, analyzing the IP address and the port number of the server from the connection response information of the server end;
according to the IP address and the port number of the server, the IOT equipment terminal initiates a login request to the server terminal in a tcpsocket mode;
after login is successful, the IOT equipment end establishes connection with the server end in a tcp mode to carry out data interaction.
The invention also provides a computer device, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to realize the interaction method of the IOT device.
The present invention also provides a storage medium storing a computer program which, when executed by a processor, can implement the interaction method of the IOT device as described above.
The invention has the beneficial effects that: after the IOT equipment end successfully performs HTTP login to the server end, websocket login is performed, after the websocket login is successful, the IOT equipment end can perform data interaction with the server end in a websocket protocol mode, if the websocket login fails for three times, Tcpsocket login is selected, and after the Tcpsocket login is successful, the IOT equipment end performs data interaction with the server end in a tcp mode, so that the success rate of network data interaction between the IOT equipment and the server is improved, and the compatibility of equipment network interaction is improved.
Drawings
The following detailed description of the invention refers to the accompanying drawings.
Fig. 1 is a flowchart of an interaction method of an IOT device according to an embodiment of the present invention;
FIG. 2 is a flow chart of an HTTP login process according to an embodiment of the present invention;
FIG. 3 is a flowchart of a Tcpsocket login process according to an embodiment of the invention;
FIG. 4 is a block diagram of an interaction module of an IOT device according to an embodiment of the present invention;
FIG. 5 is a schematic block diagram of a computer apparatus of an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As shown in fig. 1, the first embodiment of the present invention is: an interactive method of an IOT device includes the following steps,
s10, sending an HTTP connection request to the server through the IOT equipment terminal, and if the server returns connection response information to indicate that the connection is successful, the HTTP login is successful;
s20, when the HTTP login is successful, the IOT equipment terminal initiates a websocket login request to the server terminal, when the login failure times are not more than three times, the websocket login request is continuously initiated, and after the login is successful, data interaction is carried out between the IOT equipment terminal and the server in a websocket form;
s30, when the failure frequency of initiating the websocket login request to the server side by the IOT equipment side is more than three times, initiating the login request to the server side by the IOT equipment side in a tcp (trusted secure socket) mode, and establishing connection with the server in a tcp mode to perform data interaction.
As shown in fig. 2, in step S10, the IOT device sends an HTTP connection request to the server, and after the server returns the connection response information indicating that the connection is successful, the HTTP login is successful,
s11, the IOT equipment terminal sends an HTTP connection request to the server terminal;
s12, after receiving the HTTP connection request sent by the IOT equipment end, the server end returns the connection response information of the server end to the IOT equipment end;
s13, the IOT equipment terminal analyzes the connection response information of the server terminal and judges whether the analyzed connection response information is successfully connected;
and S14, if the analyzed connection response information shows that the connection is successful, the HTTP login of the IOT equipment end is successful.
Further, the connection response information returned by the server side includes an IP address and a port number of the server.
As shown in fig. 3, in step S30, when the number of failures of the IOT device side to initiate the websocket login request to the server side is greater than three times, the IOT device side initiates the login request to the server side in the tcp token manner, and then establishes a connection with the server in the tcp manner to perform data interaction specifically includes the steps of,
s31, when the failure times of initiating the websocket login request to the server side by the IOT equipment side is more than three times, analyzing the IP address and the port number of the server from the connection response information of the server side;
s32, initiating a login request to the server side by the IOT equipment side in a tcpsocket mode according to the IP address and the port number of the server;
and S33, after login is successful, establishing connection between the IOT equipment end and the server end in a tcp mode to perform data interaction.
The tcpsocket communication is carried out to solve the problem that network interaction at a device end is abnormal due to the fact that part of IOT devices shield data packets of websockets.
In tcpsocket's communication: the TCP protocol is a connection-oriented communication protocol, i.e. before transmitting data, a logical connection is established between a transmitting end and a receiving end, and then the data is transmitted. In the process of TCP connection, IOT equipment sends a connection request to a server, three-way handshake is needed for connection creation each time, after the handshake between two parties, TCP establishes full-duplex communication between two application programs, and socket objects need to be created at two ends of the communication when the communication is carried out. The socket is a basic operation unit for network communication supporting a TCP/IP protocol, and includes five kinds of information necessary for network communication: the protocol used for the connection, the IP address of the local host, the protocol port of the local remote, the IP address of the remote host, and the protocol port of the remote process.
The embodiment of the invention has the beneficial effects that: after the IOT equipment end successfully performs HTTP login to the server end, websocket login is performed, after the websocket login is successful, the IOT equipment end can perform data interaction with the server end in a websocket protocol mode, if the websocket login fails for three times, Tcpsocket login is selected, and after the Tcpsocket login is successful, the IOT equipment end performs data interaction with the server end in a tcp mode, so that the success rate of network data interaction between the IOT equipment and the server is improved, and the compatibility of equipment network interaction is improved.
As shown in fig. 4, another embodiment of the present invention is an interactive apparatus of an IOT device, including,
the HTTP login module 10 is configured to send an HTTP connection request to the server through the IOT device, where the server returns connection response information indicating that the connection is successful, and then the HTTP login is successful;
the Websocket login module 20 is configured to initiate a Websocket login request to the server side by the IOT device side after HTTP login is successful, continue to initiate the Websocket login request when the number of login failures does not exceed three, and perform data interaction between the IOT device side and the server in a Websocket form after login is successful;
and the Tcpsocket login module 30 is used for initiating a login request to the server by using a Tcpsocket mode instead when the failure frequency of initiating the websocket login request to the server by the IOT equipment end is more than three times, and establishing connection with the server in a tcp mode to perform data interaction.
Further, the HTTP login module 10 is specifically configured to,
the IOT equipment terminal sends an HTTP connection request to the server terminal;
after receiving the HTTP connection request sent by the IOT equipment terminal, the server terminal returns the connection response information of the server terminal to the IOT equipment terminal;
the IOT equipment terminal analyzes the connection response information of the server terminal and judges whether the analyzed connection response information is successfully connected;
if the analyzed connection response information shows that the connection is successful, the HTTP login of the IOT equipment end is successful.
Further, in the HTTP login module 10, the connection response information returned by the server side includes the IP address and the port number of the server.
Further, the Tcpsocket registration module 30 is specifically configured to,
when the failure times of initiating a websocket login request to the server end by the IOT equipment end are more than three times, analyzing the IP address and the port number of the server from the connection response information of the server end;
according to the IP address and the port number of the server, the IOT equipment terminal initiates a login request to the server terminal in a tcpsocket mode;
after login is successful, the IOT equipment end establishes connection with the server end in a tcp mode to carry out data interaction.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation process of the interaction apparatus and each unit of the IOT device may refer to the corresponding description in the foregoing method embodiment, and for convenience and conciseness of description, no further description is provided herein.
The interaction means of the IOT device described above may be implemented in the form of a computer program that is executable on a computer device such as that shown in fig. 5.
Referring to fig. 5, fig. 5 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a terminal or a server, where the terminal may be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 5, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and computer programs 5032. The computer programs 5032 include program instructions that, when executed, cause the processor 502 to perform a method of interaction for an IOT device.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be enabled to execute an interaction method of the IOT device.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 5 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer device 500 to which the present application may be applied, and that a particular computer device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the interaction method of the IOT device as described above.
It should be understood that in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program comprises program instructions. The program instructions, when executed by the processor, cause the processor to perform the interactive method of the IOT device as described above
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media of program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partly contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. An interactive method of IOT equipment is characterized in that: comprises the following steps of (a) carrying out,
an HTTP connection request is sent to a server through an IOT device end, and HTTP login is successful after the server returns connection response information to indicate that connection is successful;
after HTTP login is successful, initiating a websocket login request to a server by the IOT equipment end, when the login failure times are not more than three times, continuing to initiate the websocket login request, and after the login is successful, performing data interaction between the IOT equipment end and the server in a websocket form;
when the failure times of initiating the websocket login request to the server side by the IOT equipment side are more than three times, initiating the login request to the server side by the IOT equipment side in a tcpsocket mode, and establishing connection with the server in a tcp mode to perform data interaction.
2. The IOT device interaction method of claim 1, wherein: the IOT equipment end sends HTTP connection request to the server end, the server end returns connection response information to show that the connection is successful, then the HTTP login success steps specifically include,
the IOT equipment terminal sends an HTTP connection request to the server terminal;
after receiving the HTTP connection request sent by the IOT equipment terminal, the server terminal returns the connection response information of the server terminal to the IOT equipment terminal;
the IOT equipment terminal analyzes the connection response information of the server terminal and judges whether the analyzed connection response information is successfully connected;
if the analyzed connection response information shows that the connection is successful, the HTTP login of the IOT equipment end is successful.
3. The IOT device interaction method of claim 2, wherein: the connection response information returned by the server side comprises the IP address and the port number of the server.
4. The IOT device interaction method of claim 3, wherein: when the failure times of initiating the websocket login request to the server end by the IOT equipment end is more than three times, initiating the login request to the server by the IOT equipment end in a tcp (trusted secure socket) mode, establishing connection with the server in a tcp (trusted control protocol) mode to perform data interaction,
when the failure times of initiating a websocket login request to the server end by the IOT equipment end are more than three times, analyzing the IP address and the port number of the server from the connection response information of the server end;
according to the IP address and the port number of the server, the IOT equipment terminal initiates a login request to the server terminal in a tcpsocket mode;
after login is successful, the IOT equipment end establishes connection with the server end in a tcp mode to perform data interaction.
5. An interactive device of an IOT device, characterized in that: comprises the steps of (a) preparing a mixture of a plurality of raw materials,
the HTTP login module is used for sending an HTTP connection request to the server through the IOT equipment terminal, and the server returns connection response information to indicate that the connection is successful, and then the HTTP login is successful;
the Websocket login module is used for initiating a Websocket login request to the server side by the IOT equipment side after HTTP login is successful, continuing to initiate the Websocket login request when the login failure frequency does not exceed three times, and performing data interaction between the IOT equipment side and the server in a Websocket form after the login is successful;
and the Tcpsocket login module is used for initiating a login request to the server by the IOT equipment end in a Tcpsocket mode when the failure frequency of initiating the websocket login request to the server by the IOT equipment end is more than three times, and establishing connection with the server in a tcp mode to perform data interaction.
6. The interactive apparatus of IOT devices of claim 5, wherein: the HTTP login module is specifically configured to,
the IOT equipment terminal sends an HTTP connection request to the server terminal;
after receiving the HTTP connection request sent by the IOT equipment terminal, the server terminal returns the connection response information of the server terminal to the IOT equipment terminal;
the IOT equipment terminal analyzes the connection response information of the server terminal and judges whether the analyzed connection response information is successfully connected;
if the analyzed connection response information shows that the connection is successful, the HTTP login of the IOT equipment end is successful.
7. The interactive apparatus of IOT devices recited in claim 6, wherein: in the HTTP login module, the connection response information returned by the server side includes the IP address and the port number of the server.
8. The interactive apparatus of IOT devices of claim 7, wherein: the Tcpsocket login module is specifically configured to,
when the failure times of initiating a websocket login request to the server end by the IOT equipment end are more than three times, analyzing the IP address and the port number of the server from the connection response information of the server end;
according to the IP address and the port number of the server, the IOT equipment terminal initiates a login request to the server terminal in a tcpsocket mode;
after login is successful, the IOT equipment end establishes connection with the server end in a tcp mode to perform data interaction.
9. A computer device, characterized by: the computer device comprises a memory having stored thereon a computer program and a processor that, when executing the computer program, implements the interactive method of the IOT device of any of claims 1-4.
10. A storage medium, characterized by: the storage medium stores a computer program which, when executed by a processor, implements the interaction method of the IOT device recited in any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210221181.5A CN114598689A (en) | 2022-03-08 | 2022-03-08 | Interactive method and device of IOT (input/output) equipment, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210221181.5A CN114598689A (en) | 2022-03-08 | 2022-03-08 | Interactive method and device of IOT (input/output) equipment, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114598689A true CN114598689A (en) | 2022-06-07 |
Family
ID=81816574
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210221181.5A Pending CN114598689A (en) | 2022-03-08 | 2022-03-08 | Interactive method and device of IOT (input/output) equipment, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114598689A (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102137104A (en) * | 2011-03-11 | 2011-07-27 | 华为软件技术有限公司 | Transmission control protocol (TCP) long-connection access control method and device |
CN105024971A (en) * | 2014-04-18 | 2015-11-04 | 中兴通讯股份有限公司 | Communication protocol conversion method and communication protocol conversion device |
CN107948303A (en) * | 2017-12-08 | 2018-04-20 | 北京酷我科技有限公司 | The processing method of http request failure on a kind of Android |
CN109561159A (en) * | 2018-12-28 | 2019-04-02 | 厦门中控生物识别信息技术有限公司 | A kind of data processing method and system based on Websocket long connection |
WO2019094103A1 (en) * | 2017-11-07 | 2019-05-16 | General Electric Company | Session moderator for turn-pattern tcp-packet relay with websocket instantiation |
CN110138858A (en) * | 2019-05-14 | 2019-08-16 | 北京杰思安全科技有限公司 | A kind of task management system and method based on Websocket |
CN110888329A (en) * | 2019-11-14 | 2020-03-17 | 深圳市力合微电子股份有限公司 | Intelligent home platform with open access of equipment manufacturer and data processing method thereof |
CN111447252A (en) * | 2020-02-19 | 2020-07-24 | 深圳点猫科技有限公司 | Method and system for realizing interactive input based on websocket |
CN112788144A (en) * | 2021-01-19 | 2021-05-11 | 深圳市位元领航科技有限公司 | Method for realizing communication mode, server and client |
CN113329101A (en) * | 2021-08-02 | 2021-08-31 | 杭州钛鑫科技有限公司 | Remote login method and login device for edge computing node |
-
2022
- 2022-03-08 CN CN202210221181.5A patent/CN114598689A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102137104A (en) * | 2011-03-11 | 2011-07-27 | 华为软件技术有限公司 | Transmission control protocol (TCP) long-connection access control method and device |
CN105024971A (en) * | 2014-04-18 | 2015-11-04 | 中兴通讯股份有限公司 | Communication protocol conversion method and communication protocol conversion device |
WO2019094103A1 (en) * | 2017-11-07 | 2019-05-16 | General Electric Company | Session moderator for turn-pattern tcp-packet relay with websocket instantiation |
CN107948303A (en) * | 2017-12-08 | 2018-04-20 | 北京酷我科技有限公司 | The processing method of http request failure on a kind of Android |
CN109561159A (en) * | 2018-12-28 | 2019-04-02 | 厦门中控生物识别信息技术有限公司 | A kind of data processing method and system based on Websocket long connection |
CN110138858A (en) * | 2019-05-14 | 2019-08-16 | 北京杰思安全科技有限公司 | A kind of task management system and method based on Websocket |
CN110888329A (en) * | 2019-11-14 | 2020-03-17 | 深圳市力合微电子股份有限公司 | Intelligent home platform with open access of equipment manufacturer and data processing method thereof |
CN111447252A (en) * | 2020-02-19 | 2020-07-24 | 深圳点猫科技有限公司 | Method and system for realizing interactive input based on websocket |
CN112788144A (en) * | 2021-01-19 | 2021-05-11 | 深圳市位元领航科技有限公司 | Method for realizing communication mode, server and client |
CN113329101A (en) * | 2021-08-02 | 2021-08-31 | 杭州钛鑫科技有限公司 | Remote login method and login device for edge computing node |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11140162B2 (en) | Response method and system in virtual network computing authentication, and proxy server | |
US10142425B2 (en) | Session reliability for a redirected USB device | |
JP7389791B2 (en) | Implementing Compliance Settings with Mobile Devices to Adhere to Configuration Scenarios | |
US20170163478A1 (en) | Method,electronic device and system for updating client configuration in key-value pair database | |
US20170163479A1 (en) | Method, Device and System of Renewing Terminal Configuration In a Memcached System | |
CN109951546B (en) | Transaction request processing method, device, equipment and medium based on intelligent contract | |
US7089311B2 (en) | Methods, systems and computer program products for resuming SNA application-client communications after loss of an IP network connection | |
CN111880852B (en) | Operating system initialization method, system, computer device and storage medium | |
US11632361B2 (en) | Combined authentication and connection establishment for a communication channel | |
US20220182278A1 (en) | Systems and methods to determine root cause of connection failures | |
CN110166547B (en) | Terminal remote access control method | |
US20130111002A1 (en) | Systems and methods for establishing a virtual local area network | |
WO2021226781A1 (en) | Firewall rule updating method and apparatus, server, and storage medium | |
US10367894B2 (en) | Information processing apparatus, method for controlling the same, non-transitory computer-readable storage medium, and information processing system | |
CN114124929A (en) | Cross-network data processing method and device | |
CN109450997B (en) | Data cross-terminal migration method and device, computer equipment and storage medium | |
CN114296953A (en) | Multi-cloud heterogeneous system and task processing method | |
WO2018032953A1 (en) | Windows window sharing method, gateway server, system, storage media | |
CN106657076B (en) | TCP service implementation method and device for network name space | |
US20040068575A1 (en) | Method and apparatus for achieving a high transfer rate with TCP protocols by using parallel transfers | |
CN111416851A (en) | Method for session synchronization among multiple load balancers and load balancer | |
CN114598689A (en) | Interactive method and device of IOT (input/output) equipment, computer equipment and storage medium | |
CN115941766A (en) | Operation and maintenance data processing method and device | |
CN110266705B (en) | Control method and system | |
US9270621B1 (en) | Securely providing messages from the cloud |
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 |