CN110472001A - A kind of method, apparatus of information sharing, equipment and storage medium - Google Patents

A kind of method, apparatus of information sharing, equipment and storage medium Download PDF

Info

Publication number
CN110472001A
CN110472001A CN201910764786.7A CN201910764786A CN110472001A CN 110472001 A CN110472001 A CN 110472001A CN 201910764786 A CN201910764786 A CN 201910764786A CN 110472001 A CN110472001 A CN 110472001A
Authority
CN
China
Prior art keywords
route information
node
block chain
information
chain network
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.)
Granted
Application number
CN201910764786.7A
Other languages
Chinese (zh)
Other versions
CN110472001B (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/00Information and communication technology [ICT] specially adapted for implementation of business processes of 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • General Health & Medical Sciences (AREA)
  • Development Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Remote Sensing (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This application discloses a kind of information sharing method, device, equipment and storage mediums, in this scenario, the whole network for realizing route information using block chain network is shared, while ensure that when emergency case occurs, the route information that institute's publicity goes out is bonded actual conditions, provides accurate route information.The method of the information sharing includes: at least one the official's route information for obtaining first node and uploading, and first node is contained in block chain network, and block chain network further includes second node and service node;At least one official's route information is broadcasted in block chain network, so that first node, second node or service node hold consultation at least one official's route information, the first route information after being known together;Target route information is determined according to the route information that prestores in the first route information and block chain network;Target route information is shared in block chain network.

Description

A kind of method, apparatus of information sharing, equipment and storage medium
Technical field
The invention relates to block chain technical fields, and in particular to a kind of method, apparatus of information sharing, equipment with And storage medium.
Background technique
Currently, route information for bus or just pasting bulletin in the station board of bus platform or just in public affairs It is issued on the official website of friendship system.
If being updated on station board or official website however, route information is changed and just easilying lead to route information not in time Inaccuracy, and the change of real-time routes caused by emergency case cannot be coped in real time.
Summary of the invention
The embodiment of the present application provides the method, apparatus, equipment and storage medium of a kind of information sharing, for realizing reality When shared route information, and the sudden change situation of route information is coped with, so that the route information fitting that institute's publicity goes out Actual conditions.
In a first aspect, the embodiment of the present application provides a kind of method of information sharing, comprising:
At least one official's route information that first node uploads is obtained, the first node is contained in block chain network In, the block chain network further includes second node and service node;
At least one described official's route information is broadcasted in the block chain network, so that the first node, described Second node or the service node hold consultation at least one described official's route information, the first route after being known together Information;
Target route information is determined according to the route information that prestores in first route information and the block chain network;
The target route information is shared in the block chain network.
Second aspect, the embodiment of the present application provide a kind of information sharing apparatus, comprising:
First acquisition unit, for obtaining at least one official's route information of first node upload, the first node It is contained in block chain network, the block chain network further includes second node and service node;
Radio unit, for broadcasted in the block chain network first acquisition unit get described at least one A official's route information, so that the first node, the second node or the service node in the block chain network It holds consultation at least one described official's route information, the first route information after being known together;
In determination unit, first route information for being obtained according to the radio unit and the block chain network The route information that prestores determine target route information;
First shared cell, for sharing the target route information in the block chain network.
In a kind of possible design, in the first possible implementation of the second aspect of the embodiment of the present application, institute State determination unit, comprising:
Comparison module, for first route information to be compared with the route information that prestores;
Module is obtained, for determining that first route information prestores route information not with described in the comparison module When identical, timestamp corresponding at least one described official's route information, the corresponding official road of each timestamp are obtained Line information;
Determining module, for target will to be determined as with official's route information corresponding to the immediate timestamp of current time Route information.
In a kind of possible design, in second of possible implementation of the second aspect of the embodiment of the present application, institute State information sharing apparatus further include:
Second acquisition unit, when the target route information for sharing in first shared cell changes, The second route information that the second node uploads is obtained, second route information is including the first route ID and for identifying State the first identifier of second node;
Second shared cell, described got for sharing the second acquisition unit in the block chain network Two route informations, so that second route information is by the first node, the second node in the block chain network Or the service node uses.
In a kind of possible design, in the third possible implementation of the second aspect of the embodiment of the present application, institute State information sharing apparatus further include:
Third acquiring unit, when the target route information for sharing in first shared cell changes, The third route information that the first node uploads is obtained, the third route information includes the second route ID and described second The validity period of route ID;
Third shared cell, for when the validity period of the second route ID being in effective status, in the block chain The third route information that the third acquiring unit obtains is shared in network, so that the third route information is by the area The first node, the second node or the service node in block chain network use.
In a kind of possible design, in the 4th kind of possible implementation of the second aspect of the embodiment of the present application, letter Ceasing sharing means can also include:
Unit is deleted, shares the third route letter in the block chain network for sharing in the third shared cell After breath, when the validity period of the second route ID being in invalid state, the third is deleted in the block chain network Route information, and the target route information is shared again into the block chain network.
The third aspect, the embodiment of the present application provide a kind of block node device, which includes:
It include: input/output (I/O) interface, processor and memory,
Program instruction is stored in the memory;
The processor is for executing the program instruction stored in memory, for realizing such as above-mentioned first aspect, the On the one hand the method for any one possible implementation.
The application fourth aspect provides a kind of computer readable storage medium, and meter is stored in computer readable storage medium Calculation machine executable instruction, any one can the side of being able to achieve for executing such as first aspect, first aspect for computer executable instructions The method of formula.
5th aspect of the embodiment of the present application provides a kind of computer program product comprising instruction, when it is in computer Or when being run on processor, so that the method that computer or processor execute any of the above-described aspect.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
In the embodiment of the present application, broadcasted in block chain network by the official's route information uploaded to first node Afterwards, so that each node in the block chain network negotiates the first route information after being known together, thus by first route It information and prestores route information and determines target route information, and share the target route information, for coping with route information Sudden change situation realizes Real-Time Sharing route information so that the route information that institute's publicity goes out is bonded actual conditions.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a system architecture schematic diagram of information sharing in the embodiment of the present application;
Fig. 2 is one embodiment schematic diagram of the method for the information sharing provided in the embodiment of the present application;
Fig. 3 is another embodiment schematic diagram of the method for the information sharing provided in the embodiment of the present application;
Fig. 4 is another embodiment schematic diagram of the method for the information sharing provided in the embodiment of the present application;
Fig. 5 is a kind of block chain network schematic diagram provided by the embodiments of the present application;
Fig. 6 is another embodiment schematic diagram of the method for information sharing provided by the embodiments of the present application;
Fig. 7 is the information sharing apparatus one embodiment schematic diagram provided in the embodiment of the present application;
Fig. 8 is information sharing apparatus another embodiment schematic diagram provided in the embodiment of the present application;
Fig. 9 is information sharing apparatus another embodiment schematic diagram provided in the embodiment of the present application;
Figure 10 is information sharing apparatus another embodiment schematic diagram provided in the embodiment of the present application;
Figure 11 is the structural schematic diagram of block node device provided by the embodiments of the present application.
Specific embodiment
The embodiment of the present application provides the method, apparatus, equipment and storage medium of a kind of information sharing, for realizing reality When shared route information, and the sudden change situation of route information is coped with, so that the route information fitting that institute's publicity goes out Actual conditions.
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that the described embodiments are only a part but not all of the embodiments of the present application.Based on this Embodiment in application, every other reality obtained by those of ordinary skill in the art without making creative efforts Example is applied, shall fall in the protection scope of this application.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so as to embodiments herein described herein can in addition to Here the sequence other than those of diagram or description is implemented.In addition, term " includes " and " having " and their any deformation, Be intended to cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, product or setting It is standby those of to be not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for these mistakes The intrinsic other step or units of journey, method, product or equipment.The name or volume that step is carried out occurred in this application Number, it is not meant to that the step in method flow must be executed according to the indicated time/logic sequencing of name or number Suddenly, named or number process step can change execution order according to the technical purpose to be realized, as long as can reach Identical or similar technical effect.
The system architecture adapted to below the embodiment of the present application is introduced:
The method that the embodiment of the present application is proposed is mainly used in the scene by block chain Techno-sharing route information.Example Such as, user is in enquiring route information, can generally be inquired from the official website for announcing route information at present, at this time will be via The user terminal held sends query demand to the background server of official website, and the background server of official website acts as third party at this time Effect, if background server at this time is due to the appearance for the factors such as break down, it is easy to lead to inquired information not User can be fed back to well;In addition, the route letter when the information against errors in actual path information and official website, on official website If breath has little time to update, it is also difficult to provide the user with accurate and errorless route instruction.
Therefore, to solve the problem above-mentioned, the embodiment of the present application provides a kind of method of information sharing, and this method is applied to The system of information sharing shown in FIG. 1, referring to Fig. 1, for the system architecture signal of information sharing in the embodiment of the present application Figure.As shown in Figure 1, the system architecture may include user terminal and block chain network.
Wherein, user terminal can be preassembled client, user is inquired on human-computer interaction interface, The route information stored in search block chain network.It is understood that the user terminal in the application includes but is not limited to pacify Smart phone, tablet computer, wearable device or the desktop computer etc. of above-mentioned client are filled.
It is understood that block chain network may include first node, second node and service node, wherein for The number of first node can also have one or more, and the number of second node can also have one or more, service node master If for externally providing route inquiry, the node of service is reminded in route change, such as: providing a user the route information of inquiry. After first node or second node, which upload route information, arrives the block chain network, which can be in time second grade Other block chain nodes are quickly transferred in section, each block chain node is allowed to share the route information.
It is understood that the first node of the application can be public transport company's node or traffic department's node etc., second Node can be bus node of one or more routes etc., be not specifically limited in the embodiment of the present application.
It should be noted that the network and the first segment in block chain network of connection user terminal and block chain network Network between point, second node and service node, can according in actual application Network status and application demand come It determines, either cordless communication network, such as mobile communications network or Wireless Fidelity (wireless fidelity, WiFi) net Network etc., is also possible to wireline communication network;Either wide area network, local area network, the application can also be used when situation allows It will be not specifically limited in embodiment.
The method of information sharing in the present embodiment, can be in addition to can be adapted for above-mentioned system architecture shown in FIG. 1 Suitable for other systems framework, this is not limited here.
To facilitate a better understanding of the scheme that the embodiment of the present application is proposed, below to the detailed process in the present embodiment into Row is introduced, referring to Fig. 2, one embodiment schematic diagram of the method for the information sharing provided in the embodiment of the present application, the party Method includes:
201, at least one official's route information that first node uploads is obtained, first node is contained in block chain network In.
In the present embodiment, described official's route information refers to first node typing, and using private key to institute's typing Route information signed after obtain, and official's route information is usually all that first node passes through and practical situation core It is announced after real, it is ensured that the source of the route information is official, has certain reliability.When route information may include Between stamp, at least one approach site information, each approach site information corresponding time point, urban sign number (identity, ID), the running route of bus license plate number or bus coding etc..
It is to be appreciated that the block chain network other than comprising first node, can also include second node kimonos Business node.
202, at least one official's route information is broadcasted in block chain network, so that first node, second node or clothes Business node holds consultation at least one official's route information, the first route information after being known together.
In the present embodiment, due to including first node, second node and service node in block chain network, obtaining After getting at least one official's route information, it can be spread to by way of broadcast on each block chain node, so that at this First node, second node or service node in block chain network can know at least one official's route information, thus So that first node, second node and service node respectively can by least one official's route information with respectively saved Information be compared, respectively the route information most approved is sent in the block chain network for selection, with what the minority is subordinate to the majority Mode come formed negotiate after common recognition, thus the first route information after being known together.
203, target route information is determined according to the route information that prestores in the first route information and block chain network.
In the present embodiment, even if the first route information is that each node in the block chain network all obtains after common recognition , but it is also possible to the first route information after the common recognition and actual path information has error, therefore also need further to The route information that prestores in first route information and the block chain network carries out matching judgment, and the result after being judged with this is come true Set the goal route information.
Optionally, in some embodiments, the target route information can be specifically determined in the following way:
First route information is compared with the route information that prestores;If first route information with it is described It prestores that route information is not identical, then obtains timestamp corresponding at least one described official's route information, each timestamp Corresponding official's route information;It will be determined as target with official's route information corresponding to the immediate timestamp of current time Route information.
It is namely interpreted as, since each official's route information carries the corresponding time when being uploaded by first node Stamp, and official's route information corresponding to each timestamp is different, so when judging the first route information and prestoring road When line information is inconsistent, official's route information of newest publication, i.e., determining and current time can be determined by timestamp Official's route information corresponding to immediate timestamp is official's route information of newest publication, can determine this in this way Target route information.In addition, it should be noted that if when judging that the first route information is consistent with route information is prestored, First route information can be saved, can continue to save the route information prestored originally.
204, target route information is shared in block chain network.
In the present embodiment, after obtaining the target route information, it can be shared in block chain network, so that first Node, second node and service node can save a target route information, and such as: service node is having shared the target After route information, when user because demand is inquired when the target route information can be issued to user, realize in real time altogether Enjoy route information.
Therefore, it is broadcasted in block chain network in the application by the official's route information uploaded to first node Afterwards, so that each node in the block chain network negotiates the first route information after being known together, thus by first route It information and prestores route information and determines target route information, and share the target route information, route information can be coped with Sudden change situation realizes Real-Time Sharing route information so that the route information that institute's publicity goes out is bonded actual conditions.
On the basis of described in above-mentioned Fig. 2, if after having shared target route information, because emergency case or cannot and When Shi Fabu and target cause route information to change, it can continue to upload route information by first node, it can also be by Two nodes upload route information, can respectively refer to following Fig. 3, Fig. 4 to information sharing provided by the embodiment of the present application Scheme is understood in detail.
To facilitate a better understanding of the scheme that the embodiment of the present application is proposed, route information will be uploaded from second node below Detailed process in the present embodiment is introduced, as shown in figure 3, the method for information sharing provided by the embodiments of the present application is another One embodiment schematic diagram, this method comprises:
301, at least one official's route information that first node uploads is obtained, first node is contained in block chain network In.
302, at least one official's route information is broadcasted in block chain network, so that first node, second node or clothes Business node holds consultation at least one official's route information, the first route information after being known together.
303, target route information is determined according to the route information that prestores in the first route information and block chain network.
304, target route information is shared in block chain network.
Step 301-304 in the present embodiment is referred to step 201-204 and is understood, is specifically not repeated herein.
305, when target route information changes, then the second route information of second node upload, the second tunnel are obtained Line information includes first via line ID and the first identifier for identifying second node.
In the present embodiment, when first node upload official's route information not in time the problems such as occur when, can all cause by The target route information that official's route information is determined changes, so needing second node just at this time to upload actual motion Route information update the route information in entire block chain network, fit well on actual motion to realize to share in real time Route information.
It should be understood that second route information may include the first route ID and for identifying second node first Mark.What first route ID referred to is actually after target route information change, and second node is recorded when passing through bus stop Actual motion route information details, such as: website 1 and reach website 1 when time point, website 2 and destination Point 2 when time point, website 3 and reach website 3 when time point ..., terminal and reach the time point of terminal, working line compile Code, time of departure information etc..And the first identifier is mainly used for identifying the second node, such as: the license plate number of second node Etc..
306, the second route information is shared in block chain network.
In the present embodiment, since the second route information is by second node after target route information changes according to reality What the route situation of operation obtained after being recorded, it is possible to second route information is shared into the block chain network, Allow first node, second node and service node in the block chain network by second route information with respectively deposit The route information of storage is compared, if find second route information be fitted well on the route situation of actual motion, then A second route information will be saved, and by the target route information update saved originally at second route information.Such as: Service node after having shared second route information, when user because demand is inquired when can be issued to user this second Route information is informed the license plate number of the specific second node of user, specifically when is put by what website etc..
Therefore, Real-Time Sharing route information is not only realized in the embodiment of the present application, additionally it is possible to offer and actual conditions The accurate route information fitted well on.
Above-mentioned Fig. 3 mainly elaborates by second node to upload route information after target route information sends variation, below It will be set forth in after target route information sends variation and route information is still uploaded by first node, as shown in figure 4, real for the application Another embodiment schematic diagram of the method for information sharing of example offer is provided, this method comprises:
401, at least one official's route information that first node uploads is obtained, first node is contained in block chain network In.
402, at least one official's route information is broadcasted in block chain network, so that first node, second node or clothes Business node holds consultation at least one official's route information, the first route information after being known together.
403, target route information is determined according to the route information that prestores in the first route information and block chain network.
404, target route information is shared in block chain network.
Step 401-404 in the present embodiment is referred to step 201-204 and is understood, is specifically not repeated herein.
405, when target route information changes, then the third route information of first node upload, third road are obtained Line information includes the validity period of the second route ID and the second route ID.
In the present embodiment, when official's route information that first node uploads is needed because meeting with the emergency cases such as major traffic accidents In the case where wanting Reroute, interim route information is still uploaded by the first node with official's property at this time, that is, uploads the Three-route information is into block chain network, in order to use the route in interim third route information temporarily more new block chain network Information shares route information to realize in real time.
It should be understood that the third route information may include the validity period of the second route ID He second route ID. What second route ID referred to is actually the interim traffic route information of first node publication after target route information change, It may include: the time point of at least one approach website and each approach website, the license plate number of second node, the fortune of second node Row line coding etc..In addition, also being needed since the third route information is the new route temporarily issued by emergency case Is configured to the second route ID corresponding validity period, allowed to before the deadline according to the third route information row newly issued It sails.
406, when the validity period of the second route ID being in effective status, third route letter is shared in block chain network Breath.
In the present embodiment, if the validity period of the second route ID also in effective status, i.e., then in block chain when not out of date The third route information is shared in network, so that first node, second node and the service node in the block chain network can The third route information will be used.Certain first node, second node and service node also can be with the routes that respectively store Information is compared, if finding, the third route information is since first node is temporarily issued, then can also save a be somebody's turn to do Third route information, and by the target route information update saved originally at the third route information.Such as: service node is shared After the third route information, when user because demand is inquired when can issue the third route information to user, inform When the license plate number of second node when user meets with emergency case is specifically put by what website etc.;It can also make Second node is obtained after receiving the third route information, informs that driver needs according to this by issuing the modes such as prompt tone or vibration Third route information runs vehicle.
Therefore Real-Time Sharing route information is not only realized in the present embodiment, can also be mentioned when route information changes For route information the most accurate.
It should be understood that in further embodiments, when being in effective status when the validity period of the second route ID, in institute It states after sharing third route information in block chain network, can also include: to be in nothing when the validity period of the second route ID When effect state, then the third route information is deleted in the block chain network, and share the target route information again Into the block chain network.That is, also indicating that the emergency case if the validity period of second route ID is expired It when being disposed, can be operated normally according to original route information, that is, target route information, so needing in block chain The third route information is deleted in network, in case second node or service node continue to use expired third route letter Breath, accidentally disturbs user or driver etc..Certainly, after third route information is expired, it is also desirable to by issuing the side such as prompt tone or vibration Formula informs that driver is restored to original target route information operation vehicle.
The method for describing information sharing provided by the present application below by a specific application scenarios example.Refer to figure 5, Fig. 5 be a kind of block chain network schematic diagram provided by the embodiments of the present application.In Fig. 5, any one bus be can be used as Block chain node access area block chain network, bus company and traffic department can also be used as block chain node access area block chain To itself corresponding block chain node, i.e., network, each bus, bus company or traffic department can upload route information Bus 1, bus 2 upload route information to corresponding bus node 1, bus node 2, and bus company uploads route Information is to bus company node, and traffic department uploads route information to traffic department's node etc., while each block chain node The route information of upload is shared to other nodes, so that the shared storage of the whole network of route information can be realized.It should be noted that It should depend on the circumstances for the quantity of bus node, such as can also include bus node 3, not limit herein specifically It is fixed.
Block chain network as shown in connection with fig. 5, the embodiment of the present application provide the method for another information sharing, refer to figure 6, Fig. 6 be another embodiment schematic diagram of the method for information sharing provided by the embodiments of the present application.Information sharing shown in fig. 6 Method may comprise steps of:
601, at least one official's route information that traffic department's node uploads is obtained.
In the present embodiment, described official's route information can be by traffic department's node typing, and uses private key to institute What the route information of typing obtained after being signed, and official's route information is usually all that traffic department's node passes through and reality The case where verify after announce, it is ensured that the source of the route information is official, have certain reliability.Route information can To include timestamp, at least one approach site information, each approach site information corresponding time point, city ID, bus The running route of license plate number or bus coding etc..
602, at least one official's route information is broadcasted in block chain network, so that traffic department's node, bus section Point or service node hold consultation at least one official's route information, the first route information after being known together.
In the present embodiment, due in block chain network include traffic department's node, bus node and service node, because This can be spread on each block chain node by way of broadcast, be made after getting at least one official's route information Traffic department's node, bus node or the service node obtained in the block chain network can know at least one official road Line information, so that traffic department's node, bus node and service node respectively can be by least one official roads Line information is compared with the information respectively saved, and the route information that selection is respectively most approved is sent to the block chain network In, the common recognition after negotiating is formed in such a way that the minority is subordinate to the majority, thus the first route information after being known together.
603, target route information is determined according to the route information that prestores in the first route information and block chain network.
In the present embodiment, even if the first route information is that each node in the block chain network all obtains after common recognition , but it is also possible to the first route information after the common recognition and actual path information has error, therefore also need further to The route information that prestores in first route information and the block chain network carries out matching judgment, and the result after being judged with this is come true Set the goal route information.
604, target route information is shared in block chain network.
In the present embodiment, after obtaining the target route information, it can be shared in block chain network, so that traffic Department's node, bus node and service node can save a target route information, and such as: service node is having shared After the target route information, when user because demand is inquired when the target route information can be issued to user, realize Real-Time Sharing route information.
605, when target route information changes, then obtain bus node upload the second route information, second Route information includes the first route ID and the first identifier for identifying bus node.
In the present embodiment, when traffic department's node upload official's route information not in time the problems such as occur when, can all lead The target route information determined by official's route information is caused to change, so needing bus node just at this time to upload reality The route information of border operation updates the route information in entire block chain network, fits well on reality to realize to share in real time The route information of operation.
It should be understood that second route information may include the first route ID and for identifying bus node One mark.What first route ID referred to is actually after target route information change, and bus node passes through bus stop when institute The details of the route information of the actual motion of record, such as: website 1 and time point when reaching website 1 and arrive website 2 Time point, website 3 when up to website 2 and time point when reaching website 3 ..., terminal and reach the time point of terminal, operation line Road coding, time of departure information etc..And the first identifier is mainly used for identifying the bus node, such as: bus node License plate number etc..
606, the second route information is shared in block chain network.
In the present embodiment, since the second route information is by bus node after target route information changes according to reality What the route situation of border operation obtained after being recorded, it is possible to share second route information to the block chain network In, traffic department's node, bus node and the service node in the block chain network are believed second route Breath is compared with the route information respectively stored, if finding, second route information is most pasted with the route situation of actual motion It closes, then a second route information will be saved, and by the target route information update saved originally at second tunnel Line information.Such as: service node after having shared second route information, when user because demand is inquired when can be to user Second route information is issued, the license plate number of the specific bus node of user is informed, specifically when puts and stand by what Point etc..
Therefore, Real-Time Sharing route information is not only realized in the embodiment of the present application, additionally it is possible to offer and actual conditions The accurate route information fitted well on.
It is above-mentioned that mainly scheme provided by the embodiments of the present application is described from interactive angle.It can be understood that being Realization above-mentioned function contains and executes the corresponding hardware configuration of each function and/or software module.Those skilled in the art answer This is readily appreciated that, in conjunction with each exemplary module and algorithm steps of embodiment description disclosed herein, the application It can be realized with the combining form of hardware or hardware and computer software.Some function is actually with hardware or computer software The mode of hardware is driven to execute, the specific application and design constraint depending on technical solution.Professional technician can be with Each specific application is used different methods to achieve the described function, but this realization is it is not considered that exceed this Shen Range please.
The embodiment of the present application can carry out the division of functional module according to above method example to device, for example, can be right The each functional module of each function division is answered, two or more functions can also be integrated in a processing module. Above-mentioned integrated module both can take the form of hardware realization, can also be realized in the form of software function module.It needs Illustrate, is schematical, only a kind of logical function partition to the division of module in the embodiment of the present application, it is practical to realize When there may be another division manner.
The information sharing apparatus in the embodiment of the present application is described in detail below, referring to Fig. 7, Fig. 7 is the application The information sharing apparatus one embodiment schematic diagram provided in embodiment, the information sharing apparatus may include:
First acquisition unit 701, for obtaining at least one official's route information of first node upload, the first segment Point is contained in block chain network, and the block chain network further includes second node and service node;
Radio unit 702, for being broadcasted in the block chain network described in the acquisition of first acquisition unit 701 extremely Few official's route information so that the first node, the second node or the service node to it is described at least one Official's route information is held consultation, the first route information after being known together;
Determination unit 703, first route information and the block chain for being obtained according to the radio unit 702 The route information that prestores in network determines target route information;
First shared cell 704, the mesh determined for sharing the determination unit 703 in the block chain network Mark route information.
Optionally, on the basis of the embodiment corresponding to above-mentioned Fig. 7, referring to Fig. 8, letter provided by the embodiments of the present application In another embodiment for ceasing sharing means, determination unit 703 includes:
Comparison module 7031, for first route information to be compared with the route information that prestores;
First obtain module 7032, for the comparison module 7031 determine first route information with it is described pre- Deposit route information it is not identical when, obtain timestamp corresponding at least one described official's route information, each timestamp pair Answer official's route information;
Determining module 7033, for will be determined as with official's route information corresponding to the immediate timestamp of current time Target route information.
Optionally, on the basis of the embodiment corresponding to above-mentioned Fig. 7 or Fig. 8, referring to Fig. 9, the embodiment of the present application mentions In another embodiment of the information sharing apparatus of confession, the information sharing apparatus further include:
Second acquisition unit 705, the target route information for sharing in first shared cell 704 become When change, the second route information that the second node uploads is obtained, second route information includes the first route ID and is used for Identify the first identifier of the second node;
Second shared cell 706, the institute obtained for sharing the second acquisition unit 705 in the block chain network State the second route information so that second route information by the block chain network the first node, described second Node or the service node use.
Optionally, on the basis of the embodiment corresponding to above-mentioned Fig. 7 or Fig. 8, referring to Fig. 10, the embodiment of the present application mentions In another embodiment of the information sharing apparatus of confession, the information sharing apparatus further include:
Third acquiring unit 707, the target route information for sharing in first shared cell 704 become When change, the third route information that the first node uploads is obtained, the third route information includes the second route ID and institute State the validity period of the second route ID;
Third shared cell 708, for when the validity period of the second route ID being in effective status, in the block The third route information that the third acquiring unit 707 obtains is shared in chain network, so that the third route information quilt The first node, the second node or the service node in the block chain network use.
Optionally, on the basis of the embodiment corresponding to above-mentioned Figure 10, information sharing dress provided by the embodiments of the present application In another embodiment set, which can also include: deletion unit, in the third shared cell 708 It shares after sharing the third route information in the block chain network, is in invalid in the validity period of the second route ID When state, the third route information is deleted in the block chain network, and shares the target route information again to institute It states in block chain network.
Therefore, it is carried out in block chain network in the official's route information uploaded by radio unit 702 to first node After broadcast, so that each node in the block chain network negotiates the first route information after being known together, thus really by this Order member 703 is by first route information and prestores route information and determines target route information, and is shared by shared cell 704 The target route information can cope with the sudden change situation of route information, so that the route information that institute's publicity goes out is bonded reality Situation realizes Real-Time Sharing route information.
The information sharing apparatus in the embodiment of the present application is described from the angle of modular functionality entity above, below The information sharing apparatus in the embodiment of the present application is described from the angle of hardware handles.Figure 11 is that the embodiment of the present application provides Block node device structural schematic diagram, which may include above-mentioned described information sharing apparatus, should Block node device can generate bigger difference because configuration or performance are different, which can be at least one Manage device 801, communication line 807, memory 803 and at least one communication interface 804.
Processor 801 can be a general central processor (central processing unit, CPU), micro process Device, application-specific integrated circuit (application-specific integrated circuit, server I C) or one Or it is multiple for controlling the integrated circuit of application scheme program execution.
Communication line 807 may include an access, and information is transmitted between said modules.
Communication interface 804, using the device of any transceiver one kind, for other devices or communication, such as Ethernet, wireless access network (radio access network, RAN), WLAN (wireless local area Networks, WLAN) etc..
Memory 803 can be read-only memory (read-only memory, ROM) or can store static information and instruction Other kinds of static memory, random access memory (random access memory, RAM) or letter can be stored The other kinds of dynamic storage device of breath and instruction, memory, which can be, to be individually present, and communication line 807 and processor are passed through It is connected.Memory can also be integrated with processor.
Wherein, memory 803 be used for store execution application scheme computer executed instructions, and by processor 801 Control executes.Processor 801 is for executing the computer executed instructions stored in memory 803, to realize that the application is above-mentioned The method for the information sharing that embodiment provides.
Optionally, the computer executed instructions in the embodiment of the present application can also be referred to as application code, the application Embodiment is not especially limited this.
In the concrete realization, as one embodiment, which may include multiple processors, such as Figure 11 In processor 801 and processor 802.Each of these processors can be monokaryon (single-CPU) processing Device is also possible to multicore (multi-CPU) processor.Here processor can refer to one or more devices, circuit, And/or the processing core for handling data (such as computer program instructions).
In the concrete realization, as one embodiment, which can also include output device 805 and input Device 806.Output device 805 and processor 801 communicate, and can show information in many ways.Input unit 806 and processing Device 801 communicates, and can receive the input of user in many ways.For example, input unit 806 can be mouse, touch panel device Or sensing device etc..
The above-mentioned block node device can be a fexible unit either dedicated unit.It is implementing In, the block node device can be desktop computer, portable computer, nas server, wireless terminal device, embedded equipment or There is the device of similar structures in Figure 11.The embodiment of the present application does not limit the type of the block node device.
In the embodiment of the present application, processor 801 included by the block node device is also with the following functions:
At least one official's route information that first node uploads is obtained, the first node is contained in block chain network In, the block chain network further includes second node and service node;
At least one described official's route information is broadcasted in the block chain network, so that the first node, described Second node or the service node hold consultation at least one described official's route information, the first route after being known together Information;
Target route information is determined according to the route information that prestores in first route information and the block chain network;
The target route information is shared in the block chain network.
In some embodiments of the present application, which can also be specifically used for,
First route information is compared with the route information that prestores;
If first route information and the route information that prestores be not identical, at least one described official's route is obtained Corresponding timestamp in information, the corresponding official's route information of each timestamp;
It will be determined as target route information with official's route information corresponding to the immediate timestamp of current time.
In some embodiments of the present application, which can also be specifically used for,
After sharing the target route information in the block chain network, when the target route information changes When, then the second route information that the second node uploads is obtained, second route information includes the first route ID and is used for Identify the first identifier of the second node;
Second route information is shared in the block chain network, so that second route information is by the block The first node, the second node or the service node in chain network use.
In some embodiments of the present application, which can also be specifically used for,
After sharing the target route information in the block chain network, when the target route information changes When, then the third route information that the first node uploads is obtained, the third route information includes the second route ID and institute State the validity period of the second route ID;
When the validity period of the second route ID being in effective status, the third is shared in the block chain network Route information so that the third route information by the block chain network the first node, the second node or The service node uses.
In some embodiments of the present application, which can also be specifically used for, in the block chain network altogether After enjoying the third route information, when the validity period of the second route ID being in invalid state, then in the block chain The third route information is deleted in network, and shares the target route information again into the block chain network.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the division of unit, Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or unit or Communication connection can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a storage medium, including some instructions are used so that a computer equipment The all or part of (can be personal computer, server or the network equipment etc.) execution each embodiment method of the application Step.And storage medium above-mentioned include: USB flash disk, it is mobile hard disk, read-only memory (read-only memory, ROM), random Access various Jie that can store program code such as memory (random access memory, RAM), magnetic or disk Matter.
More than, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of method of information sharing, which is characterized in that the described method includes:
At least one official's route information that first node uploads is obtained, the first node is contained in block chain network, institute Stating block chain network further includes second node and service node;
At least one described official's route information is broadcasted in the block chain network, so that the first node, described second Node and the service node hold consultation at least one described official's route information, the first route letter after being known together Breath;
Target route information is determined according to the route information that prestores in first route information and the block chain network;
The target route information is shared in the block chain network.
2. the method for information sharing according to claim 1, which is characterized in that according to first route information with it is described The route information that prestores in block chain network determines target route information, which comprises
First route information is compared with the route information that prestores;
If first route information and the route information that prestores be not identical, at least one described official's route information is obtained In corresponding timestamp, the corresponding official's route information of each timestamp;
It will be determined as target route information with official's route information corresponding to the immediate timestamp of current time.
3. method according to claim 1 or 2, which is characterized in that share the target road in the block chain network After line information, the method also includes:
When the target route information changes, then the second route information that the second node uploads is obtained, described the Two route informations include the first route ID and the first identifier for identifying the second node;
Second route information is shared in the block chain network, so that second route information is by the block link network The first node, the second node or the service node in network use.
4. method according to claim 1 or 2, which is characterized in that share the target road in the block chain network After line information, the method also includes:
When the target route information changes, then the third route information that the first node uploads is obtained, described the Three-route information includes the validity period of the second route ID and the second route ID;
When the validity period of the second route ID being in effective status, the third route is shared in the block chain network Information, so that the third route information is by the first node, the second node or described in the block chain network Service node uses.
5. according to the method described in claim 4, it is characterized in that, sharing the third route letter in the block chain network After breath, the method also includes:
When the validity period of the second route ID being in invalid state, then the third road is deleted in the block chain network Line information, and the target route information is shared again into the block chain network.
6. a kind of information sharing apparatus, which is characterized in that the information sharing apparatus includes:
First acquisition unit, for obtaining at least one official's route information of first node upload, the first node includes In block chain network, the block chain network further includes second node and service node;
Radio unit, for broadcasted in the block chain network first acquisition unit get described at least one official Square route information, so that the first node, the second node or the service node in the block chain network are to institute It states at least one official's route information to hold consultation, the first route information after being known together;
Determination unit, first route information for being obtained according to the radio unit with it is pre- in the block chain network It deposits route information and determines target route information;
First shared cell, for sharing the target route information in the block chain network.
7. information sharing apparatus according to claim 6, which is characterized in that the determination unit includes:
Comparison module, for first route information to be compared with the route information that prestores;
Module is obtained, for determining first route information in the comparison module and described to prestore route information not identical When, obtain timestamp corresponding at least one described official's route information, the corresponding official's route letter of each timestamp Breath;
Determining module, for target route will to be determined as with official's route information corresponding to the immediate timestamp of current time Information.
8. information sharing apparatus according to claim 6 or 7, which is characterized in that the information sharing apparatus further include:
Second acquisition unit when the target route information for sharing in first shared cell changes, obtains The second route information that the second node uploads, second route information include the first route ID and for identifying described the The first identifier of two nodes;
Second shared cell, second tunnel got for sharing the second acquisition unit in the block chain network Line information, so that second route information is by the first node, the second node or the institute in the block chain network State service node use.
9. a kind of block node device, which is characterized in that the block node device includes: input/output (I/O) interface, place Device and memory are managed,
Program instruction is stored in the memory;
The processor executes the side as described in any in claim 1 to 5 for executing the program instruction stored in memory Method.
10. a kind of computer readable storage medium, including instruction, which is characterized in that when described instruction is on block node device When operation, so that the block node device executes the method as described in one in claim 1 to 5.
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 true CN110472001A (en) 2019-11-19
CN110472001B 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 (3)

* 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
US20180293556A1 (en) * 2017-04-05 2018-10-11 Samsung Sds Co., Ltd. Method and system for processing blockchain-based real-time transaction

Patent Citations (3)

* 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
US20180293556A1 (en) * 2017-04-05 2018-10-11 Samsung Sds Co., Ltd. Method and system for processing blockchain-based real-time transaction
CN108234611A (en) * 2017-12-22 2018-06-29 中国联合网络通信集团有限公司 traffic information sharing method and system

Also Published As

Publication number Publication date
CN110472001B (en) 2023-10-13

Similar Documents

Publication Publication Date Title
US20220159061A1 (en) Efficient and reliable host distribution of totally ordered global state
CN108449418B (en) Hybrid cloud platform management system and method
CN110597925B (en) Cross-chain data processing method and device based on block chain
US20200134745A1 (en) METHOD AND SYSTEM FOR AUTOMATICALLY CREATING AND ASSIGNING ASSEMBLY LABOR ACTIVITIES (ALAs) TO A BILL OF MATERIALS (BOM)
US10949805B2 (en) Method and system for native object collaboration, revision and analytics for BIM and other design platforms
US20170132568A1 (en) Method and system for gps enabled model and site interaction and collaboration for bim and other design platforms
JP5732340B2 (en) Map data distribution server, map data distribution system, and map data distribution method
CN107492063A (en) One kind is got on the bus a recommendation process method and system
CN104809601B (en) The mutual auxiliary system of express delivery based on electronic map
CN104508678A (en) Security and data isolation for tenants in a business data system
CN109155758A (en) Virtual base framework
Chowdhury et al. The co-evolution of cloud and IoT applications: Recent and future trends
CN115913790A (en) Data transmission method based on private computing network, electronic equipment and storage medium
JP2018092565A (en) Cloud relay device, cloud connection processing method, and program
Frohn et al. Distributed simulation of cooperatively interacting vehicles
Touati et al. Development of prototype for IoT and IoE scalable infrastructures, architectures and platforms
CN108597160A (en) A kind of method, apparatus and system of management order information
CN110324419A (en) Data processing method and equipment based on cloud service
CN112995303A (en) Cross-cluster scheduling method and device
CN110472001A (en) A kind of method, apparatus of information sharing, equipment and storage medium
WO2020257926A1 (en) Distributed traffic management system with dynamic end-to-end routing
CN111833119A (en) Order allocation method and device, electronic equipment and storage medium
CN115098020A (en) Storage management method, device and storage medium
CN115221237A (en) Node deployment method, application chain deployment method, device, server and computer program
CN105701603A (en) Member information updating method and system, platform management system and scene management system

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