CN111157093A - Automatic reading method and system for cross-border electronic commercial electronic scale - Google Patents

Automatic reading method and system for cross-border electronic commercial electronic scale Download PDF

Info

Publication number
CN111157093A
CN111157093A CN202010020279.5A CN202010020279A CN111157093A CN 111157093 A CN111157093 A CN 111157093A CN 202010020279 A CN202010020279 A CN 202010020279A CN 111157093 A CN111157093 A CN 111157093A
Authority
CN
China
Prior art keywords
electronic scale
reading
electronic
scale
weighing
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
CN202010020279.5A
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.)
Shenzhen Haidaibao Network Technology Co ltd
Original Assignee
Shenzhen Haidaibao Network 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 Shenzhen Haidaibao Network Technology Co ltd filed Critical Shenzhen Haidaibao Network Technology Co ltd
Priority to CN202010020279.5A priority Critical patent/CN111157093A/en
Publication of CN111157093A publication Critical patent/CN111157093A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G23/00Auxiliary devices for weighing apparatus
    • G01G23/18Indicating devices, e.g. for remote indication; Recording devices; Scales, e.g. graduated
    • G01G23/36Indicating the weight by electrical means, e.g. using photoelectric cells

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an automatic reading method for a cross-border electronic commercial electronic scale, which comprises the following steps: step 1, a system identifies an electronic scale; step 2, initializing the connection parameters of the electronic scale by the system according to the configuration file; step 3, the system monitors the reading of the electronic scale and filters redundant characters; step 4, the system sends a weighing request to the electronic scale; and 5, returning a weight reading to the system by the electronic scale after receiving the weighing request. The beneficial effects are as follows: the method and the system for automatically reading the cross-border electronic commercial scale adopt a weighing processing mode with automatic weight reading, accuracy, high efficiency and strong expandability. Electronic scale connection parameters needing to be connected are configured in advance, programs are automatically connected, when a weighing request is initiated, a data acquisition, filtering, sorting and pushing return request source mechanism is triggered almost at the same time, and the timeliness, accuracy and high efficiency of information are guaranteed.

Description

Automatic reading method and system for cross-border electronic commercial electronic scale
Technical Field
The invention relates to the field of intelligent hardware operation, in particular to an automatic reading method and system for a cross-border electronic commercial electronic scale.
Background
The cross-border electronic commerce is an international business activity which belongs to transaction main bodies of different relations, achieves transaction and payment settlement through an electronic commerce platform, and delivers commodities through cross-border logistics to complete the transaction. Along with the vigorous development of China cross-border electric power business, the requirement of a merchant on weighing is also continuously improved, the weighing inaccuracy is too slow, different electronic scales are incompatible, and the traditional weighing form can not meet the requirement far away. To some extent, this lagging weighing mode has severely restricted the healthy development of cross-border electricity merchants, greatly influenced the experience of weighing, and it is specifically embodied in that:
1. the weighing data is inaccurate, and the real-time stable weight cannot be obtained.
2. Too slow weighing speed and too many steps
3. Different electronic scales are compatible, and the electronic scale needs to be redeveloped when one electronic scale is replaced
Therefore, the finding of an efficient automatic reading method and system for the cross-border electronic commercial scale is a problem which is urgently needed to be solved at present.
Disclosure of Invention
In order to overcome the related defects of the electronic scale mentioned in the background technology, the invention provides an automatic reading method and system of a cross-border electronic commercial electronic scale, which are realized by the following technical scheme.
An automatic reading method for a cross-border electronic commercial scale comprises the following steps: step 1, a system identifies an electronic scale; step 2, initializing the connection parameters of the electronic scale by the system according to the configuration file; step 3, the system monitors the reading of the electronic scale and filters redundant characters; step 4, the system sends a weighing request to the electronic scale; and 5, returning a weight reading to the system by the electronic scale after receiving the weighing request.
Further, in step 1, the system selects the corresponding com port, connects the electronic scale through a serial port, and then identifies the electronic scale.
Further, before step 1, step S1 is included, and the system records corresponding configuration files according to different types of electronic scales.
Further, in step 4, a user may manually initiate a weighing request to the electronic scale or the system may automatically initiate a weighing request to the electronic scale.
Further, in step 5, after receiving the weighing request, the electronic scale searches for a request source and asynchronously returns weight data to a position of the request source.
Further, after the step 5, a step 6 is included, the electronic scale finishes the weighing request, and the system closes the connection with the electronic scale.
An automatic reading system for a cross-border electronic commercial electronic scale comprises an identification module, a reading module and a reading module, wherein the identification module is used for identifying the electronic scale connected through a com port; the initialization module initializes the connection parameters of the electronic scale according to the configuration file; the monitoring module monitors the reading of the electronic scale and filters redundant characters in the reading; the communication module receives a weighing request of a user or a system, transmits the weighing request to the electronic scale, receives a weight reading returned by the electronic scale and transmits the weight reading to the control module; and the control module receives and displays the weight reading transmitted by the communication module.
The invention has the beneficial effects that: the method and the system for automatically reading the cross-border electronic commercial scale adopt a weighing processing mode with automatic weight reading, accuracy, high efficiency and strong expandability. Electronic scale connection parameters needing to be connected are configured in advance, programs are automatically connected, when a weighing request is initiated, a data acquisition, filtering, sorting and pushing return request source mechanism is triggered almost at the same time, and the timeliness, accuracy and high efficiency of information are guaranteed. Meanwhile, the service and the user requirements are combined, the types of the accessed electronic scales are continuously improved, and the compatibility of the weighing equipment is ensured.
Drawings
FIG. 1 is a method flow diagram of a method embodiment of the present invention.
Fig. 2 is a schematic diagram of the system of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In a specific embodiment, an automatic reading method for a trans-border electronic commercial scale is shown in fig. 1, and comprises the following steps:
1. automatically identifying the electronic scale and selecting the corresponding com port, and connecting the electronic scale through a serial port form
The system program can automatically find the com port connected with the electronic scale, the com port is connected in a serial port mode, and if the com port cannot be found, a user can be prompted to check whether the electronic scale is connected correctly.
2. Initializing electronic scale operation classes based on configuration
Because different electronic scales, the connection parameter has some differences slightly, and the user can generate different configuration files according to the electronic scale kind, and the system can record the connection parameter of every electronic scale that docks to the configuration file simultaneously, when transferring the electronic scale and connecting, can look for corresponding connection parameter, connects, if do not have the specified parameter then by the automatic matching of system.
3. Monitoring the reading of the electronic scale and filtering redundant characters
The system realizes acquisition of real-time weighing readings of the electronic scales by adding reading monitoring events to serial ports, different electronic scales and different returned data character strings.
4. Initiating a weighing request
The user may initiate a weighing request manually or automatically by the system, and the system program will extract the latest real-time stable weight data from the monitoring events that monitor the reading of the electronic scale.
5. Returning the weight reading of the electronic scale
After the system reads the latest real-time weight data in the monitoring event and filters the latest real-time weight data, the current request source is searched, and the weight data are asynchronously returned to the position of the request source and displayed.
6. After the weighing is finished, closing the electronic scale connection
When the electronic scale finishes or the current weighing request is finished, such as a closing program, a page finishing weighing and the like, the system can carry out closing operation, close the connection with the electronic scale and correctly release the occupation of electronic scale resources and the com port.
An automatic reading system of a cross-border electronic commercial electronic scale is shown in figure 2, and comprises an identification module, a reading module and a reading module, wherein the identification module is used for identifying the electronic scale connected through a com port; the initialization module initializes the connection parameters of the electronic scale according to the configuration file; the monitoring module monitors the reading of the electronic scale and filters redundant characters in the reading; the communication module receives a weighing request of a user or a system, transmits the weighing request to the electronic scale, receives a weight reading returned by the electronic scale and transmits the weight reading to the control module; and the control module receives and displays the weight reading transmitted by the communication module.
Whether the weight reading of the electronic scale is automatic, accurate and efficient and whether the electronic scale has expandability is an important standard for evaluating an automatic reading integration system of the electronic scale. The electronic scale automatic reading integration system provided by the embodiment of the invention has an operation method with automatic weight reading, accuracy, high efficiency and strong expandability. On one hand, the type and the model of the electronic scale do not need to be concerned in the weighing process, the system has operation consistency, high efficiency and convenience, and automatic reading of the electronic scale is ensured; on one hand, when weight data is requested to be acquired, the weighing data is returned in an asynchronous callback mode, so that the weight reading accuracy and high efficiency of the automatic reading integrated system of the electronic scale are ensured; on the other hand, the electronic scale device supports various types and models, and only corresponding electronic connection parameters are needed to be configured, so that the strong expandability of the system is ensured.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (7)

1. An automatic reading method for a cross-border electronic commercial scale is characterized by comprising the following steps:
step 1, a system identifies an electronic scale;
step 2, initializing the connection parameters of the electronic scale by the system according to the configuration file;
step 3, the system monitors the reading of the electronic scale and filters redundant characters;
step 4, the system sends a weighing request to the electronic scale;
and 5, returning a weight reading to the system by the electronic scale after receiving the weighing request.
2. The method for automatically reading the trans-border electronic commercial scale according to claim 1, wherein in step 1, the system selects the corresponding com port, connects the electronic scale through a serial port, and then identifies the electronic scale.
3. The method for automatically reading electronic scales according to claim 2, further comprising step S1 before step 1, wherein the system records the corresponding configuration files according to different types of electronic scales.
4. The method for automatically reading an electronic scale according to claim 3, wherein in step 4, a user can manually initiate a weighing request to the electronic scale or the system automatically initiates a weighing request to the electronic scale.
5. The method as claimed in claim 4, wherein the electronic scale searches for a request source after receiving the weighing request and asynchronously returns the weight data to the location of the request source in step 5.
6. The method for automatically reading a trans-border electronic commercial scale according to any one of claims 1 to 5, wherein after step 5, the method further comprises step 6, the electronic scale finishes the weighing request, and the system closes the connection with the electronic scale.
7. An automatic reading system of a cross-border electronic commercial electronic scale is characterized by comprising
The identification module identifies the electronic scale connected through the com port;
the initialization module initializes the connection parameters of the electronic scale according to the configuration file;
the monitoring module monitors the reading of the electronic scale and filters redundant characters in the reading;
the communication module receives a weighing request of a user or a system, transmits the weighing request to the electronic scale, receives a weight reading returned by the electronic scale and transmits the weight reading to the control module;
and the control module receives and displays the weight reading transmitted by the communication module.
CN202010020279.5A 2020-01-09 2020-01-09 Automatic reading method and system for cross-border electronic commercial electronic scale Pending CN111157093A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010020279.5A CN111157093A (en) 2020-01-09 2020-01-09 Automatic reading method and system for cross-border electronic commercial electronic scale

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010020279.5A CN111157093A (en) 2020-01-09 2020-01-09 Automatic reading method and system for cross-border electronic commercial electronic scale

Publications (1)

Publication Number Publication Date
CN111157093A true CN111157093A (en) 2020-05-15

Family

ID=70562111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010020279.5A Pending CN111157093A (en) 2020-01-09 2020-01-09 Automatic reading method and system for cross-border electronic commercial electronic scale

Country Status (1)

Country Link
CN (1) CN111157093A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744131A (en) * 2005-09-28 2006-03-08 山东大学 long-distance network based coal mine weight bridge weighing and coal-selling control system
CN1875249A (en) * 2003-10-03 2006-12-06 佩尔斯塔有限公司 Measuring device, such as a scale or medical scale
CN105867940A (en) * 2016-04-19 2016-08-17 浪潮通用软件有限公司 Method for reading wagon balance weighing displayer based on java
CN105953882A (en) * 2016-06-03 2016-09-21 北京智衡物联科技有限公司 Weighing system
CN107966197A (en) * 2018-01-12 2018-04-27 成都奥北环保科技有限公司 A kind of smart electronics weighing system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1875249A (en) * 2003-10-03 2006-12-06 佩尔斯塔有限公司 Measuring device, such as a scale or medical scale
CN1744131A (en) * 2005-09-28 2006-03-08 山东大学 long-distance network based coal mine weight bridge weighing and coal-selling control system
CN105867940A (en) * 2016-04-19 2016-08-17 浪潮通用软件有限公司 Method for reading wagon balance weighing displayer based on java
CN105953882A (en) * 2016-06-03 2016-09-21 北京智衡物联科技有限公司 Weighing system
CN107966197A (en) * 2018-01-12 2018-04-27 成都奥北环保科技有限公司 A kind of smart electronics weighing system and method

Similar Documents

Publication Publication Date Title
CN108446210A (en) Measure, storage medium and the server of system performance
WO2012009596A2 (en) Content extractor
CN104361698A (en) Self-service intelligent electronic weighing settlement method and system
CN106327055A (en) Big data technology-based electric power fee controlling method and system
CN111028016A (en) Sales data prediction method and device and related equipment
KR20170099078A (en) Management Estimating Platform System Based on Big Data Using Manufacturing Facilities-Related Information from MES
CN113360393B (en) Continuous verification method and device based on production environment flow monitoring
CN106803799A (en) A kind of performance test methods and device
CN106971069A (en) A kind of intelligent recipe recommendation system for nutrient health
CN113205402A (en) Account checking method and device, electronic equipment and computer readable medium
CN112464204A (en) Account management method and related product
CN114418714A (en) 5G base station operation and maintenance management system and method
CN116167860A (en) Account checking processing method and device, electronic equipment and storage medium
CN112782636A (en) Charging pile online metering calibration verification method and system
CN111157093A (en) Automatic reading method and system for cross-border electronic commercial electronic scale
CN113159885A (en) E-commerce platform virtual commodity order delivery method
CN108646662A (en) A kind of pipeline intelligent survey meter
CN104318433A (en) Automatic recharging method and system of citizen card
CN110706427A (en) Intelligent network weighing, settling and dish serving device
CN110927446A (en) Novel multi-core modularized intelligent electric meter integrating load identification function
CN111160681A (en) Method, device and storage medium for evaluating user income level based on user income and expenditure data
CN111190073B (en) Power grid wide area measurement interaction and search service system
CN211555065U (en) Intelligent network weighing, settling and dish serving device
CN112801688A (en) Method and device for positioning reason of estimation failure
CN108376375B (en) Internet intelligent energy metering and settlement system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200515