Business service obtaining method, business service providing method, storage medium and electronic equipment
By using a short connection mechanism between terminal devices and target servers, the problem of communication failures of IoT devices in complex networks is solved, enabling efficient service provision, reducing server resource consumption and network congestion risks, and improving communication success rate.
Patent Information
- Application Number
- CN202411403542.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2025-01-10
AI Technical Summary
In IoT devices, the long-term connection between terminal devices and central servers is prone to breakage under complex mobile networks, leading to communication failures, increased server resource requirements and the possibility of network congestion. This is especially true in applications such as shared bicycles, resulting in a high probability of costly unlocking failures.
After establishing the first connection with the target server, the terminal device disconnects. Only when there is a business request does it establish a short connection with the target server to provide instantaneous access. The terminal server is an IPv6 server or an IPv4 server. Taking advantage of the fact that IPv6 addresses are accessible on the public network, the target server sends communication requests through the terminal server.
It reduces the resource consumption and setup difficulty of the target server, lowers the load on routing nodes, increases the probability of successful communication, saves server resource costs, and reduces the impact of network congestion.
Smart Images

Figure CN119299502A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to a method for obtaining and providing business services, a storage medium and an electronic device. Background Art
[0002] With the popularization and development of IoT device solutions, IoT devices based on communication module design have reached a scale of hundreds of billions. For example, in the traditional solutions for outdoor IoT monitoring devices such as shared bicycles and smart meters, the information collection and interaction methods used are basically based on the TCP long connection of the central server. As the batch of terminal device nodes increases, the required server resources also need to increase accordingly.
[0003] Due to the need to maintain a long connection with the central server, in a complex mobile network, if the communication module applies for an IPv4 address and any intermediate routing node has a high load, the historically inactive TCP connection will be released to balance the base station resources, which often causes the terminal device to perceive that the TCP connection no longer exists when the heartbeat time is reached. For example, in the shared bicycle industry, users actively scan the code and use their mobile phones to interact with the server. The server sends an unlocking command to the bicycle through the TCP protocol. However, due to the above situation, the TCP connection is disconnected, and there is a high probability that the unlocking through the TCP connection will fail, and the unlocking will be done by sending SMS, resulting in a higher cost.
[0004] Therefore, it is necessary to provide a technical solution to improve the probability of successful communication between the server and the terminal device. Summary of the invention
[0005] The present invention aims to solve one of the technical problems in the related art to at least a certain extent. To this end, one object of the present invention is to provide a business service acquisition method, a storage medium and an electronic device to increase the probability of successful communication with a terminal device.
[0006] According to a first aspect of an embodiment of the present invention, a method for obtaining a business service is provided, which is applied to a terminal device, and the method includes:
[0007] Sending a communication request to a target server and establishing a first connection with the target server;
[0008] Sending the address information of the terminal device and the identification information of the terminal device to the target server;
[0009] In response to disconnecting the first connection with the target server, creating a terminal server based on the address information;
[0010] The terminal server receives a communication request for the identification information sent by the target server based on the address information and establishes a second connection between the target server and the terminal server, so that the target server provides business services to the terminal device based on the second connection with the terminal server, and the second connection is disconnected after the target server provides the business services.
[0011] According to a second aspect of an embodiment of the present invention, a business service providing method is provided, which is applied to a target server, and the method includes:
[0012] Receiving a communication request sent by a terminal device, and establishing a first connection with the terminal device;
[0013] Receiving address information and identification information sent by the terminal device;
[0014] Disconnecting the first connection with the terminal device;
[0015] In response to a service request including the identification information, sending a communication request for the identification information based on the address information, and establishing a second connection with a terminal server corresponding to the address information;
[0016] A business service is provided to the terminal device based on the second connection with the terminal server.
[0017] According to a third aspect of an embodiment of the present invention, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned business service obtaining or business service providing method is implemented.
[0018] According to a fourth aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a memory and a processor; a computer program is stored in the memory, and when the computer program is executed by the processor, the above-mentioned business service obtaining or business service providing method is implemented.
[0019] In the solution provided by the embodiment of the present invention, after the terminal device establishes a first connection with the target server and sends address information and identification information, it will disconnect from the target server instead of maintaining the first connection. In addition, only when there is a service request, the target server sends a communication request to the terminal server, provides service through the second connection, and closes the second connection after the service is completed, which is equivalent to establishing a short connection from the target server to the terminal server.
[0020] Therefore, in the absence of business requests, the target server does not need to maintain a large number of long connections, and only provides instantaneous access when the business needs it, which greatly saves the resource cost and installation difficulty of the target server, and greatly reduces the load on the routing nodes between the target server and the terminal server, thereby reducing the possibility of the target server sending requests to the terminal server being affected by network congestion, and thus increasing the probability of successful communication between the target server and the terminal device.
[0021] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a flowchart of a method for obtaining a business service provided by an embodiment of the present invention;
[0023] Figure 2 It is a flowchart of a method for providing business services provided by an embodiment of the present invention;
[0024] Figure 3 is a signaling flow chart of a communication method provided by an embodiment of the present invention;
[0025] Figure 4 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0026] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0027] The following describes a method for obtaining a business service, providing a business service, a storage medium, and an electronic device according to an embodiment of the present invention with reference to the accompanying drawings.
[0028] In one embodiment of the present invention, see Figure 1 , provides a business service acquisition method, applied to a terminal device, the method comprising the following steps S101-S104.
[0029] S101: Send a communication request to a target server and establish a first connection with the target server.
[0030] The communication request may be a TCP (Transmission Control Protocol) request. In this case, the first connection may be established based on a three-way handshake process in the TCP protocol. In this case, the communication request may be a SYN=1 message.
[0031] In addition, the communication request may also be an MQTT (Message Queuing Telemetry Transport) request or the like.
[0032] S102: Sending the address information of the terminal device and the identification information of the terminal device to the target server.
[0033] The target server is used to provide the target service, which can be a service to be called by the terminal device, such as a shared bicycle unlocking service.
[0034] The terminal device may be an electronic device such as a mobile phone, a personal computer, or other types of electronic devices including a communication module, and the embodiments of the present invention are not limited thereto.
[0035] The above-mentioned communication module can be a functional module that integrates materials such as baseband chip, radio frequency chip, power management chip, positioning chip, PN type device and resistor-capacitor-inductor components on a PCB.
[0036] The address information of the terminal device can include an IPv6 address. When a mobile phone or any type of communication module initiates a registration request to the base station, if the type of the registration request is "IPv4v6", the base station will allocate an IPv4 address of the local area network and an IPv6 leased address of the public network. This IPv6 address is unique and can be directly accessed by the public network.
[0037] Therefore, before executing the above-mentioned method for obtaining business services, the terminal device may be powered on and registered to the network to obtain an IPv6 address from a preset base station.
[0038] In addition, the address information may also include an IPv4 address, etc.
[0039] The identification information of the terminal device may be a pre-set device ID (device identification number), a product identification number, etc., which is not limited in the embodiment of the present invention.
[0040] S103: In response to disconnecting the first connection with the target server, creating a terminal server based on the address information.
[0041] A terminal server is a server created by a terminal device.
[0042] Taking the creation of a TCP server on an Android phone as an example, the steps to create a server on a terminal device include:
[0043] Set network permissions. Add the code containing network permissions in the AndroidManifest.xml file;
[0044] Create a ServerSocket object. In the Android application code, use the ServerSocket class to create a server socket object.
[0045] Open the listening port on the terminal device and use the accept() method of the ServerSocket class to listen for connection requests.
[0046] Get input and output streams: Get input and output streams through the Socket object to exchange data with the device connected to the terminal server.
[0047] In one embodiment of the present invention, the terminal server is an IPv6 server. By utilizing the characteristic that the IPv6 address can be accessed in the public network, the target server can send a request to the terminal server.
[0048] In other embodiments, in a local area network environment, the terminal server may also be an IPv4 server.
[0049] S104: Receive, through the terminal server, a communication request for identification information sent by the target server based on the address information and establish a second connection between the target server and the terminal server, so that the target server provides business services to the terminal device based on the second connection with the terminal server, and the second connection is disconnected after the target server provides the business services.
[0050] Based on the address indicated by the address information, the target server can send the communication request to the terminal server. The request body of the request information can carry identification information, so that the terminal server can confirm the communication request to be received according to the identification information.
[0051] The address represented by the address information can be included in the request header of the request information, for example, the IPv6 address is set as the destination of the request information through the HOST keyword. In this way, the communication request can be sent to the terminal server with the address information.
[0052] The method of establishing the second connection is similar to the method of establishing the first connection, and will not be described in detail here.
[0053] The method of providing business services may include: the target server sends data for executing business services to the terminal server based on the established second connection. For example, the data sent may be a shared bicycle unlocking instruction or an electric meter power reading instruction; the method of providing business services also includes the target server receiving and processing data sent by the terminal server in response to the business service, such as receiving electric meter power data.
[0054] The process of disconnecting the second connection may be implemented by the terminal server and / or the target server. Specifically, when the TCP protocol is used to establish a connection, the connection is disconnected through four wave processes.
[0055] In the solution provided by the embodiment of the present invention, after the terminal device establishes a first connection with the target server and sends address information and identification information, it will disconnect from the target server instead of maintaining the first connection. In addition, only when there is a service request, the target server sends a communication request to the terminal server, provides service through the second connection, and closes the second connection after the service is completed, which is equivalent to establishing a short connection from the target server to the terminal server.
[0056] Therefore, in the absence of business requests, the target server does not need to maintain a large number of long connections, and only provides instantaneous access when the business needs it, which greatly saves the resource cost and installation difficulty of the target server, and greatly reduces the load on the routing nodes between the target server and the terminal server, thereby reducing the possibility of the target server sending requests to the terminal server being affected by network congestion, and thus increasing the probability of successful communication between the target server and the terminal device.
[0057] In one embodiment of the present invention, after the terminal server is created based on the address information, a wake-up message can be sent to the terminal server at a regular interval and the number of unanswered messages from the terminal server can be accumulated; if the number of unanswered messages reaches a preset threshold, the process returns to the step of sending a communication request to the target server and establishing a first connection with the target server.
[0058] Specifically, a keep-alive program can be set on the terminal device to send ICMP (Internet Control Message Protocol) ping packet data as wake-up information. Each time a ping packet is sent and no response information is received from the terminal server, the cumulative number of unanswered times is +1.
[0059] The sending time of the ping packet can be set to once every 5 minutes, and the ping packet is a UDP data packet, which does not affect the resource release of the routing node in the network. This can save battery power consumption of the terminal device.
[0060] If the number of unanswered messages reaches a preset threshold, the established terminal server can be considered unavailable, and a terminal server for communicating with the target server can be reestablished by sending identification information and address information to the target server.
[0061] According to the above method, whether the terminal server is available can be confirmed by sending a heartbeat packet.
[0062] In one embodiment of the present invention, when no wake-up information is sent, the terminal server is set to enter a low power consumption state.
[0063] The low power consumption state includes a sleep state, a shutdown state or a standby state, etc. An instruction may be sent to the terminal server to control the entry into the low power consumption state, and the instruction may include a preset state parameter corresponding to the low power consumption state.
[0064] In one embodiment of the present invention, after creating a terminal server based on address information, in response to receiving a text message request sent by the target server, the network connection status between the target server and the target server is detected; if the network connection status is a connectable state, the process returns to execute the step of sending a communication request to the target server and establishing a first connection with the target server.
[0065] When a terminal server is established, the target server may send a text message indicating that it is unable to communicate using the terminal server and thus needs to detect the network connection status.
[0066] Specifically, preset commands such as ping and tracert may be used to detect the network connection status.
[0067] The connectable state can be represented by a preset keyword. For example, after running the netstat status for detection, the keyword of the returned State parameter is established, indicating that it is in a connectable state.
[0068] If the network is available but the terminal server cannot be connected, it may be that there is a problem with the terminal server, so the terminal server can be reestablished starting from step S101. The original terminal server can be closed by the terminal device control.
[0069] In one embodiment of the present invention, see Figure 2 , provides a business service providing method, which is applied to a target server, and the method includes the following steps S201-S205.
[0070] S201: receiving a communication request sent by a terminal device, and establishing a first connection with the terminal device;
[0071] S202: receiving address information and identification information sent by the terminal device;
[0072] S203: Disconnecting the first connection with the terminal device;
[0073] S204: In response to the service request including the identification information, sending a communication request for the identification information based on the address information, and establishing a second connection with the terminal server corresponding to the address information;
[0074] S205: Providing business services to the terminal device based on the second connection with the terminal server.
[0075] Steps S201-S205 are the same as the way of establishing the first connection, the second connection and providing business services in the aforementioned steps S101-S104. Please refer to the aforementioned embodiment and will not be described in detail here.
[0076] In S204, the service request may be sent by the terminal device via a text message or a small program such as a shared bicycle application, and the embodiment of the present invention is not limited to this. The service request may specify the identification information of the terminal device, so that the target server searches for the corresponding address information according to the identification information and communicates with the terminal server corresponding to the address information.
[0077] The communication content between the terminal server and the terminal device can be stored by a storage unit provided in the terminal device, so that the terminal device can receive the content of all business services.
[0078] In the solution provided by the embodiment of the present invention, after the terminal device establishes a first connection with the target server and sends address information and identification information, it will disconnect from the target server instead of maintaining the first connection. In addition, only when there is a service request, the target server sends a communication request to the terminal server, provides service through the second connection, and closes the second connection after the service is completed, which is equivalent to establishing a short connection from the target server to the terminal server.
[0079] Therefore, in the absence of business requests, the target server does not need to maintain a large number of long connections, and only provides instantaneous access when the business needs it, which greatly saves the resource cost and installation difficulty of the target server, and greatly reduces the load on the routing nodes between the target server and the terminal server, thereby reducing the possibility of the target server sending requests to the terminal server being affected by network congestion, and thus increasing the probability of successful communication between the target server and the terminal device.
[0080] In one embodiment of the present invention, sending a communication request for identification information based on address information includes:
[0081] Sending wake-up information to the terminal server; in response to receiving response information for the wake-up information, sending a communication request for the identification information based on the address information.
[0082] That is, before establishing the second connection, similar to the above embodiment, the target server may also send ICMP ping packet data to the terminal server to determine whether the terminal server is available.
[0083] In some embodiments, if no response information is received within a preset threshold time or the second connection establishment fails, a text message request is sent to the terminal device.
[0084] The failure to establish the second connection may include situations such as the failure to complete the three-way handshake process.
[0085] If no response is received within the preset threshold time, or the second connection fails to be established, it can be considered that the second connection is unavailable. In this case, the SMS request is used as a backup measure.
[0086] The following Figure 3 The illustrated embodiment illustrates the overall communication process between the target server and the terminal device.
[0087] Before communication, the target server starts the server operation first, and the terminal device starts up and registers the network to obtain an IPv6 address.
[0088] After completing the above steps, the terminal device connects to the target server and reports the device ID, IPv6 address, SN and other information.
[0089] The target server queries whether there is a business request, for example, searching based on the device ID whether there is a shared bicycle bound to the terminal device that needs to be unlocked.
[0090] The target server sends a service request, and the terminal device responds to the service request content, indicating that the target server needs to provide service services.
[0091] The target server closes the TCP connection and records the last device id corresponding to the IPv6 address. The TCP connection is the first connection. Since the terminal device may have used multiple IPv6 addresses, the target server chooses to record the latest address, which corresponds to the terminal server most recently established by the terminal device.
[0092] After the target server closes the TCP connection, the terminal device creates a TCP server based on the IPv6 address.
[0093] The terminal device uses the timed heartbeat packet as the wake-up information. The main purpose is to keep the IPv6 address obtained by the device alive and prevent the IPv6 address from being released by the base station.
[0094] The external triggering target server initiates a service request, such as unlocking a shared bicycle or reading an electric meter. The service request contains identification information, which can indicate the specific terminal server to be communicated.
[0095] The target server that receives the service request queries the last recorded IPv6 address of the corresponding device. When the terminal device reports the device ID and IPv6 address, the target server can record the corresponding relationship between the device ID and the IPv6 address to find the last recorded IPv6 address corresponding to the device ID.
[0096] The target server sends an ICMP ping packet to the last recorded IPv6 address to check whether normal communication is possible. If a response message is received, the communication is successful, otherwise the communication fails.
[0097] When the communication is successful, the target server initiates a TCP three-way handshake to the IPV6 address to establish a TCP connection, that is, to establish a second connection. The terminal device wakes up the terminal server and enters the working mode, responds to the three-way handshake, and the TCP connection is successful. In this way, the two servers can complete business services by initiating data requests and responding to data requests. After completing the business service, the target server closes the TCP connection.
[0098] In the event of a communication failure, the target server sends a text message to wake up the communication module. The terminal device receives the text message, parses the text message content, and wakes up the device. The result of the communication failure can be parsed through the preset identification or text description indicating communication failure in the text message content. In this way, after the terminal device checks the network connection status and confirms that it is connectable, it restarts the process of establishing the terminal server.
[0099] In one embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, any of the above-mentioned methods for obtaining or providing business services is implemented.
[0100] In one embodiment of the present invention, an electronic device is provided, comprising: a memory and a processor; a computer program is stored in the memory, and when the computer program is executed by the processor, any of the above-mentioned methods for obtaining or providing business services is implemented.
[0101] Figure 4 It is a structural block diagram of an electronic device according to an embodiment of the present invention.
[0102] like Figure 4 As shown, the electronic device 400 includes: a processor 401 and a memory 403. The processor 401 and the memory 403 are connected, such as through a bus 402. Optionally, the electronic device 400 may further include a transceiver 404. It should be noted that in actual applications, the transceiver 404 is not limited to one, and the structure of the electronic device 400 does not constitute a limitation on the embodiments of the present invention.
[0103] Processor 401 may be a CPU (Central Processing Unit), a general purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. Processor 401 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0104] The bus 402 may include a path to transmit information between the above components. The bus 402 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 402 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0105] The memory 403 is used to store a computer program corresponding to the business service obtaining method or business service providing method of the above embodiment of the present invention, and the computer program is controlled and executed by the processor 401. The processor 401 is used to execute the computer program stored in the memory 403 to implement the content shown in the above method embodiment.
[0106] Among them, the electronic device 400 includes but is not limited to: mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device 400 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0107] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0108] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0109] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0110] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0111] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0112] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0113] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0114] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for obtaining a business service, characterized in that: Applied to a terminal device, the method comprises: Sending a communication request to a target server and establishing a first connection with the target server; Sending the address information of the terminal device and the identification information of the terminal device to the target server; In response to disconnecting the first connection with the target server, creating a terminal server based on the address information; The terminal server receives a communication request for the identification information sent by the target server based on the address information and establishes a second connection between the target server and the terminal server, so that the target server provides business services to the terminal device based on the second connection with the terminal server, and the second connection is disconnected after the target server provides the business services.
2. The method according to claim 1, characterized in that: After creating the terminal server based on the address information, the method further includes: Sending wake-up information to the terminal server at regular intervals, and accumulating the number of unanswered calls from the terminal server; If the number of unanswered times reaches a preset threshold, the process returns to the step of sending a communication request to the target server and establishing a first connection with the target server.
3. The method according to claim 2, characterized in that The method further comprises: In the case where the wake-up information is not sent, the terminal server is set to enter a low power consumption state.
4. The method according to claim 1, characterized in that: After creating the terminal server based on the address information, the method further includes: In response to receiving the SMS request sent by the target server, detecting the network connection status between the target server and the target server; If the network connection state is a connectable state, the process returns to the step of sending a communication request to the target server and establishing a first connection with the target server.
5. The method according to claim 1, characterized in that The terminal server is an IPv6 server.
6. A method for providing business services, characterized in that: Applied to a target server, the method comprises: Receiving a communication request sent by a terminal device, and establishing a first connection with the terminal device; Receiving address information and identification information sent by the terminal device; Disconnecting the first connection with the terminal device; In response to a service request including the identification information, sending a communication request for the identification information based on the address information, and establishing a second connection with a terminal server corresponding to the address information; A business service is provided to the terminal device based on the second connection with the terminal server.
7. The method according to claim 6, characterized in that The sending a communication request for the identification information based on the address information includes: Sending a wake-up message to the terminal server; In response to receiving the response information for the wake-up information, a communication request for the identification information is sent based on the address information.
8. The method according to claim 7, characterized in that The method further comprises: If the response information is not received within a preset threshold time or the second connection fails to be established, a text message request is sent to the terminal device.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the business service obtaining or business service providing method according to any one of claims 1 to 5 or 6 to 8 is implemented.
10. An electronic device, characterized in that: include: Memory, processor; The memory stores a computer program, and when the computer program is executed by the processor, the method for obtaining a business service or providing a business service as described in any one of claims 1 to 5 or 6 to 8 is implemented.