Disclosure of Invention
In order to solve the technical problems, the application provides a channel checking method and device, which can accurately determine inventory data of distribution channel nodes, and avoid that a manufacturer cannot identify errors of the inventory data under the condition that the inventory data counted by the distribution channel nodes are wrong, so that the manufacturer makes unreasonable production plans, market management, sales decisions and the like according to the wrong inventory data.
The embodiment of the application discloses the following technical scheme:
the embodiment of the application provides a collector development platform, wherein drivers corresponding to different operating systems are stored in the development platform, and the development platform comprises a hardware driving layer, an intermediate isolation layer and a service processing layer:
the intermediate isolation layer is used for isolating the hardware driving layer and the service processing layer, a configuration management module in the intermediate isolation layer is used for reading configuration information of a collector, and the configuration information is used for identifying a target operating system of the collector;
the hardware driving layer comprises a hardware driving engine, and the hardware driving engine is used for determining a target driving program corresponding to the target operating system according to the configuration information so as to call the target driving program to drive the collector;
the business processing layer is used for finishing the initialization of the business page through the business processing engine and finishing various business functions by using the logistics codes acquired by the collector.
Optionally, the hardware driving engine calls the target program to drive the collector, including:
and the hardware driving engine calls the target program to drive the collector to be opened and closed.
Optionally, the development platform further includes an automatic update module:
and the automatic updating module is used for updating the target driver corresponding to the target operating system according to the latest version after detecting the latest version of the target operating system.
Optionally, the service processing layer further includes a markup language interpretation engine:
the markup language interpretation engine is used for interpreting all markup languages, and the markup languages are used for identifying various business functions and business pages of the business functions.
Optionally, the service processing layer further includes a page rendering engine:
and the page rendering engine is used for completing service page rendering according to the markup language.
Optionally, the intermediate isolation layer further includes a data access module, a log management module, a system parameter module, and a network transmission management module:
the data access module is used for completing the functions of adding, deleting and modifying required by database access;
the log management module is used for recording errors, alarms and debugging logs generated in the running process;
the system parameter management module is used for establishing global parameters;
the network transmission management module is used for managing various network transmission protocols.
Optionally, the configuration information is further configured to identify working bases of the data access module, the log management module, the system parameter module and the network transmission management module, and the configuration management module is further configured to send the configuration information to the data access module, the log management module, the system parameter module and the network transmission management module, respectively.
Optionally, the intermediate isolation layer further includes a system scheduling engine:
the system scheduling engine is used for uniformly calling the configuration management module, the data access module, the log management module, the system parameter module and the network transmission management module by adopting an agent mode through a uniform entry.
According to the technical scheme, the embodiment of the application has the following advantages:
the collector development platform provided by the embodiment of the application stores driving programs corresponding to different operating systems, and comprises a hardware driving layer, an intermediate isolation layer and a service processing layer. The configuration management module in the middle isolation layer is used for reading configuration information of the collector, and the configuration information can identify a target operating system of the collector. Therefore, after the hardware driving engine in the hardware driving layer acquires the configuration information, the hardware driving engine can determine the target driving program corresponding to the target operating system according to the configuration information, so as to call the target driving program driving collector. The business processing layer is used for finishing the initialization of the business page through the business processing engine and finishing various business functions by using the logistics codes acquired by the acquisition device. Therefore, the drivers corresponding to different operating systems are stored in the development platform through one-time development, so that the development platform can support different collectors, and when different collectors are used for scanning codes, only the driver corresponding to the operating system of the collector is required to be directly called to drive the collector, secondary development is not required to be carried out again, the subsequent system maintenance workload is reduced, and the development difficulty and the development cost are reduced.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The existing collector development platform supports a single collector, because the collectors are various, the corresponding driving of different collectors is not uniform, when different collectors are used for scanning codes, secondary development is required to be carried out on the collectors again on the development platform, so that the development cost is high, and the development difficulty is high.
Therefore, the embodiment of the application provides a collector development platform, because the development platform stores the driving programs corresponding to different operating systems, the development platform can support different collectors, and when different collectors are used for scanning codes, only the driving programs corresponding to the operating systems of the collectors are required to be directly called to drive the collectors, secondary development is not required to be carried out again, the subsequent system maintenance workload is reduced, and the development difficulty and the development cost are reduced.
Next, the collector development platform provided in the embodiment of the present application will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 shows a block diagram of a collector development platform. The development platform includes a hardware driver layer 100, an intermediate isolation layer 200, and a business processing layer 300.
The collectors may include a wide variety of, for example, motorola (Motorola) collectors, hotwell collectors, new large Liu Caiji collectors, IDATA collectors, etc., as different collectors may have different operating systems, for example, the operating system of the Motorola (Motorola) collectors is wince6.0, the operating system of the hotwell collectors is wineh6.5, the operating system of the new continent collectors is android, and the operating system of the IDATA collectors is android. Therefore, in the present embodiment, drivers corresponding to different operating systems are stored in the development platform.
The configuration management module 201 in the middle isolation layer 200 is configured to read configuration information of a collector, where the configuration information is used to identify a target operating system of the collector.
For example, when using a new continent collector, the configuration management module 201 may read the configuration information of the collector, knowing that the operating system of the collector is android.
The hardware driver layer 100 includes a hardware driver engine 101, where the hardware driver engine 101 is configured to determine a target driver corresponding to a target operating system according to configuration information, so as to call a target driver collector.
For example, if the configuration information read by the configuration management module 201 indicates that the operating system of the collector is android, the hardware driving engine 101 may call a target driver for driving the android operating system according to the configuration information, so as to drive the collector.
In some possible implementations, the hardware driver engine 101 invoking the object driver collector includes the hardware driver engine 101 invoking the object driver collector to turn on or off, which may specifically refer to driving the scan head of the collector on or off. Of course, the functions of sound, vibration, message prompt and the like can also be completed through the driving function of the target driving program.
The service processing layer 300 is configured to complete service page initialization through the service processing engine 301, and complete various service functions by using the logistics codes acquired by the collector.
The service processing layer 300 may perform various service functions, such as package coding, warehouse management (i.e., warehouse management by warehouse scanning), inventory management, etc., as shown in fig. 1.
When the business processing layer 300 can complete the warehouse entry management, the business development is performed once, and the corresponding driver is called to drive, so that a next simple warehouse entry scanning page (i.e., business page) can be smoothly realized on different hardware devices (collectors of different operating systems), wherein the business pages realized by the collectors of different operating systems are shown in fig. 2, wherein the left business page in fig. 2 corresponds to the collector of the windows ce operating system, the right business page in fig. 2 corresponds to the collector of the android operating system, and the functions realized by the two are basically the same and only differ in detail. For example, the binning scan date 2015-06-02 is displayed on the business page of the collector of the windows ce operating system, while the binning scan date is not displayed on the business page of the collector of the windows ce operating system; as another example, the background colors of the two are different.
It should be noted that, in this embodiment, a markup language is provided to complete the development of service logic. Thus, in one possible implementation, referring to FIG. 3, the business processing layer 300 further includes a markup language interpretation engine 302:
the markup language interpretation engine 302 is used to interpret all markup languages used to identify various business functions and business pages of business functions.
Since business logic is developed through a markup language, all markup languages can be interpreted by the markup language interpretation engine 302 to know what business functions are to be implemented and how to display the corresponding business pages.
The business processing layer 300 also includes a page rendering engine 303, the page rendering engine 303 performing business page rendering according to a markup language.
The service page shown in fig. 2, for example, the markup language identifies the positions of the input boxes such as "warehouse entry number", "product number", and the like, and the positions, shapes, and the like of the function keys such as "switch number", "change product", "force end", "exit", and the like, so that the page rendering engine 303 can render the service page according to the markup language.
It should be noted that, in this embodiment, the intermediate isolation layer 200 further includes a data access module 202, a log management module 203, a system parameter module 204, and a network transmission management module 205:
the data access module 202 is used for completing the functions of adding, deleting and modifying required by database access;
the log management module 203 is used for recording errors, alarms and debug logs generated in the running process;
a system parameter management module 204, configured to establish global parameters;
the network transmission management module 205 is configured to manage various network transmission protocols.
Therefore, in some possible implementations, the configuration information is further used to identify the working basis of the data access module 202, the log management module 203, the system parameter module 204, and the network transmission management module 205, and after the configuration management module 201 obtains the configuration information, the configuration management module 201 may further send the configuration information to the data access module 202, the log management module 203, the system parameter module 204, and the network transmission management module 205, so that each module works according to the received configuration information.
For example, if the configuration information identifies a logging manner, the log management module 203 may log according to the configuration information sent by the configuration management module 201.
In one possible implementation, the intermediate isolation layer 200 further includes a system scheduling engine 206:
the system scheduling engine 206 is configured to call the configuration management module 201, the data access module 202, the log management module 203, the system parameter module 204, and the network transmission management module 205 in a proxy mode through a unified portal.
It should be noted that in some cases, the operating system of the collector may be continuously updated, for example, the current operating system may be updated to V2.0, and then may be updated to V2.1, and so on. Different versions of operating systems can correspond to different drivers, in general, a driver of a high version of operating system can drive a low version of operating system, and a driver of a low version of operating system cannot drive a high version of operating system, so that after the operating system is upgraded, the driver needs to be correspondingly upgraded to realize the driving of the high version of operating system.
To this end, in some possible implementations, the development platform further includes an automatic update module 400, where after detecting the latest version of the target operating system, the automatic update module 400 updates the target driver corresponding to the target operating system according to the latest version networking.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, where the above program may be stored in a computer readable storage medium, and when the program is executed, the program performs steps including the above method embodiments; and the aforementioned storage medium may be at least one of the following media: read-only memory (ROM), RAM, magnetic disk or optical disk, etc., which can store program codes.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment is mainly described in a different point from other embodiments. In particular, for the apparatus and system embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, with reference to the description of the method embodiments in part. The apparatus and system embodiments described above are merely illustrative, in which elements illustrated as separate elements may or may not be physically separate, and elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The foregoing is merely one specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.