CN110472001B - Information sharing method, device, equipment and storage medium - Google Patents

Information sharing method, device, equipment and storage medium Download PDF

Info

Publication number
CN110472001B
CN110472001B CN201910764786.7A CN201910764786A CN110472001B CN 110472001 B CN110472001 B CN 110472001B CN 201910764786 A CN201910764786 A CN 201910764786A CN 110472001 B CN110472001 B CN 110472001B
Authority
CN
China
Prior art keywords
route information
node
blockchain network
information
sharing
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.)
Active
Application number
CN201910764786.7A
Other languages
Chinese (zh)
Other versions
CN110472001A (en
Inventor
王星雅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910764786.7A priority Critical patent/CN110472001B/en
Publication of CN110472001A publication Critical patent/CN110472001A/en
Application granted granted Critical
Publication of CN110472001B publication Critical patent/CN110472001B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • 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
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

The application discloses an information sharing method, device, equipment and storage medium, in the scheme, the whole network sharing of route information is realized by using a blockchain network, and meanwhile, the fact that the public route information fits the actual situation when an emergency occurs is ensured, and accurate route information is provided. The information sharing method comprises the following steps: acquiring at least one official route information uploaded by a first node, wherein the first node is contained in a blockchain network, and the blockchain network further comprises a second node and a service node; broadcasting at least one official route information in the blockchain network so that the first node, the second node or the service node negotiates the at least one official route information to obtain first route information after consensus; determining target route information according to the first route information and pre-stored route information in the blockchain network; target route information is shared in the blockchain network.

Description

Information sharing method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of blockchains, in particular to a method, a device, equipment and a storage medium for information sharing.
Background
At present, route information of buses is either posted in a stop board of a bus stop or posted on a official network of a bus system.
However, if the route information is changed, the route information is inaccurate easily due to the fact that the route information is not updated in time on the stop board or the official network, and the real-time route change caused by the emergency situation cannot be dealt with in real time.
Disclosure of Invention
The embodiment of the application provides an information sharing method, device, equipment and storage medium, which are used for realizing real-time sharing of route information and can cope with sudden change conditions of the route information so that the public route information is attached to actual conditions.
In a first aspect, an embodiment of the present application provides a method for information sharing, including:
acquiring at least one official route information uploaded by a first node, wherein the first node is contained in a blockchain network, and the blockchain network further comprises a second node and a service node;
broadcasting the at least one official route information in the blockchain network so that the first node, the second node or the service node negotiates the at least one official route information to obtain first route information after consensus;
Determining target route information according to the first route information and pre-stored route information in the blockchain network;
the target route information is shared in the blockchain network.
In a second aspect, an embodiment of the present application provides an information sharing apparatus, including:
a first obtaining unit, configured to obtain at least one official route information uploaded by a first node, where the first node is included in a blockchain network, and the blockchain network further includes a second node and a service node;
a broadcasting unit, configured to broadcast the at least one official route information acquired by the first acquiring unit in the blockchain network, so that the first node, the second node or the service node in the blockchain network negotiates the at least one official route information to obtain first route information after consensus;
a determining unit, configured to determine target route information according to the first route information obtained by the broadcasting unit and pre-stored route information in the blockchain network;
and the first sharing unit is used for sharing the target route information in the blockchain network.
In a first possible implementation manner of the second aspect of the embodiments of the present application, the determining unit includes:
The comparison module is used for comparing the first route information with the pre-stored route information;
the acquisition module is used for acquiring a time stamp corresponding to the at least one official route information when the comparison module determines that the first route information is different from the pre-stored route information, and each time stamp corresponds to one official route information;
and the determining module is used for determining the official route information corresponding to the timestamp closest to the current time as the target route information.
In a second possible implementation manner of the second aspect of the embodiment of the present application, the information sharing device further includes:
a second obtaining unit, configured to obtain, when the target route information shared by the first sharing unit changes, second route information uploaded by the second node, where the second route information includes a first route ID and a first identifier for identifying the second node;
and the second sharing unit is used for sharing the second route information acquired by the second acquisition unit in the blockchain network so that the second route information is used by the first node, the second node or the service node in the blockchain network.
In a third possible implementation manner of the second aspect of the embodiment of the present application, the information sharing device further includes:
a third obtaining unit, configured to obtain, when the target route information shared by the first sharing unit changes, third route information uploaded by the first node, where the third route information includes a second route ID and a validity period of the second route ID;
and a third sharing unit configured to share, in the blockchain network, the third route information acquired by the third acquiring unit when the validity period of the second route ID is in a valid state, so that the third route information is used by the first node, the second node, or the service node in the blockchain network.
In a fourth possible implementation manner of the second aspect of the embodiment of the present application, the information sharing device may further include:
and the deleting unit is used for deleting the third route information in the blockchain network and re-sharing the target route information into the blockchain network when the validity period of the second route ID is in an invalid state after the third sharing unit shares the third route information in the blockchain network.
In a third aspect, an embodiment of the present application provides a block node device, including:
comprising the following steps: input/output (I/O) interfaces, a processor and memory,
program instructions are stored in the memory;
the processor is configured to execute program instructions stored in the memory for implementing the method according to any one of the possible implementations of the first aspect and the first aspect.
A fourth aspect of the application provides a computer readable storage medium having stored therein computer executable instructions for performing a method as in any one of the possible implementations of the first aspect.
A fifth aspect of an embodiment of the application provides a computer program product comprising instructions which, when run on a computer or processor, cause the computer or processor to perform the method of any of the above aspects.
From the above technical solutions, the embodiment of the present application has the following advantages:
in the embodiment of the application, after the official route information uploaded by the first node is broadcasted in the blockchain network, each node in the blockchain network negotiates to obtain the first route information after consensus, so that the first route information and the pre-stored route information are determined into target route information, and the target route information is shared and used for coping with sudden change conditions of the route information, so that the public route information is jointed with actual conditions, and real-time sharing of the route information is realized.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a system architecture for information sharing in an embodiment of the present application;
FIG. 2 is a schematic diagram of one embodiment of a method of information sharing provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of another embodiment of a method of information sharing provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of another embodiment of a method of information sharing provided in an embodiment of the present application;
FIG. 5 is a block chain network diagram according to an embodiment of the present application;
FIG. 6 is a schematic diagram of another embodiment of a method for information sharing provided by an embodiment of the present application;
FIG. 7 is a schematic diagram of an embodiment of an information sharing apparatus provided in an embodiment of the present application;
FIG. 8 is a schematic diagram of another embodiment of an information sharing device provided in an embodiment of the present application;
FIG. 9 is a schematic diagram of another embodiment of an information sharing apparatus provided in an embodiment of the present application;
FIG. 10 is a schematic view of another embodiment of an information sharing apparatus provided in an embodiment of the present application;
fig. 11 is a schematic structural diagram of a block node device according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides an information sharing method, device, equipment and storage medium, which are used for realizing real-time sharing of route information and can cope with sudden change conditions of the route information so that the public route information is attached to actual conditions.
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The naming or numbering of the steps in the present application does not mean that the steps in the method flow must be executed according to the time/logic sequence indicated by the naming or numbering, and the execution sequence of the steps in the flow that are named or numbered may be changed according to the technical purpose to be achieved, so long as the same or similar technical effects can be achieved.
The following describes a system architecture adapted to an embodiment of the present application:
the method provided by the embodiment of the application is mainly applied to the scene of sharing the route information through the blockchain technology. For example, when a user queries route information, the user generally queries from a network which publishes route information, and at the moment, query requirements are sent to a background server of the network via a held user terminal, and the background server of the network acts as a third party, and if the background server at the moment has a fault and other factors, the queried information is easily fed back to the user; in addition, when errors occur between the actual route information and the information on the official network, if the route information on the official network is not updated, it is difficult to provide accurate and error-free route indication for the user.
Therefore, in order to solve the above-mentioned problems, an embodiment of the present application provides an information sharing method, which is applied to the information sharing system shown in fig. 1, please refer to fig. 1, which is a schematic diagram of a system architecture for information sharing in the embodiment of the present application. As shown in fig. 1, the system architecture may include a user terminal and a blockchain network.
The user terminal can be a pre-installed client, so that a user can inquire and search route information stored in the blockchain network on the human-computer interaction interface. It is understood that the user terminal in the present application includes, but is not limited to, a smart phone, a tablet computer, a wearable device, a desktop computer, or the like, in which the above client is installed.
It will be appreciated that the blockchain network may include a first node, a second node, and a service node, where there may be one or more of the first nodes, one or more of the second nodes, and the service node is mainly a node for providing route query and route change reminding services to the outside, such as: the queried route information is provided to the user. After the first node or the second node uploads the route information to the blockchain network, the blockchain network can be quickly transferred to other blockchain nodes in a second time period, so that each blockchain node can share the route information.
It may be understood that the first node of the present application may be a bus company node or a traffic department node, etc., and the second node may be a bus node of one or more lines, etc., which is not specifically limited in the embodiments of the present application.
It should be noted that, the network connecting the user terminal and the blockchain network, and the network between the first node, the second node and the service node in the blockchain network may be determined according to the network condition and the application requirement in the practical application process, and may be a wireless communication network, such as a mobile communication network or a wireless fidelity (wireless fidelity, wiFi) network, or may be a wired communication network; the network may be a wide area network, or a local area network, where the situation allows, and the embodiment of the present application is not particularly limited.
The method for sharing information in this embodiment may be applicable to other system architectures besides the system architecture shown in fig. 1, and is not limited herein.
In order to better understand the solution proposed by the embodiment of the present application, a specific flow in this embodiment is described below, referring to fig. 2, which is a schematic diagram of an embodiment of a method for sharing information provided in the embodiment of the present application, where the method includes:
201. at least one official route information uploaded by a first node is obtained, the first node being comprised in a blockchain network.
In this embodiment, the described official route information is recorded by the first node, and the recorded route information is signed by using the private key, and the official route information is usually published by the first node after verification with the actual condition, so that the source of the route information is official, and certain reliability is ensured. The route information may include a time stamp, at least one approach stop information, a point of time corresponding to each approach stop information, a city identification number (ID), a bus license plate number or a running route code of a bus, and the like.
It is to be appreciated that the blockchain network may include a second node and a serving node in addition to the first node.
202. Broadcasting at least one official route information in the blockchain network so that the first node, the second node or the service node negotiates the at least one official route information to obtain first route information after consensus.
In this embodiment, since the blockchain network includes the first node, the second node and the service node, after at least one official route information is obtained, the official route information can be broadcasted to each blockchain node, so that the first node, the second node or the service node in the blockchain network can all learn at least one official route information, and the first node, the second node and the service node can respectively compare the at least one official route information with the information stored in each of the first node, the second node and the service node, select the most approved route information and send the most approved route information to the blockchain network, and form the agreed consensus in a few and most compliant manners, so as to obtain the first route information after the consensus.
203. And determining target route information according to the first route information and the pre-stored route information in the blockchain network.
In this embodiment, even if the first route information is obtained by commonly identifying each node in the blockchain network, there is a possibility that the commonly identified first route information has an error with the actual route information, so that the first route information needs to be further matched with the pre-stored route information in the blockchain network to determine the target route information according to the determined result.
Alternatively, in some embodiments, the target route information may be determined specifically as follows:
comparing the first route information with the pre-stored route information; if the first route information is different from the pre-stored route information, acquiring a time stamp corresponding to the at least one official route information, wherein each time stamp corresponds to one official route information; the official route information corresponding to the time stamp closest to the current time is determined as the target route information.
That is, it is understood that since each official route information carries a corresponding time stamp when uploaded by the first node and the official route information corresponding to each time stamp is different, when it is judged that the first route information is inconsistent with the pre-stored route information, the latest issued official route information can be determined by the time stamp, that is, the official route information corresponding to the time stamp closest to the current time is determined to be the latest issued official route information, so that the target route information can be determined. In addition, it should be noted that if the first route information is determined to be consistent with the pre-stored route information, the first route information may be stored, or the original pre-stored route information may be continuously stored.
204. Target route information is shared in the blockchain network.
In this embodiment, after the target route information is obtained, sharing may be performed in the blockchain network, so that the first node, the second node and the service node can all store a piece of the target route information, for example: after sharing the target route information, the service node can issue the target route information to the user when the user inquires according to the requirement, thereby realizing real-time sharing of the route information.
Therefore, after the official route information uploaded by the first node is broadcasted in the blockchain network, each node in the blockchain network negotiates to obtain the first route information after the consensus, so that the first route information and the pre-stored route information are used for determining the target route information and sharing the target route information, sudden change situations of the route information can be dealt with, the public route information is attached to the actual situation, and real-time sharing of the route information is realized.
On the basis of the description of fig. 2, if after the target route information is shared, the route information may be continuously uploaded by the first node or may be uploaded by the second node when the target route information changes due to an emergency or a failure to issue in time, the information sharing scheme provided by the embodiments of the present application may be understood in detail with reference to fig. 3 and 4 below, respectively.
In order to better understand the solution proposed by the embodiment of the present application, a specific flow in this embodiment will be described below by uploading route information from a second node, as shown in fig. 3, and another embodiment of a method for information sharing provided by the embodiment of the present application is shown schematically, where the method includes:
301. at least one official route information uploaded by a first node is obtained, the first node being comprised in a blockchain network.
302. Broadcasting at least one official route information in the blockchain network so that the first node, the second node or the service node negotiates the at least one official route information to obtain first route information after consensus.
303. And determining target route information according to the first route information and the pre-stored route information in the blockchain network.
304. Target route information is shared in the blockchain network.
Steps 301 to 304 in this embodiment may be understood by referring to steps 201 to 204, and detailed descriptions thereof are omitted here.
305. And when the target route information changes, acquiring second route information uploaded by the second node, wherein the second route information comprises a first route ID and a first identifier for identifying the second node.
In this embodiment, when the problems such as untimely uploading of the official route information by the first node occur, the target route information determined by the official route information is changed, so that the second node is required to upload the route information actually operated to update the route information in the whole blockchain network, so as to realize real-time sharing of the route information most closely attached to the actually operated.
It should be appreciated that the second route information may include a first route ID and a first identification for identifying the second node. The first route ID refers to details of actually running route information recorded when the second node passes through the stop after the target route information is changed, for example: station 1 and the time point when station 1 was reached, station 2 and the time point when station 2 was reached, station 3 and the time point when station 3 was reached, …, endpoint and the time point when endpoint was reached, run line code, departure time information, and the like. And the first identifier is mainly used for identifying the second node, such as: license plate number of the second node, etc.
306. Second route information is shared in the blockchain network.
In this embodiment, since the second route information is obtained by recording, by the second node, the second route information after the change of the target route information according to the actual running route condition, the second route information may be shared in the blockchain network, so that the first node, the second node and the service node in the blockchain network may compare the second route information with the respective stored route information, and if the second route information is found to be most attached to the actual running route condition, a copy of the second route information may be saved, and the originally saved target route information may be updated to the second route information. Such as: after sharing the second route information, the service node can issue the second route information to the user when the user inquires according to the requirement, and inform the user of the license plate number of the specific second node, the specific time point, the site and the like.
Therefore, the method and the device not only realize real-time sharing of the route information, but also can provide accurate route information which is most fit with the actual situation.
The foregoing fig. 3 mainly illustrates that the second node uploads the route information after the target route information is sent and changed, and the following will illustrate that the first node uploads the route information after the target route information is sent and changed, as shown in fig. 4, another embodiment of the method for information sharing provided by the embodiment of the present application is shown, where the method includes:
401. at least one official route information uploaded by a first node is obtained, the first node being comprised in a blockchain network.
402. Broadcasting at least one official route information in the blockchain network so that the first node, the second node or the service node negotiates the at least one official route information to obtain first route information after consensus.
403. And determining target route information according to the first route information and the pre-stored route information in the blockchain network.
404. Target route information is shared in the blockchain network.
Steps 401 to 404 in this embodiment can be understood with reference to steps 201 to 204, and detailed descriptions thereof are omitted here.
405. And when the target route information changes, acquiring third route information uploaded by the first node, wherein the third route information comprises a second route ID and the validity period of the second route ID.
In this embodiment, when the official route information uploaded by the first node needs to be rerouted due to an emergency such as a major traffic accident, the temporary route information is still uploaded by the first node with the official property, that is, the third route information is uploaded to the blockchain network, so that the route information in the blockchain network is temporarily updated by using the temporary third route information, so as to realize real-time sharing of the route information.
It should be understood that the third route information may include a second route ID and a validity period of the second route ID. The second route ID refers to temporary driving route information issued by the first node after the target route information is changed, and may include: at least one routing site and a point in time for each routing site, a license plate number of the second node, a run line code of the second node, and so forth. In addition, since the third route information is a new route which is released temporarily due to an emergency, it is also necessary to configure a corresponding validity period for the second route ID so that traveling according to the newly released third route information can be performed within the validity period.
406. And when the validity period of the second route ID is in a valid state, sharing third route information in the blockchain network.
In this embodiment, if the validity period of the second route ID is still in the valid state, that is, if the validity period is not expired, the third route information is shared in the blockchain network, so that the first node, the second node and the service node in the blockchain network can use the third route information. Of course, the first node, the second node and the service node also compare with the respective stored route information, and if the third route information is found to be issued temporarily by the first node, a part of the third route information is also saved, and the originally saved target route information is updated to the third route information. Such as: after sharing the third route information, the service node can issue the third route information to the user when the user inquires according to the requirement, and inform the user of the license plate number of the second node, specific time points, sites and the like when encountering emergency; the second node can also inform the driver of the need of operating the vehicle according to the third route information by sending out a prompt tone or vibration and the like after receiving the third route information.
Therefore, the method and the device not only realize real-time sharing of the route information, but also can provide the most accurate route information when the route information is changed.
It should be appreciated that in other embodiments, after sharing the third route information in the blockchain network when the validity period of the second route ID is in the valid state, the method may further include: and deleting the third route information in the blockchain network and re-sharing the target route information into the blockchain network when the validity period of the second route ID is in an invalid state. That is, if the validity period of the second route ID expires, that is, it indicates that the emergency situation has been processed, the emergency situation can operate normally according to the original route information, that is, the target route information, so that the third route information needs to be deleted in the blockchain network, so as to avoid that the second node or the service node continues to use the expired third route information, and the user or the driver is disturbed by mistake. Of course, after the third route information expires, the driver needs to be informed of the restoration of the original target route information to operate the vehicle by emitting a warning tone or vibration or the like.
The method for sharing information provided by the application is described below through a specific application scenario example. Referring to fig. 5, fig. 5 is a schematic diagram of a blockchain network according to an embodiment of the present application. In fig. 5, any bus can be used as a block link point to access a block chain network, a bus company and a traffic department can also be used as block link points to access a block chain network, each bus, bus company or traffic department can upload route information to its corresponding block chain node, that is, bus 1 and bus 2 upload route information to corresponding bus node 1 and bus node 2, bus company uploads route information to bus company node, traffic department uploads route information to traffic department node and the like, and meanwhile, each block link point shares the uploaded route information to other nodes, thereby realizing the whole network sharing storage of route information. It should be noted that the number of bus nodes should be determined according to circumstances, and for example, the bus node 3 may be further included, and the like, and the specific application is not limited herein.
Referring to fig. 6, fig. 6 is a schematic diagram of another embodiment of the method for sharing information according to the embodiment of the present application. The information sharing method shown in fig. 6 may include the steps of:
601. at least one official route information uploaded by the traffic department node is obtained.
In this embodiment, the described official route information may be recorded by a traffic department node, and the recorded route information is signed by using a private key, and the official route information is usually published after the traffic department node verifies with the actual situation, which ensures that the source of the route information is official and has a certain reliability. The route information may include a time stamp, at least one approach stop information, a point of time corresponding to each approach stop information, a city ID, a bus license plate number or a running route code of a bus, and the like.
602. Broadcasting at least one official route information in the blockchain network so that the traffic department node, the bus node or the service node negotiates the at least one official route information to obtain first route information after consensus.
In this embodiment, since the blockchain network includes traffic department nodes, bus nodes and service nodes, after at least one official route information is obtained, the traffic department nodes, bus nodes or service nodes in the blockchain network can all learn at least one official route information by broadcasting the obtained official route information and then compare the at least one official route information with the information stored in the corresponding blockchain network, and select the most acceptable route information to send to the blockchain network, so as to form a negotiated consensus in a few and most compliant manners, thereby obtaining the first consensus route information.
603. And determining target route information according to the first route information and the pre-stored route information in the blockchain network.
In this embodiment, even if the first route information is obtained by commonly identifying each node in the blockchain network, there is a possibility that the commonly identified first route information has an error with the actual route information, so that the first route information needs to be further matched with the pre-stored route information in the blockchain network to determine the target route information according to the determined result.
604. Target route information is shared in the blockchain network.
In this embodiment, after the target route information is obtained, sharing may be performed in the blockchain network, so that the traffic department node, the bus node and the service node may all store one piece of the target route information, for example: after sharing the target route information, the service node can issue the target route information to the user when the user inquires according to the requirement, thereby realizing real-time sharing of the route information.
605. And when the target route information changes, acquiring second route information uploaded by the bus node, wherein the second route information comprises a first route ID and a first identifier for identifying the bus node.
In this embodiment, when the problems such as untimely uploading of the official route information by the traffic department node occur, the target route information determined by the official route information is changed, so that the bus node is required to upload the route information actually operated to update the route information in the whole blockchain network, so as to realize real-time sharing of the route information most closely attached to the actually operated.
It should be appreciated that the second route information may include a first route ID and a first identification for identifying a bus node. The first route ID refers to details of actually running route information recorded when the bus node passes through the stop after the target route information is changed, for example: station 1 and the time point when station 1 was reached, station 2 and the time point when station 2 was reached, station 3 and the time point when station 3 was reached, …, endpoint and the time point when endpoint was reached, run line code, departure time information, and the like. And the first identifier is mainly used for identifying the bus node, for example: license plate number of bus node, etc.
606. Second route information is shared in the blockchain network.
In this embodiment, since the second route information is obtained by recording the second route information according to the actual running route condition by the bus node after the change of the target route information, the second route information may be shared into the blockchain network, so that the traffic department node, the bus node and the service node in the blockchain network may compare the second route information with the respective stored route information, and if the second route information is found to be most attached to the actual running route condition, a copy of the second route information may be saved, and the originally saved target route information may be updated to the second route information. Such as: after sharing the second route information, the service node can issue the second route information to the user when the user inquires according to the requirement, and inform the user of the license plate number of a specific bus node, the specific time point, the site and the like.
Therefore, the method and the device not only realize real-time sharing of the route information, but also can provide accurate route information which is most fit with the actual situation.
The scheme provided by the embodiment of the application is mainly described from the interaction point of view. It should be understood that, in order to implement the above-described functions, hardware structures and/or software modules corresponding to the respective functions are included. Those of skill in the art will readily appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application can divide the functional modules of the device according to the method example, for example, each functional module can be divided corresponding to each function, and two or more functions can be integrated in one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present application, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
Referring to fig. 7, fig. 7 is a schematic diagram of an embodiment of an information sharing device according to an embodiment of the present application, where the information sharing device may include:
a first obtaining unit 701, configured to obtain at least one official route information uploaded by a first node, where the first node is included in a blockchain network, and the blockchain network further includes a second node and a service node;
a broadcasting unit 702, configured to broadcast the at least one official route information acquired by the first acquiring unit 701 in the blockchain network, so that the first node, the second node, or the service node negotiates the at least one official route information to obtain first route information after consensus;
A determining unit 703, configured to determine target route information according to the first route information obtained by the broadcasting unit 702 and pre-stored route information in the blockchain network;
a first sharing unit 704, configured to share the target route information determined by the determining unit 703 in the blockchain network.
Optionally, on the basis of the embodiment corresponding to fig. 7, referring to fig. 8, in another embodiment of the information sharing device provided in the embodiment of the present application, the determining unit 703 includes:
a comparison module 7031, configured to compare the first route information with the pre-stored route information;
a first obtaining module 7032, configured to obtain, when the comparison module 7031 determines that the first route information is different from the pre-stored route information, a timestamp corresponding to the at least one official route information, where each timestamp corresponds to one official route information;
a determining module 7033 is configured to determine, as the target route information, official route information corresponding to a time stamp closest to the current time.
Optionally, on the basis of the embodiment corresponding to fig. 7 or fig. 8, referring to fig. 9, in another embodiment of the information sharing device provided in the embodiment of the present application, the information sharing device further includes:
A second obtaining unit 705, configured to obtain, when the target route information shared by the first sharing unit 704 changes, second route information uploaded by the second node, where the second route information includes a first route ID and a first identifier for identifying the second node;
a second sharing unit 706, configured to share the second route information acquired by the second acquiring unit 705 in the blockchain network, so that the second route information is used by the first node, the second node, or the service node in the blockchain network.
Optionally, on the basis of the embodiment corresponding to fig. 7 or fig. 8, referring to fig. 10, in another embodiment of the information sharing device provided in the embodiment of the present application, the information sharing device further includes:
a third obtaining unit 707, configured to obtain, when the target route information shared by the first sharing unit 704 changes, third route information uploaded by the first node, where the third route information includes a second route ID and a validity period of the second route ID;
a third sharing unit 708 configured to share, in the blockchain network, the third route information acquired by the third acquiring unit 707 when the validity period of the second route ID is in a valid state, so that the third route information is used by the first node, the second node, or the service node in the blockchain network.
Optionally, on the basis of the embodiment corresponding to fig. 10, in another embodiment of the information sharing device provided by the embodiment of the present application, the information sharing device may further include: and a deleting unit configured to delete the third route information in the blockchain network and re-share the target route information into the blockchain network when the validity period of the second route ID is in an invalid state after the third sharing unit 708 shares the third route information in the blockchain network.
Therefore, after the official route information uploaded by the first node is broadcasted in the blockchain network through the broadcasting unit 702, each node in the blockchain network negotiates to obtain the first route information after consensus, so that the determining unit 703 determines the target route information from the first route information and the pre-stored route information, and the first sharing unit 704 shares the target route information, so that the sudden change situation of the route information can be dealt with, the public route information fits the actual situation, and the real-time sharing of the route information is realized.
The information sharing apparatus in the embodiment of the present application is described above from the viewpoint of a modularized functional entity, and the information sharing apparatus in the embodiment of the present application is described below from the viewpoint of hardware processing. Fig. 11 is a schematic structural diagram of a block node device according to an embodiment of the present application, where the block node device may include the above-described information sharing apparatus, and the block node device may have a relatively large difference due to different configurations or performances, and may include at least one processor 801, a communication line 807, a memory 803, and at least one communication interface 804.
The processor 801 may be a general purpose central processing unit (central processing unit, CPU), microprocessor, application-specific integrated circuit (server IC), or one or more integrated circuits for controlling the execution of programs in accordance with aspects of the present application.
Communication line 807 may include a pathway to transfer information between the aforementioned components.
Communication interface 804, using any transceiver-like device for communicating with other devices or communication networks, such as ethernet, radio access network (radio access network, RAN), wireless local area network (wireless local area networks, WLAN), etc.
The memory 803 may be a read-only memory (ROM) or other type of static storage device that may store static information and instructions, a random access memory (random access memory, RAM) or other type of dynamic storage device that may store information and instructions, and the memory may be stand-alone and coupled to the processor via a communication line 807. The memory may also be integrated with the processor.
The memory 803 is used for storing computer-executable instructions for performing the aspects of the present application, and is controlled by the processor 801 for execution. The processor 801 is configured to execute computer-executable instructions stored in the memory 803, thereby implementing the method for sharing information provided by the above-described embodiment of the present application.
Alternatively, the computer-executable instructions in the embodiments of the present application may be referred to as application program codes, which are not particularly limited in the embodiments of the present application.
In a specific implementation, the block node device may include multiple processors, such as processor 801 and processor 802 in fig. 11, as an embodiment. Each of these processors may be a single-core (single-CPU) processor or may be a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In a specific implementation, as an embodiment, the block node device may further include an output device 805 and an input device 806. The output device 805 communicates with the processor 801 and can display information in a variety of ways. The input device 806 is in communication with the processor 801 and may receive input from a user in a variety of ways. For example, the input device 806 may be a mouse, a touch screen device, a sensing device, or the like.
The block node device may be a general-purpose device or a special-purpose device. In a specific implementation, the block node device may be a desktop, a laptop, a nas server, a wireless terminal device, an embedded device, or a device having a similar structure as in fig. 11. The embodiment of the application is not limited to the type of the block node equipment.
In the embodiment of the present application, the processor 801 included in the block node device further has the following functions:
acquiring at least one official route information uploaded by a first node, wherein the first node is contained in a blockchain network, and the blockchain network further comprises a second node and a service node;
broadcasting the at least one official route information in the blockchain network so that the first node, the second node or the service node negotiates the at least one official route information to obtain first route information after consensus;
determining target route information according to the first route information and pre-stored route information in the blockchain network;
the target route information is shared in the blockchain network.
In some embodiments of the application, the processor 801 may also be specifically configured to,
comparing the first route information with the pre-stored route information;
if the first route information is different from the pre-stored route information, acquiring a time stamp corresponding to the at least one official route information, wherein each time stamp corresponds to one official route information;
the official route information corresponding to the time stamp closest to the current time is determined as the target route information.
In some embodiments of the application, the processor 801 may also be specifically configured to,
after the target route information is shared in the blockchain network, when the target route information changes, obtaining second route information uploaded by the second node, wherein the second route information comprises a first route ID and a first identifier for identifying the second node;
the second route information is shared in the blockchain network such that the second route information is used by the first node, the second node, or the serving node in the blockchain network.
In some embodiments of the application, the processor 801 may also be specifically configured to,
after the target route information is shared in the blockchain network, when the target route information changes, acquiring third route information uploaded by the first node, wherein the third route information comprises a second route ID and a valid period of the second route ID;
and when the validity period of the second route ID is in a valid state, sharing the third route information in the blockchain network so that the third route information is used by the first node, the second node or the service node in the blockchain network.
In some embodiments of the present application, the processor 801 may be further specifically configured to delete the third route information in the blockchain network and re-share the target route information into the blockchain network when the validity period of the second route ID is in an invalid state after sharing the third route information in the blockchain network.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of elements is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A method of information sharing, the method comprising:
acquiring at least one official route information uploaded by a first node, wherein the first node is contained in a blockchain network, the blockchain network further comprises a second node and a service node, the first node is a bus company node or a traffic department node, and the second node is a bus node of one or more routes;
broadcasting the at least one official route information in the blockchain network so that the first node, the second node and the service node negotiate the at least one official route information to obtain first route information after consensus;
Determining target route information according to the first route information and pre-stored route information in the blockchain network, wherein the target route information comprises: comparing the first route information with the pre-stored route information; if the first route information is different from the pre-stored route information, acquiring a time stamp corresponding to the at least one official route information, wherein each time stamp corresponds to one official route information; determining official route information corresponding to a time stamp closest to the current time as target route information;
the target route information is shared in the blockchain network.
2. The method of claim 1, wherein after sharing the target route information in the blockchain network, the method further comprises:
when the target route information changes, acquiring second route information uploaded by the second node, wherein the second route information comprises a first route ID and a first identifier for identifying the second node;
the second route information is shared in the blockchain network such that the second route information is used by the first node, the second node, or the serving node in the blockchain network.
3. The method of claim 1, wherein after sharing the target route information in the blockchain network, the method further comprises:
when the target route information changes, acquiring third route information uploaded by the first node, wherein the third route information comprises a second route ID and an effective period of the second route ID;
and when the validity period of the second route ID is in a valid state, sharing the third route information in the blockchain network so that the third route information is used by the first node, the second node or the service node in the blockchain network.
4. The method of claim 3, wherein after sharing the third route information in the blockchain network, the method further comprises:
and deleting the third route information in the blockchain network and re-sharing the target route information into the blockchain network when the validity period of the second route ID is in an invalid state.
5. An information sharing apparatus, characterized in that the information sharing apparatus includes:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring at least one official route information uploaded by a first node, the first node is contained in a blockchain network, the blockchain network further comprises a second node and a service node, the first node is a bus company node or a traffic department node, and the second node is a bus node of one or more routes;
A broadcasting unit, configured to broadcast the at least one official route information acquired by the first acquiring unit in the blockchain network, so that the first node, the second node and the service node in the blockchain network negotiate the at least one official route information to obtain first route information after consensus;
a determining unit, configured to determine target route information according to the first route information obtained by the broadcasting unit and pre-stored route information in the blockchain network;
a first sharing unit configured to share the target route information in the blockchain network;
wherein the determining unit includes:
the comparison module is used for comparing the first route information with the pre-stored route information;
the acquisition module is used for acquiring a time stamp corresponding to the at least one official route information when the comparison module determines that the first route information is different from the pre-stored route information, and each time stamp corresponds to one official route information;
and the determining module is used for determining the official route information corresponding to the timestamp closest to the current time as the target route information.
6. The information sharing apparatus according to claim 5, wherein the information sharing apparatus further comprises:
a second obtaining unit, configured to obtain, when the target route information shared by the first sharing unit changes, second route information uploaded by the second node, where the second route information includes a first route ID and a first identifier for identifying the second node;
and the second sharing unit is used for sharing the second route information acquired by the second acquisition unit in the blockchain network so that the second route information is used by the first node, the second node or the service node in the blockchain network.
7. The information sharing apparatus according to claim 5, wherein the information sharing apparatus further comprises:
a third obtaining unit, configured to obtain, when the target route information changes, third route information uploaded by the first node, where the third route information includes a second route ID and a validity period of the second route ID;
and a third sharing unit configured to share the third route information in the blockchain network when the validity period of the second route ID is in a valid state, so that the third route information is used by the first node, the second node, or the service node in the blockchain network.
8. The information sharing apparatus according to claim 7, wherein the information sharing apparatus further comprises:
and the deleting unit is used for deleting the third route information in the blockchain network and re-sharing the target route information into the blockchain network when the validity period of the second route ID is in an invalid state.
9. A block node device, the block node device comprising: input/output (I/O) interfaces, a processor and memory,
program instructions are stored in the memory;
the processor is configured to execute program instructions stored in a memory and to perform the method of any one of claims 1 to 4.
10. A computer readable storage medium comprising instructions which, when run on a block node device, cause the block node device to perform the method of any of claims 1 to 4.
CN201910764786.7A 2019-08-19 2019-08-19 Information sharing method, device, equipment and storage medium Active CN110472001B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910764786.7A CN110472001B (en) 2019-08-19 2019-08-19 Information sharing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910764786.7A CN110472001B (en) 2019-08-19 2019-08-19 Information sharing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110472001A CN110472001A (en) 2019-11-19
CN110472001B true CN110472001B (en) 2023-10-13

Family

ID=68511104

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910764786.7A Active CN110472001B (en) 2019-08-19 2019-08-19 Information sharing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110472001B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103364002A (en) * 2012-03-30 2013-10-23 北京掌城科技有限公司 Route planning system and method combining real-time road conditions and public transport operation information
CN108234611A (en) * 2017-12-22 2018-06-29 中国联合网络通信集团有限公司 traffic information sharing method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10762479B2 (en) * 2017-04-05 2020-09-01 Samsung Sds Co., Ltd. Method and system for processing blockchain-based real-time transaction

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103364002A (en) * 2012-03-30 2013-10-23 北京掌城科技有限公司 Route planning system and method combining real-time road conditions and public transport operation information
CN108234611A (en) * 2017-12-22 2018-06-29 中国联合网络通信集团有限公司 traffic information sharing method and system

Also Published As

Publication number Publication date
CN110472001A (en) 2019-11-19

Similar Documents

Publication Publication Date Title
CN107819829B (en) Method and system for accessing block chain, block chain node point equipment and user terminal
CN107295080B (en) Data storage method applied to distributed server cluster and server
JP7095094B2 (en) Distributed processing systems and methods for providing location-based services
CN110311983B (en) Service request processing method, device and system, electronic equipment and storage medium
CN109522363B (en) Cloud platform synchronization method, system, equipment and storage medium based on block chain
CN111399756B (en) Data storage method, data downloading method and device
JP2021531703A (en) Vehicle to Everything Communication Solution
CN104636437A (en) Event notification method and device and monitor processing method
CN109951508B (en) Zookeeper-based request coordination method and device, computer equipment and storage medium
WO2014018813A1 (en) A distributed aggregation of real-time metrics for large scale distributed systems
CN110472001B (en) Information sharing method, device, equipment and storage medium
US20210084464A1 (en) In-vehicle control device, information processing device, vehicle network system, method of providing application program, and recording medium with program recorded thereon
US11357020B2 (en) Connecting computer processing systems and transmitting data
US11290575B2 (en) Connecting computer processing systems and transmitting data
US11838207B2 (en) Systems for session-based routing
CN113448770A (en) Method, electronic device and computer program product for recovering data
CN104956420A (en) Wristwatch notification for late trains
CN111177260A (en) Database remote copying method and device and electronic equipment
EP2928105A2 (en) Content delivery architecture
CN111818116B (en) Method, apparatus, vehicle and computer readable medium for correcting vehicle position
KR20180067431A (en) Method of providing video of black box and apparatuses performing the same
CN114090687A (en) Data synchronization method and device
US10410497B1 (en) Anonymous notification and intervention of users requiring assistance
CN108429723B (en) Access control method and device
CN113287102A (en) Providing resilient application programming interfaces for geographic services

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
GR01 Patent grant
GR01 Patent grant