CN117641341A - Data transmission method and device and electronic equipment - Google Patents

Data transmission method and device and electronic equipment Download PDF

Info

Publication number
CN117641341A
CN117641341A CN202210977023.2A CN202210977023A CN117641341A CN 117641341 A CN117641341 A CN 117641341A CN 202210977023 A CN202210977023 A CN 202210977023A CN 117641341 A CN117641341 A CN 117641341A
Authority
CN
China
Prior art keywords
instruction
long link
request instruction
feedback information
link
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210977023.2A
Other languages
Chinese (zh)
Inventor
熊伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qisheng Technology Co Ltd
Original Assignee
Beijing Qisheng Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qisheng Technology Co Ltd filed Critical Beijing Qisheng Technology Co Ltd
Priority to CN202210977023.2A priority Critical patent/CN117641341A/en
Publication of CN117641341A publication Critical patent/CN117641341A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a data transmission method, a data transmission device and electronic equipment. The embodiment of the invention receives the request instruction information sent by the user terminal, wherein the request instruction information comprises an instruction type; responding to the instruction type as a core instruction, and judging whether an unused long link exists; determining a target long link in response to the presence of the unused long link; transmitting first request instruction feedback information, wherein the first request instruction feedback information comprises a channel type, first channel data and a data packet, and the first channel data comprises an authentication password, an internet protocol address and a port number of the target long link; and establishing communication connection with the user terminal according to the feedback information of the first request instruction. By the method, the transmission efficiency can be improved during data transmission, and meanwhile, the success rate of the service is improved.

Description

Data transmission method and device and electronic equipment
Technical Field
The present invention relates to the field of information technologies, and in particular, to a method and an apparatus for data transmission, and an electronic device.
Background
With the development of economy and technology, smart phones have become an indispensable article in the production and life of people, through which users can use shared vehicles, control smart home devices, and the like; in order to ensure the safety of communication data, the server is required to perform data communication with the smart phone, and then the smart phone transmits the received data to the Bluetooth module corresponding to the smart phone.
In the prior art, a hypertext transfer protocol Http link mode is adopted when a server and a smart phone perform data communication, the Http link belongs to a TCP link, and because each TCP link of a transmission control protocol needs three-step handshaking, if each operation is Http connection, the processing speed is reduced, and the efficiency is reduced; moreover, frequent communication with short connection can cause socket errors, so that the success rate of the service to be realized is reduced, and frequent socket creation is also wasteful of resources.
In summary, how to improve the transmission efficiency and the success rate of the service during data transmission is a problem to be solved at present.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a method, an apparatus, and an electronic device for data transmission, which can improve transmission efficiency and improve success rate of services during data transmission.
In a first aspect, an embodiment of the present invention provides a method for data transmission, where the method includes: receiving request instruction information sent by a user terminal, wherein the request instruction information comprises an instruction type; responding to the instruction type as a core instruction, and judging whether an unused long link exists; determining a target long link in response to the presence of the unused long link; transmitting first request instruction feedback information, wherein the first request instruction feedback information comprises a channel type, first channel data and a data packet, and the first channel data comprises an authentication password, an internet protocol address and a port number of the target long link; and establishing communication connection with the user terminal according to the feedback information of the first request instruction.
Optionally, the method further comprises:
and determining a target hypertext transfer protocol link in response to the instruction type being a non-core instruction.
Optionally, the method further comprises:
sending request second instruction feedback information, wherein the second request instruction feedback information comprises a channel type, second channel data and a data packet, and the second channel data comprises the target hypertext transfer protocol domain name and a path;
and establishing communication connection with the user terminal according to the feedback information of the second request instruction.
Optionally, the method further comprises:
the target hypertext transfer protocol link is determined in response to the unused long link not being present. Optionally, the long links belong to a long link resource pool, and the number of all the long links in the long link resource pool is a fixed value.
Optionally, the method further comprises:
and releasing the target long link in response to the disconnection of the communication connection established with the user terminal.
Optionally, the method further comprises:
and generating a downlink instruction data packet according to the request instruction information, wherein the downlink instruction data packet comprises the instruction type.
In a second aspect, an embodiment of the present invention provides an apparatus for data transmission, including: the receiving unit is used for receiving request instruction information sent by the user terminal, wherein the request instruction information comprises an instruction type; the processing unit is used for responding to the instruction type as a core instruction and judging whether an unused long link exists or not; a determining unit for determining a target long link in response to the presence of an unused long link; the device comprises a sending unit, a receiving unit and a receiving unit, wherein the sending unit is used for sending first request instruction feedback information, the first request instruction feedback information comprises a channel type, first channel data and a data packet, and the first channel data comprises an authentication password, an internet protocol address and a port number of the target long link; the processing unit is further configured to establish communication connection with the user terminal according to the feedback information of the first request instruction.
Optionally, the determining unit is further configured to:
and determining a target hypertext transfer protocol link in response to the instruction type being a non-core instruction.
Optionally, the sending unit is further configured to:
sending request second instruction feedback information, wherein the second request instruction feedback information comprises a channel type, second channel data and a data packet, and the second channel data comprises the target hypertext transfer protocol domain name and a path;
and establishing communication connection with the user terminal according to the feedback information of the second request instruction.
Optionally, the determining unit is further configured to:
the target hypertext transfer protocol link is determined in response to the unused long link not being present. Optionally, the long links belong to a long link resource pool, and the number of all the long links in the long link resource pool is a fixed value.
Optionally, the processing unit is further configured to:
and releasing the target long link in response to the disconnection of the communication connection established with the user terminal.
Optionally, the apparatus further includes a generating unit:
and generating a downlink instruction data packet according to the request instruction information, wherein the downlink instruction data packet comprises the instruction type.
In a third aspect, embodiments of the present invention provide a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement a method as in the first aspect or any of the possibilities of the first aspect.
In a fourth aspect, an embodiment of the present invention provides an electronic device comprising a memory and a processor, the memory storing one or more computer program instructions, wherein the one or more computer program instructions are executable by the processor to implement the method of the first aspect or any one of the possibilities of the first aspect.
The embodiment of the invention receives the request instruction information sent by the user terminal, wherein the request instruction information comprises an instruction type; responding to the instruction type as a core instruction, and judging whether an unused long link exists; determining a target long link in response to the presence of the unused long link; transmitting first request instruction feedback information, wherein the first request instruction feedback information comprises a channel type, first channel data and a data packet, and the first channel data comprises an authentication password, an internet protocol address and a port number of the target long link; and establishing communication connection with the user terminal according to the feedback information of the first request instruction. By the method, when processing the core instruction, the long link is selected, so that the transmission efficiency can be improved during data transmission, and the success rate of the service can be improved.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent from the following description of embodiments of the present invention with reference to the accompanying drawings, in which:
FIG. 1 is a flow chart of a method of data transmission according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method of data transmission according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method of data transmission according to an embodiment of the present invention;
FIG. 4 is a flow chart of a method of data transmission according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a server structure according to an embodiment of the present invention;
FIG. 6 is a flow chart of a method of data transmission according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of an apparatus for data transmission according to an embodiment of the present invention;
fig. 8 is a schematic diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The present disclosure is described below based on examples, but the present disclosure is not limited to only these examples. In the following detailed description of the present disclosure, certain specific details are set forth in detail. The present disclosure may be fully understood by those skilled in the art without a review of these details. Well-known methods, procedures, flows, components and circuits have not been described in detail so as not to obscure the nature of the disclosure.
Moreover, those of ordinary skill in the art will appreciate that the drawings are provided herein for illustrative purposes and that the drawings are not necessarily drawn to scale.
Unless the context clearly requires otherwise, the words "comprise," "comprising," and the like throughout the application are to be construed as including but not being exclusive or exhaustive; that is, it is the meaning of "including but not limited to".
In the description of the present disclosure, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present disclosure, unless otherwise indicated, the meaning of "a plurality" is two or more.
The term "user terminal" in the embodiment of the present invention refers to a setting capable of communicating with a server, where the user terminal may be a smart phone, a computer, a tablet, etc., and the user terminal may also communicate with a bluetooth central control device, and transmit data acquired from the server to the bluetooth central control device.
The term "Bluetooth" in the embodiments of the present invention refers to Bluetooth technology, which is a global specification for wireless data and voice communications, and is a special short-range wireless connection technology for establishing a communication environment for fixed and mobile devices based on a low-cost short-range wireless connection.
The term "bluetooth central control device" in the embodiment of the present invention refers to a device using bluetooth communication, for example, a bluetooth control module in a shared vehicle, a bluetooth control module in a smart home, and the like.
The term "long link" in the embodiment of the present invention means that a plurality of data packets can be continuously transmitted on one connection, and if no data packet is transmitted during connection maintenance, both sides are required to transmit a link detection packet, and the link detection packet is not disconnected until the service ends.
The term "short connection" in the embodiment of the present invention means that when two communication parties have data interaction, a connection is established, and after the data packet is sent, the connection is disconnected.
The term "target hypertext transfer protocol http link" in the embodiments of the present invention is a short link.
The long link and the short link in the embodiment of the invention are suitable for different scenes, for example, the long link is used for frequent operation and point-to-point communication, and the number of the connections cannot be too large. The short link is suitable for the WEB site, because the long link consumes a certain resource for the server, and the WEB site is used by thousands or even hundreds of millions of clients, the short link saves some resources, if the WEB site uses the long link, and thousands of users are simultaneously involved, if each user occupies one long link, the resource consumption is very high, so when the concurrency is high, and each user does not need to operate frequently, the resource consumption is reduced by adopting the short link.
In the prior art, a hypertext transfer protocol Http link is generally adopted when a server and a smart phone perform data communication, the Http link is a short link, and belongs to a TCP link, and since each TCP link requires three-step handshaking, if each operation is an Http link, after each data packet is sent, the Http link is disconnected, and if there is a data packet to be sent, the Http link is established again through the three-step handshaking, so that the processing speed is reduced, and the efficiency is reduced; moreover, frequent communication with short connection can cause socket errors, so that the success rate of the service to be realized is reduced, and frequent socket creation is also wasteful of resources. In summary, how to improve the transmission efficiency and the success rate of the service during data transmission is a problem to be solved at present.
In an embodiment of the present invention, in order to solve the above-mentioned problems, a method for data transmission is provided, and fig. 1 is a flowchart of a method for data transmission in an embodiment of the present invention, which specifically includes the following steps:
step S100, receiving request instruction information sent by a user terminal, wherein the request instruction information comprises an instruction type.
Specifically, the server receives instruction information sent by the user terminal, and the instruction type comprises a core instruction and a non-core instruction.
In the embodiment of the invention, the core instruction refers to an instruction in an instruction set which is associated with a service and plays a core role; the uncore instruction refers to an instruction in an instruction set which is associated with a service and plays a role of uncore.
For example, assuming that the user terminal uses a vehicle sharing service, core instructions in the vehicle sharing service may be vehicle unlocking and vehicle locking, and non-core instructions in the vehicle sharing service may be vehicle searching, vehicle temporary locking, and the like; or, assuming that the user terminal uses the intelligent home hollow control service, the core instructions in the air conditioner control service can be the opening and closing of the air conditioner, and the non-core instructions in the air conditioner control service can be the air volume adjustment, the mode adjustment, the temperature adjustment and the like; the foregoing is merely illustrative, and the present invention is not limited to the embodiments of the present invention, and may be applied to various services in practical applications.
Step S101, responding the instruction type as a core instruction, and judging whether an unused long link exists.
Specifically, the long links belong to a long link resource pool, and the number of all the long links in the long link resource pool is a fixed value.
For example, assuming that the number of all long links in the long link resource pool is 500, after receiving a core instruction sent by a user terminal, determining whether unused long links exist in the 500 long links, that is, determining whether long links which are not occupied by other users exist in the 500 long links.
In one possible implementation, when the number of long links is greater, the uncore instruction may also use long links to communicate, which is not limited by the embodiment of the present invention.
Step S102, a target long link is determined in response to the existence of the unused long link.
In one possible implementation manner, assuming that 25 unused long links exist in the 500 long links, one long link is determined to be a target long link in the 25 unused long links, specifically, any one of the 25 unused long links may be randomly selected, and after the target long link is determined, the number of unoccupied long links in the long link resource pool is 24.
Step S103, first request instruction feedback information is sent, wherein the first request instruction feedback information comprises a channel type, first channel data and a data packet, and the first channel data comprises an authentication password, an Internet protocol address and a port number of the target long link.
Specifically, after the server determines the target long link, the server sends first request instruction feedback information to the user terminal, wherein the channel type and the first channel data included in the first request instruction feedback information can enable the user terminal to accurately determine a channel for establishing communication with the server, and receive a data packet sent by the server.
And step S104, establishing communication connection with the user terminal according to the feedback information of the first request instruction.
Specifically, the server establishes a long link with the user terminal according to the feedback information of the first request instruction, and adopts the long link to communicate, so that the transmission efficiency can be improved, and the success rate of the service can be improved.
In a possible implementation manner, after step S100, other steps are further included, specifically as shown in fig. 2, fig. 2 is a flowchart of a method for data transmission according to an embodiment of the present invention, and specifically includes the following steps:
step S105, in response to the instruction type being a non-core instruction, determining a target hypertext transfer protocol link.
Specifically, when the instruction type is a non-core instruction and the long link resource is in tension, the importance of the instruction type is lower than that of the core instruction, so that the server can communicate with the user terminal by adopting a short link, wherein the short link can be a target hypertext transfer protocol (http) link or can be in other forms of short link, and the embodiment of the invention does not limit the short link.
Step S106, sending request second instruction feedback information, wherein the second request instruction feedback information comprises a channel type, second channel data and a data packet, and the second channel data comprises the target hypertext transfer protocol domain name and a path.
Specifically, after the server determines the target hypertext transfer protocol link, the server sends the first request instruction feedback information to the user terminal, and the channel type and the second channel data included in the first request instruction feedback information can enable the user terminal to accurately determine a channel for establishing communication with the server and receive the data packet sent by the server.
And step S107, establishing communication connection with the user terminal according to the feedback information of the second request instruction.
Specifically, the server establishes an http link with the user terminal according to the feedback information of the second request instruction, and adopts the http link to communicate, so that occupation of long links can be avoided, and the http link can be quickly released, so that resource occupation is avoided.
In a possible implementation manner, after step S101, further steps are further included, specifically as shown in fig. 3, fig. 3 is a flowchart of a method for data transmission according to an embodiment of the present invention, and specifically includes the following steps:
step S108, the target hypertext transfer protocol link is determined in response to the unused long link.
In one possible implementation, when all long links in the long link resource pool are occupied, even if the core instruction is a core instruction, the http link is required to be used for communication, so that the instruction of the user terminal is ensured to be processed in time.
In a possible implementation manner, after step S104, further steps are further included, specifically as shown in fig. 4, fig. 4 is a flowchart of a method for data transmission according to an embodiment of the present invention, and specifically includes the following steps:
step S109, releasing the target long link in response to disconnection of the communication connection established with the user terminal.
Specifically, when the service is finished, the long link established by the server and the user terminal is disconnected, and the target long link is released to return to the long link resource pool.
For example, assuming that the number of long links not occupied by the long link resource pool is 30 when the current service is finished, the number of long links not occupied by the long link resource pool is 31 after the target long link is released.
In a possible implementation manner, the server may be divided into a plurality of modules for link and channel management, as shown in fig. 5, where it is assumed that the server includes a limited connection pool, where the limited connection pool includes a long link resource pool 500, a long link connection management module 501, an http connection management module 502, and a channel management module 503, where the limited connection pool communicates with a plurality of mobile phones, respectively, a mobile phone 1, a mobile phone 2, a mobile phone 3, and the like, and each mobile phone has a corresponding pure bluetooth intelligent central control, for example, the mobile phone 1 corresponds to the pure bluetooth intelligent central control 1, the mobile phone 2 corresponds to the pure bluetooth intelligent central control 2, and the mobile phone 3 corresponds to the pure bluetooth intelligent central control 3; in order to guarantee the safety of communication data, the mobile phone is used for controlling transmission data in the server and the pure Bluetooth intelligent center.
In the embodiment of the present invention, the long link resource pool 500 includes a limited number of long links, and the number of long links in the long link resource pool is irrelevant to the number of user equipments, and is only relevant to the highest concurrency number of services, for example, several millions to several tens of millions of user equipments, or the highest concurrency number of services of bluetooth devices corresponding to the user equipments is generally several hundred, which is only illustrative herein; the long-chain connection management module 501, when the channel management module 503 determines that the long-chain connection is used for communication, the long-chain connection management module 501 is responsible for taking out one long-chain connection from the long-chain connection resource pool, and subtracting one from the number of available long-chain connections in the long-chain connection resource pool; when the communication is finished, releasing the occupied long links, and adding one to the number of the available long links in the long link resource pool; the http connection management module 502 is responsible for communicating with the user terminal through an http link; the channel management module 503 determines whether to use long link or http link for communication by requesting the instruction type (which may also be uplink and downlink message type) in the instruction information and the number of long links remaining in the current long link resource pool; if the instruction type is a non-core instruction, directly adopting an http link to communicate; if the instruction type is a core instruction, but long-chain resources in the current long-chain resource pool are used up, adopting http link to communicate; and if the long-chain resources in the long-chain resource pool are not used up, using the long-chain links for communication.
In a possible implementation manner, after the server divides according to the above modules, after the server receives the request instruction information sent by the user terminal in step S100, the method further includes: and the server generates a downlink instruction data packet according to the request instruction information, wherein the downlink instruction data packet comprises the instruction type, and the downlink instruction data packet is sent to the limited connection pool.
The following describes a data transmission method according to a complete embodiment, and as shown in fig. 6, the method includes the following steps:
step S600, the user triggers an application program in the user terminal.
Step S601, the user terminal sends request instruction information to the server.
Specifically, the request instruction information includes an instruction type.
Step S602, the server generates a downlink instruction data packet according to the request instruction information and sends the downlink instruction data packet to a limited connection pool in the server.
Specifically, the downlink instruction data packet includes an instruction type.
Step S603, determining whether the instruction type is a core instruction, if yes, executing step S604, and if not, executing step S605.
Step S604, determining whether there is an unused long link, if yes, executing step S606, and if no, executing step S605.
Step S605, determining a target http link.
Step S606, determining a target long link.
Step S607, send the channel type, channel data and data packet to the user terminal.
Specifically, when the target long link is adopted, the channel data comprises a long link authentication password, an IP and a port number; when an http link is employed, the channel data includes an http domain name and a path.
And step 608, establishing connection with the user terminal through the target http link or the target long link for communication.
Fig. 7 is a schematic diagram of a data transmission device according to an embodiment of the invention. As shown in fig. 7, the apparatus of the present embodiment includes a receiving unit 701, a processing unit 702, a determining unit 703, and a transmitting unit 704.
The receiving unit 701 is configured to receive request instruction information sent by a user terminal, where the request instruction information includes an instruction type; the processing unit 702, responsive to the instruction type being a core instruction, is configured to determine whether an unused long link exists; the determining unit 703, in response to the existence of the unused long link, is configured to determine a target long link; the sending unit 704 is configured to send first request instruction feedback information, where the first request instruction feedback information includes a channel type, first channel data, and a data packet, and the first channel data includes an authentication password, an internet protocol address, and a port number of the target long link; the processing unit is further configured to establish communication connection with the user terminal according to the feedback information of the first request instruction.
Further, the determining unit is further configured to:
and determining a target hypertext transfer protocol link in response to the instruction type being a non-core instruction.
Further, the sending unit is further configured to:
sending request second instruction feedback information, wherein the second request instruction feedback information comprises a channel type, second channel data and a data packet, and the second channel data comprises the target hypertext transfer protocol domain name and a path;
and establishing communication connection with the user terminal according to the feedback information of the second request instruction.
Further, the determining unit is further configured to:
the target hypertext transfer protocol link is determined in response to the unused long link not being present.
Further, the long links belong to a long link resource pool, and the number of all the long links in the long link resource pool is a fixed value.
Further, the processing unit is further configured to:
and releasing the target long link in response to the disconnection of the communication connection established with the user terminal.
Further, the apparatus further includes a generating unit:
and generating a downlink instruction data packet according to the request instruction information, wherein the downlink instruction data packet comprises the instruction type.
Fig. 8 is a schematic diagram of an electronic device according to an embodiment of the invention. As shown in fig. 8, the electronic device shown in fig. 8 is a data transmission apparatus, which includes a general-purpose computer hardware structure including at least a processor 801 and a memory 802. The processor 801 and the memory 802 are connected by a bus 803. The memory 802 is adapted to store instructions or programs executable by the processor 801. The processor 801 may be a stand-alone microprocessor or may be a set of one or more microprocessors. Thus, the processor 801 performs the process of processing data and control of other devices by executing instructions stored in the memory 802, thereby performing the method flow of the embodiment of the present invention as described above. The bus 803 connects the above-described components together, while connecting the above-described components to a display controller 804 and a display device and an input/output (I/O) device 805. Input/output (I/O) devices 805 may be a mouse, keyboard, modem, network interface, touch input device, somatosensory input device, printer, and other devices known in the art. Typically, the input/output devices 805 are connected to the system through input/output (I/O) controllers 806.
Wherein the instructions stored by the memory 802 are executable by the at least one processor 801 to implement: receiving request instruction information sent by a user terminal, wherein the request instruction information comprises an instruction type; responding to the instruction type as a core instruction, and judging whether an unused long link exists; determining a target long link in response to the presence of the unused long link; transmitting first request instruction feedback information, wherein the first request instruction feedback information comprises a channel type, first channel data and a data packet, and the first channel data comprises an authentication password, an internet protocol address and a port number of the target long link; and establishing communication connection with the user terminal according to the feedback information of the first request instruction.
Specifically, the electronic device includes: one or more processors 801, and memory 802, fig. 8 illustrates one processor 801. The processor 801, the memory 802 may be connected by a bus or other means, for example in fig. 8. Memory 802, as a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The processor 801 executes various functional applications of the device and data processing, i.e., a method of implementing the above-described data transmission, by running nonvolatile software programs, instructions, and modules stored in the memory 802.
Memory 802 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store a list of options, etc. In addition, memory 802 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 802 may optionally include memory located remotely from processor 801, which may be connected to an external device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 802 that, when executed by the one or more processors 801, perform the methods of data transmission in any of the method embodiments described above.
The product may perform the method provided by the embodiment of the present application, and have corresponding functional modules and beneficial effects of the performing method, and technical details not described in detail in the embodiment of the present application may be referred to the method provided by the embodiment of the present application.
Embodiments of the present invention relate to a non-volatile storage medium for storing a computer-readable program for causing a computer to execute some or all of the above-described method embodiments.
That is, it will be understood by those skilled in the art that all or part of the steps in implementing the methods of the embodiments described above may be implemented by a program stored in a storage medium, where the program includes several instructions for causing a device (which may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps in the methods of the embodiments described herein. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples of carrying out the invention and that various changes in form and details may be made therein without departing from the spirit and scope of the invention.

Claims (10)

1. A method of data transmission, the method comprising:
receiving request instruction information sent by a user terminal, wherein the request instruction information comprises an instruction type;
responding to the instruction type as a core instruction, and judging whether an unused long link exists;
determining a target long link in response to the presence of the unused long link;
transmitting first request instruction feedback information, wherein the first request instruction feedback information comprises a channel type, first channel data and a data packet, and the first channel data comprises an authentication password, an internet protocol address and a port number of the target long link;
and establishing communication connection with the user terminal according to the feedback information of the first request instruction.
2. The method of claim 1, wherein the method further comprises:
and determining a target hypertext transfer protocol link in response to the instruction type being a non-core instruction.
3. The method of claim 2, wherein the method further comprises:
sending request second instruction feedback information, wherein the second request instruction feedback information comprises a channel type, second channel data and a data packet, and the second channel data comprises the target hypertext transfer protocol domain name and a path;
and establishing communication connection with the user terminal according to the feedback information of the second request instruction.
4. The method of claim 1, wherein the method further comprises:
the target hypertext transfer protocol link is determined in response to the unused long link not being present.
5. The method of claim 1, wherein the long links belong to a long link resource pool, and the number of all the long links in the long link resource pool is a fixed value.
6. The method of claim 1, wherein the method further comprises:
and releasing the target long link in response to the disconnection of the communication connection established with the user terminal.
7. The method of claim 1, wherein the method further comprises:
and generating a downlink instruction data packet according to the request instruction information, wherein the downlink instruction data packet comprises the instruction type.
8. An apparatus for data transmission, the apparatus comprising:
the receiving unit is used for receiving request instruction information sent by the user terminal, wherein the request instruction information comprises an instruction type;
the processing unit is used for responding to the instruction type as a core instruction and judging whether an unused long link exists or not;
a determining unit for determining a target long link in response to the presence of an unused long link;
the device comprises a sending unit, a receiving unit and a receiving unit, wherein the sending unit is used for sending first request instruction feedback information, the first request instruction feedback information comprises a channel type, first channel data and a data packet, and the first channel data comprises an authentication password, an internet protocol address and a port number of the target long link;
the processing unit is further configured to establish communication connection with the user terminal according to the feedback information of the first request instruction.
9. A computer readable storage medium, on which computer program instructions are stored, which computer program instructions, when executed by a processor, implement the method of any of claims 1-7.
10. An electronic device comprising a memory and a processor, wherein the memory is configured to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method of any of claims 1-7.
CN202210977023.2A 2022-08-15 2022-08-15 Data transmission method and device and electronic equipment Pending CN117641341A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210977023.2A CN117641341A (en) 2022-08-15 2022-08-15 Data transmission method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210977023.2A CN117641341A (en) 2022-08-15 2022-08-15 Data transmission method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN117641341A true CN117641341A (en) 2024-03-01

Family

ID=90020422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210977023.2A Pending CN117641341A (en) 2022-08-15 2022-08-15 Data transmission method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN117641341A (en)

Similar Documents

Publication Publication Date Title
US8565801B2 (en) Methods and apparatus for managing group membership for group communications
EP3852419A1 (en) Latency-sensitive network communication method and apparatus thereof
CN109672708B (en) Communication method, device and system
US9535638B2 (en) Directly transferring data between devices
EP3100471A1 (en) Context-aware and proximity-aware service layer connectivity management
US9019878B2 (en) Phone supporting mode conversion
CN104205933B (en) Seamless transition of cellular phone from cellular communication to Wi-Fi communication
CN110808948B (en) Remote procedure calling method, device and system
CN107409270B (en) Method and apparatus for establishing a connection between devices
WO2014059813A1 (en) Data transmission method and terminal device
CN105191412A (en) Delegating WIFI network discovery and traffic monitoring
CN106028266B (en) Information transmission method, device and system
CN102612033B (en) Mobile phone with thin wireless access point and communication method for mobile phone
CN105262836A (en) Information push method of server and push information reception method of client
WO2020147081A1 (en) Data transmission method, related device, and computer storage medium
KR20120066979A (en) Wireless local area communication system
CN105681225A (en) Network resource acquisition method and device
US11317347B2 (en) Method and apparatus for providing service by using Bluetooth low energy technology
CN104618123B (en) A kind of method of supplying power to and device
CN104486443A (en) Message pushing system and method
CN106302432A (en) A kind of communicator based on car networking and control method
CN117641341A (en) Data transmission method and device and electronic equipment
CN105306442A (en) Proxy server and command transmission methods
CN116076122A (en) Group positioning method, device, equipment and storage medium
CN106304241B (en) Data transmission method, repeater and gateway

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination