

The RFID system introduces RFID technology into the existing warehouse management, and automatically collects the data of each operation link, such as warehouse arrival weighing, inspection, warehousing, warehousing, allocation, warehouse transfer, inventory counting, etc., to ensure the speed and accuracy of data input in each link of warehouse weighing management, to ensure that enterprises can grasp the real data of inventory in time and accurately, and to maintain and control enterprise inventory reasonably. Through scientific coding, it is also convenient to manage the batch and shelf life of items. Using the location management function of RFTD warehouse weighing system, we can know the current location of all inventory materials in time, which is conducive to improving the efficiency of warehouse management.

The design and realization of the new Electronic scale based on the touch screen application are simple, and the traditional electronic scale has been unable to meet the needs of the market with the rapid development of the Internet economy today. And with the advent of the era of big data, the functional deficiency of traditional electronic scales in weighing, transaction record storage and statistics has become increasingly apparent. The use of RFID radio frequency identification module "or Bluetooth module" for wireless transmission of electronic scale data, but there is no design of the corresponding application program for data storage and processing. Some wireless electronic scale systems based on Bluetooth 2.0 modules and touch screen applications can realize the processing and storage of weight data. Some studies focus on improving the data processing capacity of electronic scales. For example, there is a cashier scale system based on a touch screen platform, which can realize the functions of commodity management, pricing cashier, transaction record storage and so on.
Based on the touch screen application of the new electronic scale, on the basis of the use of custom communication interface protocol, through the wired/wireless way to achieve the data transmission between the weighing module (including the communication module) and the touch screen terminal, the electronic scale APP running on the touch screen system has the functions of commodity management, pricing cash register, data storage, data analysis and other functions. The design of using two methods for data transmission is conducive to improving the reliability of the electronic scale system and adapting to more applications. The electronic scale APP based on the touch screen system can easily and quickly expand the functions of the traditional electronic scale, the speed of function iteration is faster, the development cost is lower, and the cost of users can be greatly reduced.
The new electronic scale is mainly composed of two parts: weighing module (including communication module) and touch screen tablet computer. The weighing and communication module includes weighing sensor, HX712A/D conversion module, CC2540 Bluetooth low power module 7≈ and PL2303HXDUSB to serial port module. The CC2540 chip is embedded with an RF transceiver and runs the BLE4.0 protocol stack, with both control and Bluetooth communication functions. The touchscreen tablet uses UnisCom's mz73. The new electronic scale is designed with independent power modules, including 1 5V/1A and 1 5V/2A, respectively for the weighing module (including communication module) and tablet computer power supply.
The new electronic scale has two functions of data acquisition and transmission and data storage and processing. Each layer contains several sub-layers, with the lower layer providing data or interfaces to the upper layer.
Weighing and communication module design and implementation
The core functions of weighing sensor include sensor data acquisition and data communication according to the customized communication interface protocol. In practical application, the input and output characteristics of strain gauge weighing sensor have nonlinear errors. At the same time, the HX712A/D conversion module may also have abnormal output when subjected to external interference, so the electronic balance uses the limiting and arithmetic average methods to filter the weighing data, and uses the curve fitting method to correct the error of the sensor.
Design and implementation of APP based on touch screen system
The APP uses a mix of Java language and Extensible Markup Language for programming. Java language is mainly used to write application process and logic, XML is mainly used for interface layout design called. The main functions of the APP application include commodity management, weight data receiving and processing, transaction record management, report generation, function setting.
The Database Design APP uses SQLite, a lightweight relational database integrated with the touch screen system, to store user data. In order to realize the function of commodity management and transaction record storage, the commodity information table is used to store the basic information of the commodity, such as name, unit price, etc. The transaction record table is used to store the general information of the transaction, such as time, transaction volume, etc., with a small amount of information, so that users can quickly understand the transaction situation, while the transaction record detail table stores the detailed information of the commodities traded in each transaction, with a large amount of information, which can be used to count the sales volume of commodities. A product information occupies 23B of storage space, because each product information corresponds to a picture, and after testing, a picture with a size of about 30KB can meet the display needs. Therefore, for a user with 100 products, about 2.3KB of storage space is required to store product information and about 3MB of storage space is required to store product images. One transaction record takes up 37B of storage space, and one transaction record detail takes up 60B of storage space. For a user with about 500 transactions per day and about 50 items per transaction, about 1.5MB of transaction data is generated in a day. Therefore, the touch screen tablet can meet the space requirements of data storage.
Commodity management The process of commodity management, users can add, find, delete and other operations on the commodity information in the database. In addition, the interface also has the function of simple cash register and interface jump. The user can jump to the data receiving and processing interface by clicking on the commodity in the commodity list, and the selected specific commodity information will be used for pricing and generating transaction records.
For data reception and processing, the APP will switch the communication mode to Bluetooth mode or USBHost mode according to the user's Settings, and automatically connect the weighing and communication module, and then generate the corresponding transaction record according to the user's selected goods or the unit price entered. In addition, the interface also provides functions such as peeling, clearing and cash register.
Transaction record management The transaction record interface provides the functions of viewing, deleting, and exporting transaction records and transaction record details. The user can select the transaction time through the drop-down menu, and then perform corresponding operations on the filtered transaction records and transaction record details. On the report page, you can select the time from the drop-down list to view the annual, monthly, or daily reports.
In addition, the app also provides a certain data mining function, by clicking the product chart button, users can view the sales ranking of the top 10 products. By clicking the Time chart button, users can view the distribution of sales for each period.
Custom communication interface protocol design Weighing module through the custom communication interface protocol to carry out data transmission, the traditional electronic scale communication protocol generally includes weight, unit price and total amount of 3 parts, so in order to maintain versatility, the communication protocol retains this part of the content. In addition, the protocol also adds the version number, payment serial number, signature information and verification code. The version number is used to indicate the starting position of the data packet, and the payment serial number is used to distinguish two weighing results. For example, when the same commodity is weighed twice in a row, the serial number can be used to distinguish and generate two transaction data. The signature information can be converted to each data item according to specific rules to encrypt the data. It is used to verify the integrity of weighing data. The weighing module can transmit data through wired and wireless methods, but there are some differences between the two data transmission methods. Through the custom communication interface protocol, the data transmission formats of these two communication modes are unified on the application layer. This layered design is beneficial to shield the differences between the hardware and facilitate the subsequent function expansion.