CN109816897A - A kind of method, apparatus, equipment and storage medium accessing data - Google Patents

A kind of method, apparatus, equipment and storage medium accessing data Download PDF

Info

Publication number
CN109816897A
CN109816897A CN201910147659.2A CN201910147659A CN109816897A CN 109816897 A CN109816897 A CN 109816897A CN 201910147659 A CN201910147659 A CN 201910147659A CN 109816897 A CN109816897 A CN 109816897A
Authority
CN
China
Prior art keywords
pos terminal
data
order
target
device address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910147659.2A
Other languages
Chinese (zh)
Inventor
许圣霖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201910147659.2A priority Critical patent/CN109816897A/en
Publication of CN109816897A publication Critical patent/CN109816897A/en
Pending legal-status Critical Current

Links

Abstract

The application provides a kind of method, apparatus, equipment and storage medium for accessing data, wherein, the described method includes: determining that the target POS terminal being in idle condition, the target POS terminal are stored with the corresponding access data of the data access request in response to the data access request received;The device address of the target POS terminal is sent to the sender of the data access request, so that described sender is based on the device address and the target POS terminal is established and communicated to connect, and the access data are accessed based on the communication connection.The application can break through limitation of the database of POS terminal to concurrently accessing, so as to improve the data access efficiency of POS system, promote user experience due to carrying out data access based on the target POS terminal being in idle condition.

Description

A kind of method, apparatus, equipment and storage medium accessing data
Technical field
This application involves technical field of data processing more particularly to a kind of method, apparatus, equipment and storages for accessing data Medium.
Background technique
Existing includes main POS (Point of Sales, a point of sale) terminal and multiple POS systems from POS terminal In system, each POS terminal respectively has a database.
Currently, what each POS terminal in POS system generallyd use is Android device, and built in each POS terminal Database be mainly SQLite.Usually, SQLite is one of the application programming for middle and small scale Embedded Database.Limitation due to SQLite to concurrently accessing, i.e., the same time only allows a POS terminal to carry out write operation, when one A POS terminal can lock the database, not allow other POS terminals in addition to oneself when data are written into database The data in the database are accessed, causes the data access efficiency of POS system low, influences user experience.
Summary of the invention
In view of this, the application provides a kind of method, apparatus, equipment and storage medium for accessing data, can solve The problem of stating appeared in prior art.
Specifically, the application is achieved by the following technical solution:
According to a first aspect of the present application, a kind of method for accessing data is proposed, comprising:
In response to the data access request received, the target POS terminal being in idle condition, the target POS are determined Terminal storage has the corresponding access data of the data access request;
The device address of the target POS terminal is sent to the sender of the data access request, so that the hair The side of sending is based on the device address and the target POS terminal is established and communicated to connect, and based on described in communication connection access Access data.
In one embodiment, wherein the target POS terminal that the determination is in idle condition, comprising:
The target POS terminal being in idle condition according to the list of the state for recording each POS terminal determination.
In one embodiment, wherein the access data include order data, the method also includes:
The order for receiving the transmission of at least one POS terminal updates request, and the order, which updates in request, carries order mark Know and order more new content;
The corresponding order data of the order note identification is updated based on the order more new content, is obtained updated Order data;
The updated order data is sent to each POS terminal.
It is in one embodiment, described that the target POS terminal being in idle condition is determined from the list, comprising:
The current state for traversing each POS terminal in the list, it is whole until finding the target POS being in idle condition End.
It in one embodiment, further include being determined based on the corresponding relationship between the POS terminal and device address constructed in advance The device address of the target POS terminal.
In one embodiment, preparatory construct of the corresponding relationship between the POS terminal and device address includes:
Default message is sent at least one POS terminal in a broadcast manner, the default message includes the default report The device address of the sender of text;
Receive the respective device address that at least one described POS terminal is sent in response to the default message;
Construct the corresponding relationship between at least one described POS terminal and respective device address.
According to a second aspect of the present application, a kind of device for accessing data is proposed, comprising:
Target terminal determining module, for determining the target POS being in idle condition when receiving data access request Terminal, the target POS terminal are stored with the corresponding access data of the data access request;
Device address sending module is asked for the device address of the target POS terminal to be sent to the data access The sender asked so that described sender is based on the device address and the target POS terminal is established and communicated to connect, and is based on The communication connection accesses the access data.
In one embodiment, wherein the target terminal determining module is also used to according to for recording each POS terminal The list of state determine the target POS terminal that is in idle condition.
In one embodiment, wherein the access data include order data,
Described device further includes order data synchronization module;
The order data synchronization module, comprising:
Request reception unit is updated, the order for receiving the transmission of at least one POS terminal updates request, and the order is more Order note identification and order more new content are carried in new request;
Order data updating unit, for being based on the order more new content to the corresponding order data of the order note identification It is updated, obtains updated order data;
Order data transmission unit, for the updated order data to be sent to each POS terminal.
In one embodiment, the target terminal determining module is also used to traverse working as each POS terminal in the list Preceding state, until finding the target POS terminal being in idle condition.
In one embodiment, described device further include:
Device address determining module, for true based on the corresponding relationship between the POS terminal and device address constructed in advance The device address of the fixed target POS terminal.
In one embodiment, described device further includes corresponding relationship building module;
The corresponding relationship constructs module, comprising:
Default packet sending unit, it is described pre- for sending default message at least one POS terminal in a broadcast manner If message includes the device address of the sender of the default message;
Device address receiving unit, for receiving at least one described POS terminal in response to the default message transmission Respective device address;
Corresponding relationship construction unit, for constructing pair between at least one described POS terminal and respective device address It should be related to.
According to the third aspect of the application, a kind of equipment for accessing data, including memory, processor and storage are proposed On a memory and the computer program that can run on a processor, wherein the processor is realized when executing described program The method for stating any access data.
According to the fourth aspect of the application, a kind of computer readable storage medium is proposed, the storage medium is stored with Computer program, the method that the computer program is used to execute any of the above-described access data.
By above technical scheme as it can be seen that the application is by the way that by the data access request in response to receiving, determination is in The target POS terminal of idle state, and the device address of the target POS terminal is sent to the hair of the data access request The side of sending, so that described sender is based on the device address and the target POS terminal is established and communicated to connect, and based on described logical Data are accessed described in letter connected reference.The application, can due to carrying out data access based on the target POS terminal being in idle condition To break through limitation of the database of POS terminal to concurrently accessing, so as to improve the data access efficiency of POS system, promoted User experience.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the method for access data shown in one exemplary embodiment of the application;
Fig. 2 is the stream for the target POS terminal how to determine shown in one exemplary embodiment of the application is in idle condition Cheng Tu;
Fig. 3 is the target POS terminal how to determine shown in the application another exemplary embodiment is in idle condition Flow chart;
Fig. 4 is the corresponding pass how constructed between POS terminal and device address shown in one exemplary embodiment of the application The flow chart of system;
Fig. 5 is a kind of structure chart of the device of access data shown in one exemplary embodiment of the application;
Fig. 6 is a kind of structure chart of the device of access data shown in the application another exemplary embodiment;
Fig. 7 is a kind of structure chart of the equipment of access data shown in one exemplary embodiment of the application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
Fig. 1 is a kind of flow chart of the method for access data shown in one exemplary embodiment of the application;The embodiment can With for the main POS terminal in POS (Point of sales, point of sale) system (for example, hand-held cash register, smart phone, flat Plate computer, desktop computer and notebook etc.), it can be used for server-side (for example, what a server and multiple servers formed Server cluster etc.).As shown in Figure 1, the method comprising the steps of S101-S102:
In step s101, in response to the data access request received, determine that the target POS being in idle condition is whole End, the target POS terminal are stored with the corresponding access data of the data access request.
In one embodiment, it after main POS terminal receives the data access request of operation layer transmission, can determine current The target POS terminal being in idle condition is stored with above-mentioned data access request to be obtained in the database of the target POS terminal The access data taken.
In one embodiment, above-mentioned idle state may include the state for not carrying out data write operation, or can also be by Developer is set as other according to actual needs can carry out the shape of data access for the sender of the data access request State, the present embodiment is to this without limiting.
In one embodiment, the mode for the target POS terminal that above-mentioned determination is in idle condition is referring also to following Fig. 2 Illustrated embodiment, herein first without being described in detail.
In step s 102, the device address of the target POS terminal is sent to the transmission of the data access request Side so that described sender is based on the device address and the target POS terminal is established and communicated to connect, and is based on the communication Data are accessed described in connected reference.
In one embodiment, the type of above equipment address can be set by developer according to actual business requirement It sets, such as is set as the IP address of equipment and/or the port numbers of data access service, the present embodiment is to this without limiting.
It in one embodiment, can be by the mesh after main POS terminal determines the target POS terminal being in idle condition The device address of mark POS terminal is sent to the sender of the data access request, in this way, described sender can be based on described Device address and the target POS terminal, which are established, to be communicated to connect, and then can access the access number based on the communication connection According to.
In one embodiment, the acquisition modes of above equipment address may refer to following embodiment illustrated in fig. 4, herein first not It is described in detail.
Seen from the above description, the present embodiment is determined by the data access request in response to receiving in idle shape The target POS terminal of state, and the device address of the target POS terminal is sent to the sender of the data access request, So that described sender is based on the device address and the target POS terminal is established and communicated to connect, and it is based on the communication link The access data are asked in receiving.The application can dash forward due to carrying out data access based on the target POS terminal being in idle condition Limitation of the database of broken POS terminal to concurrently accessing promotes user so as to improve the data access efficiency of POS system Experience.
Fig. 2 is the stream for the target POS terminal how to determine shown in one exemplary embodiment of the application is in idle condition Cheng Tu;The present embodiment is carried out for how determining the target POS terminal being in idle condition on the basis of the above embodiments Exemplary illustration.In the present embodiment, the target POS terminal being in idle condition is determined described in above-mentioned steps S101, can wrap It includes: the target POS terminal being in idle condition according to the list of the state for recording each POS terminal determination.Such as Fig. 2 Shown, which may comprise steps of S201-S202:
In step s 201, the list for recording the state of each POS terminal is obtained, in each POS terminal It is stored with the corresponding access data of the data access request.
In one embodiment, it after main POS terminal receives above-mentioned data access request, can be obtained from local data base It takes in the list for the state for recording each POS terminal, wherein be stored with the data access in each POS terminal Request corresponding access data.
In one embodiment, above-mentioned local data base can based on the associated database of POS terminal, such as SQLite.
In one embodiment, it can store the total data of current POS system in above-mentioned each POS terminal, and this is complete Portion's data are can be based on predetermined period by main POS terminal be updated or real-time update.
In one embodiment, the update mode of data may refer to implement shown in following Fig. 3 in above-mentioned each POS terminal Example, herein first without being described in detail.
In step S202, the target POS terminal being in idle condition is determined from the list.
It in one embodiment, can after main POS terminal obtains the list of the above-mentioned state for recording each POS terminal To determine the target POS terminal being in idle condition from the list.
In one embodiment, main POS terminal can pass through the side of the current state of each POS terminal in the traversal list Formula will find the POS terminal being in idle condition at first and be determined as target POS terminal.
It is worth noting that target POS terminal can be above-mentioned main POS terminal, or in current POS system with master POS terminal is associated from POS terminal, and the present embodiment is to this without limiting.
For example, after main POS terminal obtains above-mentioned list, the list can be traversed, to check whether main POS terminal is located In idle state, if it is not, then can successively determine whether each POS terminal is in idle according to the sequence of POS terminal in list State, and then will can find at first the POS terminal being in idle condition and be determined as target POS terminal.
Seen from the above description, the present embodiment, which passes through, obtains list for recording the state of each POS terminal, and from institute The target POS terminal for determining and being in idle condition in list is stated, can be sent out for the subsequent device address by the target POS terminal The sender for giving the data access request lays the foundation, so as to so that described sender is based on the device address and institute It states target POS terminal and establishes communication connection, and the access data are accessed based on the communication connection, due to based in the free time The target POS terminal of state carries out data access, can break through limitation of the database of POS terminal to concurrently accessing, so as to To improve the data access efficiency of POS system, user experience is promoted.
Fig. 3 is the target POS terminal how to determine shown in the application another exemplary embodiment is in idle condition Flow chart;The present embodiment on the basis of the above embodiments for how determining the target POS terminal being in idle condition into Row exemplary illustration.Wherein, the access data include order data.As shown in figure 3, at being determined described in above-mentioned steps S101 In the target POS terminal of idle state, S301-S305 may comprise steps of:
In step S301, the order for receiving the transmission of at least one POS terminal updates request, and the order updates in request Carry order note identification and order more new content.
It in one embodiment, can be to above-mentioned main POS after at least one POS terminal updates order data in POS system Terminal sends order and updates request, wherein the order updates the order note identification that can carry the order in request and order more New content.
In one embodiment, at least one above-mentioned POS terminal may include main POS terminal and from POS terminal at least One kind, the present embodiment is to this without limiting.
In one embodiment, main POS terminal can receive the order update request sent from POS terminal, and the order is more Order more new data is carried in new request.
In one embodiment, the type of the above order can be configured according to actual needs by developer, be such as arranged For bill, order, receipt, invoice etc., the present embodiment is to this without limiting.
In one embodiment, above-mentioned main POS terminal can be used for summarizing, manage, updating or record in POS system from The order more new data that POS terminal is sent.
In one embodiment, when user updates operation (for example, addition commodity are extremely done shopping by carrying out order from POS terminal Vehicle, clearing order etc.) when, it can be updated from POS terminal according to the order and operate corresponding order more new data generation order more New request, wherein the order updates request and carries the order more new data, and then can send the order to main POS terminal Update request.
In step s 302, the corresponding order data of the order note identification is carried out more based on the order more new content Newly, updated order data is obtained.
In one embodiment, request is updated when main POS terminal receives the order that at least one above-mentioned POS terminal is sent Afterwards, the corresponding order data of the order note identification can be updated based on the above order more new content, is obtained updated Order data.
In one embodiment, main POS terminal can be to the corresponding order of the order note identification stored in local data base Data are updated, to obtain updated order data.
In step S303, the updated order data is sent to each POS terminal.
In one embodiment, when main POS terminal is based on the order more new content to the corresponding order of the order note identification Data are updated, and after obtaining updated order data, above-mentioned updated order data can be sent to described each POS terminal.
In one embodiment, above-mentioned main POS terminal can pre-establish long connection with each POS terminal, and then work as and obtain After updated order data, updated order data is sent to described each by the long connection that can be pre-established based on this A POS terminal.
In step s 304, the list for recording the state of each POS terminal is obtained, in each POS terminal It is stored with the corresponding access data of the data access request.
In step S305, the target POS terminal being in idle condition is determined from the list.
Wherein, the relevant explanation of step S304-S305 and explanation may refer to above-described embodiment, herein without repeating.
Seen from the above description, the present embodiment updates request, and base by receiving the order that at least one POS terminal is sent The corresponding order data of the order note identification is updated in the order more new content, obtains updated order data, And then the updated order data is sent to each POS terminal, each POS terminal in POS system can be synchronized Database in the order data that stores, so as to realize target POS terminal that subsequent determination is in idle condition, and ensure The corresponding access data of data access request are stored in the database of the target POS terminal.
In one embodiment, the method for above-mentioned access data can also include: based on the POS terminal and equipment constructed in advance Corresponding relationship between address determines the device address of the target POS terminal, is said below based on embodiment illustrated in fig. 4 It is bright.
Fig. 4 is the corresponding pass how constructed between POS terminal and device address shown in one exemplary embodiment of the application The flow chart of system.As shown in figure 4, the building of the corresponding relationship between above-mentioned POS terminal and device address may include following step Rapid S401-S406:
In step S401, default message, the default message packet are sent at least one POS terminal in a broadcast manner Include the device address of the sender of the default message.
In one embodiment, main POS terminal can send default message at least one POS terminal in a broadcast manner, Wherein, the default message includes the device address of the sender of the default message.
In one embodiment, at least one above-mentioned POS terminal may include associated from POS end with current main POS terminal End, also may include with the current main associated another main POS terminal of POS terminal, the present embodiment is to this without limiting.
In one embodiment, above-mentioned main POS terminal may refer to the mode that at least one POS terminal sends default message Message transmitting party formula in the prior art, the present embodiment is to this without limiting.
In one embodiment, above-mentioned default message be used for by the device address of main POS terminal be sent to it is above-mentioned at least one POS terminal, so that respective device address is returned to main POS end in response to the default message by least one POS terminal End.
It is worth noting that the particular content and format of above-mentioned default message can be by developers according to practical business need It is configured, the present embodiment is to this without limiting.
In step S402, at least one described POS terminal is received in response to respective the setting of the default message transmission Standby address.
In one embodiment, when at least one above-mentioned POS terminal receives the above-mentioned default message that main POS terminal is sent Afterwards, message can be preset in response to this and respective device address is returned into main POS terminal, so that the main POS terminal can connect Receive the respective device address of at least one POS terminal transmission.
In step S403, the corresponding relationship between at least one described POS terminal and respective device address is constructed.
In one embodiment, it is sent out when main POS terminal receives at least one above-mentioned POS terminal in response to the default message Behind the respective device address sent, the corresponding pass between at least one described POS terminal and respective device address can be constructed System.
In one embodiment, the form of above-mentioned corresponding relationship can be set by developer according to actual business requirement It sets, such as is set as corresponding relationship list or Key-value key-value pair, the present embodiment is to this without limiting.
Seen from the above description, the present embodiment presets message by sending in a broadcast manner at least one POS terminal, And the respective device address that at least one described POS terminal is sent in response to the default message is received, and then described in building Corresponding relationship between at least one POS terminal and respective device address, it is true based on the corresponding relationship so as to realize The device address of the fixed target POS terminal is sent to the data for the subsequent device address by the target POS terminal and visits It asks that the sender of request lays the foundation, and then described sender can be made to be based on the device address and built with the target POS terminal Vertical communication connection, and the access data are accessed based on the communication connection, due to whole based on the target POS being in idle condition End carries out data access, can break through limitation of the database of POS terminal to concurrently accessing, realizes the data of multiple POS terminals Read and write abruption promotes user experience so as to improve the data access efficiency of POS system.
Fig. 5 is a kind of structure chart of the device of access data shown in one exemplary embodiment of the application;As shown in figure 5, The device includes: target terminal determining module 110 and device address sending module 120, in which:
Target terminal determining module 110, for determining the target being in idle condition when receiving data access request POS terminal, the target POS terminal are stored with the corresponding access data of the data access request;
Device address sending module 120, for the device address of the target POS terminal to be sent to the data access The sender of request, so that described sender is based on the device address and the target POS terminal is established and communicated to connect, and base The access data are accessed in the communication connection.
Seen from the above description, the present embodiment is determined by the data access request in response to receiving in idle shape The target POS terminal of state, and the device address of the target POS terminal is sent to the sender of the data access request, So that described sender is based on the device address and the target POS terminal is established and communicated to connect, and it is based on the communication link The access data are asked in receiving.The application can dash forward due to carrying out data access based on the target POS terminal being in idle condition Limitation of the database of broken POS terminal to concurrently accessing promotes user so as to improve the data access efficiency of POS system Experience.
Fig. 6 is a kind of structure chart of the device of access data shown in the application another exemplary embodiment;Wherein, target Target terminal determining module in terminal deciding module 210 and device address sending module 220 and aforementioned embodiment illustrated in fig. 5 110 is identical with the function of device address sending module 120, herein without repeating.
As shown in fig. 6, target terminal determining module 210, can be also used for according to the state for recording each POS terminal List determine the target POS terminal that is in idle condition.
In one embodiment, access data may include order data;
On this basis, device can also include order data synchronization module 230;
Order data synchronization module 230 may include:
Request reception unit 231 is updated, the order for receiving the transmission of at least one POS terminal updates request, described to order Single update in request carries order note identification and order more new content;
Order data updating unit 232, for being based on the order more new content to the corresponding order of the order note identification Data are updated, and obtain updated order data;
Order data transmission unit 233, for the updated order data to be sent to each POS terminal.
In one embodiment, target terminal determining module 210 can be also used for traversing each POS terminal in the list Current state, until finding the target POS terminal being in idle condition.
In one embodiment, above-mentioned apparatus can also include:
Device address determining module 250, for based on the corresponding relationship between the POS terminal and device address constructed in advance Determine the device address of the target POS terminal.
In one embodiment, device can also include that corresponding relationship constructs module 240;
Corresponding relationship constructs module 240, may include:
Default packet sending unit 241, for sending default message, institute at least one POS terminal in a broadcast manner State the device address that default message includes the sender of the default message;
Device address receiving unit 242 is sent for receiving at least one described POS terminal in response to the default message Respective device address;
Corresponding relationship construction unit 243, for constructing between at least one described POS terminal and respective device address Corresponding relationship.
In one embodiment,
It is worth noting that all the above alternatives, can form the optional reality of the disclosure using any combination Example is applied, this is no longer going to repeat them.
The embodiment of the device of access data of the invention can be using on network devices.Installation practice can pass through Software realization can also be realized by way of hardware or software and hardware combining.Taking software implementation as an example, it anticipates as a logic Device in justice is to be read computer program instructions corresponding in nonvolatile memory by the processor of equipment where it Into memory, operation is formed, and wherein computer program is used to execute the access data that above-mentioned FIG. 1 to FIG. 4 illustrated embodiment provides Method.For hardware view, as shown in fig. 7, the hardware structure diagram of the equipment for access data of the invention, in addition to Fig. 7 Shown in except processor, network interface, memory and nonvolatile memory, the equipment usually can also include that other are hard Part, such as it is responsible for the forwarding chip of processing message;The equipment is also possible to be distributed equipment from hardware configuration, can It can include multiple interface cards, to carry out the extension of Message processing in hardware view.On the other hand, present invention also provides one kind Computer readable storage medium, storage medium are stored with computer program, and computer program is for executing above-mentioned FIG. 1 to FIG. 4 institute Show the method for the access data that embodiment provides.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the application Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or Person's adaptive change follows the general principle of the application and including the undocumented common knowledge in the art of the application Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are by following Claim is pointed out.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (14)

1. a kind of method for accessing data, comprising:
In response to the data access request received, the target POS terminal being in idle condition, the target POS terminal are determined It is stored with the corresponding access data of the data access request;
The device address of the target POS terminal is sent to the sender of the data access request, so that described sender It is established and is communicated to connect based on the device address and the target POS terminal, and the access is accessed based on the communication connection Data.
2. according to the method described in claim 1, wherein, the target POS terminal that the determination is in idle condition, comprising:
The target POS terminal being in idle condition according to the list of the state for recording each POS terminal determination.
3. according to the method described in claim 2, wherein, the access data include order data, the method also includes:
The order for receiving the transmission of at least one POS terminal updates request, the order update carried in request order note identification and Order more new content;
The corresponding order data of the order note identification is updated based on the order more new content, obtains updated order Data;
The updated order data is sent to each POS terminal.
4. according to the method described in claim 2, it is characterized in that, described determine the mesh being in idle condition from the list Mark POS terminal, comprising:
The current state for traversing each POS terminal in the list, until finding the target POS terminal being in idle condition.
5. method according to claim 1-4, further include based on the POS terminal and device address constructed in advance it Between corresponding relationship determine the device address of the target POS terminal.
6. according to the method described in claim 5, the preparatory building packet of the corresponding relationship between the POS terminal and device address It includes:
Default message is sent at least one POS terminal in a broadcast manner, the default message includes the default message The device address of sender;
Receive the respective device address that at least one described POS terminal is sent in response to the default message;
Construct the corresponding relationship between at least one described POS terminal and respective device address.
7. a kind of device for accessing data, comprising:
Target terminal determining module, for when receiving data access request, determining that the target POS being in idle condition is whole End, the target POS terminal are stored with the corresponding access data of the data access request;
Device address sending module, for the device address of the target POS terminal to be sent to the data access request Sender, so that described sender is based on the device address and the target POS terminal is established and communicated to connect, and based on described Communication connection accesses the access data.
8. device according to claim 7, wherein the target terminal determining module is also used to according to each for recording The list of the state of a POS terminal determines the target POS terminal being in idle condition.
9. device according to claim 8, wherein the access data include order data,
Described device further includes order data synchronization module;
The order data synchronization module, comprising:
Request reception unit is updated, the order for receiving the transmission of at least one POS terminal updates request, and the order update is asked Order note identification and order more new content are carried in asking;
Order data updating unit, for being carried out based on the order more new content to the corresponding order data of the order note identification It updates, obtains updated order data;
Order data transmission unit, for the updated order data to be sent to each POS terminal.
10. device according to claim 8, which is characterized in that the target terminal determining module is also used to traverse described The current state of each POS terminal in list, until finding the target POS terminal being in idle condition.
11. according to the described in any item devices of claim 7-10, described device further include:
Device address determining module, for determining institute based on the corresponding relationship between the POS terminal and device address constructed in advance State the device address of target POS terminal.
12. device according to claim 11, described device further includes corresponding relationship building module;
The corresponding relationship constructs module, comprising:
Default packet sending unit, for sending default message, the default report at least one POS terminal in a broadcast manner Text includes the device address of the sender of the default message;
Device address receiving unit, for receiving at least one described POS terminal in response to the respective of the default message transmission Device address;
Corresponding relationship construction unit, for constructing the corresponding pass between at least one described POS terminal and respective device address System.
13. a kind of equipment for accessing data, which is characterized in that on a memory and can be including memory, processor and storage The computer program run on processor, wherein the processor realizes that the claims 1-6 is any when executing described program The method of the access data.
14. a kind of computer readable storage medium, which is characterized in that the storage medium is stored with computer program, the meter The method that calculation machine program is used to execute any access data of the claims 1-6.
CN201910147659.2A 2019-02-27 2019-02-27 A kind of method, apparatus, equipment and storage medium accessing data Pending CN109816897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910147659.2A CN109816897A (en) 2019-02-27 2019-02-27 A kind of method, apparatus, equipment and storage medium accessing data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910147659.2A CN109816897A (en) 2019-02-27 2019-02-27 A kind of method, apparatus, equipment and storage medium accessing data

Publications (1)

Publication Number Publication Date
CN109816897A true CN109816897A (en) 2019-05-28

Family

ID=66607637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910147659.2A Pending CN109816897A (en) 2019-02-27 2019-02-27 A kind of method, apparatus, equipment and storage medium accessing data

Country Status (1)

Country Link
CN (1) CN109816897A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104185192A (en) * 2014-08-12 2014-12-03 福建星网锐捷网络有限公司 Access method of management device and related equipment
CN104901793A (en) * 2014-03-04 2015-09-09 航天信息股份有限公司 POS invoicing server system and data transmission method thereof
CN205375564U (en) * 2015-12-29 2016-07-06 航天信息股份有限公司 Pos transaction processing device
CN107168739A (en) * 2017-05-15 2017-09-15 万达百汇科技(深圳)有限公司 POS, POS wireless communication module firmware upgrade method and device
US20180167995A1 (en) * 2013-06-07 2018-06-14 Intel Corporation Enhanced node b and methods for providing system information updates to user equipment with extended paging cycles
CN108234518A (en) * 2018-02-06 2018-06-29 深圳创维-Rgb电子有限公司 A kind of method, apparatus, terminal and the storage medium of terminal communication
CN108243262A (en) * 2016-12-26 2018-07-03 大唐移动通信设备有限公司 Learning method, device and the network three-layer equipment of ARP table
CN108597160A (en) * 2018-04-13 2018-09-28 北京三快在线科技有限公司 A kind of method, apparatus and system of management order information
CN108897800A (en) * 2018-06-13 2018-11-27 北京三快在线科技有限公司 A kind of method, apparatus and system of managing log information

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180167995A1 (en) * 2013-06-07 2018-06-14 Intel Corporation Enhanced node b and methods for providing system information updates to user equipment with extended paging cycles
CN104901793A (en) * 2014-03-04 2015-09-09 航天信息股份有限公司 POS invoicing server system and data transmission method thereof
CN104185192A (en) * 2014-08-12 2014-12-03 福建星网锐捷网络有限公司 Access method of management device and related equipment
CN205375564U (en) * 2015-12-29 2016-07-06 航天信息股份有限公司 Pos transaction processing device
CN108243262A (en) * 2016-12-26 2018-07-03 大唐移动通信设备有限公司 Learning method, device and the network three-layer equipment of ARP table
CN107168739A (en) * 2017-05-15 2017-09-15 万达百汇科技(深圳)有限公司 POS, POS wireless communication module firmware upgrade method and device
CN108234518A (en) * 2018-02-06 2018-06-29 深圳创维-Rgb电子有限公司 A kind of method, apparatus, terminal and the storage medium of terminal communication
CN108597160A (en) * 2018-04-13 2018-09-28 北京三快在线科技有限公司 A kind of method, apparatus and system of management order information
CN108897800A (en) * 2018-06-13 2018-11-27 北京三快在线科技有限公司 A kind of method, apparatus and system of managing log information

Similar Documents

Publication Publication Date Title
US10812284B2 (en) IoT provisioning service
CN111091429B (en) Electronic bill identification distribution method and device and electronic bill generation system
CN105468302B (en) A kind of method, apparatus and system of processing data
CN111489256B (en) Cross-chain processing method, device and system for multi-chain block chain system
CN108492108A (en) Across the chain communication means of block chain, system and computer readable storage medium
US10944655B2 (en) Data verification based upgrades in time series system
CN112153085A (en) Data processing method, node and block chain system
CN109586969A (en) Content distributing network disaster recovery method, device, computer equipment and storage medium
CN111163130A (en) Network service system and data transmission method thereof
CN110069346A (en) Resource share method, device, electronic equipment between multi-process
CN110442502A (en) A kind of method, apparatus buried a little, equipment and storage medium
CN111460458A (en) Data processing method, related device and computer storage medium
CN104468399A (en) Data transmission method and device and server
CN104468594A (en) Data request method, device and system
CN113037824B (en) Cloud computing-oriented high-performance block chain construction method
CN113885797A (en) Data storage method, device, equipment and storage medium
CN112040015B (en) Consensus node list generation method and related device
CN107644020B (en) Data storage and calling method and device
CN111767481A (en) Access processing method, device, equipment and storage medium
CN113949632B (en) Dynamic node configuration method and device for block chain
CN109816897A (en) A kind of method, apparatus, equipment and storage medium accessing data
CN102355493A (en) Data transmission system and data transmission method
CN115422184A (en) Data acquisition method, device, equipment and storage medium
US11637737B2 (en) Network data management framework
US20220122141A1 (en) Train any buddy real-time online matching service

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190528