A kind of bar code scanning system and method
Technical field
The present invention relates to bar code scan technical field more particularly to a kind of bar code scanning system and methods.
Background technique
With the rapid development of economy, material flow industry will become as an emerging branch of industry in national economy
This century important industry and national economy new growth point, an important composition link of the logistics management as material flow industry,
Importance also can not be ignored.
Logistics business traditional in early days mainly include cargo collect and handover, such as express delivery, for logistics staff come
Say, collected outside company first with handover cargo, and simply recorded on logistics document, then after returning to company, group
It knits special personnel logistics business information a large amount of on logistics document concentration is entered into computer system.As it can be seen that for passing
For the logistics management of system, take the status information for concentrating the mode of typing logistics information to will lead to cargo afterwards cannot be timely
Record in computer systems, and it is error-prone, even can not accurately obtain it is actual launch, the handover time, thus certain
The efficiency and customer satisfaction of logistics are affected in degree.
In view of the above-mentioned problems, using bar code scan scheme in the prior art, stream tube is carried out by bar code scanning system
Reason.Specifically, bar code scanning system include: technical grade PDA (Personal Digital Assistant) barcode scanner and
New Generation of Integrated manages ERP (Enterprise Resource Planning) system.Wherein, barcode scanner utilizes optics
Principle, passing through data line after the content decoding of cargo bar code or be wirelessly transferred to computer or other equipment
In ERP system;ERP system is that a set of specific transactions handle logical method, is generally arranged on terminal device (such as PC), it is right
The logistics data that PDA barcode scanner uploads carries out statistical management.For example, during handover batch cargo, when cargo is sent
Up to after destination, staff is scanned every cargo bar code using PDA barcode scanner, and by scan data with
The organic stream data about the shipments stored in ERP system are checked, are updated, including verification batch cargo number of packages is
Whether no correct and this shipments are same cargo, it is being checked it is errorless after, the inventory status of cargo is updated to " outbound
It is sent to destination ", while ERP system records delivery time and customer's receipt information.
As it can be seen that bar code scanning system can easily realize arrival inspection to storehouse management, storage, outbound, allot, move library
The acquisition of the automation of each cargo handling operation data such as displacement, stock-taking, guarantees the efficiency and accuracy of input, and passes through office
The data of acquisition are transmitted in host ERP system so that staff can allow staff with real time access data by domain net
Warehouse materials and finished goods inventory information are controlled completely, rationally keep and control business inventory.
But present inventor during technical solution, it is found that above-mentioned technology is at least deposited in realizing the embodiment of the present application
In following technical problem:
Be set with ERP system job order in ERP system, PDA scanner and ERP system be realized based on the job order it is logical
Letter, for example, PDA scanner is by newest logistics information when PDA scanner needs to upload newest logistics information to ERP system
ERP system job order is written, so that ERP system reads the information on job order, and its internal logistics data information is carried out more
Newly;However, ERP system and PDA scanner, usually from different suppliers, ERP system is appointed with the reading of timed periodic
For the mode for single information of being engaged in come what is be updated to internal logistics data information, such as 30 minutes primary;As it can be seen that ERP system is not
Timely update internal logistics data information.That is, the logistics data that end of scan and ERP system exists in the prior art is same
The technical issues of step is slow, poor in timeliness.
Summary of the invention
The embodiment of the present application solves bar code scan system in the prior art by providing a kind of bar code scanning system and method
The technical issues of end of scan of system and the logistics data of ERP system synchronous slow, poor in timeliness, by bar code scanning system
Middleware services unit, for when motion scan terminal request is communicated with ERP system, recalls information management business are set
Interface, so that information management unit (i.e. ERP system) is based on the information management service interface and middleware services unit is established and led to
Letter connection, further, motion scan terminal can pass through communication connection between middleware services unit and ERP system and ERP system
System is communicated, and ERP system is enabled to receive the service request and hold while motion scan terminal upload data information
Row business operation is such as updated internal product stream data information, that is, realizes motion scan terminal and ERP system data
Immediately synchronous technical effect, effectively improves the using experience degree of user;In addition, middleware services unit is receiving shifting
When the service request that dynamic end of scan issues, the service request can be authenticated first, and when certification passes through, just call letter
Cease management business interface, it is ensured that the secure communication of motion scan terminal and ERP system.
On the one hand, the embodiment of the present application provides a kind of bar code scanning system, and the scanning system includes:
Motion scan terminal, middleware services unit and information management unit;
The motion scan terminal carries out data for obtaining the bar code information of sweep object, and to the bar code information
Processing generates service request based on the business datum and asks the business to obtain the business datum of the sweep object
It asks and is sent to the middleware services unit;
The middleware services unit, when certification passes through, calls letter for carrying out authentication processing to the service request
Cease management business interface;
The information management unit, for being established based on the information management service interface and the middleware services unit
Communication connection;
Wherein, the middleware services unit is based on the communication connection and sends the message tube for the service request
Unit is managed, so that the information management unit, which is based on the service request, executes business operation to the business datum.
Optionally, the motion scan terminal, specifically includes:
Bar code scanning module, for obtaining the bar code information;
Message processing module, for carrying out the data processing to the bar code information, to obtain the sweep object
The business datum generates service request based on the business datum and sends the middleware services for the service request
Unit.
Optionally, the middleware services unit, comprising:
Authentication module is requested, carries out the authentication processing for receiving the service request, and to the service request;
Interface calling module, for calling the information management service interface when the service request is authenticated.
Optionally, the middleware services unit, further includes:
User management module is used for the legal legal identification information of motion scan terminal distribution, so that the middleware takes
Unit be engaged in when the motion scan terminal sends the service request to the middleware services unit, obtains the movement and sweeps
The end mark information of terminal is retouched, and judges whether the end mark information is the valid tokens information, so that in described
Between part service unit determine whether to receive the service request.
Optionally, the middleware services unit, further includes:
Service management module, for sending service type information to the motion scan terminal, so that the motion scan
Terminal is based on the service type information and carries out data processing to the bar code information, obtains the business of the sweep object
Data.
Optionally, scanning business application is installed, the middleware services unit is gone back in the motion scan terminal
Include:
Device management module is managed for the scanning business application to the motion scan terminal.
On the other hand, the embodiment of the present application also provides a kind of bar code scanning methods, are applied in bar code scanning system, institute
Stating bar code scanning system includes motion scan terminal, middleware services unit and information management unit, and the scan method includes
Step:
S1, the bar code information that sweep object is obtained by the motion scan terminal, and the bar code information is counted
According to processing, to obtain the business datum of the sweep object, service request is generated based on the business datum and by the business
Request is sent to the middleware services unit;
S2, authentication processing is carried out to the service request by the middleware services unit, when certification passes through, called
Information management service interface, so that the information management unit is based on the information management service interface and the middleware services
Unit establishes communication connection;
S3, the information is sent for the service request based on the communication connection by the middleware services unit
Administrative unit, so that the information management unit, which is based on the service request, executes business operation to the business datum.
Optionally, the middleware services unit can be to legal motion scan terminal distribution valid tokens information, step S1
It specifically includes:
S101, the motion scan terminal to the middleware services unit send the service request when, pass through institute
It states middleware services unit and obtains the end mark information of the motion scan terminal, and whether judge the end mark information
For the valid tokens information, a judging result is obtained;
S102, the judging result be when, receive the service request.
Optionally, before step S1, the scan method is further comprised the steps of:
S4, service type information is sent to the motion scan terminal by the middleware services unit, so that described
Motion scan terminal is based on the service type information and carries out data processing to the bar code information, obtains the sweep object
The business datum.
Optionally, scanning business application is installed, the scan method further includes step in the motion scan terminal
It is rapid:
S5, it is carried out by the scanning business application of the middleware services unit to the motion scan terminal
Management.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
Since in the embodiment of the present application, bar code scanning system includes: motion scan terminal, middleware services unit and letter
Cease administrative unit;Through middleware services unit when motion scan terminal request is communicated with ERP system, recalls information pipe
Business interface is managed, so that information management unit (i.e. ERP system) is based on the information management service interface and middleware services unit
Establish communication connection;Further, motion scan terminal can by communication connection between middleware services unit and ERP system with
ERP system is communicated, and ERP system is enabled to receive the service request, and the industry obtained based on the scanning of motion scan terminal
Data of being engaged in execute business operation, i.e., execute business operation while motion scan terminal upload data information, such as produce to inside
Product logistics data information is updated, and solves the logistics of the end of scan of bar code scanning system and ERP system in the prior art
Data synchronize the technical issues of slow, poor in timeliness, realize the motion scan terminal technology immediately synchronous with ERP system data and imitate
Fruit effectively improves the using experience degree of user;In addition, middleware services unit is receiving the sending of motion scan terminal
When service request, the service request can be authenticated first, and when certification passes through, ability recalls information management business interface,
Ensure the secure communication of motion scan terminal and ERP system.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, 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
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of bar code scanning system structural block diagram provided by the embodiments of the present application;
Fig. 2 is motion scan terminal inner structural block diagram provided by the embodiments of the present application;
Fig. 3 is middleware services unit internal structure block diagram provided by the embodiments of the present application;
Fig. 4 is the working principle block diagram of service management module provided by the embodiments of the present application;
Fig. 5 is the working principle block diagram of device management module provided by the embodiments of the present application;
Fig. 6 is a kind of bar code scanning method flow chart provided by the embodiments of the present application;
Fig. 7 is second of bar code scanning method flow chart provided by the embodiments of the present application.
Specific embodiment
The embodiment of the present application is solved in the prior art and is solved in the prior art by providing a kind of bar code scanning system
The technical issues of end of scan of bar code scanning system and the logistics data of ERP system synchronous slow, poor in timeliness, by bar code
Middleware services unit is set in scanning system, for calling letter when motion scan terminal request is communicated with ERP system
Management business interface is ceased, so that information management unit (i.e. ERP system) is based on the information management service interface and middleware services
Unit establishes communication connection, and further, motion scan terminal can pass through the communication link between middleware services unit and ERP system
It connects and is communicated with ERP system, ERP system is enabled to receive the service request and in motion scan terminal upload data information
While execute business operation, such as internal product stream data information is updated, that is, realizes motion scan terminal and ERP
The technical effect that system data synchronizes immediately effectively improves the using experience degree of user;In addition, middleware services unit exists
When receiving the service request of motion scan terminal sending, the service request can be authenticated first, and when certification passes through,
Ability recalls information management business interface, it is ensured that the secure communication of motion scan terminal and ERP system.
The technical solution of the embodiment of the present application is in order to solve the above technical problems, general thought is as follows:
The embodiment of the present application provides a kind of bar code scanning system, comprising: motion scan terminal, middleware services unit and
Information management unit;The motion scan terminal is carried out for obtaining the bar code information of sweep object, and to the bar code information
Data processing generates service request based on the business datum and by the industry to obtain the business datum of the sweep object
Business request is sent to the middleware services unit;The middleware services unit, for being authenticated to the service request
Processing, when certification passes through, recalls information management business interface;The information management unit, for being based on the information management
Business interface and the middleware services unit, which are established, to be communicated to connect;Wherein, the middleware services unit is based on the communication
The service request is sent the information management unit by connection, so that the information management unit is based on the service request
Business operation is executed to the business datum.
As it can be seen that in the embodiment of the present application, bar code scanning system include: motion scan terminal, middleware services unit and
Information management unit;Through middleware services unit when motion scan terminal request is communicated with ERP system, recalls information
Management business interface, so that information management unit (i.e. ERP system) is based on the information management service interface and middleware services list
Member establishes communication connection;Further, motion scan terminal can pass through the communication connection between middleware services unit and ERP system
It is communicated with ERP system, ERP system is enabled to receive the service request, and obtained based on the scanning of motion scan terminal
Business datum executes business operation, i.e., business operation is executed while motion scan terminal upload data information, such as to inside
Product stream data information is updated, and solves the object of the end of scan of bar code scanning system and ERP system in the prior art
Flow data synchronizes the technical issues of slow, poor in timeliness, realizes the motion scan terminal technology immediately synchronous with ERP system data
Effect effectively improves the using experience degree of user;In addition, middleware services unit is receiving the sending of motion scan terminal
Service request when, the service request can be authenticated first, and when certification passes through, ability recalls information management business connects
Mouthful, it is ensured that the secure communication of motion scan terminal and ERP system.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper
It states technical solution to be described in detail, it should be understood that the specific features in the embodiment of the present application and embodiment are to the application
The detailed description of technical solution, rather than the restriction to technical scheme, in the absence of conflict, the application are implemented
Technical characteristic in example and embodiment can be combined with each other.
Embodiment one
Referring to FIG. 1, the embodiment of the present application provides a kind of bar code scanning system, be widely used in supermarket, logistics express delivery,
In terms of the logistics managements such as taking care of books, the scanning system includes: motion scan terminal 10, middleware services unit 20 and information
Administrative unit 30;
Motion scan terminal 10 carries out at data for obtaining the bar code information of sweep object, and to the bar code information
Reason generates service request based on the business datum and by the service request to obtain the business datum of the sweep object
It is sent to the middleware services unit;
Middleware services unit 20, for carrying out authentication processing, when certification passes through, recalls information to the service request
Management business interface;
Information management unit 30, for being communicated based on the information management service interface with the foundation of middleware services unit 20
Connection;
Wherein, middleware services unit 20 is based on the communication connection and sends information management unit for the service request
30, so that information management unit 30, which is based on the service request, executes business operation to the business datum.
Currently, as more and more product batch metaplasias produce, in order to effectively be managed bulk article, bar code scan
System is essential logistic management system, an important production link is provided on production assembly line, as
Each product sticks unique bar-code label, so that the later period is managed product warehousing, outbound, sale etc..In order to
More easily carry out product bar code scan, bar code scanning system mostly uses motion scan terminal, such as use in the prior art compared with
More traditional industry grade PDA barcode scanners.
Specifically, motion scan terminal 10 can obtain type of service, such as product warehousing, outbound type service first, so
Bar code scan is carried out to sweep object (such as product) afterwards, obtains its bar code information, further, based on type of service to scanned production
The bar code information of product carries out data processing, obtains the business datum of the sweep object, and send out to middleware services unit 20
Service request is sent, for example, be recorded as being put in storage by the Product Status with the bar code information when type of service is product warehousing,
And the service request for submitting business datum is sent to middleware services unit 20;Middleware services unit 20 carries out service request
Authentication processing judges whether service request is legal, when the judgment result is no, which is filtered out, judging result is worked as
When to be, recalls information management business interface, so that information management unit 30 is based on the information management service interface and middleware
Service unit 20 establishes communication connection;Information management unit 30 is based on the communication connection, receives middleware services unit 20 and forwards
The service request from motion scan terminal 10, further, based on the service request to the business datum execute business
Operation, for example, information management unit 30 receives the business datum, will when the service request is that business datum is submitted in request
In management system about the state information updating of the product be put in storage.
In a particular application, a usual bar code scanning system includes information management unit 30 (such as ERP system), one
A middleware services unit 20 and multiple motion scan terminals 10.The type of service of bar code scanning system includes motion scan terminal
10 submit business datum, query traffic data, downloading service data etc. to information management unit 30, not according to type of service
Together, the service request of each motion scan terminal 10 is also multiplicity, and corresponding information management unit 30, which is based on the business, asks
Asking and executing business operation to the business datum is also multiplicity, is not specifically limited here.
With the fast development of the communication technology, internet has been also applied in logistics management, motion scan terminal 10, centre
It can be carried out data transmission by internet between 30 three of part service unit 20 and information management unit, such as wire communication or nothing
Line communicates (communications such as including wifi, 3G, 4G), effectively improves the efficiency of logistics management.In the present embodiment,
Bar code scanning system can be supported to operate with execution logistics business under off-line mode in on-line model, also due to bar code scanning system
One important role is exactly to check the value volume and range of product of product, below by taking product warehouse-out is checked as an example to bar code scanning system at
The communication process that logistics business is executed when on-line mode or off-line mode describes in detail:
In the specific implementation process, it is stored with the initial information of product in information management unit 30 (i.e. ERP system), wraps
It includes: the information such as barcode number, material number, storage lot number, unit, quantity in stock.Outbound service class is obtained in motion scan terminal 10
Before carrying out bar code scan after type and to product, motion scan terminal 10, which needs to obtain outbound from information management unit 30, to be produced
Product check job order.
Specifically, when network environment is preferable, motion scan terminal 10, middleware services unit 20 and information management list
First 30 threes can be carried out data transmission using on-line mode.When bar code scanning system, which is in, works online mode, motion scan
Terminal 10 sends inquiry business request to information management unit 30, and information management unit 30 is requested according to the inquiry business, in real time
Ground allow 10 online query outbound product of motion scan terminal check job order so that motion scan terminal 10 be based on the job order into
Row product bar code scan and quantity and the model of checking product etc., and obtain product warehouse-out checked result data;Verification finishes
Afterwards, motion scan terminal 10 sends to information management unit 30 submit service data request again, by the product warehouse-out core of acquisition
Information management unit 30 is sent to result data, so that the product information of 30 pairs of information management unit storages is updated, such as
The former inventory of product A is 1000, this time only lists 100 A products in outbound task list, and motion scan terminal 10 is based on
After the job order is scanned verification, the product warehouse-out checked result fed back to information management unit 30 is statistics indicate that 100 A are produced
Product outbound, information management unit 30 are updated to 900 to the stockpile number of A product.
When network environment is poor, motion scan terminal 10, middleware services unit 20 and information management unit 30 3
Person can be carried out data transmission using off-line mode.When bar code scanning system, which is in, works offline mode, motion scan terminal 10
Downloading service request is sent to information management unit 30, information management unit 30 is requested according to the downloading service, in real time to shifting
Dynamic end of scan 10 sends outbound product and checks job order;Motion scan terminal 10 stores the job order, and being based on should
Job order carries out product bar code scan and quantity and the model of checking product etc.;As it can be seen that no network or Network status compared with
In the case where difference, motion scan terminal 10 can also check the verification scanning behaviour that job order carries out outbound product based on outbound product
Make;In addition, motion scan terminal 10 can also store the product warehouse-out checked result data of acquisition, situation to be entered is good
It after in good network environment, then is sent to information management unit 30 and submits service data request, the product warehouse-out of acquisition is checked
Result data is sent to information management unit 30, so that the product information of 30 pairs of information management unit storages is updated.
It should be pointed out that the communication between above-mentioned motion scan terminal 10 and information management unit 30 is all based on centre
What part service unit 20 (being not directed in the prior art) carried out.
In the present embodiment, referring to FIG. 2, motion scan terminal 10, specifically includes: bar code scanning module 101, for obtaining
Take the bar code information;Message processing module 102, for carrying out the data processing to the bar code information, described in obtaining
The business datum of sweep object generates service request based on the business datum, and sends the service request to
Between part service unit 20.Motion scan terminal 10 can be smart phone, tablet computer etc., wherein smart phone or plate electricity
The system of brain can be apple system, Android system etc., i.e. the bar code scanning system of application scheme is using ERP system as core
The heart, being capable of cross-platform more motion scan terminals uses.
In the prior art, PDA scanner used is that enterprise orders to PDA manufacturer according to actual needs.
General PDA scanner does not have wireless communication module (not supporting wirelessly to communicate with ERP system) and/or memory
Space is smaller (such as 512Mbyte can not support the offline business of big data quantity to operate);If enterprise, which needs to order, has nothing
The PDA scanner of line communication module and larger memory headroom needs to spend the fund of writing, so that product cost improves.It is opposite and
Speech, in the present embodiment, motion scan terminal can be smart phone, tablet computer, with the fast development of electronic information,
One mobile phone of basic manpower, if can use motion scan terminal of the mobile phone as bar code scanning system, enterprise does not need to purchase
Set motion scan terminal, it is only necessary to employee be allowed to use mobile phone that can reduce enterprise in motion scan terminal as motion scan terminal
On cost expense;Further, the memory headroom of smart phone and tablet computer is larger, is usually single with gigabyte (Gbyte)
Position, can support the offline business of larger data amount to operate;In addition, the core processor CPU of smart phone and tablet computer
Treatment effeciency will be significantly larger than the treatment effeciency of tradition PDA scanner.Certainly, in the actual operation process, need on mobile phone
Relevant application program is installed, is used for and middleware services unit communication.
In the specific implementation process, smart phone is needed as motion scan terminal by smart phone or tablet computer
Or tablet computer is provided with camera, for being used as the bar code scanning module 101, at this point, smart phone or tablet computer
CPU can be used as message processing module 102.
Since smart phone or tablet computer camera are weaker to the focusing ability of bar code, scan operation timeliness is being executed
Rate is not high enough, is suitable for the product stream of negligible amounts using smart phone or tablet computer as the scheme of motion scan terminal
In management application.It is opposite, if it is desired to realize efficient bar code scan operation by smart phone or tablet computer, need for
Smart phone or tablet computer configure special bar code scanning module 101, and smart phone or tablet computer are as information processing
Module 102 uses;Specifically, bar code scanning module 101 can be indigo plant when smart phone or tablet computer support Bluetooth function
Tooth scan module, it is converted into electric signal using the optical signal that photoelectric cell will test, then electric signal is passed through simulation numeral
Converter is converted into digital signal, then will be in digital data transmission to smart phone or tablet computer by Bluetooth path;Bluetooth
It is very high that scan module cooperates smart phone or tablet computer to carry out bar code scan efficiency.In the present embodiment, bluetooth scanning module
Volume very little, facilitate staff cooperate smart phone (or tablet computer) carry out bar code scanning use.
In the prior art, PDA scanner and ERP system are communicated by ERP system job order, so that PDA is swept
Device slow, poor in timeliness synchronous with the logistics data of ERP system is retouched, in response to this problem, referring to FIG. 3, in the embodiment of the present application
Provided with middleware services unit 20, comprising: request authentication module 201, for receiving the service request, and to the business
Request carries out the authentication processing;Interface calling module 202, for when the service request is authenticated, described in calling
Information management service interface.
Specifically, in the present embodiment, information management unit 30 is specially ERP system, information management service interface is SOA
(Service Oriented Architecture) interface, wherein SOA interface is that the one kind supported based on Web Service is connect
Degree of lip-rounding formula, at Web Service can directly by application call, solution be isomery interface interconnection problem, advantage
For that can return the result in real time, real-time it is high.
Since in the embodiment of the present application, middleware services unit 20 is to be based on information management unit 30 (ERP system)
Web Service is communicated, and therefore, interface calling module 202 can call directly SOA interface and be communicated with ERP system,
I.e. motion scan terminal 10 can be communicated directly by SOA interface with ERP system, rather than by ERP system job order, make
Motion scan terminal and ERP system data can synchronous logistics information immediately, effectively improve the using experience degree of user.
In addition, in the prior art, PDA scanner and ERP system are directly communicated in bar code scanning system, by
Usually not identical in ERP system supplier and the supplier of PDA scanner, for business efficiency, ERP system supplier is provided with
(i.e. ERP license) is permitted in ERP connection, that is to say, that the number for the PDA scanner that can be communicated with ERP system has
Limit, such as 20, but for one produce in batches product enterprise, such as mineral water manufacturer, the product quantity for needing to manage at
Thousand is up to ten thousand, and in the actual operation process, the quantity of the PDA scanner of concrete application is larger (such as 100), then mineral water manufacturer
Need to purchase 5 above-mentioned ERP systems, or the customization one that spends huge sums can support the ERP system of 100 PDA scanners.
For the technical problem that the motion scan terminal quantity of above-mentioned ERP system support is limited, with continued reference to FIG. 3,
In the embodiment of the present application, middleware services unit 20, further includes:
User management module 203 is used for the legal legal identification information of motion scan terminal distribution, so that middleware services
Unit 20 obtains movement and sweeps when the motion scan terminal 10 sends the service request to the middleware services unit 20
The end mark information of terminal 10 is retouched, and judges whether the end mark information is the valid tokens information, so that intermediate
Part service unit 20 determines whether to receive the service request.
In the specific implementation process, a usual bar code scanning system includes (such as ERP a system of information management unit 30
System), a middleware services unit 20 and multiple motion scan terminals 10;Wherein, user management module 203 can be managed in
Between part service unit 20 dock multiple motion scan terminals 10.Middleware services unit 20 is specifically as follows a set of management system
System, may be provided at and be equipped in the terminal of ERP system, and have exclusive user interface, so that staff can pass through
The user interface operates middleware service unit 20, to manage the permission of motion scan terminal;Specifically, building
When the bar code scanning system, (unique user is distributed for each legal legal identification information of motion scan terminal distribution
ID), and can invalid allocated valid tokens information when needed, be using motion scan terminal as smart phone
Example, after bar code scan staff leaves office, staff will be left office by the user interface of operation middleware services unit 20
User ID on staff's mobile phone is invalid, so that it loses business function, to be unable to query traffic data and downloading service
Data etc., it is ensured that the safety of enterprise product information.Further, motion scan terminal 10 sends out to middleware services unit 20
When sending service request, User ID (the i.e. described end mark letter of motion scan terminal 10 is obtained by user management module 203
Breath), if motion scan terminal 10 does not have User ID or illegal User ID, determine that motion scan terminal 10 is illegal uses
Family, and the service request is filtered out, if the User ID of motion scan terminal 10 is legal, receive the service request.
Further, in the specific implementation process, when multiple motion scan terminals 10 are legitimate user, user management mould
Block 203 can also limit the operable type of service of each motion scan terminal institute in the multiple motion scan terminal 10, such as right
Limiting it in motion scan terminal A has submission business datum, three kinds of query traffic data, downloading service data types of service,
And limiting it for motion scan terminal B has submission two kinds of types of service of business datum and query traffic data etc.;Specifically,
While user management module 203 limits the type of service of each legal motion scan terminal, to each motion scan terminal distribution industry
Service type identification information, such as distribute " LX2 " to motion scan terminal A distribution " LX1 ", to motion scan terminal B, i.e., " LX1 "
It specifies legal motion scan terminal to have and submits business datum, three kinds of query traffic data, downloading service data types of service,
" LX2 " specifies legal motion scan terminal to have and submits two kinds of business datum, query traffic data types of service;That is,
When motion scan terminal B sends the service request of downloading service data to middleware services unit 20, authentication module 201 is requested
It can authenticate to obtain the service request to be illegal, and ignore the service request.
In the embodiment of the present application, by setting middleware services unit 20, and pass through middleware services unit 20
User management module 203 manages the permission of motion scan terminal user, avoids or alleviate ERP license couple in the prior art
The limitation of motion scan terminal number has saved logistics management cost to produce the enterprise of product in batches.
Certainly, in the embodiment of the present application, in order to enable motion scan terminal 10 can be passed to middleware services unit 20
Transmission of data and middleware services unit 20 can manage motion scan terminal 10, and branch is equipped in motion scan terminal 10
Hold the scanning business application that (i.e. matching middleware services unit 20) is communicated with middleware services unit 20.In addition, having
In body implementation process, if the scanning business application can be supported to install using more PDA scanner in the prior art,
It can also be communicated by installing the application program in its storage equipment with middleware services unit 20, realize that an ERP system can
Multiple PDA scanners are docked, and the number of PDA scanner is not limited by ERP license, certainly, ERP system and multiple PDA
It is needed between scanner using middleware services unit 20 as communication bridge.
In the specific implementation process, it is asked in order to facilitate logistics staff to 10 specified services type of motion scan terminal
With reference to Fig. 4, the middleware services unit 20 of the bar code scanning system of the embodiment of the present application, further includes:
Service management module 204, for sending service type information to motion scan terminal 10, so that motion scan terminal
10 carry out data processing to the bar code information based on the service type information, obtain the business number of the sweep object
According to.
Further, in order to facilitate logistics staff to the scanning business application liter in motion scan terminal 10
Grade management, referring to FIG. 5, the middleware services unit 20 of the bar code scanning system of the embodiment of the present application, further includes:
Device management module 205 is managed for the scanning business application to motion scan terminal 10.
Specifically, logistics staff can be that motion scan is whole by operating the user interface of middleware services unit 20
10 specified services types are held, and (such as remote upgrade is repaired) is managed to scanning business application.
Embodiment two
Based on the same inventive concept, the embodiment of the present application also provides a kind of bar code scanning methods, are applied to bar code scan
In system, referring to FIG. 1, the bar code scanning system includes motion scan terminal 10, middleware services unit 20 and message tube
Manage unit 30;Referring to FIG. 6, the scan method comprising steps of
S1, the bar code information that sweep object is obtained by motion scan terminal 10, and data are carried out to the bar code information
Processing generates service request based on the business datum and asks the business to obtain the business datum of the sweep object
It asks and is sent to middleware services unit 20;
S2, authentication processing is carried out to the service request by middleware services unit 20, when certification passes through, calls letter
Management business interface is ceased, so that information management unit 30 is based on the information management service interface and builds with middleware services unit 20
Vertical communication connection;
S3, information management list is sent for the service request based on the communication connection by middleware services unit 20
Member 30, so that the information management unit 30, which is based on the service request, executes business operation to the business datum.
In the specific implementation process, middleware services unit 20 can be believed to legal motion scan terminal distribution valid tokens
Breath, referring to FIG. 7, step S1 is specifically included:
S101, when motion scan terminal 10 sends the service request to middleware services unit 20, pass through middleware
Service unit 20 obtains the end mark information of motion scan terminal 10, and judges whether the end mark information is the conjunction
Method flag information obtains a judging result;
S102, the judging result be when, the service request is received by middleware services unit 20;Described
When judging result is no, the service request is filtered by middleware services unit 20.
In the specific implementation process, referring still to Fig. 7, before step S1, the scan method is further comprised the steps of:
S4, service type information is sent to motion scan terminal 10 by middleware services unit 20, so that motion scan
Terminal 10 is based on the service type information and carries out data processing to the bar code information, obtains the industry of the sweep object
Business data.
In the specific implementation process, referring still to Fig. 7, scanning service application journey is installed in the motion scan terminal 10
Sequence, the scan method further comprise the steps of:
S5, pipe is carried out by the scanning business application of the middleware services unit 20 to motion scan terminal 10
Reason.
As described above, above-mentioned bar code scanning method is applied in above-mentioned bar code scanning system, so, which sweeps
The embodiment for retouching method is consistent with the course of work of the bar code scanning system, just no longer repeats one by one herein.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.