CN112580755A - Data transmission method and device, electronic equipment and storage medium - Google Patents

Data transmission method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112580755A
CN112580755A CN201910944134.1A CN201910944134A CN112580755A CN 112580755 A CN112580755 A CN 112580755A CN 201910944134 A CN201910944134 A CN 201910944134A CN 112580755 A CN112580755 A CN 112580755A
Authority
CN
China
Prior art keywords
data
condition
warehouse
transmission interface
transmission
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
CN201910944134.1A
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.)
Cainiao Smart Logistics Holding Ltd
Original Assignee
Cainiao Smart Logistics Holding 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 Cainiao Smart Logistics Holding Ltd filed Critical Cainiao Smart Logistics Holding Ltd
Priority to CN201910944134.1A priority Critical patent/CN112580755A/en
Publication of CN112580755A publication Critical patent/CN112580755A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0025Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1626Constructional details or arrangements for portable computers with a single-body enclosure integrating a flat display, e.g. Personal Digital Assistants [PDAs]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Development Economics (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application provides a data transmission method and device, electronic equipment and a storage medium, so that the power consumption of a battery is reduced. Applied to a Personal Digital Assistant (PDA), wherein the PDA is used for scanning a warehouse, and the PDA is interacted with a warehouse management end through a transmission interface, and the method comprises the following steps: in the case of transferring data by calling a transfer interface, detecting priority information of the data, wherein the data comprises at least one of the following: warehouse operational data, online signals, equipment information; if the priority information of the data meets a first condition, the data is sent through the transmission interface; if the priority information of the data meets the second condition, the data is cached, and the cached data is combined into a data packet and is sent through the transmission interface under the condition that the cached data meets the third condition. The data transmission device can transmit a plurality of data together, and reduces the transmission times of the data, thereby reducing the power consumption of the equipment and prolonging the service life of the battery.

Description

Data transmission method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data transmission method, a data transmission apparatus, an electronic device, and a storage medium.
Background
Along with the development of the logistics express industry, the logistics express business provides efficient and convenient logistics transportation service for users. At present, a plurality of merchants have warehouses for storing goods, and a plurality of merchants use a unified warehouse provided by a platform, so that the warehouses in different regions can be used conveniently for providing goods for users, and the logistics efficiency is improved.
The goods in the warehouse are usually recorded with the placement position, the quantity and the like so as to be convenient for warehousing and ex-warehouse, and the warehousing and ex-warehouse of the goods in the warehouse are usually determined by scanning with a scanning gun and the like.
However, the scan gun is typically a handheld device, powered by a battery, and the life of the battery is related to the number of charges, so the higher the power consumed by the device, the shorter the life of the battery. How to reduce the power consumption of the battery is a technical problem to be solved urgently by those skilled in the art.
Disclosure of Invention
The embodiment of the application provides a data transmission method to reduce the power consumption of a battery.
Correspondingly, the embodiment of the application also provides a data transmission device, electronic equipment and a storage medium, which are used for ensuring the realization and application of the system.
In order to solve the above problem, an embodiment of the present application discloses a data transmission method, which is applied to a personal digital assistant PDA, where the PDA is used to scan a warehouse, and the PDA interacts with a warehouse management end through a transmission interface, and the method includes: in the case of transferring data by calling a transfer interface, detecting priority information of the data, wherein the data comprises at least one of the following: warehouse operational data, online signals, equipment information; if the priority information of the data meets a first condition, the data is sent through the transmission interface; if the priority information of the data meets the second condition, the data is cached, and the cached data is combined into a data packet and is sent through the transmission interface under the condition that the cached data meets the third condition.
Optionally, the detecting the priority information of the data includes at least one of: detecting a priority identifier carried by the data; and determining the data type of the data, and determining the priority information of the data according to the data type.
Optionally, the caching the data includes at least one of: storing the data into a cache queue according to a set rule; and storing the data into a cache queue corresponding to the destination address according to a set rule.
Optionally, the third condition includes a buffer amount condition; the caching the data includes: storing the data into a cache queue according to a set rule, and adding one to the total amount of the cache data in the cache queue; and judging whether the total number meets a cache number condition.
Optionally, the third condition comprises a data volume condition; the caching the data includes: storing the data into a buffer queue according to a set rule, and adding the total data volume of the buffer data in the buffer queue to the data volume of the data; and judging whether the total data volume meets a data volume condition.
Optionally, the third condition comprises a delay condition; the method further comprises the following steps: and judging whether the caching time of the cached data reaches the delay time of the data, and if so, enabling the cached data to meet the delay condition.
Optionally, the combining the buffered data into a data packet includes: taking out at least two pieces of data from a buffer queue; combining the at least two pieces of data according to a combination rule to obtain combined data; and packaging the combined data and determining a corresponding data packet.
Optionally, the PDA includes a scanning device, and the warehouse operation data includes warehousing operation data and/or ex-warehouse operation data.
Optionally, the method further includes at least one of the following steps: obtaining corresponding warehouse operation data by scanning commodities and warehouse positions; periodically generating an online signal; detecting the device and acquiring device information.
Optionally, the method further includes: and generating and sending a corresponding replenishment request when the inventory quantity of the warehouse is determined to be less than the replenishment threshold value according to the warehouse operation data.
The embodiment of the application further provides a data transmission method, which is applied to scanning equipment of a warehouse, wherein the scanning equipment interacts with a warehouse management terminal through a transmission interface, and the method comprises the following steps: acquiring data and calling the transmission interface to transmit the data; under the condition that the data does not have the delay identification, transmitting the data through the transmission interface; and under the condition that the data has the delay identification, caching the data, and under the condition that the cached data meets the sending condition, combining the cached data into a data packet and sending the data packet through the transmission interface.
An embodiment of the present application further provides a data transmission method, where the method includes: under the condition of transferring data by a transmission interface, judging whether the data needs to be sent in a delayed manner; if the data does not need to be sent in a delayed mode, the data is sent through the transmission interface; and when the data needs to be sent in a delayed mode, caching the data, and combining the cached data into a data packet and sending the data packet through the transmission interface under the condition that the cached data meets the sending condition.
The embodiment of the present application further provides a data transmission device, which is applied to a personal digital assistant PDA, where the PDA is used to scan a warehouse, and the PDA interacts with a warehouse management terminal through a transmission interface, and the device includes: the calling module is used for detecting the priority information of the data under the condition that a transmission interface is called to transmit the data, wherein the data comprises at least one of the following data: warehouse operational data, online signals, equipment information; the transmission module is used for transmitting the data through the transmission interface if the priority information of the data meets a first condition; and under the condition that the cached data meets a third condition, combining the cached data into a data packet and sending the data packet through the transmission interface; and the caching module is used for caching the data if the priority information of the data meets a second condition.
The embodiment of the present application further provides a data transmission device, which is applied to a scanning device of a warehouse, wherein the scanning device interacts with a warehouse management terminal through a transmission interface, and the device includes: the data processing module is used for acquiring data and calling the transmission interface to transmit the data; the data transmission module is used for transmitting the data through the transmission interface under the condition that the data does not have the delay identification; and under the condition that the data has the delay identification, caching the data, and under the condition that the cached data meets the sending condition, combining the cached data into a data packet and sending the data packet through the transmission interface.
An embodiment of the present application further provides a data transmission device, where the device includes: the delay judging module is used for judging whether the data needs to be transmitted in a delayed manner under the condition of transferring the transmission interface to transmit the data; the real-time transmission module is used for transmitting the data through the transmission interface if the data does not need to be transmitted in a delayed manner; and the delay transmission module is used for caching the data when the data needs to be transmitted in a delay way, combining the cached data into a data packet and transmitting the data packet through the transmission interface under the condition that the cached data meets the transmission condition.
An embodiment of the present application further provides an electronic device, including: a processor; and a memory having executable code stored thereon that, when executed, causes the processor to perform a method as described in one or more of the embodiments of the application.
Embodiments of the present application also provide one or more machine-readable media having executable code stored thereon that, when executed, cause a processor to perform a method as described in one or more of the embodiments of the present application.
An embodiment of the present application further provides an electronic device, including: a processor; and a memory having executable code stored thereon that, when executed, causes the processor to perform a method as described in embodiments of the present application.
Embodiments of the present application also provide one or more machine-readable media having executable code stored thereon that, when executed, cause a processor to perform a method as described in embodiments of the present application.
An embodiment of the present application further provides an electronic device, including: a processor; and a memory having executable code stored thereon that, when executed, causes the processor to perform a method as described in embodiments of the present application.
Embodiments of the present application also provide one or more machine-readable media having executable code stored thereon that, when executed, cause a processor to perform a method as described in embodiments of the present application.
Compared with the prior art, the embodiment of the application has the following advantages:
in the embodiment of the present application, the PDA device such as a scanning gun is used to scan the goods stored in the warehouse, and the PDA also needs to interact with other devices to transmit data, such as the position information of the scanned goods, in the case of transferring data by calling a transfer interface, priority information of the data may be detected, and if the priority information of the data satisfies a first condition, the data is transmitted through the transfer interface, thus, necessary data can be transmitted immediately, if the priority information of the data meets a second condition, the data is cached, in case the buffered data fulfils a third condition, the buffered data are combined into data packets and sent over said transmission interface, by buffering and assembling of the data, the data transmission device can transmit a plurality of data together, and reduces the transmission times of the data, thereby reducing the power consumption of the equipment and prolonging the service life of the battery.
Drawings
FIG. 1A is a schematic diagram of a PDA device for use in a warehouse according to an embodiment of the present application;
FIG. 1B is a schematic diagram of data transfer from a PDA device used in a warehouse according to an embodiment of the present application;
FIG. 2 is a flow chart of the steps of an embodiment of a data transmission method of the present application;
FIG. 3 is a schematic diagram of a data encapsulation process according to an embodiment of the present application;
FIG. 4 is a flow chart of the steps of an alternative embodiment of a data transmission method of the present application;
FIG. 5 is a flow chart of steps in another data transmission method embodiment of the present application;
FIG. 6 is a flow chart of steps of yet another data transmission method embodiment of the present application;
FIG. 7 is a block diagram of an embodiment of a data transmission apparatus according to the present application;
FIG. 8 is a block diagram of an alternative embodiment of a data transmission device according to the present application;
FIG. 9 is a block diagram of another data transmission device embodiment of the present application;
FIG. 10 is a block diagram of an embodiment of a data transmission device according to the present application;
fig. 11 is a schematic structural diagram of an apparatus according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
The embodiment of the application can be applied to the fields of storage and logistics, and logistics is a process for organically combining functions of transportation, storage, loading, unloading, transportation, packaging, circulation processing, distribution, information processing and the like to realize user requirements according to actual needs in the process of physically flowing articles from a supply place to a receiving place. The logistics object refers to an object of logistics processing, such as a package, an unpackaged article to be shipped, and the like.
The embodiment of the application can be applied to various acquisition devices, and the electric quantity of the acquisition devices is saved, such as a Personal Digital Assistant (PDA), a tour robot, a sensor and the like. The PDA is a digital tool for assisting personal work, and includes a scanner, a barcode scanner, a Radio Frequency Identification (RFID) reader, a Point Of Sale (POS) terminal, and the like, and may also include a tablet computer, a mobile phone, a handheld game machine, and the like. The acquisition equipment can acquire data through modes such as scanning, photographing, radio frequency identification and sensor identification.
In the embodiments of the present application, a PDA is taken as an example for discussion, in actual processing, the method is not limited to determining the commodity information in a manner of scanning a barcode, a two-dimensional code, and the like, and may also be used for acquiring data such as the commodity information in other manners, for example, the commodity information is identified by a sensor, and the data is identified by photographing.
Taking the field of logistics as an example, the PDA may include a scanning device such as a scanner, for example, a scanning gun for a warehouse, a scanning device for a logistics worker, and the like. These PDAs are battery powered, thereby reducing battery power consumption and increasing battery life by reducing the number of data transmissions.
In the example shown in fig. 1, the scanning gun is a PDA, for example, when used in a warehouse. The operation of scanning the warehouse by the PDA and then storing the scanned warehouse in the warehouse is called warehousing, the operation of scanning the warehouse in the warehouse and then taking out the scanned warehouse is called ex-warehouse, and then the commodities can be packaged as logistics objects to be subjected to logistics processing such as sorting, transportation, dispatching and the like. Fig. 1A is a schematic diagram of a scanning gun scanning goods in a warehouse for warehousing and ex-warehouse.
As shown in fig. 1B. In other examples, the scanning gun can record the moving track so as to determine the position of the warehouse where the commodity is stored, and the like.
In the process of commodity warehouse-out, the commodities can be scanned to obtain the commodity information, the warehouse location is scanned to obtain the warehouse location information, so that the corresponding quantity of commodities are subtracted from the commodity warehouse-in information corresponding to the warehouse location until all the commodities in the warehouse location are taken out, and the commodity warehouse-in information corresponding to the warehouse location can be set to be empty or no commodity warehouse-in information and the like.
In the process of warehousing and ex-warehouse of the commodity, warehouse operation data acquired by the scanning gun is transmitted to a management end of the warehouse, so that the management end can record and manage the commodity stored in the warehouse conveniently. In addition, the scanning gun also can periodically send heartbeat signals or other online signals to the management terminal to mark the online survival of the scanning gun, and the scanning gun also can send self equipment information such as electric quantity information, running time and the like to the management terminal, so that the management terminal can manage the scanning gun. In step 102, the warehouse operation data, the on-line signal, the device information, and other data may be sent to the management end through the transmission interface.
However, these data transmission delays are different, and therefore the priority information of the data can be detected in step 104. Some of them need to be sent immediately, such as an on-line signal, etc. can be transmitted to the destination end in real time through the transmission interface in step 106. And some data can be sent after delaying for a period of time, such as warehouse operation data and the like, can be buffered in step 108 and sent in a packed mode after delaying for a period of time, so that the power consumption of the scanning gun can be reduced, namely, the data which can be sent in a delayed mode are sent in a packed mode after delaying for a period of time, and the transmission times of the data are reduced.
Referring to fig. 2, a flowchart illustrating steps of an embodiment of a data transmission method according to the present application is shown, which may specifically include the following steps:
step 202, in the case of transferring data by calling a transfer interface, detecting priority information of the data.
The scanning gun can scan commodities, warehouse positions and the like to determine warehouse operation data, can generate data such as online signals, equipment information and the like, can transmit the data to the management end, can set priority marks for the data before transmitting the data to the management end, can add the priority marks into the data, and can set priority in the system of the PDA according to data types in advance in other embodiments, so that the priority information of the data can be determined when the data are transmitted through the transmission interface.
In one example, a priority identifier may be added to the data, and then the transmission interface may be invoked to transmit the data, and after the data is received by the interface, the priority identifier of the data may be detected by the system service to determine priority information, such as a priority level, whether the data is delayable, a delayable delay time, and the like.
In another example, priority information of different types of data may be set in advance in the system service, in the case of invoking the transmission interface to transmit data, the interface may invoke the system service to detect the priority information of the data, the system service may determine the data type of the data, and then determine the priority information based on the data type, such as the priority level, whether the data can be delayed, the delay duration of the data can be delayed, and the like.
The priority information may be set as the level information with high or low priority, or may also be set as the time information of whether to delay or not, or set as the identifiers 0, 1, etc., which is not limited in the embodiment of the present application, and may be specifically set according to the requirements, so that the priority of the data can be distinguished.
And step 204, judging the condition met by the priority information of the data.
The embodiment of the application can set conditions aiming at the priority information in advance, and different conditions correspond to different sending modes of the data. The first condition is a condition for sending data in real time, and the data with the priority information meeting the first condition can be directly sent through the transmission interface. The second condition is a condition for delaying sending data, and data with priority information meeting the second condition can be firstly cached, and then the transmission interface is called to send the data under the condition of meeting a third condition. The third condition is an issue condition of the cache data, and may be specifically set according to a requirement.
After the priority information of the data is detected, the condition satisfied by the priority information of the data may be determined, and step 206 is performed if the first condition is satisfied, and step 208 is performed if the second condition is satisfied.
In other examples, only one condition may be set, and the condition may be a condition for transmitting data in real time, and step 206 is executed if the condition is satisfied, and step 208 is executed if the condition is not satisfied; or the condition is set as the condition for delaying the transmission of the data, the step 208 is executed if the condition is satisfied, and the step 206 is executed if the condition is not satisfied.
Step 206, sending the data through the transmission interface.
For data with priority information meeting the condition of sending data in real time, such as the first condition, the data can be immediately sent to a destination end, such as a management end of a warehouse, through the transmission records, so that the timeliness of the data cannot be influenced, and the normal execution of transactions is ensured.
Step 208, caching the data.
For data whose priority information satisfies a condition for delaying transmission of data, such as the second condition, the data may be buffered, such as stored in a buffer or buffer queue of the device.
In an example, the data is stored in the buffer queue according to a set rule, for example, the data is stored in the buffer queue according to the sequence of the remaining time of the delay time, or the data is stored in the buffer queue according to the sequence of data acquisition, or the data is buffered according to the size of the data and the type of the data.
In other embodiments, different data may correspond to different destination addresses, for example, device information and the like are sent to a management end for device management, while warehouse operation data is sent to a management end for inventory management, or sent to different management ends based on different operations of warehousing and ex-warehousing. For the case that the destination addresses of different data are different, different buffer queues may be created for different destination addresses, so that when buffering data, the data is stored in the buffer queue corresponding to the destination address according to a set rule, that is, the data is stored in different buffer queues based on the destination address, and the rule for storing the data in the buffer queue may be similar to the above example.
Step 210, determining whether the cached data meets a third condition. If yes, go to step 212, otherwise, go back to step 210 to continue the determination.
The third condition is an issuing condition of the cache data, and the third condition can be set according to requirements. The third condition includes at least one of: a buffer quantity condition, a data quantity condition and a delay condition. The buffer amount condition and the data amount condition may also be referred to as an amount condition, and refer to a condition that the amount of data to be transmitted at a time is satisfied, and the amount may be the number of pieces of data or the data amount of the data. The delay condition refers to a condition of a delay time period of data, and the data can be transmitted in a case where the data reaches a maximum delay time.
For the quantity condition, when data is stored in the buffer queue, the quantity of the data in the queue can be determined. The buffer number condition may be determined according to the number of the data, and when the data is stored in the buffer queue (enqueue), the total number of the data stored in the buffer queue may be +1, and it is determined whether the total number meets a number threshold corresponding to the buffer number condition, and if the buffer number condition is met, step 212 is executed. If the quantity condition is determined according to the cache data quantity, the data quantity of the data may be added to the total data quantity of the data stored in the cache queue when the data is enqueued, and if the total data quantity exceeds the data quantity threshold corresponding to the quantity condition, step 212 is executed if the quantity condition is satisfied. In an optional embodiment, the caching the data includes: storing the data into a buffer queue according to a set rule, and adding the total data volume of the buffer data in the buffer queue to the data volume of the data; and judging whether the total data volume meets a data volume condition. In another optional embodiment, the caching the data includes: storing the data into a cache queue according to a set rule, and adding one to the total amount of the cache data in the cache queue; and judging whether the total number meets a cache number condition.
For the delay condition, the priority information of each data may correspond to a delay duration, and when the data is stored in the buffer queue, the priority information may also be arranged according to the length sequence of the delay durations, so as to determine whether the delay time of the data reaches the delay duration of the data, and if the delay time reaches the delay duration, the delay condition is met, and step 212 is executed.
And step 212, combining the buffered data into a data packet and sending the data packet through the transmission interface.
For the buffered data meeting the third condition, the buffered data may be combined and packaged to form a data packet, and then the data packet may be sent through the transmission interface. The cached data can be combined according to a set rule, and then the combined data is packaged to obtain a data packet. The data combination and packaging can be realized in various ways, for example, the data can be combined according to a certain sequence and then packaged to obtain a data packet, or the data can be randomly combined and then packaged to form a data packet, and the like. An example of data combination packing may be as shown in fig. 3:
for the stored data D1, data D2, and data D3, the data D1, data D2, and data D3 may be sequentially arranged in the buffer queue, and a message header and a message tail may be encapsulated to obtain a corresponding data packet. The method is similar to a train, a data packet is regarded as a train, each data is a carriage, a message header can be regarded as the head of the train, a message tail can be regarded as the tail of the train, the number of the carriages required to be hung on the train can be determined and the carriages are connected to form the train when the data which can be delayed is transmitted every time, namely the data are combined and encapsulated into the data packet. The data D1 corresponds to priority information p1 and delay time t1, the data D2 corresponds to priority information p2 and delay time t2, and the data D3 corresponds to priority information p3 and delay time t 3. Wherein, the time lengths of t1, t2 and t3 can be the same or different, and the priorities of p1, p2 and p3 can be the same or different.
In one example, the delay time of the data cached in the cacheable queue may be, after the delay time of any data reaches the delay time, combined and packed with other data in the cacheable queue, and then sent out. Each data packet can be provided with a data volume sending threshold, so that in the process of combined packaging, combination can be performed based on the data volume sending thresholds, for example, data can be selected according to the sequence of entering a buffer queue or the sequence of the remaining time of the delay duration. The remaining time of the delay duration may be a difference between the delay duration of the data and the cache duration.
In summary, the PDA device such as a scanning gun is used to scan the goods stored in the warehouse, and the PDA also needs to interact with other devices to transmit data, such as the scanned goods location information, in the case of transferring data by calling a transfer interface, priority information of the data may be detected, and if the priority information of the data satisfies a first condition, the data is transmitted through the transfer interface, thus, necessary data can be transmitted immediately, if the priority information of the data meets a second condition, the data is cached, in case the buffered data fulfils a third condition, the buffered data are combined into data packets and sent over said transmission interface, by buffering and assembling of the data, the data transmission device can transmit a plurality of data together, and reduces the transmission times of the data, thereby reducing the power consumption of the equipment and prolonging the service life of the battery.
In the embodiment of the application, the warehouse operation comprises warehouse-in operation, warehouse-out operation and the like, and correspondingly comprises warehouse operation data, therefore, the warehouse operation data can count warehouse-out and warehouse-in operations of the warehouse, can also determine information such as warehouse-in and warehouse-out positions and the like, the inventory quantity of the warehouse may also be determined based on warehouse operational data, for which the inventory quantity may be compared to a pre-set restocking threshold, the replenishment threshold is the threshold of warehouse replenishment, if not less than the replenishment threshold, no replenishment is needed, if the stock quantity is less than the replenishment threshold, a replenishment request can be generated, the replenishment request can carry the quantity and the like required to be replenished, can record the stock position and the like without the stock, can add parameters into the replenishment request according to the requirement, can send the replenishment request, the replenishment request can also be used as data, and is determined to be sent in real time or sent after being integrated with other data through priority information. In another example, multiple replenishment thresholds may be set, for example, the first replenishment threshold is a replenishment threshold that is sent in a delayed manner, and the second replenishment threshold is a replenishment threshold that is sent in real time, so that a sending manner is determined based on the replenishment thresholds, and if the first replenishment threshold is met, a replenishment request is generated to wait for sending, more delivery operations are performed in the process, and if the second replenishment threshold is met, the replenishment request is sent immediately.
In the embodiments Of the present application, the operation Of the warehouse is mainly taken as an example, and in the actual processing, the present application is not limited to the use scenario Of the warehouse, but may also be applied to a scenario, for example, an Internet Of Things (IOT) scenario, for example, in a refrigerator, the refrigerator may identify an object stored therein, record when the object is taken out or put in, determine the recorded data as real-time transmission, delayed transmission, and the like based on priority information, and at the same time, count the number Of objects Of each type in the refrigerator, report a replenishment request such as a remaining number Of the object Of the type in the case that the number is lower than a certain threshold, and push the replenishment request to the user equipment Of the user, an application program on the user equipment, and the like, thereby notifying the user Of replenishment. For example, when the number of the object items such as milk, drinking water, vegetables, meat, etc. in the refrigerator is less than a certain threshold value, a replenishment request is generated, the issuance mode is determined based on the priority information, and the replenishment request is issued, and then the user is notified of the replenishment. Therefore, in a family IOT scene, the use condition of various article objects can be reported, the residual quantity can be counted, and the article objects can be supplemented when needed.
On the basis of the above embodiment, the embodiment of the present application further provides a data transmission method, which can pack and send out data that needs to be delayed, so as to add consumption on the electric quantity of the device, and for data that needs to be sent out immediately, the data can also be transmitted to the destination end in time through the transmission interface, thereby ensuring real-time requirements of the data.
Referring to FIG. 4, a flowchart illustrating steps of an alternative embodiment of a data transmission method of the present application is shown.
At step 402, data is acquired.
Take the example of being applied to the PDA such as scanning gun, scanning device, tablet computer, mobile phone, etc. which are interacted with the warehouse management end through the transmission interface. The data includes at least one of: warehouse operational data, online signals, equipment information; the data may be obtained by at least one of: obtaining corresponding warehouse operation data by scanning commodities and warehouse positions; periodically generating an online signal; detecting the device and acquiring device information. In the home IOT scene, data used for the object, such as data for putting in and taking out the object in the refrigerator, can be obtained.
Step 404, calling a transmission interface to transmit data.
Step 406, detecting the priority information of the data. Wherein, the priority mark carried by the data can be detected; and/or determining the data type of the data, and determining the priority information of the data according to the data type.
Step 408, determining the condition satisfied by the priority information. If the first condition is satisfied, go to step 410, and if the second condition is satisfied, go to step 412.
Step 410, sending the data through the transmission interface.
Step 412, caching the data.
In step 414, it is determined whether the third condition is satisfied. If yes, go to step 416, otherwise, go back to step 414 to continue the determination.
The data are stored in a cache queue according to a set rule; and/or storing the data into a buffer queue corresponding to the destination address according to a set rule.
In the embodiment of the application, the cache data can be sent based on various sending conditions, and different operations can be executed in the data caching process for different sending conditions.
In an alternative embodiment, the third condition comprises a buffer amount condition; the caching the data includes: storing the data into a cache queue according to a set rule, and adding one to the total amount of the cache data in the cache queue; and judging whether the total number meets a cache number condition.
In another alternative embodiment, the third condition comprises a data volume condition; the caching the data includes: storing the data into a buffer queue according to a set rule, and adding the total data volume of the buffer data in the buffer queue to the data volume of the data; and judging whether the total data volume meets a data volume condition.
The condition determining step in the above optional embodiment is not one of the buffers, but is a determining step after buffering the data, and in addition, the number of data stored in the buffer queue and the data amount can be recorded when the data is stored no matter what sending condition is, and each step in the embodiment of the present application can be flexibly set based on the requirement.
In yet another alternative embodiment, the third condition comprises a delay condition; the method further comprises the following steps: and judging whether the caching time of the cached data reaches the delay time of the data, and if so, enabling the cached data to meet the delay condition.
At step 416, at least two pieces of data are fetched from the cache queue.
And 418, combining the at least two pieces of data according to a combination rule to obtain combined data.
Step 420, packaging the combined data, and determining a corresponding data packet.
According to the embodiment of the application, the process of judging the priority of the data and sending the data according to the priority can be realized by setting the corresponding communication management service at the interface, the communication management service is used for carrying out data transmission management, the conditions met by the data can be determined, the data needing to be sent in real time can be sent out immediately, and some data capable of being delayed are integrated and then sent, so that the sending times of the data can be reduced, and the power consumption is reduced.
On the basis of the above embodiments, the embodiments of the present application further provide a data transmission method, which can reduce the power consumption of the PDA. For data sent by the transmission interface, a delay identifier can be set by adding a delay label, setting a delay attribute and the like, so that whether the data can be sent in a delayed manner or not is determined through the delay identifier. The mode can be applied to scanning equipment of a warehouse, such as a scanning gun, a tablet personal computer, a mobile phone and the like, and can also be applied to various PDA equipment such as a POS machine and the like.
Referring to fig. 5, a flow chart of steps of another data transmission method embodiment of the present application is shown.
Step 502, acquiring data and calling the transmission interface to transmit the data.
Taking the PDA device used in the warehouse as an example, the data includes at least one of: warehouse operational data, online signals, equipment information; the data may be obtained by at least one of: obtaining corresponding warehouse operation data by scanning commodities and warehouse positions; periodically generating an online signal; detecting the device and acquiring device information.
Taking the PDA device used in the logistics process as an example, the data includes at least one of the following: logistics data, online signals, equipment information; the data may be obtained by at least one of: acquiring corresponding logistics data by scanning a logistics object; periodically generating an online signal; detecting the device and acquiring device information.
Step 504, determine whether the data has a delay flag. The delay identifier may be a delay tag, for example, a delay tag may be added to the data that can be transmitted in a delayed manner, otherwise, the delay identifier is not conditional. The delay flag may also be attribute information of the data, for example, if a delay attribute is set for the data, an attribute value of 0 may be understood as not being delayed, and an attribute value of 1 may be understood as being delayed, that is, having a delay flag.
If yes, i.e. with a delay flag, step 508 can be performed, and if no, i.e. without a delay flag, step 506 can be performed.
Step 506, sending the data through the transmission interface.
Under the condition that the data does not have the delay identification, transmitting the data through the transmission interface;
step 508, caching the data.
For data whose priority information satisfies a condition for delaying transmission of data, such as the second condition, the data may be buffered, such as stored in a buffer or buffer queue of the device. In an example, the data is stored in the buffer queue according to a set rule, for example, the data is stored in the buffer queue according to the sequence of the remaining time of the delay time, or the data is stored in the buffer queue according to the sequence of data acquisition, or the data is buffered according to the size of the data and the type of the data.
In other embodiments, different data may correspond to different destination addresses, for example, device information and the like are sent to a management end for device management, while warehouse operation data is sent to a management end for inventory management, or sent to different management ends based on different operations of warehousing and ex-warehousing. For the case that the destination addresses of different data are different, different buffer queues may be created for different destination addresses, so that when buffering data, the data is stored in the buffer queue corresponding to the destination address according to a set rule, that is, the data is stored in different buffer queues based on the destination address, and the rule for storing the data in the buffer queue may be similar to the above example.
Step 510, determine whether the cached data satisfies the issue condition. If yes, go to step 512, otherwise, go back to step 510 to continue the determination.
The issuance condition, similar to the third condition, includes at least one of: a buffer quantity condition, a data quantity condition and a delay condition.
In an alternative embodiment, the number of caches condition; the caching the data includes: storing the data into a cache queue according to a set rule, and adding one to the total amount of the cache data in the cache queue; and judging whether the total number meets a cache number condition.
In another alternative embodiment, the data volume condition is addressed; the caching the data includes: storing the data into a buffer queue according to a set rule, and adding the total data volume of the buffer data in the buffer queue to the data volume of the data; and judging whether the total data volume meets a data volume condition.
The condition determining step in the above optional embodiment is not one of the buffers, but is a determining step after buffering the data, and in addition, the number of data stored in the buffer queue and the data amount can be recorded when the data is stored no matter what sending condition is, and each step in the embodiment of the present application can be flexibly set based on the requirement.
In yet another alternative embodiment, a delay condition is addressed; the method further comprises the following steps: and judging whether the caching time of the cached data reaches the delay time of the data, and if so, enabling the cached data to meet the delay condition.
And step 512, combining the cached data into a data packet and sending the data packet through the transmission interface.
And under the condition that the data has the delay identification, caching the data, and under the condition that the cached data meets the sending condition, combining the cached data into a data packet and sending the data packet through the transmission interface.
For the cache data meeting the sending condition, the cache data can be combined and packaged to form a data packet, and then the data packet is sent through a transmission interface. The cached data can be combined according to a set rule, and then the combined data is packaged to obtain a data packet. The data combination and packaging can be realized in various ways, for example, the data can be combined according to a certain sequence and then packaged to obtain a data packet, or the data can be randomly combined and then packaged to form a data packet, and the like.
In an optional embodiment, the combining the buffered data into a data packet includes: taking out at least two pieces of data from a buffer queue; combining the at least two pieces of data according to a combination rule to obtain combined data; and packaging the combined data and determining a corresponding data packet.
Through buffering and assembling the data with the delay identification, a plurality of data can be transmitted out together, and the transmission times of the data are reduced, so that the power consumption of the equipment is reduced, and the service life of the battery is prolonged.
On the basis of the above embodiments, the embodiments of the present application further provide a data transmission method, which can reduce power consumption of the PDA and other electronics. The data transmitted by the transmission interface can be identified whether to be delayed or not by setting various modes such as a delay identification, priority information and the like, so that whether the data can be transmitted in a delayed manner or not is determined. The mode can be applied to scanning equipment of a warehouse, such as a scanning gun, a tablet personal computer, a mobile phone and the like, and can also be applied to various PDA equipment such as a POS machine and the like. The method can also be applied to other devices with requirements on power consumption, such as low-power modes of devices such as mobile phones.
Referring to fig. 6, a flow chart of steps of yet another data transmission method embodiment of the present application is shown.
Step 602, a transmission interface is called to transmit data.
Step 604, determining whether the data needs to be sent in a delayed manner. If yes, go to step 608, otherwise go to step 606.
In an optional embodiment, the data includes operation data generated by the device executing various functions of the application and the system, device information of the device itself, and an online signal such as a heartbeat signal interacting with a server such as a control end and a management end.
When the acquired data is to be transmitted to a control end, a management end and other service ends, a corresponding transmission interface can be called to transmit the data, and the transmission interface can judge whether the data needs to be transmitted in a delayed manner or not for the received data. For example, whether the data needs to be sent in a delayed manner is judged through the priority information, the delay identifier and the like of the data.
Step 606, sending the data through the transmission interface.
And if the data does not need to be sent in a delayed mode, sending the data through the transmission interface.
Step 608, cache the data.
In an optional embodiment, the caching the data includes at least one of: storing the data into a cache queue according to a set rule; and storing the data into a cache queue corresponding to the destination address according to a set rule.
Step 610, determining whether the cached data meets the sending condition, if yes, executing step 612, otherwise, returning to step 610 to continue determining.
The issuance condition, similar to the third condition, includes at least one of: a buffer quantity condition, a data quantity condition and a delay condition.
In an alternative embodiment, the number of caches condition; the caching the data includes: storing the data into a cache queue according to a set rule, and adding one to the total amount of the cache data in the cache queue; and judging whether the total number meets a cache number condition.
In another alternative embodiment, the data volume condition is addressed; the caching the data includes: storing the data into a buffer queue according to a set rule, and adding the total data volume of the buffer data in the buffer queue to the data volume of the data; and judging whether the total data volume meets a data volume condition.
The condition determining step in the above optional embodiment is not one of the buffers, but is a determining step after buffering the data, and in addition, the number of data stored in the buffer queue and the data amount can be recorded when the data is stored no matter what sending condition is, and each step in the embodiment of the present application can be flexibly set based on the requirement.
In yet another alternative embodiment, a delay condition is addressed; the method further comprises the following steps: and judging whether the caching time of the cached data reaches the delay time of the data, and if so, enabling the cached data to meet the delay condition.
Step 612, the buffered data is combined into a data packet and sent through the transmission interface.
And when the cached data meet the sending condition, combining the cached data into a data packet and sending the data packet through the transmission interface.
For the cache data meeting the sending condition, the cache data can be combined and packaged to form a data packet, and then the data packet is sent through a transmission interface. The cached data can be combined according to a set rule, and then the combined data is packaged to obtain a data packet. The data combination and packaging can be realized in various ways, for example, the data can be combined according to a certain sequence and then packaged to obtain a data packet, or the data can be randomly combined and then packaged to form a data packet, and the like.
In an optional embodiment, the combining the buffered data into a data packet includes: taking out at least two pieces of data from a buffer queue; combining the at least two pieces of data according to a combination rule to obtain combined data; and packaging the combined data and determining a corresponding data packet.
Through having time delay data and buffering and equipment, can go out a plurality of data transmission together, reduce the transmission number of times of data to reduce the power consumption of equipment, improve the life of battery.
In the practical use process, the inventor of the application finds that the current is larger, for example, more than 250mA, when the device transmits data, and the current is relatively smaller when the device is in an idle state or receives data, and the data difference is about three times in some cases, so that the purpose of reducing the power consumption can be achieved by optimizing the data transmitted by the device.
In other embodiments of the present application, a delay may be set for an interface, different delays may be generated by calling different interfaces, data received by some interfaces may be directly sent out, and the data received by the interfaces may be buffered first, and then taken out from the buffer and assembled into a data packet after meeting a corresponding sending condition, and sent out. In short, the embodiment of the application can buffer the delayed data in various ways, and reduce the sending times of the data, thereby reducing the power consumption.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
On the basis of the above embodiments, the present embodiment further provides a data transmission device, which is applied to a PDA device. The PDA is used for scanning the warehouse and interacts with the warehouse management end through a transmission interface.
Referring to fig. 7, a block diagram of a data transmission apparatus according to an embodiment of the present application is shown, which may specifically include the following modules:
a calling module 702, configured to, in a case that a transmission interface is called to transmit data, detect priority information of the data, where the data includes at least one of: warehouse operational data, online signals, equipment information.
A transmission module 704, configured to send the data through the transmission interface if the priority information of the data meets a first condition; and combining the cached data into a data packet and sending the data packet through the transmission interface under the condition that the cached data meets a third condition.
The caching module 706 is configured to cache the data if the priority information of the data meets a second condition.
In summary, the PDA device such as a scanning gun is used to scan the goods stored in the warehouse, and the PDA also needs to interact with other devices to transmit data, such as the scanned goods location information, in the case of transferring data by calling a transfer interface, priority information of the data may be detected, and if the priority information of the data satisfies a first condition, the data is transmitted through the transfer interface, thus, necessary data can be transmitted immediately, if the priority information of the data meets a second condition, the data is cached, in case the buffered data fulfils a third condition, the buffered data are combined into data packets and sent over said transmission interface, by buffering and assembling of the data, the data transmission device can transmit a plurality of data together, and reduces the transmission times of the data, thereby reducing the power consumption of the equipment and prolonging the service life of the battery.
Referring to fig. 8, a block diagram of an alternative embodiment of a data transmission device according to the present application is shown, which may specifically include the following modules:
an obtaining module 708 configured to obtain data.
A calling module 702, configured to, in a case that a transmission interface is called to transmit data, detect priority information of the data, where the data includes at least one of: warehouse operational data, online signals, equipment information.
A transmission module 704, configured to send the data through the transmission interface if the priority information of the data meets a first condition; and combining the cached data into a data packet and sending the data packet through the transmission interface under the condition that the cached data meets a third condition.
The caching module 706 is configured to cache the data if the priority information of the data meets a second condition.
And the replenishment module 710 is configured to generate and send a corresponding replenishment request when it is determined that the inventory quantity of the warehouse is smaller than a replenishment threshold according to the warehouse operation data.
The calling module 702 is configured to detect a priority identifier carried by the data; and/or determining the data type of the data, and determining the priority information of the data according to the data type.
The cache module 706 is configured to store the data in a cache queue according to a set rule; and/or storing the data into a buffer queue corresponding to the destination address according to a set rule.
In an alternative embodiment, the third condition comprises a buffer amount condition; the cache module 706 is configured to store the data in a cache queue according to a set rule, and add one to the total amount of cache data in the cache queue; and judging whether the total number meets a cache number condition.
In another alternative embodiment, the third condition comprises a data volume condition; the cache module 706 is configured to store the data in a cache queue according to a set rule, and add a total data amount of the cached data in the cache queue to a data amount of the data; and judging whether the total data volume meets a data volume condition.
In yet another optional embodiment, the caching module 706 is further configured to determine whether a caching time of the cached data reaches a delay time of the data, and if the caching time reaches the delay time, the cached data meets a delay condition.
The transmission module 704 is configured to take out at least two pieces of data from the buffer queue; and/or combining the at least two pieces of data according to a combination rule to obtain combined data; and packaging the combined data and determining a corresponding data packet.
Optionally, the PDA includes a scanning device, and the warehouse operation data includes warehousing operation data and/or ex-warehouse operation data.
The obtaining module 708 is configured to obtain corresponding warehouse operation data by scanning the goods and the warehouse locations; and/or, periodically generating an online signal; and/or detecting the device and obtaining device information.
On the basis of the above embodiments, the present embodiment further provides a data transmission device, which is applied to a PDA device. The PDA is used for scanning the warehouse and interacts with the warehouse management end through a transmission interface.
Referring to fig. 9, a block diagram of another data transmission apparatus according to another embodiment of the present application is shown, which may specifically include the following modules:
and the data processing module 902 is configured to obtain data and call the transmission interface to transmit the data.
A data transmission module 904, configured to send the data through the transmission interface if the data does not have the delay identifier; and under the condition that the data has the delay identification, caching the data, and under the condition that the cached data meets the sending condition, combining the cached data into a data packet and sending the data packet through the transmission interface.
The data transmission module 904 is configured to store the data in a buffer queue according to a set rule; and/or storing the data into a buffer queue corresponding to the destination address according to a set rule.
In an alternative embodiment, the third condition comprises a buffer amount condition; the data transmission module 904 is configured to store the data in a buffer queue according to a set rule, and add one to the total amount of the buffer data in the buffer queue; and judging whether the total number meets a cache number condition.
In another alternative embodiment, the third condition comprises a data volume condition; the data transmission module 904 is configured to store the data in a buffer queue according to a set rule, and add a total data amount of the buffered data in the buffer queue to a data amount of the data; and judging whether the total data volume meets a data volume condition.
In yet another optional embodiment, the data transmission module 904 is further configured to determine whether a buffering time of the buffered data reaches a delay time duration of the data, and if the buffering time duration reaches the delay time duration, the buffered data meets a delay condition.
The data transmission module 904 is configured to take out at least two pieces of data from the buffer queue; and/or combining the at least two pieces of data according to a combination rule to obtain combined data; and packaging the combined data and determining a corresponding data packet.
Optionally, the PDA includes a scanning device, and the warehouse operation data includes warehousing operation data and/or ex-warehouse operation data.
The data processing module 902 is configured to obtain corresponding warehouse operation data by scanning the goods and the warehouse locations; and/or, periodically generating an online signal; and/or detecting the device and obtaining device information.
On the basis of the above embodiments, the present embodiment further provides a data transmission device, which is applied to a PDA device. The PDA is used for scanning the warehouse and interacts with the warehouse management end through a transmission interface. The method can also be applied to other devices with requirements on power consumption, such as low-power modes of devices such as mobile phones and the like
Referring to fig. 10, a block diagram of a structure of another embodiment of a data transmission apparatus according to the present application is shown, which may specifically include the following modules:
the delay judging module 1002 is configured to judge whether the data needs to be sent in a delayed manner when the transmission interface is called to transmit the data.
A real-time transmission module 1004, configured to send the data through the transmission interface if the data does not need to be sent in a delayed manner;
a delay transmission module 1006, configured to buffer the data when the data needs to be sent in a delay manner, and combine the buffered data into a data packet and send the data packet through the transmission interface when the buffered data meets an issue condition.
The delay transmission module 1006 is configured to store the data in a buffer queue according to a set rule; and/or storing the data into a buffer queue corresponding to the destination address according to a set rule.
In an alternative embodiment, the third condition comprises a buffer amount condition; the delay transmission module 1006 is configured to store the data in a buffer queue according to a set rule, and add one to the total amount of buffer data in the buffer queue; and judging whether the total number meets a cache number condition.
In another alternative embodiment, the third condition comprises a data volume condition; the delay transmission module 1006 is configured to store the data into a buffer queue according to a set rule, and add the total data amount of the buffered data in the buffer queue to the data amount of the data; and judging whether the total data volume meets a data volume condition.
In yet another optional embodiment, the delay transmission module 1006 is further configured to determine whether a buffering time of the buffered data reaches a delay duration of the data, and if the buffering time reaches the delay duration, the buffered data meets a delay condition.
The delay transmission module 1006 is configured to take out at least two pieces of data from the buffer queue; and/or combining the at least two pieces of data according to a combination rule to obtain combined data; and packaging the combined data and determining a corresponding data packet.
Optionally, the PDA includes a scanning device, and the warehouse operation data includes warehousing operation data and/or ex-warehouse operation data.
Further comprising: the data acquisition module is used for acquiring operation data corresponding to the executed operation; and/or, periodically generating an online signal; and/or detecting the device and obtaining device information.
The corresponding communication management service can be set for the interface, and some data which can be delayed can be integrated and transmitted through various modes such as priority information, delayed data, delayed labels and the like by the communication management service, so that the transmission times of the data are reduced, the power consumption is reduced, and the service life of the battery is prolonged.
The present application further provides a non-transitory, readable storage medium, where one or more modules (programs) are stored, and when the one or more modules are applied to a device, the device may execute instructions (instructions) of method steps in this application.
Embodiments of the present application provide one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an electronic device to perform the methods as described in one or more of the above embodiments. In the embodiment of the present application, the electronic device includes a server (cluster), a PDA device, and the like.
Embodiments of the disclosure may be implemented as an apparatus, which may comprise an electronic device such as a server (cluster), PDA device, etc., using any suitable hardware, firmware, software, or any combination thereof, for a desired configuration. Fig. 11 schematically illustrates an example apparatus 1100 that may be used to implement various embodiments described herein.
For one embodiment, fig. 11 illustrates an example apparatus 1100 having one or more processors 1102, a control module (chipset) 1104 coupled to at least one of the processor(s) 1102, a memory 1106 coupled to the control module 1104, a non-volatile memory (NVM)/storage 1108 coupled to the control module 1104, one or more input/output devices 1110 coupled to the control module 1104, and a network interface 1112 coupled to the control module 1104.
The processor 1102 may include one or more single-core or multi-core processors, and the processor 1102 may include any combination of general-purpose or special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In some embodiments, the apparatus 1100 can be implemented as a server (cluster), PDA device, or the like, as described in the embodiments of the present application.
In some embodiments, the apparatus 1100 may include one or more computer-readable media (e.g., the memory 1106 or the NVM/storage 1108) having instructions 1114 and one or more processors 1102 in combination with the one or more computer-readable media configured to execute the instructions 1114 to implement modules to perform the actions described in this disclosure.
For one embodiment, control module 1104 may include any suitable interface controllers to provide any suitable interface to at least one of the processor(s) 1102 and/or to any suitable device or component in communication with control module 1104.
The control module 1104 may include a memory controller module to provide an interface to the memory 1106. The memory controller module may be a hardware module, a software module, and/or a firmware module.
The memory 1106 may be used, for example, to load and store data and/or instructions 1114 for the device 1100. For one embodiment, memory 1106 may include any suitable volatile memory, such as suitable DRAM. In some embodiments, the memory 1106 may comprise a double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
For one embodiment, control module 1104 may include one or more input/output controllers to provide an interface to NVM/storage 1108 and input/output device(s) 1110.
For example, NVM/storage 1108 may be used to store data and/or instructions 1114. NVM/storage 1108 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more Hard Disk Drives (HDDs), one or more Compact Disc (CD) drives, and/or one or more Digital Versatile Disc (DVD) drives).
NVM/storage 1108 may include storage resources that are part of the device on which apparatus 1100 is installed on the logistics or may be accessible by the device and need not be part of the device. For example, NVM/storage 1108 may be accessed over a network via input/output device(s) 1110.
Input/output device(s) 1110 may provide an interface for apparatus 1100 to communicate with any other suitable device, input/output devices 1110 may include communication components, audio components, sensor components, and so forth. Network interface 1112 may provide an interface for device 1100 to communicate over one or more networks, and device 1100 may communicate wirelessly with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols, such as access to a communication standard-based wireless network, e.g., WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof.
For one embodiment, at least one of the processor(s) 1102 may be packaged together with logic for one or more controller(s) (e.g., memory controller module) of the control module 1104. For one embodiment, at least one of the processor(s) 1102 may be packaged together with logic for one or more controller(s) of control module 1104 to form a System In Package (SiP). For one embodiment, at least one of the processor(s) 1102 may be integrated on the same die with logic for one or more controller(s) of the control module 1104. For one embodiment, at least one of the processor(s) 1102 may be integrated on the same die with logic for one or more controller(s) of control module 1104 to form a system on chip (SoC).
In various embodiments, the apparatus 1100 may be, but is not limited to: a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.), among other terminal devices. In various embodiments, the apparatus 1100 may have more or fewer components and/or different architectures. For example, in some embodiments, device 1100 includes one or more cameras, keyboards, Liquid Crystal Display (LCD) screens (including touch screen displays), non-volatile memory ports, multiple antennas, graphics chips, Application Specific Integrated Circuits (ASICs), and speakers.
The detection device may adopt a main control chip as a processor or a control module, the sensor data, the position information and the like are stored in a memory or an NVM/storage device, the sensor group may serve as an input/output device, and the communication interface may include a network interface.
An embodiment of the present application further provides an electronic device, including: a processor; and a memory having executable code stored thereon that, when executed, causes the processor to perform a method as described in one or more of the embodiments of the application.
Embodiments of the present application also provide one or more machine-readable media having executable code stored thereon that, when executed, cause a processor to perform a method as described in one or more of the embodiments of the present application.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The data transmission method, the data transmission device, the electronic device and the storage medium provided by the present application are described in detail above, and specific examples are applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (21)

1. A data transmission method applied to a Personal Digital Assistant (PDA), wherein the PDA is used for scanning a warehouse, and the PDA interacts with a warehouse management terminal through a transmission interface, the method comprising:
in the case of transferring data by calling a transfer interface, detecting priority information of the data, wherein the data comprises at least one of the following: warehouse operational data, online signals, equipment information;
if the priority information of the data meets a first condition, the data is sent through the transmission interface;
if the priority information of the data meets the second condition, the data is cached, and the cached data is combined into a data packet and is sent through the transmission interface under the condition that the cached data meets the third condition.
2. The method of claim 1, wherein the detecting the priority information of the data comprises at least one of:
detecting a priority identifier carried by the data;
and determining the data type of the data, and determining the priority information of the data according to the data type.
3. The method of claim 1, wherein the caching the data comprises at least one of:
storing the data into a cache queue according to a set rule;
and storing the data into a cache queue corresponding to the destination address according to a set rule.
4. The method of claim 1, wherein the third condition comprises a buffer quantity condition; the caching the data includes:
storing the data into a cache queue according to a set rule, and adding one to the total amount of the cache data in the cache queue;
and judging whether the total number meets a cache number condition.
5. The method of claim 1, wherein the third condition comprises a data volume condition; the caching the data includes:
storing the data into a buffer queue according to a set rule, and adding the total data volume of the buffer data in the buffer queue to the data volume of the data;
and judging whether the total data volume meets a data volume condition.
6. The method of claim 1, wherein the third condition comprises a delay condition; the method further comprises the following steps:
and judging whether the caching time of the cached data reaches the delay time of the data, and if so, enabling the cached data to meet the delay condition.
7. The method of claim 3, wherein the combining the buffered data into a data packet comprises:
taking out at least two pieces of data from a buffer queue;
combining the at least two pieces of data according to a combination rule to obtain combined data;
and packaging the combined data and determining a corresponding data packet.
8. The method according to any of claims 1-7, wherein the PDA comprises a scanning device and the warehouse operational data comprises warehousing operational data and/or ex-warehouse operational data.
9. The method of claim 8, further comprising the step of acquiring data from at least one of:
obtaining corresponding warehouse operation data by scanning commodities and warehouse positions;
periodically generating an online signal;
detecting the device and acquiring device information.
10. The method of claim 1, further comprising:
and generating and sending a corresponding replenishment request when the inventory quantity of the warehouse is determined to be less than the replenishment threshold value according to the warehouse operation data.
11. A data transmission method, characterized in that, applied to a scanning device of a warehouse, the scanning device interacts with a warehouse management terminal through a transmission interface, the method comprises:
acquiring data and calling the transmission interface to transmit the data;
under the condition that the data does not have the delay identification, transmitting the data through the transmission interface;
and under the condition that the data has the delay identification, caching the data, and under the condition that the cached data meets the sending condition, combining the cached data into a data packet and sending the data packet through the transmission interface.
12. A method of data transmission, the method comprising:
under the condition of transferring data by a transmission interface, judging whether the data needs to be sent in a delayed manner;
if the data does not need to be sent in a delayed mode, the data is sent through the transmission interface;
and when the data needs to be sent in a delayed mode, caching the data, and combining the cached data into a data packet and sending the data packet through the transmission interface under the condition that the cached data meets the sending condition.
13. A data transmission device applied to a Personal Digital Assistant (PDA), wherein the PDA is used for scanning a warehouse, and the PDA interacts with a warehouse management terminal through a transmission interface, the device comprising:
the calling module is used for detecting the priority information of the data under the condition that a transmission interface is called to transmit the data, wherein the data comprises at least one of the following data: warehouse operational data, online signals, equipment information;
the transmission module is used for transmitting the data through the transmission interface if the priority information of the data meets a first condition; and under the condition that the cached data meets a third condition, combining the cached data into a data packet and sending the data packet through the transmission interface;
and the caching module is used for caching the data if the priority information of the data meets a second condition.
14. A data transmission apparatus, characterized in that, applied to a scanning device of a warehouse, the scanning device interacts with a warehouse management end through a transmission interface, the apparatus comprises:
the data processing module is used for acquiring data and calling the transmission interface to transmit the data;
the data transmission module is used for transmitting the data through the transmission interface under the condition that the data does not have the delay identification; and under the condition that the data has the delay identification, caching the data, and under the condition that the cached data meets the sending condition, combining the cached data into a data packet and sending the data packet through the transmission interface.
15. A data transmission apparatus, characterized in that the apparatus comprises:
the delay judging module is used for judging whether the data needs to be transmitted in a delayed manner under the condition of transferring the transmission interface to transmit the data;
the real-time transmission module is used for transmitting the data through the transmission interface if the data does not need to be transmitted in a delayed manner;
and the delay transmission module is used for caching the data when the data needs to be transmitted in a delay way, combining the cached data into a data packet and transmitting the data packet through the transmission interface under the condition that the cached data meets the transmission condition.
16. An electronic device, comprising: a processor; and
memory having stored thereon executable code which, when executed, causes the processor to perform the method of one or more of claims 1-10.
17. One or more machine-readable media having executable code stored thereon that, when executed, causes a processor to perform the method of one or more of claims 1-10.
18. An electronic device, comprising: a processor; and
a memory having executable code stored thereon that, when executed, causes the processor to perform the method of claim 11.
19. One or more machine-readable media having executable code stored thereon that, when executed, causes a processor to perform the method of claim 11.
20. An electronic device, comprising: a processor; and
a memory having executable code stored thereon that, when executed, causes the processor to perform the method of claim 12.
21. One or more machine-readable media having executable code stored thereon that, when executed, causes a processor to perform the method of claim 12.
CN201910944134.1A 2019-09-30 2019-09-30 Data transmission method and device, electronic equipment and storage medium Pending CN112580755A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910944134.1A CN112580755A (en) 2019-09-30 2019-09-30 Data transmission method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910944134.1A CN112580755A (en) 2019-09-30 2019-09-30 Data transmission method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112580755A true CN112580755A (en) 2021-03-30

Family

ID=75116627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910944134.1A Pending CN112580755A (en) 2019-09-30 2019-09-30 Data transmission method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112580755A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021238764A1 (en) * 2020-05-28 2021-12-02 南方科技大学 Intra-network cache-based differentiated transmission method
CN113992752A (en) * 2021-09-13 2022-01-28 广州番禺电缆集团有限公司 Cable monitoring data reporting method and device
CN115002527A (en) * 2022-05-30 2022-09-02 平安科技(深圳)有限公司 Data transmission optimization method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001012533A1 (en) * 1999-08-11 2001-02-22 Nabelin Co., Ltd. Stock management system
CN106296077A (en) * 2016-08-01 2017-01-04 中国水利电力物资集团有限公司 A kind of Power Plant Equipment storage management method based on RFID of Internet-of-things technology and system
CN107005461A (en) * 2014-12-08 2017-08-01 华为技术有限公司 A kind of data transmission method and equipment
CN107835255A (en) * 2017-11-30 2018-03-23 上海京颐科技股份有限公司 Internet of things equipment and data transmission method for uplink and device, storage medium for it
CN108124002A (en) * 2017-12-01 2018-06-05 北京明朝万达科技股份有限公司 A kind of data transmission method for uplink and device
CN108615130A (en) * 2016-12-12 2018-10-02 北京京东尚科信息技术有限公司 Outbound localization method and device
CN109902980A (en) * 2017-12-08 2019-06-18 北京京东尚科信息技术有限公司 Method and device for business processing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001012533A1 (en) * 1999-08-11 2001-02-22 Nabelin Co., Ltd. Stock management system
CN107005461A (en) * 2014-12-08 2017-08-01 华为技术有限公司 A kind of data transmission method and equipment
CN106296077A (en) * 2016-08-01 2017-01-04 中国水利电力物资集团有限公司 A kind of Power Plant Equipment storage management method based on RFID of Internet-of-things technology and system
CN108615130A (en) * 2016-12-12 2018-10-02 北京京东尚科信息技术有限公司 Outbound localization method and device
CN107835255A (en) * 2017-11-30 2018-03-23 上海京颐科技股份有限公司 Internet of things equipment and data transmission method for uplink and device, storage medium for it
CN108124002A (en) * 2017-12-01 2018-06-05 北京明朝万达科技股份有限公司 A kind of data transmission method for uplink and device
CN109902980A (en) * 2017-12-08 2019-06-18 北京京东尚科信息技术有限公司 Method and device for business processing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李中年等: "《电力通信》", 北京:国防工业出版社, pages: 328 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021238764A1 (en) * 2020-05-28 2021-12-02 南方科技大学 Intra-network cache-based differentiated transmission method
CN113992752A (en) * 2021-09-13 2022-01-28 广州番禺电缆集团有限公司 Cable monitoring data reporting method and device
CN115002527A (en) * 2022-05-30 2022-09-02 平安科技(深圳)有限公司 Data transmission optimization method, device, equipment and storage medium
CN115002527B (en) * 2022-05-30 2024-05-07 平安科技(深圳)有限公司 Data transmission optimization method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112580755A (en) Data transmission method and device, electronic equipment and storage medium
KR101769164B1 (en) Processing shipment status events
US7725577B2 (en) Method and system to adaptively manage the quality of service of interactions between smart item networks and enterprise applications
US10354178B2 (en) Pallet mesh network
KR101778758B1 (en) System, method, and computer program for managing warehouse
WO2018210062A1 (en) Method and device for determining inventory of items by server system
US7340559B2 (en) Memory product controller, memory product control method, and memory product
JP6323787B1 (en) Warehouse management server and warehouse management method
CN111626652A (en) Order processing method, device, system and medium
Wanganoo et al. Real-time data monitoring in cold supply chain through NB-IoT
CN111047247B (en) Data processing method and device
CN102253810A (en) Method, apparatus and system used for reading data
US9342063B1 (en) Determining capacities of work buffers
CN114148659A (en) Container racking method, device, system, electronic equipment and computer readable medium
JP2006193230A (en) Stock management method, stock management system, and program
CN111260280B (en) Goods checking method, device, electronic equipment, system and storage medium
US20230267393A1 (en) System and Method for Dynamic Perishable Item Replenishment
CN202548906U (en) Goods loading information management system
US20180308048A1 (en) System and Method for Managing Returned Merchandise Using Trucks Tasked With Delivering Merchandise
US20200005234A1 (en) System
JP2018180822A (en) Warehouse management server, warehouse management method, and warehouse management program
CN107845004B (en) Information pushing method and device
WO2022177665A1 (en) Distributed virtual data tank for cross service quota management
US9824318B1 (en) Generating labor requirements
CN112884387A (en) Method and device for controlling a vehicle

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