CN111935656A - Method and device for long connection of IP data and computer equipment - Google Patents

Method and device for long connection of IP data and computer equipment Download PDF

Info

Publication number
CN111935656A
CN111935656A CN202010724398.9A CN202010724398A CN111935656A CN 111935656 A CN111935656 A CN 111935656A CN 202010724398 A CN202010724398 A CN 202010724398A CN 111935656 A CN111935656 A CN 111935656A
Authority
CN
China
Prior art keywords
intelligent terminal
address
management app
terminal
intelligent
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
CN202010724398.9A
Other languages
Chinese (zh)
Other versions
CN111935656B (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.)
Shenzhen waterward Software Technology Co.,Ltd.
Original Assignee
Shenzhen Water World 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 Shenzhen Water World Co Ltd filed Critical Shenzhen Water World Co Ltd
Priority to CN202010724398.9A priority Critical patent/CN111935656B/en
Publication of CN111935656A publication Critical patent/CN111935656A/en
Application granted granted Critical
Publication of CN111935656B publication Critical patent/CN111935656B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses a method for long connection of IP data, which comprises the following steps: the method comprises the steps that a first intelligent terminal receives 5G RCS short messages in real time, and a first cloud terminal management APP, a first global public gateway and a first API (application programming interface) for controlling the 5G RCS short messages are arranged in the first intelligent terminal; controlling a first cloud terminal management APP to call a first API (application programming interface) and reading 5G RCS (remote control system) short messages; judging whether the 5G RCS short message is sent by a second intelligent terminal bound with the SIM card number in advance; if yes, controlling the first API to push 5G RCS short messages to the first cloud terminal management APP; acquiring an IP address of a second intelligent terminal, wherein the first cloud terminal management APP analyzes the 5G RCS short message; and synchronizing the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and keeping long IP data connection with the second intelligent terminal through the IP address in the IP address table after synchronous updating. And establishing IP data long connection between the 5G terminals by using a cloud terminal management APP, a global public gateway and a 5G RCS short message technology.

Description

Method and device for long connection of IP data and computer equipment
Technical Field
The present application relates to the field of communications, and in particular, to a method, an apparatus, and a computer device for long IP data connection.
Background
The IP addresses of the existing 3G/4G intelligent terminals are distributed by operators and kept in random dynamic change, in order to keep the long connection of the IP data of the two intelligent terminals, the help of a third-party server is needed, the cost is high, and the heartbeat packet is sent to the third-party server to establish the long connection, so that the connection has time delay and poor privacy, and the using requirements of freely associating the two intelligent terminals and establishing stable long connection of the IP data cannot be met.
Disclosure of Invention
The application mainly aims to provide a method for long connection of IP data, and aims to solve the technical problem that two existing intelligent terminals cannot be freely associated and can not establish stable long connection of IP data.
The application provides a method for long connection of IP data, which comprises the following steps:
the method comprises the steps that a first intelligent terminal receives a 5G RCS short message in real time, wherein a first cloud terminal management APP, a first global public gateway and a first API (application programming interface) for controlling the 5G RCS short message are arranged in the first intelligent terminal;
controlling the first cloud terminal management APP to call the first API interface, and reading the 5G RCS short message;
judging whether the 5G RCS short message is sent by a second intelligent terminal pre-bound with an SIM card number, wherein the second intelligent terminal is any one of a plurality of intelligent terminals pre-bound with the SIM card number with the first intelligent terminal;
if yes, controlling the first API to push the 5G RCS short message to the first cloud terminal management APP;
acquiring an IP address of the second intelligent terminal obtained by the first cloud terminal management APP through analysis of the 5G RCS short message;
and synchronizing the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and keeping long IP data connection with the second intelligent terminal through the IP address in the IP address table after synchronous updating.
Preferably, after the step of synchronizing the IP address of the second intelligent terminal to the IP address table of the first global public gateway and maintaining long IP data connection with the second intelligent terminal through the IP address in the IP address table after synchronization update, the method includes:
acquiring a new 5G RCS short message sent by the second intelligent terminal through the second API, wherein the new 5G RCS short message carries a new IP address updated by the second intelligent terminal, and the new IP address is obtained by monitoring the second cloud terminal management APP in the second intelligent terminal in real time;
controlling the first cloud terminal management APP to analyze the new 5G RCS short message to obtain the new IP address;
updating an IP address table of the first global public gateway according to the new IP address;
and keeping the long connection of the IP data with the second intelligent terminal through the new IP address in the updated IP address table.
Preferably, the step of maintaining the long connection of the IP data with the second intelligent terminal through the new IP address in the updated IP address table, where the new 5G RCS short message carries an IP address update timestamp, includes:
acquiring the IP address update timestamp obtained when the first cloud terminal management APP analyzes the new 5G RCS short message;
judging whether the time difference between the current time and the second intelligent terminal IP address updating time is less than a preset time length or not according to the IP address updating time stamp;
if yes, controlling the first cloud terminal management APP to send the IP data packet cached in the preset duration to the second cloud terminal management APP, and keeping the connection of the IP data duration through the IP data packet.
Preferably, after the step of synchronizing the IP address of the second intelligent terminal to the IP address table of the first global public gateway and maintaining long IP data connection with the second intelligent terminal through the synchronized and updated IP address in the IP address table, the method includes:
acquiring a communication protocol selected when the first intelligent terminal and the second intelligent terminal are set and bound;
judging whether the control relation in the communication protocol is the relation between the control and the controlled master-slave equipment or not;
and if so, determining the intelligent terminals respectively corresponding to the control terminal and the controlled terminal.
Preferably, the step of determining the intelligent terminals corresponding to the control terminal and the controlled terminal respectively includes:
acquiring an application program list and hardware information of the second intelligent terminal extracted by the second cloud terminal management APP through an IP data stream;
forming control information according to the application program list and the hardware information of the second intelligent terminal, wherein the control information carries parameter information of the application program to be controlled and parameter information of the hardware;
controlling the first cloud terminal management APP to send the control information to the second cloud terminal management APP;
and receiving processing result information formed after the second cloud terminal management APP calls the application program to be controlled and the hardware according to the control information.
Preferably, the step of receiving processing result information formed after the second cloud terminal management APP calls the application program to be controlled and the hardware according to the control information includes:
calling a player of the first intelligent terminal;
and controlling a player of the first intelligent terminal to play the decoded audio data stream.
Preferably, after the step of determining whether the control relationship in the communication protocol is a relationship between a controlled master device and a controlled slave device, the method includes:
if the relationship is not the relationship between the control and the controlled master-slave equipment, the interactive relationship that the first intelligent terminal and the second intelligent terminal are symmetrical mirror images is judged;
judging whether the first global public gateway receives calling information sent by the second cloud terminal management APP through the second global public gateway or not, wherein the calling information is sent in the form of an IP data packet, and the calling information carries parameter information of a specified application program of the first intelligent terminal to be called;
if yes, controlling the first cloud terminal management APP to analyze the calling information and determining the specified application program;
starting and operating the specified application program to form an operation information list;
and sending the running information list to the second cloud terminal management APP through the first cloud terminal management APP.
The application also provides a device that long connection of IP data, integrated in intelligent terminal, the device includes:
the receiving module is used for receiving 5G RCS short messages in real time, wherein a first cloud terminal management APP, a first global public gateway and a first API (application programming interface) for controlling the 5G RCS short messages are arranged in the first intelligent terminal;
the first control module is used for controlling the first cloud terminal management APP to call the first API interface and reading the 5G RCS short message;
the first judging module is used for judging whether the 5G RCS short message is sent by a second intelligent terminal pre-bound with an SIM card number, wherein the second intelligent terminal is any one of a plurality of intelligent terminals pre-bound with the SIM card number with the first intelligent terminal;
the second control module is used for controlling the first API interface to push the 5G RCS short message to the first cloud terminal management APP if the 5G RCS short message is sent by a second intelligent terminal which is bound with an SIM card number in advance;
the first obtaining module is used for obtaining the IP address of the second intelligent terminal obtained by the first cloud terminal management APP through analysis of the 5G RCS short message;
and the synchronization module is used for synchronizing the IP address of the second intelligent terminal to the IP address table of the first global public gateway and keeping long IP data connection with the second intelligent terminal through the IP address in the IP address table after synchronous updating.
The present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method as described above.
This application is through designing 5G cloud terminal management APP and global public gateway, bind the SIM card number with 5G RCS short message technique, manage the APP through 5G cloud terminal and carry out the analysis to the data message of IP data package received, in order to obtain the address information of IP data package, if the IP address of the 5G opposite terminal of binding the SIM card number, then establish the long connection of IP data, can bind N SIM card numbers with 5G RCS short message technique, establish the mutual direct long connection of IP data between N platform 5G terminals, replace the third party server, utilize 5G large bandwidth, low time delay, many concurrent characteristics, reduce the cost of data connection between the intelligent terminal, slow down the time delay.
Drawings
Fig. 1 is a schematic flow chart of a method for long IP data connection according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an IP data long connection apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an IP data long connection device according to another embodiment of the present application;
FIG. 4 is a schematic structural diagram of a retention module according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an IP data long connection apparatus according to still another embodiment of the present application;
fig. 6 is a schematic diagram of an internal structure of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, a method for long IP data connection according to an embodiment of the present application includes:
s1: the method comprises the steps that a first intelligent terminal receives a 5G RCS short message in real time, wherein a first cloud terminal management APP, a first global public gateway and a first API (application programming interface) for controlling the 5G RCS short message are arranged in the first intelligent terminal;
s2: controlling the first cloud terminal management APP to call the first API interface, and reading the 5G RCS short message;
s3: judging whether the 5G RCS short message is sent by a second intelligent terminal pre-bound with an SIM card number, wherein the second intelligent terminal is any one of a plurality of intelligent terminals pre-bound with the SIM card number with the first intelligent terminal;
s4: if yes, controlling the first API to push the 5G RCS short message to the first cloud terminal management APP;
s5: acquiring an IP address of the second intelligent terminal obtained by the first cloud terminal management APP through analysis of the 5G RCS short message;
s6: and synchronizing the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and keeping long IP data connection with the second intelligent terminal through the IP address in the IP address table after synchronous updating.
This application is through designing global public gateway and 5G cloud terminal management APP and RCS (Rich Communication Suite, RCS) SMS control mechanism on 5G intelligent terminal, realize that all outside HTTP visits on the 5G intelligent terminal all are through global public gateway storage and forward, be equipped with an IP address table in the global public gateway, there is the dynamic IP address of the 5G intelligent terminal of the opposite terminal of 5G intelligent terminal pre-binding SIM card number in the IP address table, and the IP data package of the 5G cloud terminal management APP that local 5G cloud terminal management APP sent the opposite terminal intelligent terminal in the long time t in the cache is continuous, the size of above-mentioned long time t can self-defined setting. The implementation process of binding the IP address of the 5G intelligent terminal and the SIM card number comprises the step of establishing a corresponding table of the SIM card number of the opposite intelligent terminal and the obtained dynamic IP address of the opposite intelligent terminal in a 5G cloud terminal management APP of the machine. And each bound SIM card number is fixed and unchanged, but the IP address corresponding to each fixed SIM card number is dynamically changed so as to adapt to the state of dynamically matching the IP address by an operator, and the IP data long connection is established between two or more 5G intelligent terminals. The 5G cloud terminal management APP can call an API (application program interface) of the 5G RCS short message, and has the functions of sending the 5G RCS short message and reading the 5G RCS short message. The method and the device have the advantages that the data information of the received IP data packet is analyzed through the 5G cloud terminal management APP so as to obtain the address information of the IP data packet, if the IP address of the 5G opposite end is bound, the IP data packet is pushed to the 5G cloud terminal management APP of the device, and the IP data stream information is forwarded to corresponding application program software according to the address information of the corresponding IP data packet. The process that the 5G intelligent terminal binds the opposite end 5G intelligent terminal of the SIM card number in advance is realized through a 5G RCS short message technology. This application is through designing 5G cloud terminal management APP and global public gateway, bind the SIM card number with 5G RCS short message technique, manage the APP through 5G cloud terminal and carry out the analysis to the data message of IP data package received, in order to obtain the address information of IP data package, if the IP address of the 5G opposite terminal of binding the SIM card number, then establish the long connection of IP data, can bind N SIM card numbers with 5G RCS short message technique, establish the mutual direct long connection of IP data between N platform 5G terminals, replace the third party server, utilize 5G large bandwidth, low time delay, many concurrent characteristics, reduce the cost of data connection between the intelligent terminal, slow down the time delay. And the communication protocol and control among the APPs are managed through the 5G cloud terminal, so that the master-slave application of the servers and the clients of the plurality of 5G terminals or the application of the symmetrical mirror image terminal are realized. The embodiment of the present application is described in detail by taking an example of establishing an IP data long connection between a first intelligent terminal and a second intelligent terminal, and taking the first intelligent terminal as a local terminal and the second intelligent terminal as an opposite terminal. The first intelligent terminal can establish long-term IP data connection with a plurality of opposite-end intelligent terminals at the same time, is not interfered with each other, and can be realized by designing a communication protocol. The first intelligent terminal and the second intelligent terminal are only used for distinction and are not used for limitation, and the effects of the terms like "first" and "second" in other places are the same and are not repeated.
Further, after step S6 of setting a second cloud terminal management APP and a second API interface in the second intelligent terminal, synchronizing the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and maintaining long IP data connection with the second intelligent terminal through synchronizing the IP address in the updated IP address table, the method includes:
s61: acquiring a new 5G RCS short message sent by the second intelligent terminal through the second API, wherein the new 5G RCS short message carries a new IP address updated by the second intelligent terminal, and the new IP address is obtained by monitoring the second cloud terminal management APP in the second intelligent terminal in real time;
s62: controlling the first cloud terminal management APP to analyze the new 5G RCS short message to obtain the new IP address;
s63: updating an IP address table of the first global public gateway according to the new IP address;
s64: and keeping the long connection of the IP data with the second intelligent terminal through the new IP address in the updated IP address table.
The dynamic IP address of the 5G intelligent terminal realizes a real-time monitoring and real-time refreshing and retaining mode. The method comprises the steps that a 5G cloud terminal manages an APP to monitor the dynamic IP address change condition of a 5G network of an intelligent terminal where the APP is located at any time, when the dynamic IP address of the 5G network of the intelligent terminal where the APP is located is found to change, the 5G cloud terminal manages the APP to call an API (application programming interface) interface of a 5G RCS (remote control system) short message of the intelligent terminal where the APP is located, a new 5GRCS short message containing the new IP address of the intelligent terminal where the APP is located is sent to the intelligent terminal of a bound SIM card number, and the RCS short message analysis control mechanism of an opposite-end intelligent terminal of the SIM card number is touched and bound, so that the 5G intelligent terminal bound with. If the new 5GRCS short message is an RCS short message sent by an intelligent terminal bound with an SIM card number, the received new 5GRCS short message is pushed to a cloud terminal management APP through an API (application program interface) of the intelligent terminal receiving the new 5GRCS short message, the cloud terminal management APP of the intelligent terminal receiving the new 5GRCS short message analyzes the received new 5GRCS short message according to an agreed communication protocol to obtain an updated dynamic IP address of an opposite-end intelligent terminal, and an IP address table in a global public gateway of the intelligent terminal receiving the new 5GRCS short message is synchronously updated to realize the updated dynamic IP address by connecting the opposite-end intelligent terminal, so that an end-to-end IP data long connection link between the 5G intelligent terminals is maintained.
Further, the step S64, in which the new 5G RCS short message carries an IP address update timestamp, and the new IP address in the updated IP address table maintains long IP data connection with the second intelligent terminal, includes:
s641: acquiring the IP address update timestamp obtained when the first cloud terminal management APP analyzes the new 5G RCS short message;
s642: judging whether the time difference between the current time and the second intelligent terminal IP address updating time is less than a preset time length or not according to the IP address updating time stamp;
s643: if yes, controlling the first cloud terminal management APP to send the IP data packet cached in the preset duration to the second cloud terminal management APP, and keeping the connection of the IP data duration through the IP data packet.
The application analyzes a timestamp of a received 5G RCS short message sent by an opposite-end intelligent terminal through a 5G cloud terminal management APP, judges whether the current time is within a preset time t of the change of a dynamic IP address of the opposite-end intelligent terminal according to the timestamp, for example, the time between the time corresponding to the timestamp and the time of currently executing a judgment action is less than the preset time t, the current time is considered to be within the preset time t of the change of the IP address of the second intelligent terminal, at the moment, the cloud terminal management APP of the intelligent terminal receiving the 5G RCS short message sends an IP data packet of the current time to the cloud terminal management APP of the opposite-end intelligent terminal, controls the intelligent terminal for receiving the 5G RCS short message, and resends the IP data packet stored in the t time in the global public gateway to the cloud terminal management APP of the opposite-end intelligent terminal after the address change, and ensuring that no data is lost in the time period when the dynamic IP address is updated and changed.
Further, after step S6 of synchronizing the IP address of the second intelligent terminal to the IP address table of the first global public gateway and maintaining long IP data connection with the second intelligent terminal by synchronizing the updated IP address in the IP address table, the method includes:
s601: acquiring a communication protocol selected when the first intelligent terminal and the second intelligent terminal are set and bound;
s602: judging whether the control relation in the communication protocol is the relation between the control and the controlled master-slave equipment or not;
s603: and if so, determining the intelligent terminals respectively corresponding to the control terminal and the controlled terminal.
The 5G cloud terminal management APP can set the mutual relation of N5G intelligent terminals bound with SIM card numbers, such as the control of a client and a host and the relation of a controlled master device and a controlled slave device or the mirror symmetry peer-to-peer relation. The master machine can control the application programs of the slave machines in the relationship between the master device and the slave device which are controlled, the mirror symmetry peer-to-peer relationship can control the application programs at the opposite ends, and the control and controlled relationship can exchange roles at any time according to the initiated calling request. The relationship between the intelligent terminals can be determined by the type of the selected communication protocol during binding. A certain intelligent terminal can establish a communication protocol among cloud terminal management APPs of N5G intelligent terminals at the same time, and the communication protocol is used for acquiring an application program list, hardware information, a control command set and the like of an opposite-end intelligent terminal. The mutual relation of the N5G intelligent terminals can be simultaneously established by one intelligent terminal, and the mutual relation can be distinguished and realized through different types of communication protocols. The application program list comprises application programs which are normally set in the intelligent terminal and are used for playing music, shooting, videos, voices and the like, and the hardware information comprises information which is needed when the application programs run and corresponds to hardware in the intelligent terminal, such as hardware names, starting paths and the like. The control command set includes all commands that a specific application program can use when running, for example, when starting a music player, the corresponding control command set includes, but is not limited to, volume, fast forward, next, and song cutting. The 5G cloud terminal management APP obtains the application program list and the hardware information of the intelligent terminal where the APP is located, and can call the application program and the hardware of the intelligent terminal where the APP is located. After the cloud terminal management APP is bound to the intelligent terminals, communication among the intelligent terminals can be achieved, the application program of the controlled 5G intelligent terminal is operated and hardware is called, the operated result of the application program is transmitted to the 5G intelligent terminal serving as the control terminal through the 5G IP data stream by the controlled 5G intelligent terminal, and the same-screen interaction or cooperative operation relation between the control terminal and the controlled terminal is achieved.
Further, after the step S603 of determining the intelligent terminals corresponding to the control terminal and the controlled terminal respectively, the method includes:
s604: acquiring an application program list and hardware information of the second intelligent terminal extracted by the second cloud terminal management APP through an IP data stream;
s605: forming control information according to the application program list and the hardware information of the second intelligent terminal, wherein the control information carries parameter information of the application program to be controlled and parameter information of the hardware;
s606: controlling the first cloud terminal management APP to send the control information to the second cloud terminal management APP;
s607: and receiving processing result information formed after the second cloud terminal management APP calls the application program to be controlled and the hardware according to the control information.
According to the embodiment of the application, the mutual relation between the control end and the controlled end is used for explaining the information transmission and interaction process between the two intelligent terminals. Firstly, a cloud terminal management APP of a control end sends related control information to a cloud terminal management APP of a controlled end, such as: monitoring a screen, transmitting a file, playing music, restarting an intelligent terminal or capturing a screen and the like. And the cloud terminal management APP of the controlled terminal carries out information processing by calling related software and hardware of the intelligent terminal of the controlled terminal and transmits a processing result to the cloud terminal management APP of the control terminal. For example, a control end user clicks an application program list of an opposite-end intelligent terminal with a SIM card number bound in advance in a cloud terminal management APP, and selects a music player in the application program list, the cloud terminal management APP of the control end sends an IP data packet corresponding to control information to a controlled end through a global public gateway of the control end, namely, the IP data packet is forwarded to the global public gateway of the controlled end through an IP data link, the global public gateway of the controlled end forwards the IP data packet to the cloud terminal management APP of the controlled end according to an IP address for analyzing the IP data packet, after the cloud terminal management APP analyzes the IP data packet, the application program carried and called in the control information is determined to be the music player, then the music player of the intelligent terminal where the control information is located is called through the cloud terminal management APP, and the operation of the music player is realized. The music player of the intelligent terminal where the cloud terminal management APP is located is started, information such as a current music list is packaged and transmitted to the cloud terminal management APP of the control end, the control end acquires information such as the music list through the cloud terminal management APP and displays the information, the information can be synchronously displayed by the control end, and the use interaction and communication of intelligent terminal users at two ends are facilitated. In another embodiment of the application, when the control terminal manages the APP through the cloud terminal to acquire and display information such as the music list, the information is not displayed by the control terminal, so that power consumption is saved. The cloud terminal management APP of the control end selects the music files of the music to be played in the music list, the music files of the music to be played are transmitted to the cloud terminal management APP of the controlled end, the cloud terminal management APP of the controlled end calls the music player of the controlled end to decode the music files, the decoded audio data stream is pushed to the cloud terminal management APP of the control end, the audio data stream is played at the control end, the problem that a decoder for decoding the music files does not exist in the control end is solved, and the control end and the hardware resource sharing of the controlled end are achieved. In another embodiment of the present application, the music file at the control end is decoded at the controlled end and played at the controlled end, so as to implement sharing of data resources, where the decoded audio data stream is the processing result information.
Further, the step S607 of receiving the processing result information formed after the second cloud terminal management APP calls the application program to be controlled and the hardware according to the control information includes:
s608: calling a player of the first intelligent terminal;
s609: and controlling a player of the first intelligent terminal to play the decoded audio data stream.
In the embodiment of the present application, the decoded audio data stream is played at the control end to realize remote music playing, which is taken as an example to reflect the correlation between the control end and the controlled end. After the cloud terminal management APP of the control end receives the audio data stream decoded by the control end, the loudspeaker hardware of the control end can be called through the cloud terminal management APP of the control end, the loudspeaker is driven to sound, music playing is carried out on a music file decoded by the control end at the control end, or the music playing is carried out on the control end and the controlled end synchronously, and interactive operations such as resource sharing of the control end and the controlled end are achieved.
Further, after step S602 of setting a second global public gateway in the second intelligent terminal, and determining whether the control relationship in the communication protocol is a relationship between a controlled master and a controlled slave, the method includes:
s6021: if the relationship is not the relationship between the control and the controlled master-slave equipment, the interactive relationship that the first intelligent terminal and the second intelligent terminal are symmetrical mirror images is judged;
s6022: judging whether the first global public gateway receives calling information sent by the second cloud terminal management APP through the second global public gateway or not, wherein the calling information is sent in the form of an IP data packet, and the calling information carries parameter information of a specified application program of the first intelligent terminal to be called;
s6023: if yes, controlling the first cloud terminal management APP to analyze the calling information and determining the specified application program;
s6024: starting and operating the specified application program to form an operation information list;
s6025: and sending the running information list to the second cloud terminal management APP through the first cloud terminal management APP.
According to the embodiment of the application, the mutual relationship between the two intelligent terminals is equal to each other, namely the interaction relationship of symmetrical mirror images, and which intelligent terminal initiates a sharing or control instruction becomes the control terminal at the current moment. In this embodiment, the two intelligent terminals that establish the interaction relationship both have an equivalent function and both have a function of initiating a control or sharing instruction. When the mutual mirror interaction relationship of the 5G intelligent terminals is firstly carried out, and when a data link of the 5G intelligent terminal is opened, an operator automatically allocates an IP address to the 5G intelligent terminal initiating the control or sharing instruction, an SIM card number of an opposite intelligent terminal is set in a 5G cloud terminal management APP of the 5G intelligent terminal initiating the control or sharing instruction, a 5G RCS containing the IP address of the 5G intelligent terminal initiating the control or sharing instruction is sent to the 5G intelligent terminal corresponding to the SIM card number, the 5G cloud terminal management APP of the opposite intelligent terminal analyzes the received 5G RCS short message, the IP address of the 5G intelligent terminal initiating the control or sharing instruction is obtained, and the two are bound with each other. After the binding is successful, the display of successful binding is displayed in the 5G cloud terminal management APP of the intelligent terminals at the two ends. Meanwhile, the 5G cloud terminal management APPs of the intelligent terminals at the two ends are communicated with each other, and a program list of specific application programs of the controlled end is obtained in an IP data flow mode and comprises three-party application programs such as a photographing application program, a gallery application program, a 5G terminal sub APP application program and the like, and a quick application layer sequence such as a monitoring screen and data transmission.
In the application, the SIM card numbers of a plurality of opposite-end intelligent terminals can be set in a 5G cloud terminal management APP of one intelligent terminal, one-to-many association interaction is realized, and a communication protocol can be set in the one-to-many association interaction to realize coexistence of various interrelations. For example, the SIM card numbers of the smart terminal B, the smart terminal C and the smart terminal D are set in the 5G cloud terminal management APP of the smart terminal a, so that the interactive relationship of control of a and B, the interactive relationship of peer-to-peer images of a and C, and the interactive relationship of control of a and D coexist on the smart terminal a at the same time. The different interaction relations are realized by setting different communication protocols, but the intelligent terminal A, the intelligent terminal B, the intelligent terminal C and the intelligent terminal D are respectively provided with a cloud terminal management APP, a global public gateway, an API (application program interface) for controlling 5G RCS short messages and a control mechanism of the 5G RCS short messages, so that a transmission path and an IP data link of the two-way 5G RCS short messages exist between the intelligent terminals at two ends of the interaction relation, and the long connection state of the IP data of the intelligent terminals at the two ends is maintained.
Referring to fig. 2, an IP data long connection apparatus according to an embodiment of the present application is integrated on an intelligent terminal, and the apparatus includes:
the system comprises a receiving module 1 and a sending module, wherein the receiving module 1 is used for receiving 5G RCS short messages in real time, and a first cloud terminal management APP, a first global public gateway and a first API (application programming interface) for controlling the 5G RCS short messages are arranged in a first intelligent terminal;
the first control module 2 is used for controlling the first cloud terminal management APP to call the first API interface and reading the 5G RCS short message;
the first judging module 3 is used for judging whether the 5G RCS short message is sent by a second intelligent terminal bound with an SIM card number in advance, wherein the second intelligent terminal is any one of a plurality of intelligent terminals bound with the SIM card number with the first intelligent terminal in advance;
the second control module 4 is configured to control the first API interface to push the 5G RCS short message to the first cloud terminal management APP if the 5G RCS short message is sent by a second intelligent terminal that is pre-bound with a SIM card number;
the first obtaining module 5 is configured to obtain an IP address of the second intelligent terminal, where the IP address is obtained by the first cloud terminal management APP through analysis of the 5G RCS short message;
and the synchronization module 6 is used for synchronizing the IP address of the second intelligent terminal to the IP address table of the first global public gateway and keeping long IP data connection with the second intelligent terminal through the IP address in the IP address table after synchronous updating.
This application is through designing global public gateway and 5G cloud terminal management APP and RCS SMS control mechanism on 5G intelligent terminal, realize all outside HTTP visits on the 5G intelligent terminal, all store and forward through global public gateway, be equipped with an IP address table in the global public gateway, there is the dynamic IP address of 5G intelligent terminal of the opposite terminal that 5G intelligent terminal binds the SIM card number in advance in the IP address table, and the IP data package of 5G cloud terminal management APP that local 5G cloud terminal management APP sent the opposite terminal intelligent terminal in the long time t in the cache is continuous, the size of the long time t of the aforesaid can self-defined setting. The implementation process of binding the IP address of the 5G intelligent terminal and the SIM card number comprises the step of establishing a corresponding table of the SIM card number of the opposite intelligent terminal and the obtained dynamic IP address of the opposite intelligent terminal in a 5G cloud terminal management APP of the machine. And each bound SIM card number is fixed and unchanged, but the IP address corresponding to each fixed SIM card number is dynamically changed so as to adapt to the state of dynamically matching the IP address by an operator, and the IP data long connection is established between two or more 5G intelligent terminals. The 5G cloud terminal management APP can call an API (application program interface) of the 5G RCS short message, and has the functions of sending the 5G RCS short message and reading the 5G RCS short message. The method and the device have the advantages that the data information of the received IP data packet is analyzed through the 5G cloud terminal management APP so as to obtain the address information of the IP data packet, if the IP address of the 5G opposite end is bound, the IP data packet is pushed to the 5G cloud terminal management APP of the device, and the IP data stream information is forwarded to corresponding application program software according to the address information of the corresponding IP data packet. The process that the 5G intelligent terminal binds the opposite end 5G intelligent terminal of the SIM card number in advance is realized through a 5G RCS short message technology. This application is through designing 5G cloud terminal management APP and global public gateway, bind the SIM card number with 5G RCS short message technique, manage the APP through 5G cloud terminal and carry out the analysis to the data message of IP data package received, in order to obtain the address information of IP data package, if the IP address of the 5G opposite terminal of binding the SIM card number, then establish the long connection of IP data, can bind N SIM card numbers with 5G RCS short message technique, establish the mutual direct long connection of IP data between N platform 5G terminals, replace the third party server, utilize 5G large bandwidth, low time delay, many concurrent characteristics, reduce the cost of data connection between the intelligent terminal, slow down the time delay. And the communication protocol and control among the APPs are managed through the 5G cloud terminal, so that the master-slave application of the servers and the clients of the plurality of 5G terminals or the application of the symmetrical mirror image terminal are realized. The embodiment of the present application is described in detail by taking an example of establishing an IP data long connection between a first intelligent terminal and a second intelligent terminal, and taking the first intelligent terminal as a local terminal and the second intelligent terminal as an opposite terminal. The first intelligent terminal can establish long-term IP data connection with a plurality of opposite-end intelligent terminals at the same time, is not interfered with each other, and can be realized by designing a communication protocol. The first intelligent terminal and the second intelligent terminal are only used for distinction and are not used for limitation, and the effects of the terms like "first" and "second" in other places are the same and are not repeated.
Referring to fig. 3, set up second cloud terminal management APP and second API interface in the second intelligent terminal, the device of the long connection of IP data of another embodiment of this application includes:
a second obtaining module 61, configured to obtain a new 5G RCS short message sent by the second intelligent terminal through the second API interface, where the new 5G RCS short message carries a new IP address updated by the second intelligent terminal, and the new IP address is obtained by monitoring, in real time, the second cloud terminal management APP in the second intelligent terminal;
the third control module 62 is configured to control the first cloud terminal management APP to analyze the new 5G RCS short message to obtain the new IP address;
an updating module 63, configured to update the IP address table of the first global public gateway according to the new IP address;
and a maintaining module 64, configured to maintain long IP data connection with the second intelligent terminal through the new IP address in the updated IP address table.
The dynamic IP address of the 5G intelligent terminal realizes a real-time monitoring and real-time refreshing and retaining mode. The method comprises the steps that a 5G cloud terminal manages an APP to monitor the dynamic IP address change condition of a 5G network of an intelligent terminal where the APP is located at any time, when the dynamic IP address of the 5G network of the intelligent terminal where the APP is located is found to change, the 5G cloud terminal manages the APP to call an API (application programming interface) interface of a 5G RCS (remote control system) short message of the intelligent terminal where the APP is located, a new 5GRCS short message containing the new IP address of the intelligent terminal where the APP is located is sent to the intelligent terminal of a bound SIM card number, and the RCS short message analysis control mechanism of an opposite-end intelligent terminal of the SIM card number is touched and bound, so that the 5G intelligent terminal bound with. If the new 5GRCS short message is an RCS short message sent by an intelligent terminal bound with an SIM card number, the received new 5GRCS short message is pushed to a cloud terminal management APP through an API (application program interface) of the intelligent terminal receiving the new 5GRCS short message, the cloud terminal management APP of the intelligent terminal receiving the new 5GRCS short message analyzes the received new 5GRCS short message according to an agreed communication protocol to obtain an updated dynamic IP address of an opposite-end intelligent terminal, and an IP address table in a global public gateway of the intelligent terminal receiving the new 5GRCS short message is synchronously updated to realize the updated dynamic IP address by connecting the opposite-end intelligent terminal, so that an end-to-end IP data long connection link between the 5G intelligent terminals is maintained.
Referring to fig. 4, the new 5G RCS short message carries an IP address update timestamp, and the maintaining module 64 includes:
an obtaining unit 641, configured to obtain the IP address update timestamp obtained when the first cloud terminal management APP analyzes the new 5G RCS short message;
the judging unit 642 is configured to judge whether a time difference between the current time and the second intelligent terminal IP address update time is less than a preset time length according to the IP address update timestamp;
the control unit 643, configured to control the first cloud terminal management APP to send the IP data packet cached in the preset duration to the second cloud terminal management APP if a time difference between the current time and the second intelligent terminal IP address update time is smaller than a preset duration, and keep long connection of IP data through the IP data packet.
According to the method and the device, the timestamp of the 5G RCS short message sent by the opposite-end intelligent terminal is analyzed and received through the 5G cloud terminal management APP, whether the current moment is within the preset time t of the dynamic IP address change of the opposite-end intelligent terminal is judged according to the timestamp, for example, the time length from the time corresponding to the timestamp to the time of the current execution judgment action is smaller than the preset time t, and the current moment is considered to be within the preset time t of the IP address change of the second intelligent terminal. At the moment, the cloud terminal management APP of the intelligent terminal receiving the 5G RCS short message sends the IP data packet of the current moment to the cloud terminal management APP of the opposite terminal intelligent terminal, the intelligent terminal used for receiving the 5G RCS short message is controlled, the IP data packet stored in the global public gateway within the time length t is sent to the cloud terminal management APP of the opposite terminal intelligent terminal after the address is changed again, and no data loss of the IP data packet in the time period when the dynamic IP address is updated and changed is ensured.
Referring to fig. 5, an IP data long connection apparatus according to still another embodiment includes:
a third obtaining module 601, configured to obtain a communication protocol selected when the first intelligent terminal and the second intelligent terminal are set and bound;
a second determining module 602, configured to determine whether a control relationship in the communication protocol is a relationship between a controlled master and a controlled slave;
the determining module 603 is configured to determine, if the relationship between the control terminal and the controlled master device is a master-slave device relationship, the intelligent terminals corresponding to the control terminal and the controlled terminal, respectively.
The 5G cloud terminal management APP can set the mutual relation of N5G intelligent terminals bound with SIM card numbers, such as the control of a client and a host and the relation of a controlled master device and a controlled slave device or the mirror symmetry peer-to-peer relation. The master machine can control the application programs of the slave machines in the relationship between the master device and the slave device which are controlled, the mirror symmetry peer-to-peer relationship can control the application programs at the opposite ends, and the control and controlled relationship can exchange roles at any time according to the initiated calling request. The relationship between the intelligent terminals can be determined by the type of the selected communication protocol during binding. A certain intelligent terminal can establish a communication protocol among cloud terminal management APPs of N5G intelligent terminals at the same time, and the communication protocol is used for acquiring an application program list, hardware information, a control command set and the like of an opposite-end intelligent terminal. The mutual relation of the N5G intelligent terminals can be simultaneously established by one intelligent terminal, and the mutual relation can be distinguished and realized through different types of communication protocols. The application program list comprises application programs which are normally set in the intelligent terminal and are used for playing music, shooting, videos, voices and the like, and the hardware information comprises information which is needed when the application programs run and corresponds to hardware in the intelligent terminal, such as hardware names, starting paths and the like. The control command set includes all commands that a specific application program can use when running, for example, when starting a music player, the corresponding control command set includes, but is not limited to, volume, fast forward, next, and song cutting. The 5G cloud terminal management APP obtains the application program list and the hardware information of the intelligent terminal where the APP is located, and can call the application program and the hardware of the intelligent terminal where the APP is located. After the cloud terminal management APP is bound to the intelligent terminals, communication among the intelligent terminals can be achieved, the application program of the controlled 5G intelligent terminal is operated and hardware is called, the operated result of the application program is transmitted to the 5G intelligent terminal serving as the control terminal through the 5G IP data stream by the controlled 5G intelligent terminal, and the same-screen interaction or cooperative operation relation between the control terminal and the controlled terminal is achieved.
Further, the first intelligent terminal is the control terminal, the second intelligent terminal is the controlled terminal, and the IP data length connection device includes:
a fourth obtaining module 604, configured to obtain, through an IP data stream, an application program list and hardware information of the second intelligent terminal extracted by the second cloud terminal management APP;
a first forming module 605, configured to form control information according to the application program list and the hardware information of the second intelligent terminal, where the control information carries parameter information of an application program to be controlled and parameter information of hardware;
a fourth control module 606, configured to control the first cloud terminal management APP to send the control information to the second cloud terminal management APP;
a second forming module 607, configured to receive processing result information formed after the second cloud terminal management APP calls the application program to be controlled and the hardware according to the control information.
According to the embodiment of the application, the mutual relation between the control end and the controlled end is used for explaining the information transmission and interaction process between the two intelligent terminals. Firstly, a cloud terminal management APP of a control end sends related control information to a cloud terminal management APP of a controlled end, such as: monitoring a screen, transmitting a file, playing music, restarting an intelligent terminal or capturing a screen and the like. And the cloud terminal management APP of the controlled terminal carries out information processing by calling related software and hardware of the intelligent terminal of the controlled terminal and transmits a processing result to the cloud terminal management APP of the control terminal. For example, a control end user clicks an application program list of an opposite-end intelligent terminal with a SIM card number bound in advance in a cloud terminal management APP, and selects a music player in the application program list, the cloud terminal management APP of the control end sends an IP data packet corresponding to control information to a controlled end through a global public gateway of the control end, namely, the IP data packet is forwarded to the global public gateway of the controlled end through an IP data link, the global public gateway of the controlled end forwards the IP data packet to the cloud terminal management APP of the controlled end according to an IP address for analyzing the IP data packet, after the cloud terminal management APP analyzes the IP data packet, the application program carried and called in the control information is determined to be the music player, then the music player of the intelligent terminal where the control information is located is called through the cloud terminal management APP, and the operation of the music player is realized. The music player of the intelligent terminal where the cloud terminal management APP is located is started, information such as a current music list is packaged and transmitted to the cloud terminal management APP of the control end, the control end acquires information such as the music list through the cloud terminal management APP and displays the information, the information can be synchronously displayed by the control end, and the use interaction and communication of intelligent terminal users at two ends are facilitated. In another embodiment of the application, when the control terminal manages the APP through the cloud terminal to acquire and display information such as the music list, the information is not displayed by the control terminal, so that power consumption is saved. The cloud terminal management APP of the control end selects the music files of the music to be played in the music list, the music files corresponding to the music to be played are transmitted to the cloud terminal management APP of the controlled end, the cloud terminal management APP of the controlled end calls the music player of the controlled end to decode the music files, the decoded audio data stream is pushed to the cloud terminal management APP of the control end, the audio data stream is played at the control end, the problem that a decoder for decoding the music files does not exist in the control end is solved, and the control end and the hardware resource sharing of the controlled end are achieved. In another embodiment of the present application, the music file at the control end is decoded at the controlled end and played at the controlled end, so as to implement sharing of data resources, where the decoded audio data stream is the processing result information.
Further, the processing result information includes decoded audio data stream, and the IP data length connection device includes:
a calling module 608, configured to call a player of the first intelligent terminal;
a fifth control module 609, configured to control the player of the first intelligent terminal to play the decoded audio data stream.
In the embodiment of the present application, the decoded audio data stream is played at the control end to realize remote music playing, which is taken as an example to reflect the correlation between the control end and the controlled end. After the cloud terminal management APP of the control end receives the audio data stream decoded by the control end, the loudspeaker hardware of the control end can be called through the cloud terminal management APP of the control end, the loudspeaker is driven to sound, music playing is carried out on a music file decoded by the control end at the control end, or the music playing is carried out on the control end and the controlled end synchronously, and interactive operations such as resource sharing of the control end and the controlled end are achieved.
Further, a second global public gateway is set in the second intelligent terminal, and a device for long connection of IP data in another embodiment includes:
a determination module 6021, configured to determine that the first intelligent terminal and the second intelligent terminal are in an interaction relationship of a symmetric mirror image if the relationship is not a relationship between a controlled master device and a controlled slave device;
a third determining module 6022, configured to determine whether the first global public gateway receives call information sent by the second cloud terminal management APP through the second global public gateway, where the call information is sent in an IP data packet, and the call information carries parameter information of a specific application program of the first intelligent terminal to be called;
a sixth control module 6023, configured to receive the call information sent by the second cloud terminal management APP through the second global public gateway, control the first cloud terminal management APP to analyze the call information, and determine the specified application program;
a starting module 6024, configured to start and run the specified application program to form a running information list;
a sending module 6025, configured to send the operation information list to the second cloud terminal management APP through the first cloud terminal management APP.
According to the embodiment of the application, the mutual relationship between the two intelligent terminals is equal to each other, namely the interaction relationship of symmetrical mirror images, and which intelligent terminal initiates a sharing or control instruction becomes the control terminal at the current moment. In this embodiment, the two intelligent terminals that establish the interaction relationship both have an equivalent function and both have a function of initiating a control or sharing instruction. When the mutual mirror interaction relationship of the 5G intelligent terminals is firstly carried out, and when a data link of the 5G intelligent terminal is opened, an operator automatically allocates an IP address to the 5G intelligent terminal initiating the control or sharing instruction, an SIM card number of an opposite intelligent terminal is set in a 5G cloud terminal management APP of the 5G intelligent terminal initiating the control or sharing instruction, a 5G RCS containing the IP address of the 5G intelligent terminal initiating the control or sharing instruction is sent to the 5G intelligent terminal corresponding to the SIM card number, the 5G cloud terminal management APP of the opposite intelligent terminal analyzes the received 5G RCS short message, the IP address of the 5G intelligent terminal initiating the control or sharing instruction is obtained, and the two are bound with each other. After the binding is successful, the display of successful binding is displayed in the 5G cloud terminal management APP of the intelligent terminals at the two ends. Meanwhile, the 5G cloud terminal management APPs of the intelligent terminals at the two ends are communicated with each other, and a program list of specific application programs of the controlled end is obtained in an IP data flow mode and comprises three-party application programs such as a photographing application program, a gallery application program, a 5G terminal sub APP application program and the like, and a quick application layer sequence such as a monitoring screen and data transmission.
In the application, the SIM card numbers of a plurality of opposite-end intelligent terminals can be set in a 5G cloud terminal management APP of one intelligent terminal, one-to-many association interaction is realized, and a communication protocol can be set in the one-to-many association interaction to realize coexistence of various interrelations. For example, the SIM card numbers of the smart terminal B, the smart terminal C and the smart terminal D are set in the 5G cloud terminal management APP of the smart terminal a, so that the interactive relationship of control of a and B, the interactive relationship of peer-to-peer images of a and C, and the interactive relationship of control of a and D coexist on the smart terminal a at the same time. The different interaction relations are realized by setting different communication protocols, but the intelligent terminal A, the intelligent terminal B, the intelligent terminal C and the intelligent terminal D are respectively provided with a cloud terminal management APP, a global public gateway, an API (application program interface) for controlling 5G RCS short messages and a control mechanism of the 5G RCS short messages, so that a transmission path and an IP data link of the two-way 5G RCS short messages exist between the intelligent terminals at two ends of the interaction relation, and the long connection state of the IP data of the intelligent terminals at the two ends is maintained.
Referring to fig. 6, a computer device, which may be a server and whose internal structure may be as shown in fig. 6, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for storing all data required by the process of long connection of the IP data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of IP data long connection.
The method for executing the long connection of the IP data by the processor comprises the following steps: the method comprises the steps that a first intelligent terminal receives a 5G RCS short message in real time, wherein a first cloud terminal management APP, a first global public gateway and a first API (application programming interface) for controlling the 5G RCS short message are arranged in the first intelligent terminal; controlling the first cloud terminal management APP to call the first API interface, and reading the 5G RCS short message; judging whether the 5G RCS short message is sent by a second intelligent terminal pre-bound with an SIM card number, wherein the second intelligent terminal is any one of a plurality of intelligent terminals pre-bound with the SIM card number with the first intelligent terminal; if yes, controlling the first API to push the 5G RCS short message to the first cloud terminal management APP; acquiring an IP address of the second intelligent terminal obtained by the first cloud terminal management APP through analysis of the 5G RCS short message; and synchronizing the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and keeping long IP data connection with the second intelligent terminal through the IP address in the IP address table after synchronous updating.
According to the computer equipment, through designing a 5G cloud terminal management APP and a global public gateway, mutual direct IP data long connection between N5G terminals is established by using a mode of binding SIM card numbers by using a 5G RCS short message technology, a third-party server is replaced, and the server and client master-slave application or symmetrical mirror image terminal application of a plurality of 5G terminals is realized by using the characteristics of 5G large bandwidth, low time delay and multiple concurrency and through the communication protocol and control between 5G cloud terminal management APPs.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the present teachings and is not intended to limit the scope of the present teachings as applied to computer devices.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of IP data long connectivity, comprising: the method comprises the steps that a first intelligent terminal receives a 5G RCS short message in real time, wherein a first cloud terminal management APP, a first global public gateway and a first API (application programming interface) for controlling the 5G RCS short message are arranged in the first intelligent terminal; controlling the first cloud terminal management APP to call the first API interface, and reading the 5G RCS short message; judging whether the 5G RCS short message is sent by a second intelligent terminal pre-bound with an SIM card number, wherein the second intelligent terminal is any one of a plurality of intelligent terminals pre-bound with the SIM card number with the first intelligent terminal; if yes, controlling the first API to push the 5G RCS short message to the first cloud terminal management APP; acquiring an IP address of the second intelligent terminal obtained by the first cloud terminal management APP through analysis of the 5G RCS short message; and synchronizing the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and keeping long IP data connection with the second intelligent terminal through the IP address in the IP address table after synchronous updating.
According to the computer readable storage medium, through designing a 5G cloud terminal management APP and a global public gateway, mutual direct IP data long connection between N5G terminals is established in a mode of binding SIM card numbers by using a 5G RCS short message technology, a third-party server is replaced, and the server of a plurality of 5G terminals and the application of client master-slave application or symmetrical mirror image terminals are realized by using the characteristics of large bandwidth, low time delay and multiple concurrency of 5G and through the communication protocol and control between the 5G cloud terminal management APPs.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A method for long IP data connections, comprising:
the method comprises the steps that a first intelligent terminal receives a 5G RCS short message in real time, wherein a first cloud terminal management APP, a first global public gateway and a first API (application programming interface) for controlling the 5G RCS short message are arranged in the first intelligent terminal;
controlling the first cloud terminal management APP to call the first API interface, and reading the 5G RCS short message;
judging whether the 5G RCS short message is sent by a second intelligent terminal pre-bound with an SIM card number, wherein the second intelligent terminal is any one of a plurality of intelligent terminals pre-bound with the SIM card number with the first intelligent terminal;
if yes, controlling the first API to push the 5G RCS short message to the first cloud terminal management APP;
acquiring an IP address of the second intelligent terminal obtained by the first cloud terminal management APP through analysis of the 5G RCS short message;
and synchronizing the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and keeping long IP data connection with the second intelligent terminal through the IP address in the IP address table after synchronous updating.
2. The method according to claim 1, wherein a second cloud terminal management APP and a second API interface are provided in the second intelligent terminal, and after the step of synchronizing the IP address of the second intelligent terminal to the IP address table of the first global public gateway and maintaining long IP data connection with the second intelligent terminal through the synchronized and updated IP address in the IP address table, the method comprises:
acquiring a new 5G RCS short message sent by the second intelligent terminal through the second API, wherein the new 5G RCS short message carries a new IP address updated by the second intelligent terminal, and the new IP address is obtained by monitoring the second cloud terminal management APP in the second intelligent terminal in real time;
controlling the first cloud terminal management APP to analyze the new 5G RCS short message to obtain the new IP address;
updating an IP address table of the first global public gateway according to the new IP address;
and keeping the long connection of the IP data with the second intelligent terminal through the new IP address in the updated IP address table.
3. The method of claim 2, wherein the new 5G RCS short message carries an IP address update timestamp, and the step of maintaining the long IP data connection with the second intelligent terminal through the new IP address in the updated IP address table comprises:
acquiring the IP address update timestamp obtained when the first cloud terminal management APP analyzes the new 5G RCS short message;
judging whether the time difference between the current time and the second intelligent terminal IP address updating time is less than a preset time length or not according to the IP address updating time stamp;
if yes, controlling the first cloud terminal management APP to send the IP data packet cached in the preset duration to the second cloud terminal management APP, and keeping the connection of the IP data duration through the IP data packet.
4. The method of claim 1, wherein after the step of synchronizing the IP address of the second intelligent terminal to the IP address table of the first global public gateway and maintaining the long IP data connection with the second intelligent terminal by synchronizing the updated IP address in the IP address table, the method comprises:
acquiring a communication protocol selected when the first intelligent terminal and the second intelligent terminal are set and bound;
judging whether the control relation in the communication protocol is the relation between the control and the controlled master-slave equipment or not;
and if so, determining the intelligent terminals respectively corresponding to the control terminal and the controlled terminal.
5. The method according to claim 4, wherein the first intelligent terminal is the control terminal, the second intelligent terminal is the controlled terminal, and after the step of determining the intelligent terminals corresponding to the control terminal and the controlled terminal respectively, the method comprises:
acquiring an application program list and hardware information of the second intelligent terminal extracted by the second cloud terminal management APP through an IP data stream;
forming control information according to the application program list and the hardware information of the second intelligent terminal, wherein the control information carries parameter information of the application program to be controlled and parameter information of the hardware;
controlling the first cloud terminal management APP to send the control information to the second cloud terminal management APP;
and receiving processing result information formed after the second cloud terminal management APP calls the application program to be controlled and the hardware according to the control information.
6. The method of claim 5, wherein the processing result information includes a decoded audio data stream, and after the step of receiving the processing result information formed by the second cloud terminal management APP calling the application to be controlled and the hardware according to the control information, the method includes:
calling a player of the first intelligent terminal;
and controlling a player of the first intelligent terminal to play the decoded audio data stream.
7. The method for long connection of IP data according to claim 4, wherein a second global public gateway is disposed in the second intelligent terminal, and after the step of determining whether the control relationship in the communication protocol is a relationship between a controlled master device and a controlled slave device, the method comprises:
if the relationship is not the relationship between the control and the controlled master-slave equipment, the interactive relationship that the first intelligent terminal and the second intelligent terminal are symmetrical mirror images is judged;
judging whether the first global public gateway receives calling information sent by the second cloud terminal management APP through the second global public gateway or not, wherein the calling information is sent in the form of an IP data packet, and the calling information carries parameter information of a specified application program of the first intelligent terminal to be called;
if yes, controlling the first cloud terminal management APP to analyze the calling information and determining the specified application program;
starting and operating the specified application program to form an operation information list;
and sending the running information list to the second cloud terminal management APP through the first cloud terminal management APP.
8. An apparatus for long connection of IP data, which is integrated in an intelligent terminal, the apparatus comprising:
the receiving module is used for receiving 5G RCS short messages in real time, wherein a first cloud terminal management APP, a first global public gateway and a first API (application programming interface) for controlling the 5G RCS short messages are arranged in the first intelligent terminal;
the first control module is used for controlling the first cloud terminal management APP to call the first API interface and reading the 5G RCS short message;
the first judging module is used for judging whether the 5G RCS short message is sent by a second intelligent terminal pre-bound with an SIM card number, wherein the second intelligent terminal is any one of a plurality of intelligent terminals pre-bound with the SIM card number with the first intelligent terminal;
the second control module is used for controlling the first API interface to push the 5G RCS short message to the first cloud terminal management APP if the 5G RCS short message is sent by a second intelligent terminal which is bound with an SIM card number in advance;
the first obtaining module is used for obtaining the IP address of the second intelligent terminal obtained by the first cloud terminal management APP through analysis of the 5G RCS short message;
and the synchronization module is used for synchronizing the IP address of the second intelligent terminal to the IP address table of the first global public gateway and keeping long IP data connection with the second intelligent terminal through the IP address in the IP address table after synchronous updating.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010724398.9A 2020-07-24 2020-07-24 Method and device for long connection of IP data and computer equipment Active CN111935656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010724398.9A CN111935656B (en) 2020-07-24 2020-07-24 Method and device for long connection of IP data and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010724398.9A CN111935656B (en) 2020-07-24 2020-07-24 Method and device for long connection of IP data and computer equipment

Publications (2)

Publication Number Publication Date
CN111935656A true CN111935656A (en) 2020-11-13
CN111935656B CN111935656B (en) 2021-12-14

Family

ID=73315502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010724398.9A Active CN111935656B (en) 2020-07-24 2020-07-24 Method and device for long connection of IP data and computer equipment

Country Status (1)

Country Link
CN (1) CN111935656B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691591A (en) * 2021-08-02 2021-11-23 中移(杭州)信息技术有限公司 Data transmission method, device and computer readable storage medium
CN114125732A (en) * 2021-11-11 2022-03-01 中国电信股份有限公司 Message processing method and device, storage medium and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567861A (en) * 2009-05-20 2009-10-28 福建星网锐捷网络有限公司 Data synchronization method and application system between heterogeneous application systems
CN103475753A (en) * 2013-09-29 2013-12-25 北京奇虎科技有限公司 Method, device and system for transmitting data
CN103501335A (en) * 2013-09-29 2014-01-08 北京奇虎科技有限公司 Data transmission method, data transmission equipment and data transmission system
CN103929450A (en) * 2013-01-14 2014-07-16 联想(北京)有限公司 Data synchronization method and data synchronization device
CN104811478A (en) * 2015-03-27 2015-07-29 上海斐讯数据通信技术有限公司 Remote control system and method of wireless terminal equipment
CN105049404A (en) * 2015-05-26 2015-11-11 江苏省公用信息有限公司 Dynamic IP addressing method and system for home gateway equipment
CN105812413A (en) * 2014-12-29 2016-07-27 深圳市腾讯计算机系统有限公司 Communication method and device
CN105933355A (en) * 2016-07-07 2016-09-07 中国联合网络通信集团有限公司 Internet of things terminal management method, internet of things server and network server
CN106713338A (en) * 2017-01-03 2017-05-24 上海金融云服务集团安全技术有限公司 Long connection tunnel establishment method based on server hardware information
US20180176079A1 (en) * 2015-05-29 2018-06-21 Espressif Systems (Shanghai) Pte. Ltd. Internet of Things Configuration Method and System for Secure Low-Power-Consumption Proxy Device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567861A (en) * 2009-05-20 2009-10-28 福建星网锐捷网络有限公司 Data synchronization method and application system between heterogeneous application systems
CN103929450A (en) * 2013-01-14 2014-07-16 联想(北京)有限公司 Data synchronization method and data synchronization device
CN103475753A (en) * 2013-09-29 2013-12-25 北京奇虎科技有限公司 Method, device and system for transmitting data
CN103501335A (en) * 2013-09-29 2014-01-08 北京奇虎科技有限公司 Data transmission method, data transmission equipment and data transmission system
CN105812413A (en) * 2014-12-29 2016-07-27 深圳市腾讯计算机系统有限公司 Communication method and device
CN104811478A (en) * 2015-03-27 2015-07-29 上海斐讯数据通信技术有限公司 Remote control system and method of wireless terminal equipment
CN105049404A (en) * 2015-05-26 2015-11-11 江苏省公用信息有限公司 Dynamic IP addressing method and system for home gateway equipment
US20180176079A1 (en) * 2015-05-29 2018-06-21 Espressif Systems (Shanghai) Pte. Ltd. Internet of Things Configuration Method and System for Secure Low-Power-Consumption Proxy Device
CN105933355A (en) * 2016-07-07 2016-09-07 中国联合网络通信集团有限公司 Internet of things terminal management method, internet of things server and network server
CN106713338A (en) * 2017-01-03 2017-05-24 上海金融云服务集团安全技术有限公司 Long connection tunnel establishment method based on server hardware information

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691591A (en) * 2021-08-02 2021-11-23 中移(杭州)信息技术有限公司 Data transmission method, device and computer readable storage medium
CN114125732A (en) * 2021-11-11 2022-03-01 中国电信股份有限公司 Message processing method and device, storage medium and electronic equipment
CN114125732B (en) * 2021-11-11 2023-06-16 中国电信股份有限公司 Message processing method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN111935656B (en) 2021-12-14

Similar Documents

Publication Publication Date Title
CN109525990B (en) Wireless screen projection method and device, computer equipment and storage medium
CN111479121B (en) Live broadcasting method and system based on streaming media server
US10194180B2 (en) Systems and methods for transmitting video data over a network
CN111935656B (en) Method and device for long connection of IP data and computer equipment
CN113411215B (en) Time-sensitive network centralized user configuration method and system based on OPC UA
CN113596191A (en) Data processing method, network element equipment and readable storage medium
CN112565459B (en) Internet of things equipment and method for managing profile in eUICC card
CN108282521B (en) BIP protocol data transmission method and device, computer equipment and storage medium
CN109714367B (en) Equipment access system and method based on Internet
US11647364B2 (en) Special effect synchronization method, device, and storage medium
CN118018517A (en) Data processing method, network element equipment and readable storage medium
KR20130026609A (en) Apparatus and method for providing multimedia cloud service associated with social network service in multimedia cloud system
CN114666306B (en) WebRTC network connection establishment method, server, electronic device and computer readable storage medium
CN113825258A (en) FirefoxOS-based multimode communication method and operating system
CN111385349B (en) Communication processing method, communication processing device, terminal, server and storage medium
WO2017211302A1 (en) Application program development method, apparatus and system
CN113342764A (en) Data synchronization method and device among different cloud servers
JP4592694B2 (en) Database synchronization
CN114900510A (en) Information pushing method, server, client and storage medium
WO2022016529A1 (en) Ip data long connection method and apparatus, and computer device
CN112422566B (en) Remote call processing method and device, storage medium and electronic device
CN111193621B (en) Method for guaranteeing data communication between RTOS (real time operating System) equipment side and server side of Internet of things
CN114844988A (en) Service processing method, device, system and storage medium of virtualized color ring platform
KR20120029017A (en) Apparatus and method for controlling service mobility
CN115174552B (en) Local area network communication and file transmission method and system based on WEB operating system

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20211025

Address after: 518000 201, No.26, yifenghua Innovation Industrial Park, Xinshi community, Dalang street, Longhua District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen waterward Software Technology Co.,Ltd.

Address before: 518000 B, 503, 602, digital city building, garden city, 1079 Shekou Road, Shekou, Nanshan District, Shenzhen, Guangdong.

Applicant before: SHENZHEN WATER WORLD Co.,Ltd.

GR01 Patent grant
GR01 Patent grant