WO2022016529A1 - Ip data long connection method and apparatus, and computer device - Google Patents

Ip data long connection method and apparatus, and computer device Download PDF

Info

Publication number
WO2022016529A1
WO2022016529A1 PCT/CN2020/104507 CN2020104507W WO2022016529A1 WO 2022016529 A1 WO2022016529 A1 WO 2022016529A1 CN 2020104507 W CN2020104507 W CN 2020104507W WO 2022016529 A1 WO2022016529 A1 WO 2022016529A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
address
management app
control
intelligent terminal
Prior art date
Application number
PCT/CN2020/104507
Other languages
French (fr)
Chinese (zh)
Inventor
蒋壮
张国滔
郑勇
戴志涛
Original Assignee
深圳市沃特沃德股份有限公司
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 深圳市沃特沃德股份有限公司 filed Critical 深圳市沃特沃德股份有限公司
Priority to PCT/CN2020/104507 priority Critical patent/WO2022016529A1/en
Publication of WO2022016529A1 publication Critical patent/WO2022016529A1/en

Links

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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements

Definitions

  • the present application relates to the field of communications, and in particular to methods, apparatuses and computer equipment for long IP data connection.
  • IP addresses of the existing 3G/4G smart terminals are assigned by the operator and are kept randomly and dynamically changed.
  • the help of a third-party server is required, which is costly and sends a heartbeat to the third-party server.
  • the packet establishes a long connection, resulting in a delay in the connection and poor privacy, which cannot meet the use requirements of two intelligent terminals to freely associate and establish a stable IP data long connection.
  • the main purpose of this application is to provide a method for a long IP data connection, which aims to solve the technical problem that the existing two intelligent terminals cannot be freely associated and establish a stable IP data long connection.
  • the present application proposes a method for long IP data connection, including:
  • the first smart terminal receives 5G in real time RCS short message, wherein the first smart terminal is provided with a first cloud terminal management APP, a first global public gateway, and a first API interface for controlling 5G RCS short messages;
  • the application also provides a device for IP data long-term connection, which is integrated in an intelligent terminal, and the device includes:
  • Receiver module for receiving 5G in real time RCS short message, wherein the first smart terminal is provided with a first cloud terminal management APP, a first global public gateway, and a first API interface for controlling 5G RCS short messages;
  • a first control module configured to control the first cloud terminal management APP to call the first API interface and read the 5G RCS short message
  • the first judgment module is used to judge 5G Whether the RCS short message is sent by a second smart terminal with a pre-bound SIM card number, wherein the second smart terminal is any one of multiple smart terminals with a SIM card number pre-bound with the first smart terminal;
  • the second control module is used if 5G
  • the RCS short message is sent by the second smart terminal pre-bound with the SIM card number, and the first API interface is controlled to push the 5G RCS short message to the first cloud terminal management APP;
  • the first acquisition module is used to acquire the first cloud terminal management APP by parsing 5G The IP address of the second intelligent terminal obtained by the RCS short message;
  • the synchronization module is configured to synchronize the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and maintain a long IP data connection with the second intelligent terminal by synchronizing the IP address in the updated IP address table.
  • the present application also provides a computer device, including a memory and a processor, 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 on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned method are implemented.
  • the 5G cloud terminal management APP and the global public gateway are designed, the SIM card number is bound with the 5G RCS short message technology, and the data information of the received IP data packet is analyzed through the 5G cloud terminal management APP, so as to obtain the information of the IP data packet. Address information, if it is the IP address of the 5G peer to which the SIM card number is bound, a long IP data connection will be established.
  • N SIM card numbers can be bound to establish a mutual direct IP data long connection between N 5G terminals. , replace the third-party server, take advantage of the large bandwidth, low latency, and multiple concurrency features of 5G to reduce the cost of data connection between smart terminals and slow down the delay.
  • FIG. 1 is a schematic flowchart of a method for a long connection of IP data according to an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a device for a long IP data connection according to an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a device for a long IP data connection according to another embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a holding module according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a device for a long IP data connection according to yet 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.
  • a method for IP data long-term connection includes:
  • the first smart terminal receives 5G in real time RCS short message, wherein the first smart terminal is provided with a first cloud terminal management APP, a first global public gateway, and a first API interface for controlling 5G RCS short messages;
  • S3 Determine whether the 5G RCS short message is sent by a second smart terminal with a pre-bound SIM card number, wherein the second smart terminal is any one of a plurality of smart terminals that are pre-bound with a SIM card number with the first smart terminal;
  • S6 Synchronize the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and maintain a long IP data connection with the second intelligent terminal by synchronizing the IP address in the updated IP address table.
  • the gateway stores the IP address of the peer 5G smart terminal to which the SIM card number of the 5G smart terminal is pre-bound, and the 5G cloud terminal management APP of the local machine is sent to the peer for a continuous period of time t.
  • the 5G cloud terminal of the smart terminal manages the IP data packets of the APP, and the size of the above-mentioned duration t can be customized.
  • the implementation process of binding the IP address of the 5G smart terminal to the SIM card number includes establishing a correspondence table between the SIM card number of the peer smart terminal and the obtained IP address of the peer smart terminal in the 5G cloud terminal management APP of the local machine.
  • Each bound SIM card number is fixed, but the IP address corresponding to each fixed SIM card number is dynamically changed to adapt to the state of the operator's dynamic matching of IP addresses, enabling two or more 5G smart terminals Establish a long IP data connection between them.
  • the above-mentioned 5G cloud terminal management APP can call the API interface of 5GRCS short message, and has the function of sending 5GRCS short message and the function of reading 5GRCS short message.
  • This application analyzes the data information of the received IP data packets through the 5G cloud terminal management APP to obtain the address information of the IP data packets. If the IP address of the 5G peer end is bound, the IP data packets are pushed to the local The 5G cloud terminal management APP can forward the IP data flow information to the corresponding application software according to the address information of the corresponding IP data packet. The process of pre-binding the 5G smart terminal to the peer 5G smart terminal with the SIM card number is realized through the 5GRCS short message technology.
  • This application uses 5G cloud terminal management APP and global public gateway to design 5G cloud terminal management APP and global public gateway.
  • the RCS short message technology binds the SIM card number, and parses the data information of the received IP data packet through the 5G cloud terminal management APP to obtain the address information of the IP data packet. If it is the IP address of the 5G peer end bound to the SIM card number, Then establish a long-term IP data connection, and use the 5G RCS short message technology to bind N SIM card numbers to establish a mutual direct IP data long-term connection between N 5G terminals.
  • the feature of concurrency reduces the cost of data connection between intelligent terminals and slows down the delay. And through the communication protocol and control between the 5G cloud terminal management APP, the server and client master-slave applications of multiple 5G terminals or the application of symmetrical mirror terminals are realized.
  • the embodiments of the present application take the establishment of an IP data long connection between the first intelligent terminal and the second intelligent terminal as an example for detailed description, and take the first intelligent terminal as the local machine and the second intelligent terminal as the opposite terminal intelligent terminal as an example.
  • the above-mentioned first intelligent terminal can simultaneously establish long IP data connections with multiple peer intelligent terminals without interfering with each other, which can be realized by designing a communication protocol.
  • the above-mentioned first intelligent terminal and second intelligent terminal are only used for distinction, not for limitation, and similar terms such as "first" and "second” in other places have the same functions, and will not be repeated.
  • a second cloud terminal management APP and a second API interface are set in the second intelligent terminal, the IP address of the second intelligent terminal is synchronized to the IP address table of the first global public gateway, and the IP address table is updated by synchronizing.
  • the IP address in, after the step S6 of maintaining the IP data long connection with the second intelligent terminal, including:
  • S61 Obtain the new 5G RCS short message sent by the second smart terminal through the second API interface, wherein the new 5G The RCS short message carries the updated new IP address of the second intelligent terminal, and the new IP address is obtained by real-time monitoring by the second cloud terminal management APP in the second intelligent terminal;
  • S62 Control the first cloud terminal management APP to parse the new 5G RCS short message, and obtain a new IP address;
  • the IP address of the 5G smart terminal of the present application realizes real-time monitoring and real-time refresh and reservation.
  • the 5G cloud terminal management APP constantly monitors the IP address changes of the 5G network of the smart terminal where it is located. When the IP address of the 5G network of the smart terminal where it is located is found to have changed, the 5G cloud terminal management APP is used to call the 5G network of the smart terminal where it is located.
  • RCS short message send a new 5GRCS short message containing the new IP address of the smart terminal to the smart terminal with the bound SIM card number, and touch the RCS short message parsing control mechanism of the peer smart terminal bound with the SIM card number, This enables the 5G smart terminal bound with the SIM card number to parse the new 5GRCS short message received. If the new 5GRCS short message is an RCS short message sent by the smart terminal bound with the SIM card number, the smart terminal that receives the new 5GRCS short message will push the received new 5GRCS short message to its cloud terminal management APP through the API interface of the smart terminal to receive the new 5GRCS short message.
  • the cloud terminal management APP of the smart terminal of the 5GRCS short message parses the received new 5GRCS short message according to the agreed communication protocol, obtains the updated IP address of the peer smart terminal, and synchronously updates the global public gateway of the smart terminal that receives the new 5GRCS short message
  • the IP address table in the 5G intelligent terminal realizes the updated IP address by connecting to the peer intelligent terminal, so as to maintain the end-to-end IP data long connection link between the 5G intelligent terminals.
  • the new 5GRCS short message carries the IP address update time stamp, and through the new IP address in the updated IP address table, the step S64 of maintaining the IP data long connection with the second intelligent terminal includes:
  • S642 According to the IP address update time stamp, determine whether the time difference between the current time and the IP address update time of the second intelligent terminal is less than a preset duration;
  • This application analyzes and receives the 5G sent by the peer smart terminal through the 5G cloud terminal management APP
  • the timestamp of the RCS short message and according to the timestamp, it is judged whether the current moment is within the preset time period t of the IP address change of the peer smart terminal, for example, the time from the time corresponding to the timestamp to the time when the judgment action is currently performed. If the segment is less than the preset duration t, it is considered that the current moment is within the preset duration t of the IP address change of the second smart terminal.
  • the cloud terminal management APP of the smart terminal of the RCS short message sends the IP data packet of the current moment to the cloud terminal management APP of the peer smart terminal, and controls the smart terminal used to receive the 5G RCS short message, and stores all the information in the global public gateway.
  • the stored IP data packets within t duration are re-sent to the cloud terminal management APP of the peer intelligent terminal after the address has been changed to ensure that no data is lost in the IP data packets during the time period when the IP address is updated and changed.
  • the IP address of the second intelligent terminal is synchronized to the IP address table of the first global public gateway, and by synchronizing the IP address in the updated IP address table, the step S6 of maintaining the IP data long connection with the second intelligent terminal After that, include:
  • S601 Obtain the communication protocol selected when the first intelligent terminal and the second intelligent terminal are set and bound;
  • S602 Determine whether the control relationship in the communication protocol is the relationship between the control and the controlled master-slave device
  • the 5G cloud terminal management APP of this application can set the relationship between N 5G smart terminals bound with SIM card numbers, such as the relationship between the client and the host and the master-slave device to be controlled, or the mirror-symmetric peer-to-peer relationship.
  • the host In the master-slave device relationship between the control and the controlled device, the host can control the application program of the slave device, while the mirror-symmetric peer-to-peer relationship can control the application program of the opposite end.
  • the relationship between the control and the controlled device can be controlled according to the call request. Switch roles at any time.
  • the mutual relationship between the above-mentioned intelligent terminals can be determined by the type of the communication protocol selected when binding.
  • a smart terminal can establish a communication protocol between cloud terminal management APPs of N 5G smart terminals at the same time.
  • the communication protocol is used to obtain the application list, hardware information and control command set of the peer smart terminal.
  • One of the above-mentioned smart terminals can establish the mutual relationship of N 5G smart terminals at the same time, which can be distinguished and realized by different types of communication protocols.
  • the above application program list includes permanent application programs in the smart terminal such as music playback, camera, video, voice, etc.
  • the above hardware information includes information corresponding to the hardware in the smart terminal required for the application program to run, such as hardware name, startup path, etc.
  • the above control command set includes all commands that a specific application can use when running, for example, when starting a music player, its corresponding control command set includes but is not limited to volume, fast forward, next song, song cut, etc. control commands.
  • the 5G cloud terminal management APP of the present application obtains the application program list and hardware information of the smart terminal where it is located, and can call the application program and hardware of the smart terminal where it is located. After multiple intelligent terminals are bound to the cloud terminal management APP, the communication between multiple intelligent terminals can be realized, so that the application program of the controlled 5G intelligent terminal can be run and the hardware can be called. The result of the application running is transmitted to the 5G smart terminal as the control terminal through the 5G IP data stream to realize the same-screen interaction or collaborative operation between the control terminal and the controlled terminal.
  • the first intelligent terminal is the control terminal
  • the second intelligent terminal is the controlled terminal.
  • S604 Obtain the application list and hardware information of the second smart terminal extracted by the second cloud terminal management APP through the IP data stream;
  • S605 Form control information according to the application program list and 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 Control the first cloud terminal management APP to send control information to the second cloud terminal management APP;
  • S607 Receive processing result information formed after the second cloud terminal management APP invokes the application program and hardware to be controlled according to the control information.
  • the cloud terminal management APP of the control terminal sends relevant control information to the cloud terminal management APP of the controlled terminal, such as control information such as monitoring the screen, transferring files, playing music, restarting the smart terminal or taking screenshots.
  • the cloud terminal management APP of the controlled end performs information processing by calling the relevant software and hardware of the intelligent terminal of the controlled end, and transmits the processing result to the cloud terminal management APP of the control end. Taking playing music as an example, the user on the control end clicks the application list of the peer smart terminal with the SIM card number pre-bound in the cloud terminal management APP, and selects the music player in the application list.
  • the cloud terminal management APP on the control end controls the The global public gateway of the controlled end sends the IP data packet corresponding to the control information to the controlled end, that is, it is forwarded to the global public gateway of the controlled end through the IP data link.
  • the packet is first forwarded to the cloud terminal management APP of the controlled end.
  • the cloud terminal management APP parses the IP data packet, it determines that the called application carried in the control information is the music player, and then the cloud terminal management APP is used to call the music playback of the smart terminal where it is located. to implement the operation of the music player.
  • the cloud terminal management APP starts the music player of the smart terminal where it is located, and packages and transmits the current music list and other information to the cloud terminal management APP of the control terminal.
  • the control terminal obtains the music list and other information through its cloud terminal management APP and displays it.
  • the terminal can be displayed synchronously, which is convenient for the interaction and communication of the intelligent terminal users at both ends.
  • the control terminal obtains and displays information such as a music list through its cloud terminal management APP, the controlled terminal does not display it, so as to save power consumption.
  • the cloud terminal management APP of the control end selects the music file of the music to be played in the music list, and transfers the music file of the music to be played to the cloud terminal management APP of the controlled end, and the cloud terminal management APP of the controlled end calls the music player of the controlled end Decode the music files, and push the decoded audio data stream to the cloud terminal management APP of the control end, and play it on the control end, so as to solve the problem that the control end does not have a decoder for decoding music files, and realize the communication between the control end and the controlled end. Hardware resource sharing.
  • the music file of the control end is decoded at the controlled end and played at the controlled end to realize the sharing of data resources, and the decoded audio data stream is the above-mentioned processing result information.
  • processing result information includes the decoded audio data stream, and after receiving the processing result information formed after the second cloud terminal management APP calls the application to be controlled and the hardware according to the control information in step S607, it includes:
  • S609 Control the player of the first intelligent terminal to play the decoded audio data stream.
  • the embodiment of the present application implements remote music playback by playing the decoded audio data stream at the control end as an example, as an embodiment of the relationship between the control end and the controlled end.
  • the cloud terminal management APP of the control end After the cloud terminal management APP of the control end receives the audio data stream decoded by the control end, it can call the speaker hardware of the control end through the cloud terminal management APP of the control end, and drive the speaker to sound, so that the music files decoded by the control end can be played on the control end. Play, or synchronously play music on the control end and the controlled end, and realize interactive operations such as resource sharing between the control end and the controlled end.
  • a second global public gateway is set in the second intelligent terminal, and after step S602 of judging whether the control relationship in the communication protocol is the relationship between control and the master-slave device to be controlled, it includes:
  • S6022 Determine whether the first global public gateway has received the invocation information sent by the second cloud terminal management APP through the second global public gateway, where the invocation information is sent in the form of an IP data packet, and the invocation information carries the first intelligent terminal to be invoked The parameter information of the specified application;
  • S6025 Send the operation information list to the second cloud terminal management APP through the first cloud terminal management APP.
  • the mutual relationship between the two intelligent terminals is an equal and symmetrical mirror interaction relationship, and which end of the intelligent terminal initiates a sharing or control command becomes the control end at the current moment.
  • Both of the two intelligent terminals that establish an interactive relationship in this embodiment have an equivalent function, and both have a function of initiating a control or sharing command.
  • the 5G cloud terminal management APP of the peer smart terminal parses the received 5G RCS short message, obtains the IP address of the 5G smart terminal that initiates the control or sharing command, and binds them to each other. After the binding is successful, the display of successful binding will appear in the 5G cloud terminal management APP of the smart terminals at both ends.
  • the 5G cloud terminal management APP of the smart terminals at both ends obtains the program list of the specific applications of the controlled terminal through the communication between each other and the IP data stream, including the three-party applications such as photography, gallery, and 5G terminal sub-APP, and Quick application sequence such as monitoring screen and transferring data.
  • one-to-many association interaction can be achieved by setting the SIM card numbers of multiple peer intelligent terminals in the 5G cloud terminal management APP of one intelligent terminal, and the above-mentioned one-to-many association interaction can be set by setting the communication protocol. , to realize the coexistence of multiple interrelationships.
  • the SIM card numbers of smart terminal B, smart terminal C and smart terminal D are set, so that the interactive relationship between A and B's control and controlled coexistence on smart terminal A can be realized at the same time.
  • the interaction relationship of the peer mirror of C and the interaction relationship of the control of A and D is controlled.
  • the above-mentioned different interaction relationships are realized by setting different communication protocols, but the above-mentioned smart terminal A, smart terminal B, smart terminal C and smart terminal D are respectively set with cloud terminal management APP, global public gateway, and API for controlling 5G RCS short messages.
  • the interface and the control mechanism of 5G RCS short message realize that there is two-way 5G between the intelligent terminals at both ends of the interactive relationship.
  • the transmission path of the RCS short message and the IP data link maintain the IP data long connection state of the intelligent terminals at both ends.
  • a device for long-term IP data connection is integrated on an intelligent terminal, and the device includes:
  • Receiver module 1 used to receive 5G in real time RCS short message, wherein the first smart terminal is provided with a first cloud terminal management APP, a first global public gateway, and a first API interface for controlling 5G RCS short messages;
  • the first control module 2 is used to control the first cloud terminal management APP to call the first API interface and read the 5G RCS short message;
  • the first judgment module 3 is used to judge whether the 5G RCS short message is sent by a second smart terminal with a pre-bound SIM card number, wherein the second smart terminal is a plurality of smart terminals that are pre-bound with the SIM card number of the first smart terminal. any one of;
  • the second control module 4 is used if 5G
  • the RCS short message is sent by the second smart terminal pre-bound with the SIM card number, and the first API interface is controlled to push the 5G RCS short message to the first cloud terminal management APP;
  • the first acquisition module 5 is used to acquire the first cloud terminal management APP by parsing 5G The IP address of the second intelligent terminal obtained by the RCS short message;
  • Synchronization module 6 for synchronizing the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and maintaining a long IP data connection with the second intelligent terminal by synchronizing the IP address in the updated IP address table .
  • the global public gateway is equipped with An IP address table.
  • the IP address table stores the IP address of the peer 5G smart terminal to which the SIM card number of the 5G smart terminal is pre-bound, and the 5G cached 5G cloud terminal management APP sent to the peer smart terminal for a continuous period of time t.
  • the cloud terminal manages the IP data packets of the APP, and the size of the above duration t can be customized.
  • the implementation process of binding the IP address of the 5G smart terminal to the SIM card number includes establishing a correspondence table between the SIM card number of the peer smart terminal and the obtained IP address of the peer smart terminal in the 5G cloud terminal management APP of the local machine.
  • Each bound SIM card number is fixed, but the IP address corresponding to each fixed SIM card number is dynamically changed to adapt to the state of the operator's dynamic matching of IP addresses, enabling two or more 5G smart terminals Establish a long IP data connection between them.
  • the above-mentioned 5G cloud terminal management APP can call the API interface of 5G RCS short message, and has the ability to send 5G The function of RCS short message and the function of reading 5G RCS short message.
  • This application analyzes the data information of the received IP data packets through the 5G cloud terminal management APP to obtain the address information of the IP data packets. If the IP address of the 5G peer end is bound, the IP data packets are pushed to the local The 5G cloud terminal management APP can forward the IP data flow information to the corresponding application software according to the address information of the corresponding IP data packet.
  • the 5G cloud terminal management APP and the global public gateway are designed, the SIM card number is bound with the 5G RCS short message technology, and the data information of the received IP data packet is analyzed through the 5G cloud terminal management APP, so as to obtain the information of the IP data packet. Address information, if it is the IP address of the 5G peer to which the SIM card number is bound, a long IP data connection will be established.
  • N SIM card numbers can be bound to establish a mutual direct IP data long connection between N 5G terminals. , replace the third-party server, take advantage of the large bandwidth, low latency, and multiple concurrency features of 5G to reduce the cost of data connection between smart terminals and slow down the delay.
  • the embodiments of the present application take the establishment of an IP data long connection between the first intelligent terminal and the second intelligent terminal as an example for detailed description, and take the first intelligent terminal as the local machine and the second intelligent terminal as the opposite terminal intelligent terminal as an example.
  • the above-mentioned first intelligent terminal can simultaneously establish long IP data connections with multiple peer intelligent terminals without interfering with each other, which can be realized by designing a communication protocol.
  • the above-mentioned first intelligent terminal and second intelligent terminal are only used for distinction, not for limitation, and similar terms such as "first" and "second” in other places have the same functions, and will not be repeated.
  • a second cloud terminal management APP and a second API interface are set in the second intelligent terminal, and the device for long-term IP data connection according to another embodiment of the present application includes:
  • the second obtaining module 61 is configured to obtain the new 5G sent by the second intelligent terminal through the second API interface RCS short message, wherein the new 5G RCS short message carries the updated new IP address of the second smart terminal, and the new IP address is obtained by real-time monitoring by the second cloud terminal management APP in the second smart terminal;
  • the third control module 62 is configured to control the first cloud terminal management APP to parse the new 5G RCS short message to obtain a new IP address;
  • an update module 63 configured to update the IP address table of the first global public gateway according to the new IP address
  • the maintaining module 64 is configured to maintain a long IP data connection with the second intelligent terminal through the new IP address in the updated IP address table.
  • the IP address of the 5G smart terminal of the present application realizes real-time monitoring and real-time refresh and reservation.
  • the 5G cloud terminal management APP constantly monitors the IP address changes of the 5G network of the smart terminal where it is located. When the IP address of the 5G network of the smart terminal where it is located is found to have changed, the 5G cloud terminal management APP is used to call the 5G network of the smart terminal where it is located.
  • RCS short message send a new 5GRCS short message containing the new IP address of the smart terminal to the smart terminal with the bound SIM card number, and touch the RCS short message parsing control mechanism of the peer smart terminal bound with the SIM card number, This enables the 5G smart terminal bound with the SIM card number to parse the new 5GRCS short message received. If the new 5GRCS short message is an RCS short message sent by the smart terminal bound with the SIM card number, the smart terminal that receives the new 5GRCS short message will push the received new 5GRCS short message to its cloud terminal management APP through the API interface of the smart terminal to receive the new 5GRCS short message.
  • the cloud terminal management APP of the smart terminal of the 5GRCS short message parses the received new 5GRCS short message according to the agreed communication protocol, obtains the updated IP address of the peer smart terminal, and synchronously updates the global public gateway of the smart terminal that receives the new 5GRCS short message
  • the IP address table in the 5G intelligent terminal realizes the updated IP address by connecting to the peer intelligent terminal, so as to maintain the end-to-end IP data long connection link between the 5G intelligent terminals.
  • the new 5G RCS short message carries the IP address update timestamp
  • the retention module 64 includes:
  • the obtaining unit 641 is used to obtain the IP address update timestamp obtained when the first cloud terminal management APP parses the new 5G RCS short message;
  • the judgment unit 642 is used for updating the timestamp according to the IP address, and judging whether the time difference between the current moment and the updating moment of the IP address of the second intelligent terminal is less than the preset duration;
  • the control unit 643 is configured to control the first cloud terminal management APP to send the IP data cached within the preset duration to the second cloud terminal management APP if the time difference between the current moment and the IP address update moment of the second smart terminal is less than the preset duration packets, and maintain a long connection for IP data through IP packets.
  • This application analyzes and receives the 5G sent by the peer smart terminal through the 5G cloud terminal management APP
  • the timestamp of the RCS short message and according to the timestamp, it is judged whether the current moment is within the preset time period t of the IP address change of the peer smart terminal, for example, the period from the time corresponding to the timestamp to the time when the judgment action is currently performed. If it is less than the preset duration t, it is considered that the current moment is within the preset duration t of the IP address change of the second intelligent terminal.
  • the cloud terminal management APP of the smart terminal of the RCS short message sends the IP data packet of the current moment to the cloud terminal management APP of the peer smart terminal, and controls the smart terminal used to receive the 5G RCS short message, and stores all the information in the global public gateway.
  • the stored IP data packets within t duration are re-sent to the cloud terminal management APP of the peer intelligent terminal after the address has been changed to ensure that no data is lost in the IP data packets during the time period when the IP address is updated and changed.
  • a device for long-term IP data connection includes:
  • a third acquiring module 601, configured to acquire the communication protocol selected when the first intelligent terminal and the second intelligent terminal are set and bound;
  • the second judgment module 602 is used for judging whether the control relationship in the communication protocol is the relationship between control and the master-slave device being controlled;
  • the determining module 603 is configured to determine the respective intelligent terminals corresponding to the control terminal and the controlled terminal if the relationship is between the control and the controlled master-slave device.
  • the 5G cloud terminal management APP of this application can set the relationship between N 5G smart terminals bound with SIM card numbers, such as the relationship between the client and the host and the master-slave device to be controlled, or the mirror-symmetric peer-to-peer relationship.
  • the host In the master-slave device relationship between the control and the controlled device, the host can control the application program of the slave device, while the mirror-symmetric peer-to-peer relationship can control the application program of the opposite end.
  • the relationship between the control and the controlled device can be controlled according to the call request. Switch roles at any time.
  • the mutual relationship between the above-mentioned intelligent terminals can be determined by the type of the communication protocol selected when binding.
  • a smart terminal can establish a communication protocol between cloud terminal management APPs of N 5G smart terminals at the same time.
  • the communication protocol is used to obtain the application list, hardware information and control command set of the peer smart terminal.
  • One of the above-mentioned smart terminals can establish the mutual relationship of N 5G smart terminals at the same time, which can be distinguished and realized by different types of communication protocols.
  • the above application program list includes permanent application programs in the smart terminal such as music playback, camera, video, voice, etc.
  • the above hardware information includes information corresponding to the hardware in the smart terminal required for the application program to run, such as hardware name, startup path, etc.
  • the above control command set includes all commands that a specific application can use when running, for example, when starting a music player, its corresponding control command set includes but is not limited to volume, fast forward, next song, song cut, etc. control commands.
  • the 5G cloud terminal management APP of the present application obtains the application program list and hardware information of the smart terminal where it is located, and can call the application program and hardware of the smart terminal where it is located. After multiple intelligent terminals are bound to the cloud terminal management APP, the communication between multiple intelligent terminals can be realized, so that the application program of the controlled 5G intelligent terminal can be run and the hardware can be called. The result of the application running is transmitted to the 5G smart terminal as the control terminal through the 5G IP data stream to realize the same-screen interaction or collaborative operation between the control terminal and the controlled terminal.
  • the first intelligent terminal is the control terminal
  • the second intelligent terminal is the controlled terminal
  • the device for long connection of IP data includes:
  • a fourth obtaining module 604 configured to obtain the application list and hardware information of the second intelligent terminal extracted by the second cloud terminal management APP through the IP data stream;
  • the first forming module 605 is configured to form control information according to the application program list and 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;
  • a fourth control module 606, configured to control the first cloud terminal management APP to send control information to the second cloud terminal management APP;
  • the second forming module 607 is configured to receive processing result information formed after the second cloud terminal management APP invokes the application program and hardware to be controlled according to the control information.
  • the cloud terminal management APP of the control terminal sends relevant control information to the cloud terminal management APP of the controlled terminal, such as control information such as monitoring the screen, transferring files, playing music, restarting the smart terminal or taking screenshots.
  • the cloud terminal management APP of the controlled end performs information processing by calling the relevant software and hardware of the intelligent terminal of the controlled end, and transmits the processing result to the cloud terminal management APP of the control end. Taking playing music as an example, the user on the control end clicks the application list of the peer smart terminal with the SIM card number pre-bound in the cloud terminal management APP, and selects the music player in the application list.
  • the cloud terminal management APP on the control end controls the The global public gateway of the controlled end sends the IP data packet corresponding to the control information to the controlled end, that is, it is forwarded to the global public gateway of the controlled end through the IP data link.
  • the packet is first forwarded to the cloud terminal management APP of the controlled end.
  • the cloud terminal management APP parses the IP data packet, it determines that the called application carried in the control information is the music player, and then the cloud terminal management APP is used to call the music playback of the smart terminal where it is located. to implement the operation of the music player.
  • the cloud terminal management APP starts the music player of the smart terminal where it is located, and packages and transmits the current music list and other information to the cloud terminal management APP of the control terminal.
  • the control terminal obtains the music list and other information through its cloud terminal management APP and displays it.
  • the terminal can be displayed synchronously, which is convenient for the interaction and communication of the intelligent terminal users at both ends.
  • the controlled terminal does not display it, so as to save power consumption.
  • the cloud terminal management APP of the control end selects the music file of the music to be played in the music list, and transfers the music file corresponding to the music to be played to the cloud terminal management APP of the controlled end, and the cloud terminal management APP of the controlled end calls the music playback of the controlled end.
  • the device decodes the music files, and pushes the decoded audio data stream to the cloud terminal management APP of the control end, and plays it on the control end, so as to solve the problem that there is no decoder for decoding music files at the control end, and realize the control end and the controlled end. hardware resource sharing on the side.
  • the music file of the control end is decoded at the controlled end and played at the controlled end to realize the sharing of data resources, and the decoded audio data stream is the above-mentioned processing result information.
  • processing result information includes the decoded audio data stream
  • device for long connection of IP data includes:
  • the fifth control module 609 is configured to control the player of the first intelligent terminal to play the decoded audio data stream.
  • the embodiment of the present application implements remote music playback by playing the decoded audio data stream at the control end as an example, as an embodiment of the relationship between the control end and the controlled end.
  • the cloud terminal management APP of the control end After the cloud terminal management APP of the control end receives the audio data stream decoded by the control end, it can call the speaker hardware of the control end through the cloud terminal management APP of the control end, and drive the speaker to sound, so that the music files decoded by the control end can be played on the control end. Play, or synchronously play music on the control end and the controlled end, and realize interactive operations such as resource sharing between the control end and the controlled end.
  • a second global public gateway is set in the second intelligent terminal, and the device for long-term IP data connection in another embodiment includes:
  • the determining module 6021 is configured to determine that the first intelligent terminal and the second intelligent terminal are in an interactive relationship of symmetrical mirror images if the relationship between the control and the controlled master-slave device is not involved;
  • the third judging module 6022 is configured to judge whether the first global public gateway has received the calling information sent by the second cloud terminal management APP through the second global public gateway, wherein the calling information is sent in the form of an IP data packet, and the calling information carries the waiting information. parameter information of the specified application program of the called first intelligent terminal;
  • the sixth control module 6023 is configured to receive the calling information sent by the second cloud terminal management APP through the second global public gateway, and then control the first cloud terminal management APP to parse the calling information, and determine the specified application;
  • the startup module 6024 is used to start and run the specified application to form a running information list
  • the sending module 6025 is configured to send the operation information list to the second cloud terminal management APP through the first cloud terminal management APP.
  • the mutual relationship between the two intelligent terminals is an equal and symmetrical mirror interaction relationship, and which end of the intelligent terminal initiates a sharing or control command becomes the control end at the current moment.
  • Both of the two intelligent terminals that establish an interactive relationship in this embodiment have an equivalent function, and both have a function of initiating a control or sharing command.
  • the 5G cloud terminal management APP of the peer smart terminal parses the received 5G RCS short message, obtains the IP address of the 5G smart terminal that initiates the control or sharing command, and binds them to each other. After the binding is successful, the display of successful binding will appear in the 5G cloud terminal management APP of the smart terminals at both ends.
  • the 5G cloud terminal management APP of the smart terminals at both ends obtains the program list of the specific applications of the controlled terminal through the communication between each other and the IP data stream, including the three-party applications such as photography, gallery, and 5G terminal sub-APP, and Quick application sequence such as monitoring screen and transferring data.
  • one-to-many association interaction can be achieved by setting the SIM card numbers of multiple peer intelligent terminals in the 5G cloud terminal management APP of one intelligent terminal, and the above-mentioned one-to-many association interaction can be set by setting the communication protocol. , to realize the coexistence of multiple interrelationships.
  • the SIM card numbers of smart terminal B, smart terminal C and smart terminal D are set, so that the interactive relationship between A and B's control and controlled coexistence on smart terminal A can be realized at the same time.
  • the interaction relationship of the peer mirror of C and the interaction relationship of the control of A and D is controlled.
  • the above-mentioned different interaction relationships are realized by setting different communication protocols, but the above-mentioned smart terminal A, smart terminal B, smart terminal C and smart terminal D are respectively set with cloud terminal management APP, global public gateway, and API for controlling 5G RCS short messages.
  • the interface and the control mechanism of 5G RCS short message realize that there is two-way 5G between the intelligent terminals at both ends of the interactive relationship.
  • the transmission path of the RCS short message and the IP data link maintain the IP data long connection state of the intelligent terminals at both ends.
  • an embodiment of the present application further provides a computer device
  • the computer device may be a server, and its internal structure may be as shown in FIG. 6 .
  • the computer device includes a processor, memory, a network interface, and a database connected by a system bus.
  • the processor of the computer design is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • the nonvolatile storage medium stores an operating system, a computer program, and a database.
  • the memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium.
  • the database of the computer equipment is used to store all the data required for the process of IP data long-term connection.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the method for realizing the IP data long-term connection.
  • the method for performing the above-mentioned long IP data connection by the above-mentioned processor includes: the first intelligent terminal receives 5G in real time RCS short message, wherein the first smart terminal is provided with a first cloud terminal management APP, a first global public gateway, and a first API interface for controlling 5G RCS short messages; the first cloud terminal management APP is controlled to call the first API interface, and Read 5G RCS short message; judge 5G Whether the RCS short message is sent by a second smart terminal with a pre-bound SIM card number, wherein the second smart terminal is any one of multiple smart terminals with a SIM card number pre-bound with the first smart terminal; if so, control the first smart terminal An API interface pushes 5G RCS short messages to the first cloud terminal management APP; obtains the first cloud terminal management APP by parsing 5G The IP address of the second intelligent terminal obtained by the RCS short message; synchronize the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and synchronize the IP
  • the above computer equipment through the design of 5G cloud terminal management APP and global public gateway, uses 5G
  • the RCS short message technology binds the SIM card number to establish a long-term direct IP data connection between N 5G terminals, replacing the third-party server, taking advantage of the characteristics of 5G's large bandwidth, low latency, and multiple concurrency to manage the APP through the 5G cloud terminal It can realize the communication protocol and control between multiple 5G terminal servers and client-side master-slave applications or symmetric mirror terminal applications.
  • FIG. 6 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied.
  • the present application also provides a computer-readable storage medium on which a computer program is stored, and a method for implementing a long IP data connection when the computer program is executed by a processor includes: the first intelligent terminal receives 5G in real time RCS short message, wherein the first smart terminal is provided with a first cloud terminal management APP, a first global public gateway, and a first API interface for controlling 5G RCS short messages; the first cloud terminal management APP is controlled to call the first API interface, and Read 5G RCS short message; judge 5G Whether the RCS short message is sent by a second smart terminal with a pre-bound SIM card number, wherein the second smart terminal is any one of multiple smart terminals with a SIM card number pre-bound with the first smart terminal; if so, control the first smart terminal An API interface pushes 5G RCS short messages to the first cloud terminal management APP; obtains the first cloud terminal management APP by parsing 5G The IP address of the second intelligent terminal obtained by the RCS short message; synchronize the IP address of the second
  • the above computer-readable storage medium by designing a 5G cloud terminal management APP and a global public gateway, uses 5G
  • the RCS short message technology binds the SIM card number to establish a long-term direct IP data connection between N 5G terminals, replacing the third-party server, taking advantage of the characteristics of 5G's large bandwidth, low latency, and multiple concurrency to manage the APP through the 5G cloud terminal It can realize the communication protocol and control between multiple 5G terminal servers and client-side master-slave applications or symmetric mirror terminal applications.
  • Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Landscapes

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

Abstract

Disclosed in the present application are an IP data long connection method, comprising: a first intelligent terminal receives a 5G RCS short message service (SMS) and reads the 5G RCS SMS; it is determined whether the 5G RCS SMS is sent by a second intelligent terminal that pre-binds a SIM card number; if so, then the IP address of the second intelligent terminal is acquired; and the IP address of the second intelligent terminal is synchronized into an IP address table of a global public gateway of the first intelligent terminal, and an IP data long connection with the second intelligent terminal is maintained. An IP data long connection is established by using a 5G RCS SMS.

Description

IP数据长连接的方法、装置和计算机设备Method, device and computer equipment for long IP data connection 技术领域technical field
本申请涉及到通讯领域,特别是涉及到IP数据长连接的方法、装置和计算机设备。The present application relates to the field of communications, and in particular to methods, apparatuses and computer equipment for long IP data connection.
背景技术Background technique
现有3G/4G智能终端的IP地址是运营商分配并保持随机动态变化的,为保持两智能终端的IP数据长连接,需要借助第三方服务器的帮助,成本高,而且向第三方服务器发心跳包建立长连接,导致连接存在时延且隐私性差,不能满足两智能终端自由关联并建立稳定IP数据长连接的使用需求。The IP addresses of the existing 3G/4G smart terminals are assigned by the operator and are kept randomly and dynamically changed. In order to maintain a long IP data connection between the two smart terminals, the help of a third-party server is required, which is costly and sends a heartbeat to the third-party server. The packet establishes a long connection, resulting in a delay in the connection and poor privacy, which cannot meet the use requirements of two intelligent terminals to freely associate and establish a stable IP data long connection.
技术问题technical problem
本申请的主要目的为提供IP数据长连接的方法,旨在解决现有两智能终端不能自由关联并建立稳定IP数据长连接的技术问题。The main purpose of this application is to provide a method for a long IP data connection, which aims to solve the technical problem that the existing two intelligent terminals cannot be freely associated and establish a stable IP data long connection.
技术解决方案technical solutions
本申请提出一种IP数据长连接的方法,包括:The present application proposes a method for long IP data connection, including:
第一智能终端实时接收5G RCS短信息,其中,第一智能终端内设置第一云终端管理APP、第一全局公共网关以及控制5G RCS短信息的第一API接口;The first smart terminal receives 5G in real time RCS short message, wherein the first smart terminal is provided with a first cloud terminal management APP, a first global public gateway, and a first API interface for controlling 5G RCS short messages;
控制第一云终端管理APP调用第一API接口,并读取5G RCS短信息;Control the first cloud terminal management APP to call the first API interface, and read the 5G RCS short message;
判断5G RCS短信息是否为预先绑定SIM卡号的第二智能终端发送的,其中,第二智能终端为预先与第一智能终端绑定SIM卡号的多个智能终端中的任意一个;Determine whether the 5G RCS short message is sent by a second smart terminal pre-bound with a SIM card number, wherein the second smart terminal is any one of multiple smart terminals that are pre-bound with a SIM card number with the first smart terminal;
若是,则控制第一API接口向第一云终端管理APP推送5G RCS短信息;If yes, control the first API interface to push the 5G RCS short message to the first cloud terminal management APP;
获取第一云终端管理APP通过解析5G RCS短信息所得到的第二智能终端的IP地址;Get the first cloud terminal management APP by analyzing 5G The IP address of the second intelligent terminal obtained by the RCS short message;
将第二智能终端的IP地址同步至第一全局公共网关的IP地址表中,并通过同步更新后IP地址表中的IP地址,与第二智能终端保持IP数据长连接。Synchronize the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and maintain a long IP data connection with the second intelligent terminal by synchronizing the IP address in the updated IP address table.
本申请还提供了一种IP数据长连接的装置,集成于智能终端,装置包括:The application also provides a device for IP data long-term connection, which is integrated in an intelligent terminal, and the device includes:
接收模块,用于实时接收5G RCS短信息,其中,第一智能终端内设置第一云终端管理APP、第一全局公共网关以及控制5G RCS短信息的第一API接口;Receiver module for receiving 5G in real time RCS short message, wherein the first smart terminal is provided with a first cloud terminal management APP, a first global public gateway, and a first API interface for controlling 5G RCS short messages;
第一控制模块,用于控制第一云终端管理APP调用第一API接口,并读取5G RCS短信息;a first control module, configured to control the first cloud terminal management APP to call the first API interface and read the 5G RCS short message;
第一判断模块,用于判断5G RCS短信息是否为预先绑定SIM卡号的第二智能终端发送的,其中,第二智能终端为预先与第一智能终端绑定SIM卡号的多个智能终端中的任意一个;The first judgment module is used to judge 5G Whether the RCS short message is sent by a second smart terminal with a pre-bound SIM card number, wherein the second smart terminal is any one of multiple smart terminals with a SIM card number pre-bound with the first smart terminal;
第二控制模块,用于若5G RCS短信息为预先绑定SIM卡号的第二智能终端发送的,则控制第一API接口向第一云终端管理APP推送5G RCS短信息;The second control module is used if 5G The RCS short message is sent by the second smart terminal pre-bound with the SIM card number, and the first API interface is controlled to push the 5G RCS short message to the first cloud terminal management APP;
第一获取模块,用于获取第一云终端管理APP通过解析5G RCS短信息所得到的第二智能终端的IP地址;The first acquisition module is used to acquire the first cloud terminal management APP by parsing 5G The IP address of the second intelligent terminal obtained by the RCS short message;
同步模块,用于将第二智能终端的IP地址同步至第一全局公共网关的IP地址表中,并通过同步更新后IP地址表中的IP地址,与第二智能终端保持IP数据长连接。The synchronization module is configured to synchronize the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and maintain a long IP data connection with the second intelligent terminal by synchronizing the IP address in the updated IP address table.
本申请还提供了一种计算机设备,包括存储器和处理器,存储器存储有计算机程序,处理器执行计算机程序时实现上述方法的步骤。The present application also provides a computer device, including a memory and a processor, 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 on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned method are implemented.
有益效果beneficial effect
本申请通过设计5G云终端管理APP和全局公共网关,用5G RCS短信息技术绑定SIM卡号,通过5G云终端管理APP对接收到的IP数据包的数据信息进行解析,以获取IP数据包的地址信息,如果是绑定SIM卡号的5G对端的IP地址,则建立IP数据长连接,用5G RCS短信息技术可绑定N个SIM卡号,建立N台5G终端间的相互直接IP数据长连接,取代第三方服务器,利用5G大带宽、低时延、多并发的特点,降低智能终端之间数据连接的成本,减缓时延。In this application, the 5G cloud terminal management APP and the global public gateway are designed, the SIM card number is bound with the 5G RCS short message technology, and the data information of the received IP data packet is analyzed through the 5G cloud terminal management APP, so as to obtain the information of the IP data packet. Address information, if it is the IP address of the 5G peer to which the SIM card number is bound, a long IP data connection will be established. Using the 5G RCS short message technology, N SIM card numbers can be bound to establish a mutual direct IP data long connection between N 5G terminals. , replace the third-party server, take advantage of the large bandwidth, low latency, and multiple concurrency features of 5G to reduce the cost of data connection between smart terminals and slow down the delay.
附图说明Description of drawings
图1 是本申请一实施例的IP数据长连接的方法流程示意图;FIG. 1 is a schematic flowchart of a method for a long connection of IP data according to an embodiment of the present application;
图2 是本申请一实施例的IP数据长连接的装置结构示意图;FIG. 2 is a schematic structural diagram of a device for a long IP data connection according to an embodiment of the present application;
图3 是本申请另一实施例的IP数据长连接的装置结构示意图;3 is a schematic structural diagram of a device for a long IP data connection according to another embodiment of the present application;
图4 是本申请一实施例的保持模块的结构示意图;4 is a schematic structural diagram of a holding module according to an embodiment of the present application;
图5 是本申请再一实施例的IP数据长连接的装置结构示意图;5 is a schematic structural diagram of a device for a long IP data connection according to yet another embodiment of the present application;
图6 是本申请一实施例的计算机设备内部结构示意图。FIG. 6 is a schematic diagram of an internal structure of a computer device according to an embodiment of the present application.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
参照图1,本申请一实施例的IP数据长连接的方法,包括:Referring to FIG. 1, a method for IP data long-term connection according to an embodiment of the present application includes:
S1:第一智能终端实时接收5G RCS短信息,其中,第一智能终端内设置第一云终端管理APP、第一全局公共网关以及控制5G RCS短信息的第一API接口;S1: The first smart terminal receives 5G in real time RCS short message, wherein the first smart terminal is provided with a first cloud terminal management APP, a first global public gateway, and a first API interface for controlling 5G RCS short messages;
S2:控制第一云终端管理APP调用第一API接口,并读取5G RCS短信息;S2: control the first cloud terminal management APP to call the first API interface, and read the 5G RCS short message;
S3:判断5G RCS短信息是否为预先绑定SIM卡号的第二智能终端发送的,其中,第二智能终端为预先与第一智能终端绑定SIM卡号的多个智能终端中的任意一个;S3: Determine whether the 5G RCS short message is sent by a second smart terminal with a pre-bound SIM card number, wherein the second smart terminal is any one of a plurality of smart terminals that are pre-bound with a SIM card number with the first smart terminal;
S4:若是,则控制第一API接口向第一云终端管理APP推送5G RCS短信息;S4: If yes, control the first API interface to push the 5G RCS short message to the first cloud terminal management APP;
S5:获取第一云终端管理APP通过解析5G RCS短信息所得到的第二智能终端的IP地址;S5: Obtain the IP address of the second smart terminal obtained by the first cloud terminal management APP by parsing the 5G RCS short message;
S6:将第二智能终端的IP地址同步至第一全局公共网关的IP地址表中,并通过同步更新后IP地址表中的IP地址,与第二智能终端保持IP数据长连接。S6: Synchronize the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and maintain a long IP data connection with the second intelligent terminal by synchronizing the IP address in the updated IP address table.
本申请通过在5G智能终端上设计全局公共网关和5G云终端管理APP及RCS(RichCommunicationSuite,RCS)短信控制机制,实现5G智能终端上所有对外的HTTP访问均通过全局公共网关存储并转发,全局公共网关内设有一个IP地址表,IP地址表中存有5G智能终端预先绑定SIM卡号的对端5G智能终端的IP地址,以及缓存连续时长t内本机5G云终端管理APP发给对端智能终端的5G云终端管理APP的IP数据包,上述时长t的大小可以自定义设置。5G智能终端的IP地址与SIM卡号绑定的实现过程,包括通过在本机的5G云终端管理APP中建立对端智能终端的SIM卡号及获得的对端智能终端的IP地址的对应表。每个绑定的SIM卡号固定不变,但每个固定SIM卡号所对应的IP地址是动态变化的,以适应运营商动态匹配IP地址的状态,实现在两个或两个以上的5G智能终端之间建立IP数据长连接。上述的5G云终端管理APP能够调用5GRCS短信息的API接口,具备发送5GRCS短信息的功能以及读取5GRCS短信息的功能。本申请通过5G云终端管理APP对接收到的IP数据包的数据信息进行解析,以获取IP数据包的地址信息,如果是绑定5G对端的IP地址,则将IP数据包推送给本机的5G云终端管理APP,以根据对应的IP数据包的地址信息,将IP数据流信息转发至对应的应用程序软件。5G智能终端预先绑定SIM卡号的对端5G智能终端的过程,通过5GRCS短信息技术实现。本申请通过设计5G云终端管理APP和全局公共网关,用5G RCS短信息技术绑定SIM卡号,通过5G云终端管理APP对接收到的IP数据包的数据信息进行解析,以获取IP数据包的地址信息,如果是绑定SIM卡号的5G对端的IP地址,则建立IP数据长连接,用5G RCS短信息技术可绑定N个SIM卡号,建立N台5G终端间的相互直接IP数据长连接,取代第三方服务器,利用5G大带宽、低时延、多并发的特点,降低智能终端之间数据连接的成本,减缓时延。且通过5G云终端管理APP间的通信协议及控制,实现多个5G终端的服务器与客户端主从应用或者对称镜像终端的应用。本申请实施例以第一智能终端和第二智能终端之间建立IP数据长连接为例进行详细说明,且以第一智能终端为本机,以第二智能终端为对端智能终端为例。上述第一智能终端可同时与多个对端智能终端建立IP数据长连接,互不干扰,可通过设计通讯协议实现。上述的第一智能终端和第二智能终端仅用于区别,不用于限制,其他处的“第一”、“第二”等类似用语的作用相同,不赘述。In this application, by designing a global public gateway, a 5G cloud terminal management APP and an RCS (Rich Communication Suite, RCS) SMS control mechanism on 5G smart terminals, all external HTTP accesses on 5G smart terminals are stored and forwarded through the global public gateway, and the global public There is an IP address table in the gateway. The IP address table stores the IP address of the peer 5G smart terminal to which the SIM card number of the 5G smart terminal is pre-bound, and the 5G cloud terminal management APP of the local machine is sent to the peer for a continuous period of time t. The 5G cloud terminal of the smart terminal manages the IP data packets of the APP, and the size of the above-mentioned duration t can be customized. The implementation process of binding the IP address of the 5G smart terminal to the SIM card number includes establishing a correspondence table between the SIM card number of the peer smart terminal and the obtained IP address of the peer smart terminal in the 5G cloud terminal management APP of the local machine. Each bound SIM card number is fixed, but the IP address corresponding to each fixed SIM card number is dynamically changed to adapt to the state of the operator's dynamic matching of IP addresses, enabling two or more 5G smart terminals Establish a long IP data connection between them. The above-mentioned 5G cloud terminal management APP can call the API interface of 5GRCS short message, and has the function of sending 5GRCS short message and the function of reading 5GRCS short message. This application analyzes the data information of the received IP data packets through the 5G cloud terminal management APP to obtain the address information of the IP data packets. If the IP address of the 5G peer end is bound, the IP data packets are pushed to the local The 5G cloud terminal management APP can forward the IP data flow information to the corresponding application software according to the address information of the corresponding IP data packet. The process of pre-binding the 5G smart terminal to the peer 5G smart terminal with the SIM card number is realized through the 5GRCS short message technology. This application uses 5G cloud terminal management APP and global public gateway to design 5G cloud terminal management APP and global public gateway. The RCS short message technology binds the SIM card number, and parses the data information of the received IP data packet through the 5G cloud terminal management APP to obtain the address information of the IP data packet. If it is the IP address of the 5G peer end bound to the SIM card number, Then establish a long-term IP data connection, and use the 5G RCS short message technology to bind N SIM card numbers to establish a mutual direct IP data long-term connection between N 5G terminals. The feature of concurrency reduces the cost of data connection between intelligent terminals and slows down the delay. And through the communication protocol and control between the 5G cloud terminal management APP, the server and client master-slave applications of multiple 5G terminals or the application of symmetrical mirror terminals are realized. The embodiments of the present application take the establishment of an IP data long connection between the first intelligent terminal and the second intelligent terminal as an example for detailed description, and take the first intelligent terminal as the local machine and the second intelligent terminal as the opposite terminal intelligent terminal as an example. The above-mentioned first intelligent terminal can simultaneously establish long IP data connections with multiple peer intelligent terminals without interfering with each other, which can be realized by designing a communication protocol. The above-mentioned first intelligent terminal and second intelligent terminal are only used for distinction, not for limitation, and similar terms such as "first" and "second" in other places have the same functions, and will not be repeated.
进一步地,第二智能终端内设置第二云终端管理APP和第二API接口,将第二智能终端的IP地址同步至第一全局公共网关的IP地址表中,并通过同步更新后IP地址表中的IP地址,与第二智能终端保持IP数据长连接的步骤S6之后,包括:Further, a second cloud terminal management APP and a second API interface are set in the second intelligent terminal, the IP address of the second intelligent terminal is synchronized to the IP address table of the first global public gateway, and the IP address table is updated by synchronizing. The IP address in, after the step S6 of maintaining the IP data long connection with the second intelligent terminal, including:
S61:获取第二智能终端通过第二API接口发送的新5G RCS短信息,其中,新5G RCS短信息携带第二智能终端更新后的新IP地址,新IP地址由第二智能终端中的第二云终端管理APP实时监控获得;S61: Obtain the new 5G RCS short message sent by the second smart terminal through the second API interface, wherein the new 5G The RCS short message carries the updated new IP address of the second intelligent terminal, and the new IP address is obtained by real-time monitoring by the second cloud terminal management APP in the second intelligent terminal;
S62:控制第一云终端管理APP解析新5G RCS短信息,得到的新IP地址;S62: Control the first cloud terminal management APP to parse the new 5G RCS short message, and obtain a new IP address;
S63:根据新IP地址更新第一全局公共网关的IP地址表;S63: Update the IP address table of the first global public gateway according to the new IP address;
S64:通过更新的IP地址表中的新IP地址,与第二智能终端保持IP数据长连接。S64: maintain a long IP data connection with the second intelligent terminal through the new IP address in the updated IP address table.
本申请的5G智能终端的IP地址实现实时监控并实时刷新保留的方式。5G云终端管理APP时刻监控其所在智能终端的5G网络的IP地址变化情况,当发现所在智能终端的5G网络的IP地址发生变化时,则通过5G云终端管理APP调用所在智能终端的5G RCS短信息的API接口,向绑定的SIM卡号的智能终端发送包含所在智能终端的新IP地址的新5GRCS短信息,以触控绑定SIM卡号的对端智能终端的RCS短信解析控制机制,使得绑定SIM卡号的5G智能终端对收到新5GRCS短信息进行解析。如果新5GRCS短信息是绑定SIM卡号的智能终端发送的RCS短信息,则通过接收新5GRCS短信息的智能终端的API接口,向其云终端管理APP推送收到的新5GRCS短信息,接收新5GRCS短信息的智能终端的云终端管理APP,按照约定的通信协议解析接收的新5GRCS短信息,得到对端智能终端更新的IP地址,并同步更新接收新5GRCS短信息的智能终端的全局公共网关中的IP地址表,实现通过连接对端智能终端更新的IP地址,从而保持5G智能终端之间的端对端的IP数据长连接链路。The IP address of the 5G smart terminal of the present application realizes real-time monitoring and real-time refresh and reservation. The 5G cloud terminal management APP constantly monitors the IP address changes of the 5G network of the smart terminal where it is located. When the IP address of the 5G network of the smart terminal where it is located is found to have changed, the 5G cloud terminal management APP is used to call the 5G network of the smart terminal where it is located. API interface of RCS short message, send a new 5GRCS short message containing the new IP address of the smart terminal to the smart terminal with the bound SIM card number, and touch the RCS short message parsing control mechanism of the peer smart terminal bound with the SIM card number, This enables the 5G smart terminal bound with the SIM card number to parse the new 5GRCS short message received. If the new 5GRCS short message is an RCS short message sent by the smart terminal bound with the SIM card number, the smart terminal that receives the new 5GRCS short message will push the received new 5GRCS short message to its cloud terminal management APP through the API interface of the smart terminal to receive the new 5GRCS short message. The cloud terminal management APP of the smart terminal of the 5GRCS short message parses the received new 5GRCS short message according to the agreed communication protocol, obtains the updated IP address of the peer smart terminal, and synchronously updates the global public gateway of the smart terminal that receives the new 5GRCS short message The IP address table in the 5G intelligent terminal realizes the updated IP address by connecting to the peer intelligent terminal, so as to maintain the end-to-end IP data long connection link between the 5G intelligent terminals.
进一步地,新5GRCS短信息携带IP地址更新时间戳,通过更新的IP地址表中的新IP地址,与第二智能终端保持IP数据长连接的步骤S64,包括:Further, the new 5GRCS short message carries the IP address update time stamp, and through the new IP address in the updated IP address table, the step S64 of maintaining the IP data long connection with the second intelligent terminal includes:
S641:获取第一云终端管理APP解析新5G RCS短信息时,得到的IP地址更新时间戳;S641: Obtain the IP address update timestamp obtained when the first cloud terminal management APP parses the new 5G RCS short message;
S642:根据IP地址更新时间戳,判断当前时刻与第二智能终端IP地址更新时刻的时间差是否小于预设时长;S642: According to the IP address update time stamp, determine whether the time difference between the current time and the IP address update time of the second intelligent terminal is less than a preset duration;
S643:若是,则控制第一云终端管理APP向第二云终端管理APP发送预设时长内缓存的IP数据包,并通过IP数据包保持IP数据长连接。S643: If yes, control the first cloud terminal management APP to send the IP data packet buffered within a preset time period to the second cloud terminal management APP, and maintain a long IP data connection through the IP data packet.
本申请通过5G云终端管理APP解析收到对端智能终端发送的5G RCS短信息的时间戳,并根据时间戳判断当前时刻是否在对端智能终端的IP地址变化的预设时长t内,比如,从时间戳对应的时间到当前执行判断动作的时间之间的时间段小于预设时长t,则认为当前时刻是在第二智能终端IP地址变化的预设时长t内,此时,通过接收5G RCS短信息的智能终端的云终端管理APP,给对端智能终端的云终端管理APP发送当前时刻的IP数据包,并控制用于接收5G RCS短信息的智能终端,将其全局公共网关内所存储的t时长内的IP数据包,重新发送给地址改变后的对端智能终端的云终端管理APP,确保IP数据包在IP地址进行更新变化的时间段内无数据丢失。This application analyzes and receives the 5G sent by the peer smart terminal through the 5G cloud terminal management APP The timestamp of the RCS short message, and according to the timestamp, it is judged whether the current moment is within the preset time period t of the IP address change of the peer smart terminal, for example, the time from the time corresponding to the timestamp to the time when the judgment action is currently performed. If the segment is less than the preset duration t, it is considered that the current moment is within the preset duration t of the IP address change of the second smart terminal. At this time, by receiving 5G The cloud terminal management APP of the smart terminal of the RCS short message sends the IP data packet of the current moment to the cloud terminal management APP of the peer smart terminal, and controls the smart terminal used to receive the 5G RCS short message, and stores all the information in the global public gateway. The stored IP data packets within t duration are re-sent to the cloud terminal management APP of the peer intelligent terminal after the address has been changed to ensure that no data is lost in the IP data packets during the time period when the IP address is updated and changed.
进一步地,将第二智能终端的IP地址同步至第一全局公共网关的IP地址表中,并通过同步更新后IP地址表中的IP地址,与第二智能终端保持IP数据长连接的步骤S6之后,包括:Further, the IP address of the second intelligent terminal is synchronized to the IP address table of the first global public gateway, and by synchronizing the IP address in the updated IP address table, the step S6 of maintaining the IP data long connection with the second intelligent terminal After that, include:
S601:获取第一智能终端与第二智能终端设置绑定时选定的通讯协议;S601: Obtain the communication protocol selected when the first intelligent terminal and the second intelligent terminal are set and bound;
S602:判断通讯协议中的控制关系是否为控制与被控制的主从设备关系;S602: Determine whether the control relationship in the communication protocol is the relationship between the control and the controlled master-slave device;
S603:若是,则确定控制端和被控制端分别对应的智能终端。S603: If yes, determine the intelligent terminals corresponding to the control terminal and the controlled terminal respectively.
本申请的5G云终端管理APP中可以设置绑定SIM卡号的N台5G智能终端的相互关系,比如客户端与主机的控制与被控制的主从设备关系或者镜像对称的对等关系。控制与被控制的主从设备关系中主机可以控制从机的应用程序,而镜像对称的对等关系是相互之间都可以控制相对端的应用程序,控制与被控制的关系根据发起的调用请求可随时进行角色互换。上述的智能终端之间的相互关系,可由绑定时选定的通讯协议的类型决定。某个智能终端可同时建立N台5G智能终端的云终端管理APP间的通信协议,通信协议用于获取对端智能终端的应用程序列表、硬件信息及控制命令集等。上述的某个智能终端可同时建立N台5G智能终端的相互关系,可通过通讯协议的不同类型进行区分和实现。上述应用程序列表包括音乐播放、摄像、视频、语音等智能终端内常设应用程序,上述硬件信息包括应用程序运行时需要的智能终端内的硬件所对应的信息,比如硬件名称、启动路径等。上述控制命令集包括某个具体应用程序在运行时可使用的所有命令,比如,在启动音乐播放器时,其对应的控制命令集包括但不限于音量、快进、下一首、切歌等控制命令。本申请的5G云终端管理APP获得其所在智能终端的应用程序列表及硬件信息,并且可以调用其所在智能终端的应用程序和硬件。通过多个智能终端均绑定云终端管理APP后,即可实现多个智能终端之间的通信,实现被控制的5G智能终端的应用程序被运行和硬件被调用,被控制的5G智能终端将应用程序运行的结果通过5G的IP数据流传输到作为控制端的5G智能终端,实现控制端和被控制端的同屏互动或协同操作的关系。The 5G cloud terminal management APP of this application can set the relationship between N 5G smart terminals bound with SIM card numbers, such as the relationship between the client and the host and the master-slave device to be controlled, or the mirror-symmetric peer-to-peer relationship. In the master-slave device relationship between the control and the controlled device, the host can control the application program of the slave device, while the mirror-symmetric peer-to-peer relationship can control the application program of the opposite end. The relationship between the control and the controlled device can be controlled according to the call request. Switch roles at any time. The mutual relationship between the above-mentioned intelligent terminals can be determined by the type of the communication protocol selected when binding. A smart terminal can establish a communication protocol between cloud terminal management APPs of N 5G smart terminals at the same time. The communication protocol is used to obtain the application list, hardware information and control command set of the peer smart terminal. One of the above-mentioned smart terminals can establish the mutual relationship of N 5G smart terminals at the same time, which can be distinguished and realized by different types of communication protocols. The above application program list includes permanent application programs in the smart terminal such as music playback, camera, video, voice, etc. The above hardware information includes information corresponding to the hardware in the smart terminal required for the application program to run, such as hardware name, startup path, etc. The above control command set includes all commands that a specific application can use when running, for example, when starting a music player, its corresponding control command set includes but is not limited to volume, fast forward, next song, song cut, etc. control commands. The 5G cloud terminal management APP of the present application obtains the application program list and hardware information of the smart terminal where it is located, and can call the application program and hardware of the smart terminal where it is located. After multiple intelligent terminals are bound to the cloud terminal management APP, the communication between multiple intelligent terminals can be realized, so that the application program of the controlled 5G intelligent terminal can be run and the hardware can be called. The result of the application running is transmitted to the 5G smart terminal as the control terminal through the 5G IP data stream to realize the same-screen interaction or collaborative operation between the control terminal and the controlled terminal.
进一步地,第一智能终端为控制端,第二智能终端为被控制端,确定控制端和被控制端分别对应的智能终端的步骤S603之后,包括:Further, the first intelligent terminal is the control terminal, and the second intelligent terminal is the controlled terminal. After the step S603 of determining the intelligent terminals corresponding to the control terminal and the controlled terminal respectively, it includes:
S604:通过IP数据流获取第二云终端管理APP提取到的第二智能终端的应用程序列表及硬件信息;S604: Obtain the application list and hardware information of the second smart terminal extracted by the second cloud terminal management APP through the IP data stream;
S605:根据第二智能终端的应用程序列表及硬件信息形成控制信息,其中,控制信息携带待控制的应用程序的参数信息和硬件的参数信息;S605: Form control information according to the application program list and 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:控制第一云终端管理APP向第二云终端管理APP发送控制信息;S606: Control the first cloud terminal management APP to send control information to the second cloud terminal management APP;
S607:接收第二云终端管理APP根据控制信息调用待控制的应用程序和硬件后所形成的处理结果信息。S607: Receive processing result information formed after the second cloud terminal management APP invokes the application program and hardware to be controlled according to the control information.
本申请实施例,以控制端和被控制端的相互关系来说明两个智能终端之间信息传输和交互的过程。首先由控制端的云终端管理APP向被控制端的云终端管理APP发送相关的控制信息,如:监控屏幕、传输文件、播放音乐、重启智能终端或截屏等等控制信息。被控制端的云终端管理APP通过调用被控制端智能终端的相关软件和硬件进行信息处理,并将处理结果传输到控制端的云终端管理APP。以播放音乐为例,控制端用户点击云终端管理APP中预先绑定了SIM卡号的对端智能终端的应用程序列表,并在应用程序列表中选择音乐播放器,控制端的云终端管理APP通过控制端的全局公共网关向被控制端发出控制信息对应的IP数据包,即通过IP数据链路转发到被控制端的全局公共网关,被控制端的全局公共网关根据解析IP数据包的IP地址,将IP数据包先转发到被控制端的云终端管理APP,云终端管理APP解析IP数据包后,确定控制信息中携带调用的应用程序为音乐播放器,然后通过云终端管理APP调用其所在智能终端的音乐播放器,实现音乐播放器的运行。云终端管理APP开启其所在智能终端的音乐播放器,并将目前的音乐列表等信息打包传输给控制端的云终端管理APP,控制端通过其云终端管理APP获取音乐列表等信息并显示,被控制端可同步显示,方便两端智能终端用户的使用互动和交流。本申请另一实施例中,控制端通过其云终端管理APP获取音乐列表等信息并显示时,被控制端不显示,以节约功耗。控制端的云终端管理APP在音乐列表中选择待播放音乐的音乐文件,并将待播放音乐的音乐文件传递给被控制端的云终端管理APP,被控制端的云终端管理APP调用被控制端的音乐播放器对音乐文件进行解码,并将解码后的音频数据流推送给控制端的云终端管理APP,在控制端播放,以解决控制端不存在解码音乐文件的解码器的问题,实现控制端和被控制端的硬件资源共享。本申请另一实施例中,通过将控制端的音乐文件在被控制端解码,并在被控制端播放,实现数据资源的共享,上述解码后的音频数据流即为上述处理结果信息。In this embodiment of the present application, the process of information transmission and interaction between two intelligent terminals is described by the relationship between the control terminal and the controlled terminal. First, the cloud terminal management APP of the control terminal sends relevant control information to the cloud terminal management APP of the controlled terminal, such as control information such as monitoring the screen, transferring files, playing music, restarting the smart terminal or taking screenshots. The cloud terminal management APP of the controlled end performs information processing by calling the relevant software and hardware of the intelligent terminal of the controlled end, and transmits the processing result to the cloud terminal management APP of the control end. Taking playing music as an example, the user on the control end clicks the application list of the peer smart terminal with the SIM card number pre-bound in the cloud terminal management APP, and selects the music player in the application list. The cloud terminal management APP on the control end controls the The global public gateway of the controlled end sends the IP data packet corresponding to the control information to the controlled end, that is, it is forwarded to the global public gateway of the controlled end through the IP data link. The packet is first forwarded to the cloud terminal management APP of the controlled end. After the cloud terminal management APP parses the IP data packet, it determines that the called application carried in the control information is the music player, and then the cloud terminal management APP is used to call the music playback of the smart terminal where it is located. to implement the operation of the music player. The cloud terminal management APP starts the music player of the smart terminal where it is located, and packages and transmits the current music list and other information to the cloud terminal management APP of the control terminal. The control terminal obtains the music list and other information through its cloud terminal management APP and displays it. The terminal can be displayed synchronously, which is convenient for the interaction and communication of the intelligent terminal users at both ends. In another embodiment of the present application, when the control terminal obtains and displays information such as a music list through its cloud terminal management APP, the controlled terminal does not display it, so as to save power consumption. The cloud terminal management APP of the control end selects the music file of the music to be played in the music list, and transfers the music file of the music to be played to the cloud terminal management APP of the controlled end, and the cloud terminal management APP of the controlled end calls the music player of the controlled end Decode the music files, and push the decoded audio data stream to the cloud terminal management APP of the control end, and play it on the control end, so as to solve the problem that the control end does not have a decoder for decoding music files, and realize the communication between the control end and the controlled end. Hardware resource sharing. In another embodiment of the present application, the music file of the control end is decoded at the controlled end and played at the controlled end to realize the sharing of data resources, and the decoded audio data stream is the above-mentioned processing result information.
进一步地,处理结果信息包括解码后的音频数据流,接收第二云终端管理APP根据控制信息调用待控制的应用程序和硬件后所形成的处理结果信息的步骤S607之后,包括:Further, the processing result information includes the decoded audio data stream, and after receiving the processing result information formed after the second cloud terminal management APP calls the application to be controlled and the hardware according to the control information in step S607, it includes:
S608:调用第一智能终端的播放器;S608: call the player of the first intelligent terminal;
S609:控制第一智能终端的播放器播放解码后的音频数据流。S609: Control the player of the first intelligent terminal to play the decoded audio data stream.
本申请实施例通过在控制端播放上述解码后的音频数据流来实现远程音乐播放为例,作为控制端和被控制端的相互关系的体现。控制端的云终端管理APP收到被控制端解码的音频数据流后,可以通过控制端的云终端管理APP调用控制端的喇叭硬件,并驱动喇叭发声,实现被控制端解码的音乐文件在控制端进行音乐播放,或者同步在控制端和被控制端进行音乐播放,实现控制端和被控制端的资源共享等互动操作。The embodiment of the present application implements remote music playback by playing the decoded audio data stream at the control end as an example, as an embodiment of the relationship 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, it can call the speaker hardware of the control end through the cloud terminal management APP of the control end, and drive the speaker to sound, so that the music files decoded by the control end can be played on the control end. Play, or synchronously play music on the control end and the controlled end, and realize interactive operations such as resource sharing between the control end and the controlled end.
进一步地,第二智能终端内设置第二全局公共网关,判断通讯协议中的控制关系是否为控制与被控制的主从设备关系的步骤S602之后,包括:Further, a second global public gateway is set in the second intelligent terminal, and after step S602 of judging whether the control relationship in the communication protocol is the relationship between control and the master-slave device to be controlled, it includes:
S6021:若不是控制与被控制的主从设备关系,则判定第一智能终端与第二智能终端为对称镜像的互动关系;S6021: If it is not the master-slave device relationship between the control and the controlled device, determine that the first intelligent terminal and the second intelligent terminal are in an interactive relationship of symmetrical mirror images;
S6022:判断第一全局公共网关是否接收到第二云终端管理APP通过第二全局公共网关发送的调用信息,其中,调用信息以IP数据包的形式发送,调用信息携带待调用的第一智能终端的指定应用程序的参数信息;S6022: Determine whether the first global public gateway has received the invocation information sent by the second cloud terminal management APP through the second global public gateway, where the invocation information is sent in the form of an IP data packet, and the invocation information carries the first intelligent terminal to be invoked The parameter information of the specified application;
S6023:若是,则控制第一云终端管理APP解析调用信息,确定指定应用程序;S6023: If yes, control the first cloud terminal management APP to parse the calling information, and determine the specified application;
S6024:启动并运行指定应用程序,形成运行信息列表;S6024: Start and run the specified application to form a running information list;
S6025:将运行信息列表通过第一云终端管理APP发送至第二云终端管理APP。S6025: Send the operation information list to the second cloud terminal management APP through the first cloud terminal management APP.
本申请实施例以两个智能终端之间的相互关系互为平等的对称镜像的互动关系,哪端智能终端发起共享或控制指令,则哪端成为当前时刻的控制端。本实施例建立互动关系的两个智能终端的均具有对等的功能,均具有发起控制或共享指令的功能。初次进行5G智能终端的互为镜像互动关系的关联时,5G智能终端的数据链路开启时,运营商将自动分配一个IP地址给发起控制或共享指令的5G智能终端,在发起控制或共享指令的5G智能终端的5G云终端管理APP中设置对端智能终端的SIM卡号,并向SIM卡号对应的5G智能终端,发送包含发起控制或共享指令的5G智能终端的IP地址的5G RCS短信息,对端智能终端的5G云终端管理APP对收到的5G RCS短信息进行解析,获得发起控制或共享指令的5G智能终端的IP地址,并进行相互绑定。在绑定成功后,在两端智能终端的5G云终端管理APP中,均将出现绑定成功的显示。同时两端智能终端的5G云终端管理APP通过相互之间的通信,通过IP数据流的方式获取被控制端的具体应用程序的程序列表,包括拍照、图库、5G终端子APP等三方应用程序,以及监控屏幕、传输数据等快捷应用层序。In the embodiment of the present application, the mutual relationship between the two intelligent terminals is an equal and symmetrical mirror interaction relationship, and which end of the intelligent terminal initiates a sharing or control command becomes the control end at the current moment. Both of the two intelligent terminals that establish an interactive relationship in this embodiment have an equivalent function, and both have a function of initiating a control or sharing command. When the 5G smart terminal is first associated with the mutual mirror interaction relationship, when the data link of the 5G smart terminal is turned on, the operator will automatically assign an IP address to the 5G smart terminal that initiates the control or sharing command. Set the SIM card number of the peer smart terminal in the 5G cloud terminal management APP of the 5G smart terminal, and send the 5G smart terminal containing the IP address of the 5G smart terminal that initiated the control or sharing command to the 5G smart terminal corresponding to the SIM card number. RCS short message, the 5G cloud terminal management APP of the peer smart terminal parses the received 5G RCS short message, obtains the IP address of the 5G smart terminal that initiates the control or sharing command, and binds them to each other. After the binding is successful, the display of successful binding will appear in the 5G cloud terminal management APP of the smart terminals at both ends. At the same time, the 5G cloud terminal management APP of the smart terminals at both ends obtains the program list of the specific applications of the controlled terminal through the communication between each other and the IP data stream, including the three-party applications such as photography, gallery, and 5G terminal sub-APP, and Quick application sequence such as monitoring screen and transferring data.
本申请中可通过在一个智能终端的5G云终端管理APP中设置多个对端智能终端的SIM卡号,实现一对多的关联互动,且上述一对多的关联互动中可通过设定通讯协议,实现多种相互关系共存。比如,智能终端A的5G云终端管理APP中设置了智能终端B、智能终端C和智能终端D的SIM卡号,实现在智能终端A上同时并存A与B的控制被控制的互动关系、A与C的对等镜像的互动关系以及A与D的控制被控制的互动关系。上述不同的互动关系通过设置不同的通讯协议实现,但上述智能终端A、智能终端B、智能终端C和智能终端D,均分别设置云终端管理APP、全局公共网关、控制5G RCS短信息的API接口以及5G RCS短信息的控制机制,实现建立互动关系的两端智能终端之间均存在双向的5G RCS短信息的传输路径以及IP数据链路,保持两端智能终端的IP数据长连接状态。In this application, one-to-many association interaction can be achieved by setting the SIM card numbers of multiple peer intelligent terminals in the 5G cloud terminal management APP of one intelligent terminal, and the above-mentioned one-to-many association interaction can be set by setting the communication protocol. , to realize the coexistence of multiple interrelationships. For example, in the 5G cloud terminal management APP of smart terminal A, the SIM card numbers of smart terminal B, smart terminal C and smart terminal D are set, so that the interactive relationship between A and B's control and controlled coexistence on smart terminal A can be realized at the same time. The interaction relationship of the peer mirror of C and the interaction relationship of the control of A and D is controlled. The above-mentioned different interaction relationships are realized by setting different communication protocols, but the above-mentioned smart terminal A, smart terminal B, smart terminal C and smart terminal D are respectively set with cloud terminal management APP, global public gateway, and API for controlling 5G RCS short messages. The interface and the control mechanism of 5G RCS short message realize that there is two-way 5G between the intelligent terminals at both ends of the interactive relationship. The transmission path of the RCS short message and the IP data link maintain the IP data long connection state of the intelligent terminals at both ends.
参照图2,本申请一实施例的IP数据长连接的装置,集成于智能终端上,装置包括:Referring to FIG. 2 , a device for long-term IP data connection according to an embodiment of the present application is integrated on an intelligent terminal, and the device includes:
接收模块1,用于实时接收5G RCS短信息,其中,第一智能终端内设置第一云终端管理APP、第一全局公共网关以及控制5G RCS短信息的第一API接口;Receiver module 1, used to receive 5G in real time RCS short message, wherein the first smart terminal is provided with a first cloud terminal management APP, a first global public gateway, and a first API interface for controlling 5G RCS short messages;
第一控制模块2,用于控制第一云终端管理APP调用第一API接口,并读取5G RCS短信息;The first control module 2 is used to control the first cloud terminal management APP to call the first API interface and read the 5G RCS short message;
第一判断模块3,用于判断5G RCS短信息是否为预先绑定SIM卡号的第二智能终端发送的,其中,第二智能终端为预先与第一智能终端绑定SIM卡号的多个智能终端中的任意一个;The first judgment module 3 is used to judge whether the 5G RCS short message is sent by a second smart terminal with a pre-bound SIM card number, wherein the second smart terminal is a plurality of smart terminals that are pre-bound with the SIM card number of the first smart terminal. any one of;
第二控制模块4,用于若5G RCS短信息为预先绑定SIM卡号的第二智能终端发送的,则控制第一API接口向第一云终端管理APP推送5G RCS短信息;The second control module 4 is used if 5G The RCS short message is sent by the second smart terminal pre-bound with the SIM card number, and the first API interface is controlled to push the 5G RCS short message to the first cloud terminal management APP;
第一获取模块5,用于获取第一云终端管理APP通过解析5G RCS短信息所得到的第二智能终端的IP地址;The first acquisition module 5 is used to acquire the first cloud terminal management APP by parsing 5G The IP address of the second intelligent terminal obtained by the RCS short message;
同步模块6,用于将第二智能终端的IP地址同步至第一全局公共网关的IP地址表中,并通过同步更新后IP地址表中的IP地址,与第二智能终端保持IP数据长连接。Synchronization module 6, for synchronizing the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and maintaining a long IP data connection with the second intelligent terminal by synchronizing the IP address in the updated IP address table .
本申请通过在5G智能终端上设计全局公共网关和5G云终端管理APP及RCS短信控制机制,实现5G智能终端上所有对外的HTTP访问,均通过全局公共网关存储并转发,全局公共网关内设有一个IP地址表,IP地址表中存有5G智能终端预先绑定SIM卡号的对端5G智能终端的IP地址,以及缓存连续时长t内本机5G云终端管理APP发给对端智能终端的5G云终端管理APP的IP数据包,上述时长t的大小可以自定义设置。5G智能终端的IP地址与SIM卡号绑定的实现过程,包括通过在本机的5G云终端管理APP中建立对端智能终端的SIM卡号及获得的对端智能终端的IP地址的对应表。每个绑定的SIM卡号固定不变,但每个固定SIM卡号所对应的IP地址是动态变化的,以适应运营商动态匹配IP地址的状态,实现在两个或两个以上的5G智能终端之间建立IP数据长连接。上述的5G云终端管理APP能够调用5G RCS短信息的API接口,具备发送5G RCS短信息的功能以及读取5G RCS短信息的功能。本申请通过5G云终端管理APP对接收到的IP数据包的数据信息进行解析,以获取IP数据包的地址信息,如果是绑定5G对端的IP地址,则将IP数据包推送给本机的5G云终端管理APP,以根据对应的IP数据包的地址信息,将IP数据流信息转发至对应的应用程序软件。5G智能终端预先绑定SIM卡号的对端5G智能终端的过程,通过5G RCS短信息技术实现。本申请通过设计5G云终端管理APP和全局公共网关,用5G RCS短信息技术绑定SIM卡号,通过5G云终端管理APP对接收到的IP数据包的数据信息进行解析,以获取IP数据包的地址信息,如果是绑定SIM卡号的5G对端的IP地址,则建立IP数据长连接,用5G RCS短信息技术可绑定N个SIM卡号,建立N台5G终端间的相互直接IP数据长连接,取代第三方服务器,利用5G大带宽、低时延、多并发的特点,降低智能终端之间数据连接的成本,减缓时延。且通过5G云终端管理APP间的通信协议及控制,实现多个5G终端的服务器与客户端主从应用或者对称镜像终端的应用。本申请实施例以第一智能终端和第二智能终端之间建立IP数据长连接为例进行详细说明,且以第一智能终端为本机,以第二智能终端为对端智能终端为例。上述第一智能终端可同时与多个对端智能终端建立IP数据长连接,互不干扰,可通过设计通讯协议实现。上述的第一智能终端和第二智能终端仅用于区别,不用于限制,其他处的“第一”、“第二”等类似用语的作用相同,不赘述。In this application, by designing a global public gateway, a 5G cloud terminal management APP and an RCS SMS control mechanism on the 5G smart terminal, all external HTTP accesses on the 5G smart terminal are stored and forwarded through the global public gateway. The global public gateway is equipped with An IP address table. The IP address table stores the IP address of the peer 5G smart terminal to which the SIM card number of the 5G smart terminal is pre-bound, and the 5G cached 5G cloud terminal management APP sent to the peer smart terminal for a continuous period of time t. The cloud terminal manages the IP data packets of the APP, and the size of the above duration t can be customized. The implementation process of binding the IP address of the 5G smart terminal to the SIM card number includes establishing a correspondence table between the SIM card number of the peer smart terminal and the obtained IP address of the peer smart terminal in the 5G cloud terminal management APP of the local machine. Each bound SIM card number is fixed, but the IP address corresponding to each fixed SIM card number is dynamically changed to adapt to the state of the operator's dynamic matching of IP addresses, enabling two or more 5G smart terminals Establish a long IP data connection between them. The above-mentioned 5G cloud terminal management APP can call the API interface of 5G RCS short message, and has the ability to send 5G The function of RCS short message and the function of reading 5G RCS short message. This application analyzes the data information of the received IP data packets through the 5G cloud terminal management APP to obtain the address information of the IP data packets. If the IP address of the 5G peer end is bound, the IP data packets are pushed to the local The 5G cloud terminal management APP can forward the IP data flow information to the corresponding application software according to the address information of the corresponding IP data packet. The process of pre-binding the 5G smart terminal with the SIM card number of the peer 5G smart terminal, through 5G RCS short message technology implementation. In this application, the 5G cloud terminal management APP and the global public gateway are designed, the SIM card number is bound with the 5G RCS short message technology, and the data information of the received IP data packet is analyzed through the 5G cloud terminal management APP, so as to obtain the information of the IP data packet. Address information, if it is the IP address of the 5G peer to which the SIM card number is bound, a long IP data connection will be established. Using the 5G RCS short message technology, N SIM card numbers can be bound to establish a mutual direct IP data long connection between N 5G terminals. , replace the third-party server, take advantage of the large bandwidth, low latency, and multiple concurrency features of 5G to reduce the cost of data connection between smart terminals and slow down the delay. And through the communication protocol and control between the 5G cloud terminal management APP, the server and client master-slave applications of multiple 5G terminals or the application of symmetrical mirror terminals are realized. The embodiments of the present application take the establishment of an IP data long connection between the first intelligent terminal and the second intelligent terminal as an example for detailed description, and take the first intelligent terminal as the local machine and the second intelligent terminal as the opposite terminal intelligent terminal as an example. The above-mentioned first intelligent terminal can simultaneously establish long IP data connections with multiple peer intelligent terminals without interfering with each other, which can be realized by designing a communication protocol. The above-mentioned first intelligent terminal and second intelligent terminal are only used for distinction, not for limitation, and similar terms such as "first" and "second" in other places have the same functions, and will not be repeated.
参照图3,第二智能终端内设置第二云终端管理APP和第二API接口,本申请另一实施例的IP数据长连接的装置,包括:Referring to FIG. 3 , a second cloud terminal management APP and a second API interface are set in the second intelligent terminal, and the device for long-term IP data connection according to another embodiment of the present application includes:
第二获取模块61,用于获取第二智能终端通过第二API接口发送的新5G RCS短信息,其中,新5G RCS短信息携带第二智能终端更新后的新IP地址,新IP地址由第二智能终端中的第二云终端管理APP实时监控获得;The second obtaining module 61 is configured to obtain the new 5G sent by the second intelligent terminal through the second API interface RCS short message, wherein the new 5G RCS short message carries the updated new IP address of the second smart terminal, and the new IP address is obtained by real-time monitoring by the second cloud terminal management APP in the second smart terminal;
第三控制模块62,用于控制第一云终端管理APP解析新5G RCS短信息,得到的新IP地址;The third control module 62 is configured to control the first cloud terminal management APP to parse the new 5G RCS short message to obtain a new IP address;
更新模块63,用于根据新IP地址更新第一全局公共网关的IP地址表;an update module 63, configured to update the IP address table of the first global public gateway according to the new IP address;
保持模块64,用于通过更新的IP地址表中的新IP地址,与第二智能终端保持IP数据长连接。The maintaining module 64 is configured to maintain a long IP data connection with the second intelligent terminal through the new IP address in the updated IP address table.
本申请的5G智能终端的IP地址实现实时监控并实时刷新保留的方式。5G云终端管理APP时刻监控其所在智能终端的5G网络的IP地址变化情况,当发现所在智能终端的5G网络的IP地址发生变化时,则通过5G云终端管理APP调用所在智能终端的5G RCS短信息的API接口,向绑定的SIM卡号的智能终端发送包含所在智能终端的新IP地址的新5GRCS短信息,以触控绑定SIM卡号的对端智能终端的RCS短信解析控制机制,使得绑定SIM卡号的5G智能终端对收到新5GRCS短信息进行解析。如果新5GRCS短信息是绑定SIM卡号的智能终端发送的RCS短信息,则通过接收新5GRCS短信息的智能终端的API接口,向其云终端管理APP推送收到的新5GRCS短信息,接收新5GRCS短信息的智能终端的云终端管理APP,按照约定的通信协议解析接收的新5GRCS短信息,得到对端智能终端更新的IP地址,并同步更新接收新5GRCS短信息的智能终端的全局公共网关中的IP地址表,实现通过连接对端智能终端更新的IP地址,从而保持5G智能终端之间的端对端的IP数据长连接链路。The IP address of the 5G smart terminal of the present application realizes real-time monitoring and real-time refresh and reservation. The 5G cloud terminal management APP constantly monitors the IP address changes of the 5G network of the smart terminal where it is located. When the IP address of the 5G network of the smart terminal where it is located is found to have changed, the 5G cloud terminal management APP is used to call the 5G network of the smart terminal where it is located. API interface of RCS short message, send a new 5GRCS short message containing the new IP address of the smart terminal to the smart terminal with the bound SIM card number, and touch the RCS short message parsing control mechanism of the peer smart terminal bound with the SIM card number, This enables the 5G smart terminal bound with the SIM card number to parse the new 5GRCS short message received. If the new 5GRCS short message is an RCS short message sent by the smart terminal bound with the SIM card number, the smart terminal that receives the new 5GRCS short message will push the received new 5GRCS short message to its cloud terminal management APP through the API interface of the smart terminal to receive the new 5GRCS short message. The cloud terminal management APP of the smart terminal of the 5GRCS short message parses the received new 5GRCS short message according to the agreed communication protocol, obtains the updated IP address of the peer smart terminal, and synchronously updates the global public gateway of the smart terminal that receives the new 5GRCS short message The IP address table in the 5G intelligent terminal realizes the updated IP address by connecting to the peer intelligent terminal, so as to maintain the end-to-end IP data long connection link between the 5G intelligent terminals.
参照图4,新5G RCS短信息携带IP地址更新时间戳,保持模块64,包括:Referring to Figure 4, the new 5G RCS short message carries the IP address update timestamp, and the retention module 64 includes:
获取单元641,用于获取第一云终端管理APP解析新5G RCS短信息时,得到的IP地址更新时间戳;The obtaining unit 641 is used to obtain the IP address update timestamp obtained when the first cloud terminal management APP parses the new 5G RCS short message;
判断单元642,用于根据IP地址更新时间戳,判断当前时刻与第二智能终端IP地址更新时刻的时间差是否小于预设时长;The judgment unit 642 is used for updating the timestamp according to the IP address, and judging whether the time difference between the current moment and the updating moment of the IP address of the second intelligent terminal is less than the preset duration;
控制单元643,用于若当前时刻与第二智能终端IP地址更新时刻的时间差是否小于预设时长,则控制第一云终端管理APP向第二云终端管理APP发送预设时长内缓存的IP数据包,并通过IP数据包保持IP数据长连接。The control unit 643 is configured to control the first cloud terminal management APP to send the IP data cached within the preset duration to the second cloud terminal management APP if the time difference between the current moment and the IP address update moment of the second smart terminal is less than the preset duration packets, and maintain a long connection for IP data through IP packets.
本申请通过5G云终端管理APP解析收到对端智能终端发送的5G RCS短信息的时间戳,并根据时间戳判断当前时刻是否在对端智能终端的IP地址变化的预设时长t内,比如,从时间戳对应的时间到当前执行判断动作的时间之间的时长小于预设时长t,则认为当前时刻是在第二智能终端IP地址变化的预设时长t内。此时,通过接收5G RCS短信息的智能终端的云终端管理APP,给对端智能终端的云终端管理APP发送当前时刻的IP数据包,并控制用于接收5G RCS短信息的智能终端,将其全局公共网关内所存储的t时长内的IP数据包,重新发送给地址改变后的对端智能终端的云终端管理APP,确保IP数据包在IP地址进行更新变化的时间段内无数据丢失。This application analyzes and receives the 5G sent by the peer smart terminal through the 5G cloud terminal management APP The timestamp of the RCS short message, and according to the timestamp, it is judged whether the current moment is within the preset time period t of the IP address change of the peer smart terminal, for example, the period from the time corresponding to the timestamp to the time when the judgment action is currently performed. If it is less than the preset duration t, it is considered that the current moment is within the preset duration t of the IP address change of the second intelligent terminal. At this time, by receiving 5G The cloud terminal management APP of the smart terminal of the RCS short message sends the IP data packet of the current moment to the cloud terminal management APP of the peer smart terminal, and controls the smart terminal used to receive the 5G RCS short message, and stores all the information in the global public gateway. The stored IP data packets within t duration are re-sent to the cloud terminal management APP of the peer intelligent terminal after the address has been changed to ensure that no data is lost in the IP data packets during the time period when the IP address is updated and changed.
参照图5,再一实施例的IP数据长连接的装置,包括:Referring to FIG. 5 , a device for long-term IP data connection according to another embodiment includes:
第三获取模块601,用于获取第一智能终端与第二智能终端设置绑定时选定的通讯协议;A third acquiring module 601, configured to acquire the communication protocol selected when the first intelligent terminal and the second intelligent terminal are set and bound;
第二判断模块602,用于判断通讯协议中的控制关系是否为控制与被控制的主从设备关系;The second judgment module 602 is used for judging whether the control relationship in the communication protocol is the relationship between control and the master-slave device being controlled;
确定模块603,用于若为控制与被控制的主从设备关系,则确定控制端和被控制端分别对应的智能终端。The determining module 603 is configured to determine the respective intelligent terminals corresponding to the control terminal and the controlled terminal if the relationship is between the control and the controlled master-slave device.
本申请的5G云终端管理APP中可以设置绑定SIM卡号的N台5G智能终端的相互关系,比如客户端与主机的控制与被控制的主从设备关系或者镜像对称的对等关系。控制与被控制的主从设备关系中主机可以控制从机的应用程序,而镜像对称的对等关系是相互之间都可以控制相对端的应用程序,控制与被控制的关系根据发起的调用请求可随时进行角色互换。上述的智能终端之间的相互关系,可由绑定时选定的通讯协议的类型决定。某个智能终端可同时建立N台5G智能终端的云终端管理APP间的通信协议,通信协议用于获取对端智能终端的应用程序列表、硬件信息及控制命令集等。上述的某个智能终端可同时建立N台5G智能终端的相互关系,可通过通讯协议的不同类型进行区分和实现。上述应用程序列表包括音乐播放、摄像、视频、语音等智能终端内常设应用程序,上述硬件信息包括应用程序运行时需要的智能终端内的硬件所对应的信息,比如硬件名称、启动路径等。上述控制命令集包括某个具体应用程序在运行时可使用的所有命令,比如,在启动音乐播放器时,其对应的控制命令集包括但不限于音量、快进、下一首、切歌等控制命令。本申请的5G云终端管理APP获得其所在智能终端的应用程序列表及硬件信息,并且可以调用其所在智能终端的应用程序和硬件。通过多个智能终端均绑定云终端管理APP后,即可实现多个智能终端之间的通信,实现被控制的5G智能终端的应用程序被运行和硬件被调用,被控制的5G智能终端将应用程序运行的结果通过5G的IP数据流传输到作为控制端的5G智能终端,实现控制端和被控制端的同屏互动或协同操作的关系。The 5G cloud terminal management APP of this application can set the relationship between N 5G smart terminals bound with SIM card numbers, such as the relationship between the client and the host and the master-slave device to be controlled, or the mirror-symmetric peer-to-peer relationship. In the master-slave device relationship between the control and the controlled device, the host can control the application program of the slave device, while the mirror-symmetric peer-to-peer relationship can control the application program of the opposite end. The relationship between the control and the controlled device can be controlled according to the call request. Switch roles at any time. The mutual relationship between the above-mentioned intelligent terminals can be determined by the type of the communication protocol selected when binding. A smart terminal can establish a communication protocol between cloud terminal management APPs of N 5G smart terminals at the same time. The communication protocol is used to obtain the application list, hardware information and control command set of the peer smart terminal. One of the above-mentioned smart terminals can establish the mutual relationship of N 5G smart terminals at the same time, which can be distinguished and realized by different types of communication protocols. The above application program list includes permanent application programs in the smart terminal such as music playback, camera, video, voice, etc. The above hardware information includes information corresponding to the hardware in the smart terminal required for the application program to run, such as hardware name, startup path, etc. The above control command set includes all commands that a specific application can use when running, for example, when starting a music player, its corresponding control command set includes but is not limited to volume, fast forward, next song, song cut, etc. control commands. The 5G cloud terminal management APP of the present application obtains the application program list and hardware information of the smart terminal where it is located, and can call the application program and hardware of the smart terminal where it is located. After multiple intelligent terminals are bound to the cloud terminal management APP, the communication between multiple intelligent terminals can be realized, so that the application program of the controlled 5G intelligent terminal can be run and the hardware can be called. The result of the application running is transmitted to the 5G smart terminal as the control terminal through the 5G IP data stream to realize the same-screen interaction or collaborative operation between the control terminal and the controlled terminal.
进一步地,第一智能终端为控制端,第二智能终端为被控制端,IP数据长连接的装置,包括:Further, the first intelligent terminal is the control terminal, the second intelligent terminal is the controlled terminal, and the device for long connection of IP data includes:
第四获取模块604,用于通过IP数据流获取第二云终端管理APP提取到的第二智能终端的应用程序列表及硬件信息;a fourth obtaining module 604, configured to obtain the application list and hardware information of the second intelligent terminal extracted by the second cloud terminal management APP through the IP data stream;
第一形成模块605,用于根据第二智能终端的应用程序列表及硬件信息形成控制信息,其中,控制信息携带待控制的应用程序的参数信息和硬件的参数信息;The first forming module 605 is configured to form control information according to the application program list and 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;
第四控制模块606,用于控制第一云终端管理APP向第二云终端管理APP,发送控制信息;a fourth control module 606, configured to control the first cloud terminal management APP to send control information to the second cloud terminal management APP;
第二形成模块607,用于接收第二云终端管理APP根据控制信息调用待控制的应用程序和硬件后所形成的处理结果信息。The second forming module 607 is configured to receive processing result information formed after the second cloud terminal management APP invokes the application program and hardware to be controlled according to the control information.
本申请实施例,以控制端和被控制端的相互关系来说明两个智能终端之间信息传输和交互的过程。首先由控制端的云终端管理APP向被控制端的云终端管理APP发送相关的控制信息,如:监控屏幕、传输文件、播放音乐、重启智能终端或截屏等等控制信息。被控制端的云终端管理APP通过调用被控制端智能终端的相关软件和硬件进行信息处理,并将处理结果传输到控制端的云终端管理APP。以播放音乐为例,控制端用户点击云终端管理APP中预先绑定了SIM卡号的对端智能终端的应用程序列表,并在应用程序列表中选择音乐播放器,控制端的云终端管理APP通过控制端的全局公共网关向被控制端发出控制信息对应的IP数据包,即通过IP数据链路转发到被控制端的全局公共网关,被控制端的全局公共网关根据解析IP数据包的IP地址,将IP数据包先转发到被控制端的云终端管理APP,云终端管理APP解析IP数据包后,确定控制信息中携带调用的应用程序为音乐播放器,然后通过云终端管理APP调用其所在智能终端的音乐播放器,实现音乐播放器的运行。云终端管理APP开启其所在智能终端的音乐播放器,并将目前的音乐列表等信息打包传输给控制端的云终端管理APP,控制端通过其云终端管理APP获取音乐列表等信息并显示,被控制端可同步显示,方便两端智能终端用户的使用互动和交流。本申请另一实施例中,控制端通过其云终端管理APP获取音乐列表等信息并显示时,被控制端不显示,以节约功耗。控制端的云终端管理APP在音乐列表中选择待播放音乐的音乐文件,并将待播放音乐对应的音乐文件传递给被控制端的云终端管理APP,被控制端的云终端管理APP调用被控制端的音乐播放器对音乐文件进行解码,并将解码后的音频数据流推送给控制端的云终端管理APP,在控制端播放,以解决控制端不存在解码音乐文件的解码器的问题,实现控制端和被控制端的硬件资源共享。本申请另一实施例中,通过将控制端的音乐文件在被控制端解码,并在被控制端播放,实现数据资源的共享,上述解码后的音频数据流即为上述处理结果信息。In this embodiment of the present application, the process of information transmission and interaction between two intelligent terminals is described by the relationship between the control terminal and the controlled terminal. First, the cloud terminal management APP of the control terminal sends relevant control information to the cloud terminal management APP of the controlled terminal, such as control information such as monitoring the screen, transferring files, playing music, restarting the smart terminal or taking screenshots. The cloud terminal management APP of the controlled end performs information processing by calling the relevant software and hardware of the intelligent terminal of the controlled end, and transmits the processing result to the cloud terminal management APP of the control end. Taking playing music as an example, the user on the control end clicks the application list of the peer smart terminal with the SIM card number pre-bound in the cloud terminal management APP, and selects the music player in the application list. The cloud terminal management APP on the control end controls the The global public gateway of the controlled end sends the IP data packet corresponding to the control information to the controlled end, that is, it is forwarded to the global public gateway of the controlled end through the IP data link. The packet is first forwarded to the cloud terminal management APP of the controlled end. After the cloud terminal management APP parses the IP data packet, it determines that the called application carried in the control information is the music player, and then the cloud terminal management APP is used to call the music playback of the smart terminal where it is located. to implement the operation of the music player. The cloud terminal management APP starts the music player of the smart terminal where it is located, and packages and transmits the current music list and other information to the cloud terminal management APP of the control terminal. The control terminal obtains the music list and other information through its cloud terminal management APP and displays it. The terminal can be displayed synchronously, which is convenient for the interaction and communication of the intelligent terminal users at both ends. In another embodiment of the present application, when the control terminal obtains and displays information such as a music list through its cloud terminal management APP, the controlled terminal does not display it, so as to save power consumption. The cloud terminal management APP of the control end selects the music file of the music to be played in the music list, and transfers the music file corresponding to the music to be played to the cloud terminal management APP of the controlled end, and the cloud terminal management APP of the controlled end calls the music playback of the controlled end. The device decodes the music files, and pushes the decoded audio data stream to the cloud terminal management APP of the control end, and plays it on the control end, so as to solve the problem that there is no decoder for decoding music files at the control end, and realize the control end and the controlled end. hardware resource sharing on the side. In another embodiment of the present application, the music file of the control end is decoded at the controlled end and played at the controlled end to realize the sharing of data resources, and the decoded audio data stream is the above-mentioned processing result information.
进一步地,处理结果信息包括解码后的音频数据流,IP数据长连接的装置,包括:Further, the processing result information includes the decoded audio data stream, and the device for long connection of IP data includes:
调用模块608,用于调用第一智能终端的播放器;a calling module 608 for calling the player of the first intelligent terminal;
第五控制模块609,用于控制第一智能终端的播放器播放解码后的音频数据流。The fifth control module 609 is configured to control the player of the first intelligent terminal to play the decoded audio data stream.
本申请实施例通过在控制端播放上述解码后的音频数据流来实现远程音乐播放为例,作为控制端和被控制端的相互关系的体现。控制端的云终端管理APP收到被控制端解码的音频数据流后,可以通过控制端的云终端管理APP调用控制端的喇叭硬件,并驱动喇叭发声,实现被控制端解码的音乐文件在控制端进行音乐播放,或者同步在控制端和被控制端进行音乐播放,实现控制端和被控制端的资源共享等互动操作。The embodiment of the present application implements remote music playback by playing the decoded audio data stream at the control end as an example, as an embodiment of the relationship 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, it can call the speaker hardware of the control end through the cloud terminal management APP of the control end, and drive the speaker to sound, so that the music files decoded by the control end can be played on the control end. Play, or synchronously play music on the control end and the controlled end, and realize interactive operations such as resource sharing between the control end and the controlled end.
进一步地,第二智能终端内设置第二全局公共网关,再一实施例中IP数据长连接的装置,包括:Further, a second global public gateway is set in the second intelligent terminal, and the device for long-term IP data connection in another embodiment includes:
判定模块6021,用于若不是控制与被控制的主从设备关系,则判定第一智能终端与第二智能终端为对称镜像的互动关系;The determining module 6021 is configured to determine that the first intelligent terminal and the second intelligent terminal are in an interactive relationship of symmetrical mirror images if the relationship between the control and the controlled master-slave device is not involved;
第三判断模块6022,用于判断第一全局公共网关是否接收到第二云终端管理APP通过第二全局公共网关发送的调用信息,其中,调用信息以IP数据包的形式发送,调用信息携带待调用的第一智能终端的指定应用程序的参数信息;The third judging module 6022 is configured to judge whether the first global public gateway has received the calling information sent by the second cloud terminal management APP through the second global public gateway, wherein the calling information is sent in the form of an IP data packet, and the calling information carries the waiting information. parameter information of the specified application program of the called first intelligent terminal;
第六控制模块6023,用于接收到第二云终端管理APP通过第二全局公共网关发送的调用信息,则控制第一云终端管理APP解析调用信息,确定指定应用程序;The sixth control module 6023 is configured to receive the calling information sent by the second cloud terminal management APP through the second global public gateway, and then control the first cloud terminal management APP to parse the calling information, and determine the specified application;
启动模块6024,用于启动并运行指定应用程序,形成运行信息列表;The startup module 6024 is used to start and run the specified application to form a running information list;
发送模块6025,用于将运行信息列表通过第一云终端管理APP发送至第二云终端管理APP。The sending module 6025 is configured to send the operation information list to the second cloud terminal management APP through the first cloud terminal management APP.
本申请实施例以两个智能终端之间的相互关系互为平等的对称镜像的互动关系,哪端智能终端发起共享或控制指令,则哪端成为当前时刻的控制端。本实施例建立互动关系的两个智能终端的均具有对等的功能,均具有发起控制或共享指令的功能。初次进行5G智能终端的互为镜像互动关系的关联时,5G智能终端的数据链路开启时,运营商将自动分配一个IP地址给发起控制或共享指令的5G智能终端,在发起控制或共享指令的5G智能终端的5G云终端管理APP中设置对端智能终端的SIM卡号,并向SIM卡号对应的5G智能终端,发送包含发起控制或共享指令的5G智能终端的IP地址的5G RCS短信息,对端智能终端的5G云终端管理APP对收到的5G RCS短信息进行解析,获得发起控制或共享指令的5G智能终端的IP地址,并进行相互绑定。在绑定成功后,在两端智能终端的5G云终端管理APP中,均将出现绑定成功的显示。同时两端智能终端的5G云终端管理APP通过相互之间的通信,通过IP数据流的方式获取被控制端的具体应用程序的程序列表,包括拍照、图库、5G终端子APP等三方应用程序,以及监控屏幕、传输数据等快捷应用层序。In the embodiment of the present application, the mutual relationship between the two intelligent terminals is an equal and symmetrical mirror interaction relationship, and which end of the intelligent terminal initiates a sharing or control command becomes the control end at the current moment. Both of the two intelligent terminals that establish an interactive relationship in this embodiment have an equivalent function, and both have a function of initiating a control or sharing command. When the 5G smart terminal is first associated with the mutual mirror interaction relationship, when the data link of the 5G smart terminal is turned on, the operator will automatically assign an IP address to the 5G smart terminal that initiates the control or sharing command. Set the SIM card number of the peer smart terminal in the 5G cloud terminal management APP of the 5G smart terminal, and send the 5G smart terminal containing the IP address of the 5G smart terminal that initiated the control or sharing command to the 5G smart terminal corresponding to the SIM card number. RCS short message, the 5G cloud terminal management APP of the peer smart terminal parses the received 5G RCS short message, obtains the IP address of the 5G smart terminal that initiates the control or sharing command, and binds them to each other. After the binding is successful, the display of successful binding will appear in the 5G cloud terminal management APP of the smart terminals at both ends. At the same time, the 5G cloud terminal management APP of the smart terminals at both ends obtains the program list of the specific applications of the controlled terminal through the communication between each other and the IP data stream, including the three-party applications such as photography, gallery, and 5G terminal sub-APP, and Quick application sequence such as monitoring screen and transferring data.
本申请中可通过在一个智能终端的5G云终端管理APP中设置多个对端智能终端的SIM卡号,实现一对多的关联互动,且上述一对多的关联互动中可通过设定通讯协议,实现多种相互关系共存。比如,智能终端A的5G云终端管理APP中设置了智能终端B、智能终端C和智能终端D的SIM卡号,实现在智能终端A上同时并存A与B的控制被控制的互动关系、A与C的对等镜像的互动关系以及A与D的控制被控制的互动关系。上述不同的互动关系通过设置不同的通讯协议实现,但上述智能终端A、智能终端B、智能终端C和智能终端D,均分别设置云终端管理APP、全局公共网关、控制5G RCS短信息的API接口以及5G RCS短信息的控制机制,实现建立互动关系的两端智能终端之间均存在双向的5G RCS短信息的传输路径以及IP数据链路,保持两端智能终端的IP数据长连接状态。In this application, one-to-many association interaction can be achieved by setting the SIM card numbers of multiple peer intelligent terminals in the 5G cloud terminal management APP of one intelligent terminal, and the above-mentioned one-to-many association interaction can be set by setting the communication protocol. , to realize the coexistence of multiple interrelationships. For example, in the 5G cloud terminal management APP of smart terminal A, the SIM card numbers of smart terminal B, smart terminal C and smart terminal D are set, so that the interactive relationship between A and B's control and controlled coexistence on smart terminal A can be realized at the same time. The interaction relationship of the peer mirror of C and the interaction relationship of the control of A and D is controlled. The above-mentioned different interaction relationships are realized by setting different communication protocols, but the above-mentioned smart terminal A, smart terminal B, smart terminal C and smart terminal D are respectively set with cloud terminal management APP, global public gateway, and API for controlling 5G RCS short messages. The interface and the control mechanism of 5G RCS short message realize that there is two-way 5G between the intelligent terminals at both ends of the interactive relationship. The transmission path of the RCS short message and the IP data link maintain the IP data long connection state of the intelligent terminals at both ends.
参照图6,本申请实施例中还提供一种计算机设备,该计算机设备可以是服务器,其内部结构可以如图6所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设计的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储IP数据长连接的过程需要的所有数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现IP数据长连接的方法。Referring to FIG. 6 , an embodiment of the present application further provides a computer device, the computer device may be a server, and its internal structure may be as shown in FIG. 6 . The computer device includes a processor, memory, a network interface, and a database connected by a system bus. Among them, the processor of the computer design is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used to store all the data required for the process of IP data long-term connection. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the method for realizing the IP data long-term connection.
上述处理器执行上述IP数据长连接的方法,包括:第一智能终端实时接收5G RCS短信息,其中,第一智能终端内设置第一云终端管理APP、第一全局公共网关以及控制5G RCS短信息的第一API接口;控制第一云终端管理APP调用第一API接口,并读取5G RCS短信息;判断5G RCS短信息是否为预先绑定SIM卡号的第二智能终端发送的,其中,第二智能终端为预先与第一智能终端绑定SIM卡号的多个智能终端中的任意一个;若是,则控制第一API接口向第一云终端管理APP推送5G RCS短信息;获取第一云终端管理APP通过解析5G RCS短信息所得到的第二智能终端的IP地址;将第二智能终端的IP地址同步至第一全局公共网关的IP地址表中,并通过同步更新后IP地址表中的IP地址,与第二智能终端保持IP数据长连接。The method for performing the above-mentioned long IP data connection by the above-mentioned processor includes: the first intelligent terminal receives 5G in real time RCS short message, wherein the first smart terminal is provided with a first cloud terminal management APP, a first global public gateway, and a first API interface for controlling 5G RCS short messages; the first cloud terminal management APP is controlled to call the first API interface, and Read 5G RCS short message; judge 5G Whether the RCS short message is sent by a second smart terminal with a pre-bound SIM card number, wherein the second smart terminal is any one of multiple smart terminals with a SIM card number pre-bound with the first smart terminal; if so, control the first smart terminal An API interface pushes 5G RCS short messages to the first cloud terminal management APP; obtains the first cloud terminal management APP by parsing 5G The IP address of the second intelligent terminal obtained by the RCS short message; synchronize the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and synchronize the IP address in the updated IP address table with the IP address of the first global public gateway. Two intelligent terminals maintain long-term IP data connection.
上述计算机设备,通过设计5G云终端管理APP和全局公共网关,用5G RCS短信息技术绑定SIM卡号的方式,建立N台5G终端间的相互直接IP数据长连接,取代第三方服务器,利用5G大带宽、低时延、多并发的特点,通过5G云终端管理APP间的通信协议及控制,实现多个5G终端的服务器与客户端主从应用或者对称镜像终端的应用。The above computer equipment, through the design of 5G cloud terminal management APP and global public gateway, uses 5G The RCS short message technology binds the SIM card number to establish a long-term direct IP data connection between N 5G terminals, replacing the third-party server, taking advantage of the characteristics of 5G's large bandwidth, low latency, and multiple concurrency to manage the APP through the 5G cloud terminal It can realize the communication protocol and control between multiple 5G terminal servers and client-side master-slave applications or symmetric mirror terminal applications.
本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定。Those skilled in the art can understand that the structure shown in FIG. 6 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied.
本申请还提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现IP数据长连接的方法,包括:第一智能终端实时接收5G RCS短信息,其中,第一智能终端内设置第一云终端管理APP、第一全局公共网关以及控制5G RCS短信息的第一API接口;控制第一云终端管理APP调用第一API接口,并读取5G RCS短信息;判断5G RCS短信息是否为预先绑定SIM卡号的第二智能终端发送的,其中,第二智能终端为预先与第一智能终端绑定SIM卡号的多个智能终端中的任意一个;若是,则控制第一API接口向第一云终端管理APP推送5G RCS短信息;获取第一云终端管理APP通过解析5G RCS短信息所得到的第二智能终端的IP地址;将第二智能终端的IP地址同步至第一全局公共网关的IP地址表中,并通过同步更新后IP地址表中的IP地址,与第二智能终端保持IP数据长连接。The present application also provides a computer-readable storage medium on which a computer program is stored, and a method for implementing a long IP data connection when the computer program is executed by a processor includes: the first intelligent terminal receives 5G in real time RCS short message, wherein the first smart terminal is provided with a first cloud terminal management APP, a first global public gateway, and a first API interface for controlling 5G RCS short messages; the first cloud terminal management APP is controlled to call the first API interface, and Read 5G RCS short message; judge 5G Whether the RCS short message is sent by a second smart terminal with a pre-bound SIM card number, wherein the second smart terminal is any one of multiple smart terminals with a SIM card number pre-bound with the first smart terminal; if so, control the first smart terminal An API interface pushes 5G RCS short messages to the first cloud terminal management APP; obtains the first cloud terminal management APP by parsing 5G The IP address of the second intelligent terminal obtained by the RCS short message; synchronize the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and synchronize the IP address in the updated IP address table with the IP address of the first global public gateway. Two intelligent terminals maintain long-term IP data connection.
上述计算机可读存储介质,通过设计5G云终端管理APP和全局公共网关,用5G RCS短信息技术绑定SIM卡号的方式,建立N台5G终端间的相互直接IP数据长连接,取代第三方服务器,利用5G大带宽、低时延、多并发的特点,通过5G云终端管理APP间的通信协议及控制,实现多个5G终端的服务器与客户端主从应用或者对称镜像终端的应用。The above computer-readable storage medium, by designing a 5G cloud terminal management APP and a global public gateway, uses 5G The RCS short message technology binds the SIM card number to establish a long-term direct IP data connection between N 5G terminals, replacing the third-party server, taking advantage of the characteristics of 5G's large bandwidth, low latency, and multiple concurrency to manage the APP through the 5G cloud terminal It can realize the communication protocol and control between multiple 5G terminal servers and client-side master-slave applications or symmetric mirror terminal applications.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,上述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的和实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双速据率SDRAM(SSRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the process in the method of the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned computer program can be stored in a non-volatile computer-readable storage medium , when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium provided in this application and used in the embodiments may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, device, article or method comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, apparatus, article or method. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, apparatus, article, or method that includes the element.

Claims (15)

  1. 一种IP数据长连接的方法,其特征在于,包括:A method for long connection of IP data, comprising:
    第一智能终端实时接收5G RCS短信息,其中,所述第一智能终端内设置第一云终端管理APP、第一全局公共网关以及控制所述5G RCS短信息的第一API接口;The first smart terminal receives 5G in real time RCS short message, wherein a first cloud terminal management APP, a first global public gateway and a first API interface for controlling the 5G RCS short message are set in the first intelligent terminal;
    控制所述第一云终端管理APP调用所述第一API接口,并读取所述5G RCS短信息;controlling the first cloud terminal management APP to call the first API interface, and read the 5G RCS short message;
    判断所述5G RCS短信息是否为预先绑定SIM卡号的第二智能终端发送的,其中,所述第二智能终端为预先与所述第一智能终端绑定SIM卡号的多个智能终端中的任意一个;Determine whether the 5G RCS short message is sent by a second smart terminal that has a SIM card number pre-bound, wherein the second smart terminal is one of multiple smart terminals that have a SIM card number pre-bound with the first smart terminal. anyone;
    若是,则控制所述第一API接口向所述第一云终端管理APP推送所述5G RCS短信息;If yes, control the first API interface to push the 5G RCS short message to the first cloud terminal management APP;
    获取所述第一云终端管理APP通过解析所述5G RCS短信息所得到的所述第二智能终端的IP地址;acquiring the IP address of the second smart terminal obtained by the first cloud terminal management APP by parsing the 5G RCS short message;
    将所述第二智能终端的IP地址同步至所述第一全局公共网关的IP地址表中,并通过同步更新后所述IP地址表中的IP地址,与所述第二智能终端保持IP数据长连接。Synchronizing the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and maintaining IP data with the second intelligent terminal by synchronizing the updated IP address in the IP address table Long connection.
  2. 根据权利要求1所述的IP数据长连接的方法,其特征在于,所述第二智能终端内设置第二云终端管理APP和第二API接口,所述将所述第二智能终端的IP地址同步至所述第一全局公共网关的IP地址表中,并通过同步更新后所述IP地址表中的IP地址,与所述第二智能终端保持IP数据长连接的步骤之后,包括:The method for long IP data connection according to claim 1, wherein a second cloud terminal management APP and a second API interface are set in the second intelligent terminal, and the IP address of the second intelligent terminal is set in the second intelligent terminal. After being synchronized to the IP address table of the first global public gateway, and by synchronizing the updated IP address in the IP address table, after the step of maintaining a long IP data connection with the second intelligent terminal, it includes:
    获取所述第二智能终端通过所述第二API接口发送的新5G RCS短信息,其中,所述新5G RCS短信息携带所述第二智能终端更新后的新IP地址,所述新IP地址由所述第二智能终端中的所述第二云终端管理APP实时监控获得;Acquire the new 5G RCS short message sent by the second smart terminal through the second API interface, wherein the new 5G The RCS short message carries the updated new IP address of the second intelligent terminal, and the new IP address is obtained by real-time monitoring by the second cloud terminal management APP in the second intelligent terminal;
    控制所述第一云终端管理APP解析所述新5G RCS短信息,得到所述新IP地址;controlling the first cloud terminal management APP to parse the new 5G RCS short message to obtain the new IP address;
    根据所述新IP地址更新所述第一全局公共网关的IP地址表;Update the IP address table of the first global public gateway according to the new IP address;
    通过更新的IP地址表中的所述新IP地址,与所述第二智能终端保持IP数据长连接。By using the new IP address in the updated IP address table, a long IP data connection is maintained with the second intelligent terminal.
  3. 根据权利要求2所述的IP数据长连接的方法,其特征在于,所述新5G RCS短信息携带IP地址更新时间戳,所述通过更新的IP地址表中的所述新IP地址,与所述第二智能终端保持IP数据长连接的步骤,包括:The method for long IP data connection according to claim 2, wherein the new 5G RCS short message carries an IP address update time stamp, and the new IP address in the updated IP address table is the same as that in the updated IP address table. The step of maintaining the IP data long connection by the second intelligent terminal includes:
    获取所述第一云终端管理APP解析所述新5G RCS短信息时,得到的所述IP地址更新时间戳;Obtain the IP address update timestamp obtained when the first cloud terminal management APP parses the new 5G RCS short message;
    根据所述IP地址更新时间戳,判断当前时刻与所述第二智能终端IP地址更新时刻的时间差是否小于预设时长;According to the IP address update time stamp, determine whether the time difference between the current moment and the IP address update moment of the second intelligent terminal is less than a preset duration;
    若是,则控制所述第一云终端管理APP向所述第二云终端管理APP发送所述预设时长内缓存的IP数据包,并通过所述IP数据包保持IP数据长连接。If yes, control the first cloud terminal management APP to send the IP data packet buffered within the preset time period to the second cloud terminal management APP, and maintain a long IP data connection through the IP data packet.
  4. 根据权利要求1所述的IP数据长连接的方法,其特征在于,所述将所述第二智能终端的IP地址同步至所述第一全局公共网关的IP地址表中,并通过同步更新后所述IP地址表中的IP地址,与所述第二智能终端保持IP数据长连接的步骤之后,包括:The method for IP data long-term connection according to claim 1, wherein the IP address of the second intelligent terminal is synchronized to the IP address table of the first global public gateway, and after synchronization is updated The IP address in the IP address table, after the step of maintaining a long IP data connection with the second intelligent terminal, includes:
    获取所述第一智能终端与所述第二智能终端设置绑定时选定的通讯协议;Obtain the communication protocol selected when the first intelligent terminal and the second intelligent terminal are set and bound;
    判断所述通讯协议中的控制关系是否为控制与被控制的主从设备关系;Determine whether the control relationship in the communication protocol is the relationship between control and the master-slave device to be controlled;
    若是,则确定控制端和被控制端分别对应的智能终端。If so, determine the intelligent terminals corresponding to the control terminal and the controlled terminal respectively.
  5. 根据权利要求4所述的IP数据长连接的方法,其特征在于,所述第一智能终端为所述控制端,所述第二智能终端为所述被控制端,所述确定控制端和被控制端分别对应的智能终端的步骤之后,包括:The method for a long IP data connection according to claim 4, wherein the first intelligent terminal is the control terminal, the second intelligent terminal is the controlled terminal, and the determination of the control terminal and the controlled terminal are performed. After the steps of the respective intelligent terminals corresponding to the control terminals, include:
    通过IP数据流获取所述第二云终端管理APP提取到的所述第二智能终端的应用程序列表及硬件信息;Obtain the application list and hardware information of the second smart terminal extracted by the second cloud terminal management APP through the IP data stream;
    根据所述第二智能终端的应用程序列表及硬件信息形成控制信息,其中,所述控制信息携带待控制的应用程序的参数信息和硬件的参数信息;Control information is formed according to the application list and hardware information of the second intelligent terminal, wherein the control information carries parameter information of the application to be controlled and parameter information of the hardware;
    控制所述第一云终端管理APP向所述第二云终端管理APP发送所述控制信息;controlling the first cloud terminal management APP to send the control information to the second cloud terminal management APP;
    接收所述第二云终端管理APP根据所述控制信息调用所述待控制的应用程序和所述硬件后所形成的处理结果信息。Receive processing result information formed after the second cloud terminal management APP invokes the application to be controlled and the hardware according to the control information.
  6. 根据权利要求5所述的IP数据长连接的方法,其特征在于,所述处理结果信息包括解码后的音频数据流,所述接收所述第二云终端管理APP根据所述控制信息调用所述待控制的应用程序和所述硬件后所形成的处理结果信息的步骤之后,包括:The method for a long IP data connection according to claim 5, wherein the processing result information includes a decoded audio data stream, and the receiving the second cloud terminal management APP calls the After the application program to be controlled and the processing result information formed by the hardware, it includes:
    调用所述第一智能终端的播放器;calling the player of the first intelligent terminal;
    控制所述第一智能终端的播放器播放所述解码后的音频数据流。Controlling the player of the first intelligent terminal to play the decoded audio data stream.
  7. 根据权利要求4所述的IP数据长连接的方法,其特征在于,所述第二智能终端内设置第二全局公共网关,所述判断所述通讯协议中的控制关系是否为控制与被控制的主从设备关系的步骤之后,包括:The method for long IP data connection according to claim 4, wherein a second global public gateway is set in the second intelligent terminal, and the judging whether the control relationship in the communication protocol is between control and controlled After the steps of the master-slave relationship, including:
    若不是控制与被控制的主从设备关系,则判定所述第一智能终端与所述第二智能终端为对称镜像的互动关系;If it is not the master-slave device relationship between the control and the controlled device, it is determined that the first intelligent terminal and the second intelligent terminal are in an interactive relationship of symmetrical mirror images;
    判断所述第一全局公共网关是否接收到所述第二云终端管理APP通过所述第二全局公共网关发送的调用信息,其中,所述调用信息以IP数据包的形式发送,所述调用信息携带待调用的所述第一智能终端的指定应用程序的参数信息;Determine whether the first global public gateway has received the invocation information sent by the second cloud terminal management APP through the second global public gateway, wherein the invocation information is sent in the form of an IP data packet, and the invocation information Carrying parameter information of the designated application of the first intelligent terminal to be called;
    若是,则控制所述第一云终端管理APP解析所述调用信息,确定所述指定应用程序;If yes, control the first cloud terminal management APP to parse the calling information, and determine the designated application;
    启动并运行所述指定应用程序,形成运行信息列表;Start and run the specified application to form a running information list;
    将所述运行信息列表通过所述第一云终端管理APP发送至所述第二云终端管理APP。Sending the operation information list to the second cloud terminal management APP through the first cloud terminal management APP.
  8. 一种IP数据长连接的装置,其特征在于,集成于智能终端,所述装置包括:A device for long-term IP data connection, characterized in that it is integrated in an intelligent terminal, and the device includes:
    接收模块,用于实时接收5G RCS短信息,其中,所述第一智能终端内设置第一云终端管理APP、第一全局公共网关以及控制所述5G RCS短信息的第一API接口;Receiver module for receiving 5G in real time RCS short message, wherein a first cloud terminal management APP, a first global public gateway and a first API interface for controlling the 5G RCS short message are set in the first intelligent terminal;
    第一控制模块,用于控制所述第一云终端管理APP调用所述第一API接口,并读取所述5G RCS短信息;a first control module, configured to control the first cloud terminal management APP to call the first API interface and read the 5G RCS short message;
    第一判断模块,用于判断所述5G RCS短信息是否为预先绑定SIM卡号的第二智能终端发送的,其中,所述第二智能终端为预先与所述第一智能终端绑定SIM卡号的多个智能终端中的任意一个;A first judging module, configured to judge whether the 5G RCS short message is sent by a second smart terminal with a pre-bound SIM card number, wherein the second smart terminal is a SIM card number that is pre-bound with the first smart terminal any one of the multiple smart terminals;
    第二控制模块,用于若所述5G RCS短信息为预先绑定SIM卡号的第二智能终端发送的,则控制所述第一API接口向所述第一云终端管理APP推送所述5G RCS短信息;The second control module is configured to control the first API interface to push the 5G RCS to the first cloud terminal management APP if the 5G RCS short message is sent by a second smart terminal with a pre-bound SIM card number Text Message;
    第一获取模块,用于获取所述第一云终端管理APP通过解析所述5G RCS短信息所得到的所述第二智能终端的IP地址;A first acquisition module, configured to acquire the first cloud terminal management APP by parsing the 5G The IP address of the second intelligent terminal obtained by the RCS short message;
    同步模块,用于将所述第二智能终端的IP地址同步至所述第一全局公共网关的IP地址表中,并通过同步更新后所述IP地址表中的IP地址,与所述第二智能终端保持IP数据长连接。A synchronization module, configured to synchronize the IP address of the second intelligent terminal to the IP address table of the first global public gateway, and synchronize the IP address in the IP address table with the second IP address after synchronizing and updating. The smart terminal maintains a long IP data connection.
  9. 根据权利要求8所述的IP数据长连接的装置,其特征在于,所述第二智能终端内设置第二云终端管理APP和第二API接口,包括:The device for long-term IP data connection according to claim 8, wherein a second cloud terminal management APP and a second API interface are set in the second intelligent terminal, comprising:
    第二获取模块,用于获取所述第二智能终端通过所述第二API接口发送的新5G RCS短信息,其中,所述新5G RCS短信息携带所述第二智能终端更新后的新IP地址,所述新IP地址由所述第二智能终端中的所述第二云终端管理APP实时监控获得;A second acquisition module, configured to acquire the new 5G sent by the second smart terminal through the second API interface RCS short message, wherein the new 5G RCS short message carries the new IP address updated by the second smart terminal, and the new IP address is real-time managed by the second cloud terminal management APP in the second smart terminal monitor access;
    第三控制模块,用于控制所述第一云终端管理APP解析所述新5G RCS短信息,得到的所述新IP地址;a third control module, configured to control the first cloud terminal management APP to parse the new 5G RCS short message to obtain the new IP address;
    更新模块,用于根据所述新IP地址更新所述第一全局公共网关的IP地址表;an update module, configured to update the IP address table of the first global public gateway according to the new IP address;
    保持模块,用于通过更新的IP地址表中的所述新IP地址,与所述第二智能终端保持IP数据长连接。The maintaining module is configured to maintain a long IP data connection with the second intelligent terminal through the new IP address in the updated IP address table.
  10. 根据权利要求9所述的IP数据长连接的装置,其特征在于,所述新5G RCS短信息携带IP地址更新时间戳,所述保持模块,包括:The device for long IP data connection according to claim 9, wherein the new 5G RCS short message carries an IP address update timestamp, and the maintaining module comprises:
    获取单元,用于获取所述第一云终端管理APP解析所述新5G RCS短信息时,得到的所述IP地址更新时间戳;an obtaining unit, configured to obtain the IP address update timestamp obtained when the first cloud terminal management APP parses the new 5G RCS short message;
    判断单元,用于根据所述IP地址更新时间戳,判断当前时刻与所述第二智能终端IP地址更新时刻的时间差是否小于预设时长;a judgment unit, configured to update the timestamp according to the IP address, and judge whether the time difference between the current moment and the update moment of the IP address of the second intelligent terminal is less than a preset duration;
    控制单元,用于若当前时刻与所述第二智能终端IP地址更新时刻的时间差小于预设时长,则控制所述第一云终端管理APP向所述第二云终端管理APP发送所述预设时长内缓存的IP数据包,并通过所述IP数据包保持IP数据长连接。A control unit, configured to control the first cloud terminal management APP to send the preset time to the second cloud terminal management APP if the time difference between the current moment and the update moment of the IP address of the second intelligent terminal is less than a preset duration IP data packets buffered within the time period, and the IP data packets are used to maintain a long IP data connection.
  11. 根据权利要求8所述的IP数据长连接的装置,其特征在于,包括:The device for long IP data connection according to claim 8, characterized in that, comprising:
    第三获取模块,用于获取所述第一智能终端与所述第二智能终端设置绑定时选定的通讯协议;a third obtaining module, configured to obtain the communication protocol selected when the first intelligent terminal and the second intelligent terminal are set and bound;
    第二判断模块,用于判断所述通讯协议中的控制关系是否为控制与被控制的主从设备关系;The second judgment module is used for judging whether the control relationship in the communication protocol is the relationship between the control and the controlled master-slave device;
    确定模块,用于若为控制与被控制的主从设备关系,则确定控制端和被控制端分别对应的智能终端。The determining module is configured to determine the respective intelligent terminals corresponding to the control terminal and the controlled terminal if the relationship is between the master and the controlled master-slave device.
  12. 根据权利要求11所述的IP数据长连接的装置,其特征在于,所述第一智能终端为所述控制端,所述第二智能终端为所述被控制端,包括:The device for long-term IP data connection according to claim 11, wherein the first intelligent terminal is the control terminal, and the second intelligent terminal is the controlled terminal, comprising:
    第四获取模块,用于通过IP数据流获取所述第二云终端管理APP提取到的所述第二智能终端的应用程序列表及硬件信息;a fourth obtaining module, configured to obtain, through an IP data stream, the application list and hardware information of the second intelligent terminal extracted by the second cloud terminal management APP;
    第一形成模块,用于根据所述第二智能终端的应用程序列表及硬件信息形成控制信息,其中,所述控制信息携带待控制的应用程序的参数信息和硬件的参数信息;a first forming module, configured to form control information according to the application list and hardware information of the second intelligent terminal, wherein the control information carries parameter information of the application to be controlled and parameter information of the hardware;
    第四控制模块,用于控制所述第一云终端管理APP向所述第二云终端管理APP,发送所述控制信息;a fourth control module, configured to control the first cloud terminal management APP to send the control information to the second cloud terminal management APP;
    第二形成模块,用于接收所述第二云终端管理APP根据所述控制信息调用所述待控制的应用程序和硬件后所形成的处理结果信息。The second forming module is configured to receive processing result information formed after the second cloud terminal management APP invokes the application program and hardware to be controlled according to the control information.
  13. 根据权利要求12所述的IP数据长连接的装置,其特征在于,所述处理结果信息包括解码后的音频数据流,包括:The device for long-term IP data connection according to claim 12, wherein the processing result information comprises a decoded audio data stream, comprising:
    调用模块,用于调用所述第一智能终端的播放器;a calling module for calling the player of the first intelligent terminal;
    第五控制模块,用于控制所述第一智能终端的播放器播放所述解码后的音频数据流。A fifth control module, configured to control the player of the first intelligent terminal to play the decoded audio data stream.
  14. 根据权利要求11所述的IP数据长连接的装置,其特征在于,所述第二智能终端内设置第二全局公共网关,包括:The device for long-term IP data connection according to claim 11, wherein a second global public gateway is set in the second intelligent terminal, comprising:
    判定模块,用于若不是控制与被控制的主从设备关系,则判定所述第一智能终端与所述第二智能终端为对称镜像的互动关系;a determination module, configured to determine that the first intelligent terminal and the second intelligent terminal are in an interactive relationship of symmetrical mirroring if the relationship between the master and the controlled master-slave device is not involved;
    第三判断模块,用于判断所述第一全局公共网关是否接收到所述第二云终端管理APP通过所述第二全局公共网关发送的调用信息,其中,所述调用信息以IP数据包的形式发送,所述调用信息携带待调用的所述第一智能终端的指定应用程序的参数信息;A third judging module, configured to judge whether the first global public gateway has received the invocation information sent by the second cloud terminal management APP through the second global public gateway, wherein the invocation information is in the form of an IP data packet The calling information carries the parameter information of the designated application program of the first intelligent terminal to be called;
    第六控制模块,用于接收到所述第二云终端管理APP通过所述第二全局公共网关发送的调用信息,则控制所述第一云终端管理APP解析所述调用信息,确定所述指定应用程序;A sixth control module, configured to receive the calling information sent by the second cloud terminal management APP through the second global public gateway, and control the first cloud terminal management APP to parse the calling information, and determine the specified application;
    启动模块,用于启动并运行所述指定应用程序,形成运行信息列表;A startup module, used to start and run the specified application program to form a running information list;
    发送模块,用于将所述运行信息列表通过所述第一云终端管理APP发送至所述第二云终端管理APP。A sending module, configured to send the operation information list to the second cloud terminal management APP through the first cloud terminal management APP.
  15. 一种IP数据长连接的设备,包括存储器、处理器和应用程序,所述应用程序被存储在所述存储器中并被配置为由所述处理器执行,其特征在于,所述应用程序被配置为用于执行权利要求1至7任一项所述的IP数据长连接的方法。A device for long-term IP data connection, comprising a memory, a processor and an application program, the application program being stored in the memory and configured to be executed by the processor, characterized in that the application program is configured A method for implementing the long IP data connection according to any one of claims 1 to 7.
PCT/CN2020/104507 2020-07-24 2020-07-24 Ip data long connection method and apparatus, and computer device WO2022016529A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/104507 WO2022016529A1 (en) 2020-07-24 2020-07-24 Ip data long connection method and apparatus, and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/104507 WO2022016529A1 (en) 2020-07-24 2020-07-24 Ip data long connection method and apparatus, and computer device

Publications (1)

Publication Number Publication Date
WO2022016529A1 true WO2022016529A1 (en) 2022-01-27

Family

ID=79729744

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/104507 WO2022016529A1 (en) 2020-07-24 2020-07-24 Ip data long connection method and apparatus, and computer device

Country Status (1)

Country Link
WO (1) WO2022016529A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741920A (en) * 2008-11-05 2010-06-16 海尔集团公司 Intelligent terminal communication method and method in cell network
CN102364966A (en) * 2011-10-09 2012-02-29 中兴通讯股份有限公司 Wireless communication terminal and short message processing method and system of wireless communication terminal
CN202841300U (en) * 2012-09-27 2013-03-27 麻红昭 Apparatus for monitoring controlled object through using mobile phone message to transmit dynamic IP address
WO2018232758A1 (en) * 2017-06-23 2018-12-27 华为技术有限公司 Rcs communication method and device
US10609525B1 (en) * 2018-12-20 2020-03-31 T-Mobile Usa, Inc. Alert message translation for message forwarding on legacy network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741920A (en) * 2008-11-05 2010-06-16 海尔集团公司 Intelligent terminal communication method and method in cell network
CN102364966A (en) * 2011-10-09 2012-02-29 中兴通讯股份有限公司 Wireless communication terminal and short message processing method and system of wireless communication terminal
CN202841300U (en) * 2012-09-27 2013-03-27 麻红昭 Apparatus for monitoring controlled object through using mobile phone message to transmit dynamic IP address
WO2018232758A1 (en) * 2017-06-23 2018-12-27 华为技术有限公司 Rcs communication method and device
US10609525B1 (en) * 2018-12-20 2020-03-31 T-Mobile Usa, Inc. Alert message translation for message forwarding on legacy network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HUAWEI, HISILICON: "Signalling optimization for VoLTE", 3GPP DRAFT; R2-162648 SIGNALLING OPTIMIZATION FOR VOLTE, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE, vol. RAN WG2, no. Dubrovnik, Croatia; 20160411 - 20160415, 2 April 2016 (2016-04-02), Mobile Competence Centre ; 650, route des Lucioles ; F-06921 Sophia-Antipolis Cedex ; France , XP051082485 *

Similar Documents

Publication Publication Date Title
CN111479121B (en) Live broadcasting method and system based on streaming media server
EP2062395B1 (en) Method and system for optimizing a jitter buffer
US20050015765A1 (en) System for doing service location management taking into account the node and network characteristics
US7844244B2 (en) Methods, apparatuses, and computer program products for providing dynamic assignment of slot cycle index for network nodes
US20130232217A1 (en) Signalling Gateway, Method, Computer Program And Computer Program Product For Communication Between HTTP And SIP
JP4726949B2 (en) System, method and engine for playing SMIL-based multimedia content
EP3996355B1 (en) Method for transferring media stream and user equipment
US20070136449A1 (en) Update notification for peer views in a composite services delivery environment
WO2011088725A1 (en) Method and apparatus for synchronization based on hypertext transfer protocol (http)
WO2017114190A1 (en) File uploading processing method and device
US20160173820A1 (en) Video Communication Method and Device
CN101217533B (en) A synchronous big head portrait method and cluster server and terminal for the method
CN111935656B (en) Method and device for long connection of IP data and computer equipment
KR102163909B1 (en) Method and apparatus for displaying application data in wireless communication system
CN111405229B (en) Video conference processing method, system, client, electronic equipment and storage medium
WO2012019391A1 (en) System and method for obtaining detail information of number
US20120207157A1 (en) Method, apparatus, and computer program product for reducing session setup latency
WO2022016529A1 (en) Ip data long connection method and apparatus, and computer device
US20220311812A1 (en) Method and system for integrating video content in a video conference session
KR100996241B1 (en) Moving picture dividing device and moving picture dividing method therefore
US8244898B1 (en) Single message media session control
WO2024082882A1 (en) Multimedia content transmission methods, apparatus, device and storage medium
TW201345258A (en) Video communication system and video communication switching method thereof
CN113709081B (en) IMS and mobile interconnection technology-based converged communication method and system
CN111143607B (en) Information acquisition method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20946116

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20946116

Country of ref document: EP

Kind code of ref document: A1