CN112003923A - Interaction method and device for driver team forming terminal and server cluster and electronic equipment - Google Patents

Interaction method and device for driver team forming terminal and server cluster and electronic equipment Download PDF

Info

Publication number
CN112003923A
CN112003923A CN202010834253.4A CN202010834253A CN112003923A CN 112003923 A CN112003923 A CN 112003923A CN 202010834253 A CN202010834253 A CN 202010834253A CN 112003923 A CN112003923 A CN 112003923A
Authority
CN
China
Prior art keywords
target
fleet
terminal
server
thread
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
CN202010834253.4A
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.)
Neusoft Reach Automotive Technology Shenyang Co Ltd
Original Assignee
Neusoft Reach Automotive Technology Shenyang 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 Neusoft Reach Automotive Technology Shenyang Co Ltd filed Critical Neusoft Reach Automotive Technology Shenyang Co Ltd
Priority to CN202010834253.4A priority Critical patent/CN112003923A/en
Publication of CN112003923A publication Critical patent/CN112003923A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/255Maintenance or indexing of mapping tables
    • H04L61/2553Binding renewal aspects, e.g. using keep-alive messages
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1046Joining mechanisms
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1048Departure or maintenance mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides an interaction method, an interaction device and electronic equipment for a driver team terminal and a server cluster, wherein the interaction method comprises the following steps: acquiring a team building request sent by a captain terminal; starting a target thread on a target server in a server cluster to establish a fleet to obtain a target fleet based on a request for establishing a fleet; and establishing a binding relationship among the fleet ID of the target fleet, the server IP of the target server and the thread number of the target thread so as to interact with all terminals of the target fleet through the target thread. In the method, one thread of one server in the server cluster is interacted with all terminals of the same motorcade, namely, only one thread of one server is needed when information of the same motorcade is processed, so that hardware resources are saved, and system performance is improved.

Description

Interaction method and device for driver team forming terminal and server cluster and electronic equipment
Technical Field
The invention relates to the technical field of communication, in particular to an interaction method and device for a driver team terminal and a server cluster and electronic equipment.
Background
With the continuous development of automobile electronic technology, wireless communication technology and cloud computing technology, the self-driving tour of the group of car friends becomes a popular tour mode at present. The teams of the drivers can remotely communicate and assist the teams in the same team through respective terminal equipment, and the drivers can get more relaxed and interesting driving feeling with comfortable entertainment.
At present, when members of the same fleet initiate requests to a server cluster through respective terminal devices, different servers are generally allocated to the respective terminal devices according to a left-right algorithm of server load balancing, so that a phenomenon that a plurality of servers start a plurality of threads to serve the terminal devices of the same fleet occurs, that is, the plurality of servers are required to start the threads to process information of the same fleet. Obviously, the interaction mode has the technical problems of hardware resource waste and poor system performance.
Disclosure of Invention
In view of the above, the present invention provides an interaction method, an interaction device, and an electronic device for a driver team terminal and a server cluster, so as to alleviate the technical problems of hardware resource waste and poor system performance in the existing interaction manner between the driver team terminal and the server cluster.
In a first aspect, an embodiment of the present invention provides an interaction method for a driver team terminal and a server cluster, including:
acquiring a team building request sent by a captain terminal;
starting a target thread on a target server in the server cluster to establish a fleet based on the request for establishing the fleet to obtain the target fleet, wherein the number of the target server and the number of the target thread are both one;
and establishing a binding relationship among the fleet ID of the target fleet, the server IP of the target server and the thread number of the target thread so as to interact with all terminals of the target fleet through the target thread of the target server.
Further, after obtaining the target fleet, before establishing a binding relationship between a fleet ID of the target fleet, a server IP of the target server, and a thread number of the target thread, the method further includes:
and sending the checking code information of the target fleet to the captain terminal.
Further, the method further comprises:
acquiring an enqueuing request which is sent by a team member terminal and carries check code information;
determining the target fleet based on the check code information in the enqueuing request, and adding the team member information corresponding to the team member terminal to the target fleet to obtain added information;
and the added information is multicast to each terminal of the target fleet through the target thread.
Further, the method further comprises:
acquiring a queue quitting request carrying a fleet ID sent by a team member terminal;
determining a corresponding target fleet based on the fleet ID in the fleet quitting request, and deleting the team member information corresponding to the team member terminal in the target fleet to obtain deleted information;
and the deleted information group is broadcasted to each terminal of the target motorcade through the target thread.
Further, the method further comprises:
acquiring an information updating request sent by any terminal in the target fleet;
determining a target fleet corresponding to the terminal based on team member information carried in the information updating request;
determining a target thread of the target server corresponding to the target fleet based on the fleet ID of the target fleet;
and multicasting the updated information in the information updating request to each terminal of the target motorcade through the target thread.
Further, the terminal includes at least one of: vehicle-mounted terminal and cell phone terminal.
In a second aspect, an embodiment of the present invention further provides an interaction apparatus for a driver team terminal and a server cluster, where the interaction apparatus includes:
the acquisition unit is used for acquiring a team building request sent by a captain terminal;
the creating unit is used for starting a target thread on a target server in the server cluster to create a fleet to obtain the target fleet based on the request for creating the fleet, wherein the number of the target server and the target thread is one;
and the establishing unit is used for establishing a binding relationship among the fleet ID of the target fleet, the server IP of the target server and the thread number of the target thread so as to interact with all terminals of the target fleet through the target thread of the target server.
Further, the apparatus further comprises:
and the transmitting unit is used for transmitting the check code information of the target fleet to the captain terminal.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor implements the steps of the method in any one of the first aspect when executing the computer program.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium storing machine executable instructions, which when invoked and executed by a processor, cause the processor to perform the method of any of the first aspect.
In the embodiment of the invention, a request for establishing a team sent by a captain terminal is obtained first; then, starting a target thread on a target server in a server cluster to establish a fleet based on a request for establishing a fleet to obtain the target fleet, wherein the number of the target server and the number of the target thread are both one; and finally, establishing a binding relationship among the fleet ID of the target fleet, the server IP of the target server and the thread number of the target thread so as to interact with all terminals of the target fleet through the target thread of the target server. As can be seen from the above description, in the interaction method of the driver team terminal and the server cluster of the present invention, one thread of one server in the server cluster is used for interacting with all terminals of the same fleet, that is, only one thread of one server is needed when processing information of the same fleet, so as to save hardware resources, improve system performance, and alleviate the technical problems of hardware resource waste and poor system performance in the existing interaction manner of the driver team terminal and the server cluster.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of an interaction method between a driver team terminal and a server cluster according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for requesting enqueue according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for requesting dequeue according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for sharing information according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an interaction apparatus for a driver team terminal and a server cluster according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, a driver team terminal of the same fleet can process information of the same fleet only by interacting with a plurality of servers of a server cluster, and the interaction mode wastes hardware resources and has poor system performance.
Based on the above, the embodiment of the application provides an interaction method for a driver team terminal and a server cluster, and the technical problems that hardware resources are wasted and system performance is poor due to the interaction mode of the driver team terminal and the server cluster can be solved through the method.
Embodiments of the present invention are further described below with reference to the accompanying drawings.
The first embodiment is as follows:
in accordance with an embodiment of the present invention, there is provided an embodiment of a method for interaction between a driver team terminal and a server cluster, where the steps shown in the flowchart of the figure may be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown or described herein.
Fig. 1 is a flowchart of an interaction method of a driver team terminal and a server cluster according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
step S102, a request for creating a team sent by a captain terminal is obtained;
in the embodiment of the present invention, the interaction method may be applied to a server cluster background, and the request for creating a team includes team name information, destination information, team leader information (e.g., nickname, user name, head portrait, etc.), and the like.
The captain terminal can be a mobile phone terminal of the captain or a vehicle-mounted terminal. Specifically, the request for creating the team is sent by the captain terminal in the form of http rest request, real-time data (including terminal GPS position and the like) and trigger data (including online state, offline state, change of team personnel information and the like) of each terminal are transmitted through long connection between each terminal and the server, and the long connection between each terminal and the server is handled and controlled by a designated target thread.
In addition, the mobile phone terminal and the vehicle-mounted terminal of the same user can be distinguished in a mode of terminal coding + user ID. For example: the user ID +1 indicates a mobile phone terminal, and the user ID +0 indicates a vehicle-mounted terminal.
Step S104, starting a target thread on a target server in a server cluster for creating a fleet to obtain the target fleet based on a request for creating a fleet, wherein the number of the target server and the number of the target thread are both one;
after receiving a request for creating a team, the background randomly allocates a server in the server cluster as a target server, starts a target thread on the target server, creates the team to obtain the target team, and then all information in the target team is issued from the target server. Specifically, all terminals of the target fleet interact with the target server through long connections controlled by the target threads.
And step S106, establishing a binding relationship among the fleet ID of the target fleet, the server IP of the target server and the thread number of the target thread so as to interact with all terminals of the target fleet through the target thread of the target server.
Specifically, when a fleet is created, the target server stores information in a request for creating a fleet, defines a unique fleet ID for the target fleet, and defines a unique thread number for the target thread, and then establishes a binding relationship between the fleet ID of the target fleet, the server IP of the target server, and the thread number of the target thread, so that all terminals of the target fleet interact through long connections (controlled by the target thread) established with the target server.
In the embodiment of the invention, a request for establishing a team sent by a captain terminal is obtained first; then, starting a target thread on a target server in a server cluster to establish a fleet based on a request for establishing a fleet to obtain the target fleet, wherein the number of the target server and the number of the target thread are both one; and finally, establishing a binding relationship among the fleet ID of the target fleet, the server IP of the target server and the thread number of the target thread so as to interact with all terminals of the target fleet through the target thread of the target server. As can be seen from the above description, in the interaction method of the driver team terminal and the server cluster of the present invention, one thread of one server in the server cluster is used for interacting with all terminals of the same fleet, that is, only one thread of one server is needed when processing information of the same fleet, so as to save hardware resources, improve system performance, and alleviate the technical problems of hardware resource waste and poor system performance in the existing interaction manner of the driver team terminal and the server cluster.
The above description briefly introduces the interaction method between the driver team terminal and the server cluster, and the following description details the specific contents involved therein.
In an optional embodiment of the present invention, after obtaining the target fleet, before establishing a binding relationship between a fleet ID of the target fleet, a server IP of the target server, and a thread number of the target thread, the method further comprises:
and transmitting the check code information of the target fleet to the captain terminal.
Specifically, the check code information can be used as a certificate for joining the target fleet.
The above description is directed to the process of creating a team, and the process of requesting enqueuing is described below.
In an alternative embodiment of the present invention, referring to fig. 2, the method further comprises:
step S201, obtaining an enqueue request carrying check code information sent by a team member terminal;
specifically, the team member terminal may be a mobile phone terminal of the team member, or may be a vehicle-mounted terminal. The check code information is a check code that the captain informs the team member, and the enqueue request carries the check code information and also includes team member information, that is, personal information (such as nickname, user name, head portrait, user ID, etc.) of the user.
In addition, the enqueue request is sent by the team member terminal in the form of http rest request.
Step S202, determining a target fleet based on the check code information in the enqueuing request, and adding team member information corresponding to a team member terminal to the target fleet to obtain added information;
after receiving the enqueuing request, the target server determines a target fleet (the target fleet is a fleet to which a team member corresponding to the team member terminal needs to join, namely, the fleet corresponding to the check code information) based on the check code information in the enqueuing request, and then adds the team member information corresponding to the team member terminal to the target fleet, specifically, the user ID corresponding to the team member terminal and the fleet ID of the target fleet are bound, and then the added information is obtained.
And step S203, the added information is multicast to each terminal of the target motorcade through the target thread.
Specifically, tcp socket channels (controlled by the target thread) are maintained between each terminal and the target server in the target fleet, the target thread broadcasts the added information group to each socket channel, and each terminal of the target fleet receives the added information and updates and displays the information of the drivers in the terminal.
The above description is directed to the process of requesting enqueuing, and the process of requesting dequeuing is described below.
In an alternative embodiment of the present invention, referring to fig. 3, the method further comprises:
step S301, obtaining a queue quitting request carrying a fleet ID sent by a team member terminal;
similarly, the team member terminal can be a mobile phone terminal of the team member or a vehicle-mounted terminal. The queue quitting request carries the fleet ID and also includes team member information, i.e., personal information of the user (e.g., nickname, user name, head portrait, user ID, etc.).
In addition, the dequeue request is sent by the team member terminal in the form of http rest request.
Step S302, determining a corresponding target fleet based on the fleet ID in the fleet retreat request, and deleting the team member information corresponding to the team member terminal in the target fleet to obtain deleted information;
after receiving the queue quitting request, the target server determines a corresponding target fleet based on the fleet ID in the queue quitting request (the target fleet is a fleet which is to be quitted by a team member corresponding to the team member terminal, namely the fleet corresponding to the fleet ID), and then deletes the team member information corresponding to the team member terminal in the target fleet to obtain the deletion information.
And step S303, the deleted information is multicast to each terminal of the target motorcade through the target thread.
Specifically, a tcp socket channel is maintained between each terminal in the target fleet and the target server, the target thread multicasts the deleted information to each socket channel, and then each terminal of the target fleet receives the deleted information and updates and displays the information of the driver in the terminal.
The above description describes the process of requesting dequeue, and the following description describes the process of information sharing.
In an alternative embodiment of the present invention, referring to fig. 4, the method further comprises:
step S401, acquiring an information updating request sent by any terminal in a target fleet;
specifically, the information update request may be an update request of real-time data, or may be an update request of trigger data, and is transmitted through a long connection (i.e., a socket channel) between each terminal and the server, and the long connection between each terminal and the server is handled and controlled by a designated target thread.
The real-time data may include a GPS location of the terminal; the trigger data includes: the information updating request is not particularly limited, and the information updating request may be other information updating requests.
The information updating request is sent through a socket channel between the terminal and the target server.
Step S402, determining a target fleet corresponding to the terminal based on the team member information carried in the information updating request;
because the target fleet comprises the team member information, the target fleet to which the terminal belongs can be determined according to the team member information carried in the information updating request.
Step S403, determining a target thread of a target server corresponding to the target fleet ID based on the fleet ID of the target fleet;
specifically, because the binding relationship among the fleet ID, the server IP, and the thread number is established, the server IP and the thread number can be determined based on the fleet ID of the target fleet, and the target server and the target thread can be determined.
And step S404, the updated information in the information updating request is multicast to each terminal of the target motorcade through the target thread.
Specifically, the target thread group broadcasts the update information to each socket channel, and then each terminal of the target fleet receives the update information and updates and displays the driver information in the terminal.
For example, a terminal a in a target fleet initiates a request for replacing a head portrait to a server background through a socket channel, the server background receives the request and extracts the information of the team members carried in the request, then searches the information of the team members in each fleet, and takes the fleet comprising the information of the team members as the target fleet, then determines a server IP and a thread number according to the fleet ID of the target fleet, and further determines a target server and a target thread corresponding to the server IP and the thread number, and finally, broadcasts the information for replacing the head portrait to each socket channel through the target thread, so that each terminal of the target fleet can complete the process of replacing the head portrait of the corresponding team member.
In addition, if the target fleet corresponding to the terminal is determined to be obtained based on the team member information carried in the information updating request, but the target server and the target thread are not determined, the server may be failed, or some other inefficacy factors may occur, the server may be reallocated for the target fleet, and one thread may be restarted so as to interact with the terminal of the target fleet.
In addition, the motorcade dismissal condition exists, after the terminal initiates a motorcade dismissal request, the background determines a motorcade to be dismissed according to check code information carried in the motorcade dismissal request, further determines a corresponding server IP and a thread number according to a motorcade ID of the motorcade to be dismissed, further determines to obtain a target server and a target thread, and finally, the background closes the target thread of the target server, so that hardware resources can be saved to the greatest extent, and the performance of the system is improved.
It should be noted that: the same terminal can only join a motorcade, and when the terminal needs to join a new motorcade again, the terminal needs to withdraw from the original motorcade to realize the joining of the motorcade.
Example two:
the embodiment of the invention also provides an interaction device of the driver team terminal and the server cluster, which is mainly used for executing the interaction method of the driver team terminal and the server cluster provided by the embodiment of the invention.
Fig. 5 is a schematic diagram of an interaction apparatus of a driver team terminal and a server cluster according to an embodiment of the present invention, and as shown in fig. 5, the interaction apparatus of the driver team terminal and the server cluster mainly includes: an obtaining unit 10, a creating unit 20 and a establishing unit 30, wherein:
the acquisition unit is used for acquiring a team building request sent by a captain terminal;
the creating unit is used for starting a target thread on a target server in the server cluster to create the fleet based on the request for creating the fleet to obtain the target fleet, wherein the number of the target server and the target thread is one;
and the establishing unit is used for establishing a binding relationship among the fleet ID of the target fleet, the server IP of the target server and the thread number of the target thread so as to interact with all terminals of the target fleet through the target thread of the target server.
In the embodiment of the invention, a request for establishing a team sent by a captain terminal is obtained first; then, starting a target thread on a target server in a server cluster to establish a fleet based on a request for establishing a fleet to obtain the target fleet, wherein the number of the target server and the number of the target thread are both one; and finally, establishing a binding relationship among the fleet ID of the target fleet, the server IP of the target server and the thread number of the target thread so as to interact with all terminals of the target fleet through the target thread of the target server. As can be seen from the above description, in the interaction method of the driver team terminal and the server cluster of the present invention, one thread of one server in the server cluster is used for interacting with all terminals of the same fleet, that is, only one thread of one server is needed when processing information of the same fleet, so as to save hardware resources, improve system performance, and alleviate the technical problems of hardware resource waste and poor system performance in the existing interaction manner of the driver team terminal and the server cluster.
Optionally, the apparatus further comprises: and the transmitting unit is used for transmitting the check code information of the target fleet to the captain terminal.
Optionally, the apparatus is further configured to: acquiring an enqueuing request which is sent by a team member terminal and carries check code information; determining a target fleet based on the check code information in the enqueuing request, and adding team member information corresponding to the team member terminal to the target fleet to obtain added information; and the added information is multicast to each terminal of the target motorcade through the target thread.
Optionally, the apparatus is further configured to: acquiring a queue quitting request carrying a fleet ID sent by a team member terminal; determining a corresponding target fleet based on the fleet ID in the fleet quitting request, and deleting the team member information corresponding to the team member terminal in the target fleet to obtain deleted information; and broadcasting the deleted information group to each terminal of the target motorcade through the target thread.
Optionally, the apparatus is further configured to: acquiring an information updating request sent by any terminal in a target fleet; determining a target fleet corresponding to the terminal based on the team member information carried in the information updating request; determining a target thread of a target server corresponding to the target fleet ID based on the fleet ID of the target fleet; and multicasting the updated information in the information updating request to each terminal of the target motorcade through the target thread.
Optionally, the terminal comprises at least one of: vehicle-mounted terminal and cell phone terminal.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
As shown in fig. 6, an electronic device 600 provided in an embodiment of the present application includes: the system comprises a processor 601, a memory 602 and a bus, wherein the memory 602 stores machine-readable instructions executable by the processor 601, when an electronic device runs, the processor 601 and the memory 602 communicate with each other through the bus, and the processor 601 executes the machine-readable instructions to execute the steps of the interaction method of the driver team terminal and the server cluster.
Specifically, the memory 602 and the processor 601 can be general memories and processors, which are not limited in particular, and when the processor 601 runs a computer program stored in the memory 602, the interaction method between the fellow car team terminal and the server cluster can be performed.
The processor 601 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 601. The Processor 601 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the method in combination with the hardware thereof.
Corresponding to the interaction method between the driver team terminal and the server cluster, an embodiment of the application further provides a computer-readable storage medium, where a machine-executable instruction is stored in the computer-readable storage medium, and when the computer-executable instruction is called and executed by a processor, the computer-executable instruction causes the processor to execute the step of the interaction method between the driver team terminal and the server cluster.
The interaction device of the driver team terminal and the server cluster provided by the embodiment of the application can be specific hardware on equipment or software or firmware installed on the equipment. The device provided by the embodiment of the present application has the same implementation principle and technical effect as the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments where no part of the device embodiments is mentioned. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the foregoing systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
For another example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or a part of the technical solution may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes several instructions to enable an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the interaction method between the car friend team terminal and the server cluster according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the scope of the embodiments of the present application. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An interaction method for a vehicle friend team forming terminal and a server cluster is characterized by comprising the following steps:
acquiring a team building request sent by a captain terminal;
starting a target thread on a target server in the server cluster to establish a fleet based on the request for establishing the fleet to obtain the target fleet, wherein the number of the target server and the number of the target thread are both one;
and establishing a binding relationship among the fleet ID of the target fleet, the server IP of the target server and the thread number of the target thread so as to interact with all terminals of the target fleet through the target thread of the target server.
2. The method of claim 1, wherein after obtaining a target fleet, prior to establishing a binding relationship between a fleet ID of the target fleet, a server IP of the target server, and a thread number of the target thread, the method further comprises:
and sending the checking code information of the target fleet to the captain terminal.
3. The method of claim 2, further comprising:
acquiring an enqueuing request which is sent by a team member terminal and carries check code information;
determining the target fleet based on the check code information in the enqueuing request, and adding the team member information corresponding to the team member terminal to the target fleet to obtain added information;
and the added information is multicast to each terminal of the target fleet through the target thread.
4. The method of claim 2, further comprising:
acquiring a queue quitting request carrying a fleet ID sent by a team member terminal;
determining a corresponding target fleet based on the fleet ID in the fleet quitting request, and deleting the team member information corresponding to the team member terminal in the target fleet to obtain deleted information;
and the deleted information group is broadcasted to each terminal of the target motorcade through the target thread.
5. The method of claim 1, further comprising:
acquiring an information updating request sent by any terminal in the target fleet;
determining a target fleet corresponding to the terminal based on team member information carried in the information updating request;
determining a target thread of the target server corresponding to the target fleet based on the fleet ID of the target fleet;
and multicasting the updated information in the information updating request to each terminal of the target motorcade through the target thread.
6. The method of claim 1, wherein the terminal comprises at least one of: vehicle-mounted terminal and cell phone terminal.
7. The utility model provides an interactive installation of car friend group terminal and server cluster which characterized in that includes:
the acquisition unit is used for acquiring a team building request sent by a captain terminal;
the creating unit is used for starting a target thread on a target server in the server cluster to create a fleet to obtain the target fleet based on the request for creating the fleet, wherein the number of the target server and the target thread is one;
and the establishing unit is used for establishing a binding relationship among the fleet ID of the target fleet, the server IP of the target server and the thread number of the target thread so as to interact with all terminals of the target fleet through the target thread of the target server.
8. The apparatus of claim 7, further comprising:
and the transmitting unit is used for transmitting the check code information of the target fleet to the captain terminal.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program operable on the processor, and wherein the processor implements the steps of the method of any of claims 1 to 6 when executing the computer program.
10. A computer readable storage medium having stored thereon machine executable instructions which, when invoked and executed by a processor, cause the processor to execute the method of any of claims 1 to 6.
CN202010834253.4A 2020-08-18 2020-08-18 Interaction method and device for driver team forming terminal and server cluster and electronic equipment Pending CN112003923A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010834253.4A CN112003923A (en) 2020-08-18 2020-08-18 Interaction method and device for driver team forming terminal and server cluster and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010834253.4A CN112003923A (en) 2020-08-18 2020-08-18 Interaction method and device for driver team forming terminal and server cluster and electronic equipment

Publications (1)

Publication Number Publication Date
CN112003923A true CN112003923A (en) 2020-11-27

Family

ID=73472707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010834253.4A Pending CN112003923A (en) 2020-08-18 2020-08-18 Interaction method and device for driver team forming terminal and server cluster and electronic equipment

Country Status (1)

Country Link
CN (1) CN112003923A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102426798A (en) * 2011-08-27 2012-04-25 广东东纳软件科技有限公司 Fleet communication navigation system as well as friend navigation and fleet navigation method
CN105610950A (en) * 2015-12-30 2016-05-25 腾讯科技(深圳)有限公司 Session processing method and system in motorcade travel
CN106790675A (en) * 2017-01-23 2017-05-31 天地融科技股份有限公司 Load-balancing method, equipment and system in a kind of cluster
CN109395380A (en) * 2018-09-14 2019-03-01 北京智明星通科技股份有限公司 Game data processing method and system, server and computer readable storage medium
CN110400457A (en) * 2019-06-25 2019-11-01 联想(北京)有限公司 A kind of fleet's control method and electronic equipment
CN111013133A (en) * 2019-11-29 2020-04-17 北京奇艺世纪科技有限公司 Data processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102426798A (en) * 2011-08-27 2012-04-25 广东东纳软件科技有限公司 Fleet communication navigation system as well as friend navigation and fleet navigation method
CN105610950A (en) * 2015-12-30 2016-05-25 腾讯科技(深圳)有限公司 Session processing method and system in motorcade travel
CN106790675A (en) * 2017-01-23 2017-05-31 天地融科技股份有限公司 Load-balancing method, equipment and system in a kind of cluster
CN109395380A (en) * 2018-09-14 2019-03-01 北京智明星通科技股份有限公司 Game data processing method and system, server and computer readable storage medium
CN110400457A (en) * 2019-06-25 2019-11-01 联想(北京)有限公司 A kind of fleet's control method and electronic equipment
CN111013133A (en) * 2019-11-29 2020-04-17 北京奇艺世纪科技有限公司 Data processing method and device

Similar Documents

Publication Publication Date Title
KR102114767B1 (en) Vehicle-based communication methods, systems and devices
CN101179392B (en) Method and system for uploading document
CN108650667B (en) Terminal scheduling method and device
CN112118315A (en) Data processing system, method, device, electronic equipment and storage medium
US10922113B2 (en) Method for vehicle based data transmission and operation among a plurality of subscribers through formation of virtual machines
KR102638580B1 (en) Method, system, and non-transitory computer readable record medium for providing multiple group call in one chat room
CN110430292B (en) Method and device for inviting login of network platform, electronic equipment and readable medium
CN111163130A (en) Network service system and data transmission method thereof
CN114827698B (en) Method, device, terminal equipment and storage medium for synchronizing play information
CN104485011A (en) Cloud server, system and method for realizing Internet of vehicles (IoV) pickup function
CN110995572B (en) Information publishing method, device, system and computer storage medium
CN107710793B (en) Positioning method and corresponding device
CN109981778B (en) Method, device, equipment and storage medium for realizing service of content distribution network
CN112003923A (en) Interaction method and device for driver team forming terminal and server cluster and electronic equipment
CN117014514A (en) Scheduling method, device, equipment and medium of vehicle cloud communication gateway
CN111615080B (en) Application method and device of vehicle-mounted intelligent terminal, computer equipment and storage medium
CN112235749A (en) Team traveling method and related equipment
CN109861741B (en) Data distribution method and device for tethered unmanned aerial vehicle, computer equipment and storage medium
CN110251943B (en) Game player matching method, device, equipment and storage medium
CN115696231A (en) Team forming method, electronic device and medium
CN111866825A (en) Bluetooth firmware upgrading method and device, airborne terminal and storage medium
CN112995095A (en) Data processing method, device and computer readable storage medium
CN111726280A (en) Instant message transmission method and device, electronic equipment and storage medium
CN110958240A (en) Message subscription system and method
CN111818144B (en) Message transmission method, device and system under remote service calling framework

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