Portable express sheet printing method, device and equipment and storage medium

By creating a feature database and priority sorting algorithm on the mobile terminal, the printer can be automatically identified and connected, solving the problem of cumbersome manual connection for couriers and improving the connection success rate and work efficiency.

CN121597146APending Publication Date: 2026-03-03SHANGHAI DONGPU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511613691.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-06
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

When printing waybills, couriers need to manually search for and connect to the printer, which is cumbersome, time-consuming, and affects work efficiency.

Method used

By creating a feature database on mobile devices, scoring and priority ranking algorithms automatically identify and connect commonly used printers, providing automatic and manual connection modes, and updating device feature data.

Benefits of technology

It improves the success rate of automatic printer connection, simplifies the operation process, saves time, improves the overall printing efficiency, and reduces job interruptions caused by connection problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121597146A_ABST
    Figure CN121597146A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of logistics, and discloses an express sheet portable printing method which comprises the following steps: initializing a feature database, creating the feature database for storing multi-dimensional feature data of a printer by a mobile terminal, and initializing the feature database; when an automatic connection condition is triggered, the mobile terminal calls a priority ranking algorithm to carry out priority scoring on the printers in the database, and the connection priorities of the printers are determined; determining a target printer from the printers according to the connection priorities of the printers, and initiating automatic connection; and after the connection interaction with the printer is completed, updating the multi-dimensional feature data of the corresponding equipment in the printer feature database. According to the method, the automatic connection success rate between the devices is improved, the connection operation is simplified, the order printing efficiency is improved, the devices in the poor current state are filtered out, the target is locked on the devices with good historical performance and the good current state, and the automatic connection efficiency and the one-time success rate are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of logistics information technology, and in particular to a portable method, apparatus, device, and storage medium for printing waybills. Background Technology

[0002] In the current daily operations of the express delivery industry, when printing waybills, couriers typically need to manually access the printer connection interface, search for available nearby devices, and complete the connection configuration one by one before they can begin the printing process. This operation involves numerous and repetitive steps, which significantly increases unnecessary time consumption, especially in scenarios where couriers print frequently, thus affecting overall work efficiency.

[0003] It's worth noting that the printing equipment used by delivery drivers in their daily work is mostly fixed and specialized terminals. The printer models and users are relatively stable, and frequent changes to printing equipment are rare in actual operations. In this case, requiring delivery drivers to repeatedly perform manual search and connection operations every time they perform a printing task is not only redundant and cumbersome, but also a waste of working time and energy.

[0004] Therefore, existing technologies still need improvement and development. Summary of the Invention

[0005] This invention provides a portable waybill printing method, apparatus, device, and storage medium to address the problem in existing printing processes that cannot automatically identify and connect to commonly used printers, leading to increased working time and reduced efficiency in logistics operations.

[0006] The first aspect of this invention provides a portable waybill printing method, the method comprising: The feature database is initialized. The mobile terminal creates a feature database for storing multidimensional feature data of the printer and initializes the feature database. When the automatic connection condition is triggered, the mobile terminal calls the priority sorting algorithm to score the priority of the printers in the database and determine the connection priority of the printer. Based on the connection priority of the printers, the target printer is determined from the printers, and an automatic connection is initiated; If automatic connection fails, manual connection mode will be enabled. If manual connection fails, anomaly diagnosis will be performed, and the diagnosis results and solutions will be output. After completing the connection and interaction with the printer, update the multidimensional feature data of the corresponding device in the printer feature database.

[0007] Optionally, in a first implementation of the first aspect of the present invention, the initialization of the feature database involves the mobile terminal creating a feature database for storing multidimensional feature data of the printer, and initializing the feature database, including: When the mobile terminal launches the application, it automatically creates a feature database to store multidimensional feature data of the printer. The mobile terminal initializes the feature database; The multidimensional feature data of printers in the feature database is encrypted.

[0008] Optionally, in a second implementation of the first aspect of the present invention, when the automatic connection condition is triggered, the mobile terminal calls a priority sorting algorithm to score the priority of the printers in the database and determine the connection priority of the printer, including: In response to the automatic connection condition being triggered, the mobile terminal calls the priority sorting algorithm to score the priority of printers in the feature database. The connection priority of the printer is determined based on the priority score.

[0009] The calculation formula for the priority sorting algorithm is as follows: ; Where A represents the number of successful historical connections, B represents the weight value of the most recent connection time, C represents the average connection duration, D represents the average historical signal strength, and E represents the historical connection failure rate; α, β, γ, δ, and ε are the weighting coefficients corresponding to A, B, C, D, and E, respectively. .

[0010] Optionally, in a third implementation of the first aspect of the present invention, the step of determining the target printer from the printers based on the connection priority of the printers and initiating an automatic connection includes: Based on the printer's connection priority, the printer connection success rate prediction model is invoked, and the predicted success rate is output. The predicted success rate is compared with a preset printer connection success threshold; Printers whose predicted success rate is greater than or equal to the connection success threshold are identified as target printers; Initiate an automatic connection to the target printer.

[0011] Optionally, in a fourth implementation of the first aspect of the present invention, if automatic connection fails, a manual connection mode is enabled; if manual connection fails, anomaly diagnosis is performed, and diagnostic results and solutions are output, including: In response to automatic connection failure, enable manual connection mode; In the manual connection mode, a printer list is generated and displayed, and the devices in the printer list are sorted according to a preset intelligent sorting algorithm; In response to a connection failure after the user selects a target printer from the list, the intelligent anomaly diagnosis algorithm is invoked. Based on the connection failure phenomenon, device characteristic data, and current environment data, the root cause of the failure is located, and corresponding solution prompts are generated.

[0012] Optionally, in a fifth implementation of the first aspect of the present invention, updating the multi-dimensional feature data of the corresponding device in the printer feature database after completing the connection interaction with the printer includes: After completing the connection interaction with the target printer, obtain the interaction result of this connection, which includes whether the connection was successful or failed. In response to the interaction result, update the multi-dimensional feature data corresponding to the target printer stored in the printer feature database of the mobile terminal; The multidimensional feature data includes: the number of successful historical connections, the time of the most recent connection, the average connection duration, the historical connection failure rate, and the average historical signal strength.

[0013] When the interaction result is a connection failure, updating the multidimensional feature data includes: Update the total number of connection attempts and the historical number of failed attempts; Based on the updated number of failures and the total number of attempts, the historical connection failure rate is recalculated and updated; The reason for this connection failure is recorded in the database.

[0014] A second aspect of the present invention provides a portable label printing device, comprising: The feature database initialization module is used by the mobile terminal to create a feature database for storing multi-dimensional feature data of the printer, and to initialize the feature database. The connection priority determination module is used to determine the connection priority of the printer by calling a priority sorting algorithm to score the printers in the database when the automatic connection condition is triggered. An automatic connection module is used to determine the target printer from the printers according to the connection priority of the printers and initiate an automatic connection; The anomaly diagnosis and output module is used to enable manual connection mode if automatic connection fails, and to perform anomaly diagnosis and output the diagnosis results and solutions if manual connection fails. The feature update module is used to update the multi-dimensional feature data of the corresponding device in the printer feature database after the connection interaction with the printer is completed.

[0015] The feature database initialization module is used by the mobile terminal to create a feature database for storing multi-dimensional feature data of the printer, and to initialize the feature database. The initialization feature database module includes: A creation unit is used to automatically create a feature database when the mobile terminal starts the application, for storing multidimensional feature data of the printer; When the application on the mobile device is launched, the system automatically creates a feature database locally to store the printer's multidimensional feature data. As a preferred implementation, this database is implemented using the lightweight SQLite database to meet the mobile device's requirements for efficient read / write operations and low resource consumption.

[0016] An initialization unit is used for the mobile terminal to initialize the feature database; The mobile terminal initializes the feature database by defining and creating a data table structure to store the multidimensional features of each printer. The core fields of this data table are carefully designed to comprehensively characterize the printer's connectivity features, including: Unique Device Identifier: Preferably, the printer's Bluetooth MAC address is used as a globally unique identifier to ensure that different printer devices can be accurately distinguished and to avoid confusion with other Bluetooth devices.

[0017] Successful historical connection count: This field records the total number of times a Bluetooth connection has been successfully established with this printer. This data is a core indicator for evaluating device connection reliability.

[0018] Last Connection Time: This field records the timestamp of the last successful connection to this printer, accurate to the second. This data is used to determine the device's recent activity and usage frequency.

[0019] Average connection duration: This field is used to quantify the connection efficiency with the device by calculating the average of the time (in seconds) of all historical successful connection processes.

[0020] Historical connection failure rate: This field is calculated using the formula (number of failed connections / total number of connection attempts) × 00%, and displays the device's connection stability in a percentage format.

[0021] Historical Average Signal Strength: This field summarizes the average Bluetooth signal strength over historical connection periods. As a specific implementation, signal strength can be quantified to a value up to 5, corresponding to 5 bars of signal icons. This average reflects the basic signal conditions when connecting to the device.

[0022] An encryption processing unit is used to encrypt the multidimensional feature data of printers in the feature database.

[0023] The connection priority determination module is used to determine the connection priority of the printer by calling a priority sorting algorithm to score the printers in the database when the automatic connection condition is triggered. The connection priority determination module includes: The scoring unit is used to prioritize printers in the feature database by calling a priority sorting algorithm in response to the automatic connection condition being triggered. The priority determination unit determines the connection priority of the printer based on the priority score.

[0024] An automatic connection module is used to determine the target printer from the printers according to the connection priority of the printers and initiate an automatic connection; The automatic connection module includes: The output unit is used to call the printer connection success rate prediction model according to the printer's connection priority and output the predicted success rate. The comparison unit is used to compare the predicted success rate with a preset printer connection success threshold. A target unit is defined to identify printers whose predicted success rate is greater than or equal to the connection success threshold as target printers. The connection unit is used to initiate an automatic connection to the target printer.

[0025] The anomaly diagnosis and output module is used to enable manual connection mode if automatic connection fails, and to perform anomaly diagnosis and output the diagnosis results and solutions if manual connection fails. The anomaly diagnosis and output module includes: Enable unit to activate manual connection mode in response to automatic connection failure; The first generation unit is used to generate and display a printer list in the manual connection mode, wherein the devices in the printer list are sorted according to a preset intelligent sorting algorithm. The calling unit is used to invoke the intelligent anomaly diagnosis algorithm in response to a connection failure after the user selects a target printer from the list. The second generation unit is used to locate the root cause of the failure based on the connection failure phenomenon, device characteristic data and current environment data, and generate corresponding solution prompts.

[0026] The feature update module is used to update the multi-dimensional feature data of the corresponding device in the printer feature database after the connection interaction with the printer is completed.

[0027] The updated feature module includes: The acquisition unit is used to acquire the interaction result of the connection after completing the connection interaction with the target printer. The interaction result includes whether the connection is successful or failed. An update unit is used to update the multi-dimensional feature data corresponding to the target printer stored in the printer feature database of the mobile terminal in response to the interaction result. The multidimensional feature data includes: the number of successful historical connections, the time of the most recent connection, the average connection duration, the historical connection failure rate, and the average historical signal strength.

[0028] When the interaction result is a connection failure, updating the multidimensional feature data includes: Update the total number of connection attempts and the historical number of failed attempts; Based on the updated number of failures and the total number of attempts, the historical connection failure rate is recalculated and updated; The reason for this connection failure is recorded in the database.

[0029] A third aspect of the present invention provides a portable label printing device, including a memory and at least one processor, wherein the memory stores computer-readable instructions; The at least one processor invokes the computer-readable instructions in the memory to perform the various steps of the portable label printing method described above.

[0030] A fourth aspect of the present invention provides a computer-readable storage medium storing computer-readable instructions, which, when executed by a processor, implement the various steps of the portable label printing method described above.

[0031] The technical solution of this invention improves the success rate of automatic connection between devices by setting connection priorities, greatly simplifying connection operations and lowering the technical threshold; the duration of a single connection is reduced, saving couriers' daily connection time and significantly improving overall order processing efficiency; furthermore, by predicting the connection success rate of high-priority devices, it effectively filters out devices with high historical scores but poor current status, thus targeting automatic connections with devices that have good historical performance and good current status, greatly improving the efficiency and first-time success rate of automatic connections. This invention can also reduce operational interruptions caused by connection problems, improve the overall operational efficiency of logistics, warehousing, and other industries, and has significant commercial value. Attached Figure Description

[0032] Figure 1 This is a first flowchart of a portable waybill printing method provided in an embodiment of the present invention; Figure 2 This is a second flowchart of a portable label printing method provided in an embodiment of the present invention; Figure 3 This is a third flowchart of a portable label printing method provided in an embodiment of the present invention; Figure 4 This is a fourth flowchart of a portable label printing method provided in an embodiment of the present invention; Figure 5 This is a fifth flowchart of the portable label printing method provided in an embodiment of the present invention; Figure 6 This is a sixth flowchart of a portable label printing method provided in an embodiment of the present invention. Figure 7 This is a schematic diagram of the structure of the portable waybill printing device provided in an embodiment of the present invention; Figure 8 This is a schematic diagram of the structure of a portable label printing device provided in an embodiment of the present invention. Detailed Implementation

[0033] This invention provides a portable waybill printing method, apparatus, device, and storage medium. The method is used to establish dynamic customer profiles and manage customers based on these dynamic customer profiles.

[0034] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" or "having" and any variations thereof are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0035] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 The first embodiment of a portable waybill printing method according to the present invention includes: S101. Initialize the feature database. The mobile terminal creates a feature database for storing multi-dimensional feature data of the printer and initializes the feature database. S102. When the automatic connection condition is triggered, the mobile terminal calls the priority sorting algorithm to score the priority of the printers in the database and determine the connection priority of the printer. S103. Based on the connection priority of the printers, determine the target printer from the printers and initiate automatic connection; S104. If automatic connection fails, enable manual connection mode. If manual connection fails, perform anomaly diagnosis and output the diagnosis results and solutions. S105. After completing the connection and interaction with the printer, update the multi-dimensional feature data of the corresponding device in the printer feature database.

[0036] This invention, through setting connection priorities, improves the success rate of automatic device connections, greatly simplifies connection operations, and lowers the technical threshold. The duration of each connection is reduced, saving couriers' daily connection time and significantly improving overall order processing efficiency. Furthermore, by predicting the connection success rate of high-priority devices, it effectively filters out devices with high historical scores but poor current status, thus focusing automatic connection on devices with good historical performance and good current status, greatly improving the efficiency and first-time success rate of automatic connections. This invention also reduces operational interruptions caused by connection problems, improving the overall operational efficiency of logistics, warehousing, and other industries, and has significant commercial value.

[0037] Please see Figure 2 In a second embodiment of the portable label printing method of the present invention, the initialization of the feature database involves the mobile terminal creating a feature database for storing multi-dimensional feature data of the printer and initializing the feature database, including: S201. When the mobile terminal starts the application, it automatically creates a feature database to store multi-dimensional feature data of the printer. In some embodiments, when an application on a mobile terminal is launched, the system automatically creates a feature database locally to store multidimensional feature data of the printer. As a preferred implementation, this database is implemented using the lightweight SQLite database to meet the mobile terminal's requirements for efficient read / write operations and low resource consumption.

[0038] S202, The mobile terminal initializes the feature database; In some embodiments, the mobile terminal initializes the feature database by defining and creating a data table structure for storing multidimensional features of each printer. The core fields of this data table are carefully designed to comprehensively characterize the printer's connectivity features, including: Unique Device Identifier: Preferably, the printer's Bluetooth MAC address is used as a globally unique identifier to ensure that different printer devices can be accurately distinguished and to avoid confusion with other Bluetooth devices.

[0039] Successful historical connection count: This field records the total number of times a Bluetooth connection has been successfully established with this printer. This data is a core indicator for evaluating device connection reliability.

[0040] Last Connection Time: This field records the timestamp of the last successful connection to this printer, accurate to the second. This data is used to determine the device's recent activity and usage frequency.

[0041] Average connection duration: This field is used to quantify the connection efficiency with the device by calculating the average of the time (in seconds) of all historical successful connection processes.

[0042] Historical connection failure rate: This field is calculated using the formula (number of failed connections / total number of connection attempts) × 100%, and is presented as a percentage to visually demonstrate the device's connection stability.

[0043] Historical Average Signal Strength: This field summarizes the average Bluetooth signal strength over historical connection periods. As a specific implementation, signal strength can be quantified as a value from 1 to 5, corresponding to 1 to 5 signal bars on the icon. This average reflects the basic signal conditions when connecting to the device.

[0044] S203. Encrypt the multidimensional feature data of the printer in the feature database.

[0045] This invention ensures that the feature data of each connection interaction can be reliably saved and will not be lost when the application is switched to the background or temporarily exited; it greatly improves the security of user privacy and business data and can prevent the leakage of sensitive information; the data involving label printing is encrypted, which can meet the compliance requirements of data security and privacy protection and enhance users' trust in the product.

[0046] Please see Figure 3 A third embodiment of a portable label printing method according to the present invention, wherein when an automatic connection condition is triggered, the mobile terminal calls a priority sorting algorithm to score the priority of printers in the database and determine the connection priority of the printer, including: S301. In response to the automatic connection condition being triggered, the mobile terminal calls the priority sorting algorithm to score the priority of the printers in the feature database. S302. Determine the connection priority of the printer based on the priority score.

[0047] The calculation formula for the priority sorting algorithm is as follows: ; Where A represents the number of successful historical connections, B represents the weight value of the most recent connection time, C represents the average connection duration, D represents the average historical signal strength, and E represents the historical connection failure rate; α, β, γ, δ, and ε are the weighting coefficients corresponding to A, B, C, D, and E, respectively. .

[0048] The priority scoring formula in this invention is a multi-factor weighted comprehensive evaluation model that can accurately identify devices with stable historical performance, recent activity, fast connection and good signal quality as priority connection targets. This fundamentally avoids the problem of selecting printing devices due to misleading single indicators, and greatly improves the success rate and quality of automatic connection.

[0049] Please see Figure 4 A fourth embodiment of a portable label printing method according to the present invention includes determining a target printer from the printers based on the printer's connection priority and initiating an automatic connection, comprising: S401. Based on the printer's connection priority, call the printer connection success rate prediction model and output the predicted success rate. S402. Compare the predicted success rate with the preset printer connection success threshold. S403. Determine printers whose predicted success rate is greater than or equal to the connection success threshold as target printers; S404: Initiate an automatic connection to the target printer.

[0050] In this embodiment of the invention, a connection success rate prediction model is invoked, and real-time variables such as the current signal strength, the success rate of the last three connections, and the number of Bluetooth devices in the environment are input for prediction. This mechanism can sensitively perceive the current state of the device and instantaneous changes in the environment.

[0051] In some embodiments, a printer with the highest historical score may be filtered out if the current signal is weak, as the model determines its predicted success rate to be low. This ensures that the system ultimately initiates a connection not only with the best historical score but also with the highest probability of a successful connection at present, fundamentally improving the success rate of automatic connections.

[0052] Please see Figure 5 The fifth embodiment of a portable label printing method in this invention includes the following steps: if automatic connection fails, a manual connection mode is activated; if manual connection fails, anomaly diagnosis is performed, and diagnostic results and solutions are output, including: S501. In response to automatic connection failure, enable manual connection mode; S502. In the manual connection mode, a printer list is generated and displayed, and the devices in the printer list are sorted according to a preset intelligent sorting algorithm. S503. In response to the connection failure after the user selects the target printer in the list, the intelligent anomaly diagnosis algorithm is invoked. S504. Based on the connection failure phenomenon, device characteristic data, and current environment data, locate the root cause of the failure and generate corresponding solution prompts.

[0053] The embodiments of this invention utilize multi-dimensional correlation analysis to achieve highly accurate and reliable diagnostic results. In some embodiments, it can clearly distinguish whether the timeout is due to weak signal, excessive interference, or the printer not being powered on, thereby transforming ambiguous fault phenomena into clear and locatable root causes, providing a scientific basis for subsequent solutions.

[0054] Please see Figure 6 The sixth embodiment of a portable label printing method according to the present invention includes updating the multi-dimensional feature data of the corresponding device in the printer feature database after completing the connection and interaction with the printer, including: S601. After completing the connection interaction with the target printer, obtain the interaction result of this connection, including connection success or connection failure. S602. In response to the interaction result, update the multi-dimensional feature data corresponding to the target printer stored in the printer feature database of the mobile terminal; The multidimensional feature data includes: the number of successful historical connections, the time of the most recent connection, the average connection duration, the historical connection failure rate, and the average historical signal strength.

[0055] When the interaction result is a connection failure, updating the multidimensional feature data includes: Update the total number of connection attempts and the historical number of failed attempts; Based on the updated number of failures and the total number of attempts, the historical connection failure rate is recalculated and updated; the reason for this connection failure is recorded in the database.

[0056] The embodiments of the present invention ensure that the result of each connection practice, whether successful or not, is fed back to the database in real time and accurately; and ensure that the system's connection strategy can adaptively adjust with changes in device status, always striving to select the most reliable device at the moment.

[0057] In some embodiments, multidimensional feature data such as the number of successful historical connections and average connection duration must be calculated based on complete historical records to be of reference value. This embodiment mandates updates after each interaction, ensuring that these statistical indicators can fully reflect all historical situations from the first connection to the present, avoiding decision-making biases caused by missing or lagging data, and providing a solid and reliable data foundation for all upstream algorithms.

[0058] The portable label printing method in the embodiments of the present invention has been described above. The apparatus in the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 7 The embodiments of the portable label printing device in this invention include: The feature database initialization module 701 is used by the mobile terminal to create a feature database for storing multi-dimensional feature data of the printer, and to initialize the feature database. The connection priority determination module 702 is used to, when the automatic connection condition is triggered, call the priority sorting algorithm to score the priority of the printers in the database and determine the connection priority of the printer. The automatic connection module 703 is used to determine the target printer from the printers according to the connection priority of the printers and initiate an automatic connection; The anomaly diagnosis and output module 704 is used to enable manual connection mode if automatic connection fails, and to perform anomaly diagnosis and output diagnosis results and solutions if manual connection fails. The feature update module 705 is used to update the multi-dimensional feature data of the corresponding device in the printer feature database after completing the connection interaction with the printer.

[0059] In some embodiments, the feature database module 701 is initialized to enable the mobile terminal to create a feature database for storing multidimensional feature data of the printer and to initialize the feature database. In some embodiments, the initialization feature database module 701 includes: The creation unit 7011 is used to automatically create a feature database when the mobile terminal starts the application, for storing multi-dimensional feature data of the printer; In some embodiments, when an application on a mobile terminal is launched, the system automatically creates a feature database locally to store multidimensional feature data of the printer. As a preferred implementation, this database is implemented using the lightweight SQLite database to meet the mobile terminal's requirements for efficient read / write operations and low resource consumption.

[0060] Initialization unit 7012 is used for the mobile terminal to initialize the feature database; In some embodiments, the mobile terminal initializes the feature database by defining and creating a data table structure for storing multidimensional features of each printer. The core fields of this data table are carefully designed to comprehensively characterize the printer's connectivity features, including: Unique Device Identifier: Preferably, the printer's Bluetooth MAC address is used as a globally unique identifier to ensure that different printer devices can be accurately distinguished and to avoid confusion with other Bluetooth devices.

[0061] Successful historical connection count: This field records the total number of times a Bluetooth connection has been successfully established with this printer. This data is a core indicator for evaluating device connection reliability.

[0062] Last Connection Time: This field records the timestamp of the last successful connection to this printer, accurate to the second. This data is used to determine the device's recent activity and usage frequency.

[0063] Average connection duration: This field is used to quantify the connection efficiency with the device by calculating the average of the time (in seconds) of all historical successful connection processes.

[0064] Historical connection failure rate: This field is calculated using the formula (number of failed connections / total number of connection attempts) × 100%, and is presented as a percentage to visually demonstrate the device's connection stability.

[0065] Historical Average Signal Strength: This field summarizes the average Bluetooth signal strength over historical connection periods. As a specific implementation, signal strength can be quantified as a value from 1 to 5, corresponding to 1 to 5 signal bars on the icon. This average reflects the basic signal conditions when connecting to the device.

[0066] The encryption processing unit 7013 is used to encrypt the multidimensional feature data of the printer in the feature database.

[0067] The connection priority determination module 702 is used to, when the automatic connection condition is triggered, call the priority sorting algorithm to score the priority of the printers in the database and determine the connection priority of the printer. In some embodiments, the connection priority determination module 702 includes: The scoring unit 7021 is used to respond to the automatic connection condition being triggered, and the mobile terminal calls the priority sorting algorithm to score the printers in the feature database by priority. Priority determination unit 7022 determines the connection priority of the printer based on the priority score.

[0068] The automatic connection module 703 is used to determine the target printer from the printers according to the connection priority of the printers and initiate an automatic connection; In some embodiments, the automatic connection module 703 includes: Output unit 7031 is used to call the printer connection success rate prediction model according to the printer connection priority and output the predicted success rate. The comparison unit 7032 is used to compare the predicted success rate with a preset printer connection success threshold. The target determination unit 7033 is used to determine printers whose predicted success rate is greater than or equal to the connection success threshold as target printers. The connection unit 7034 is used to initiate an automatic connection to the target printer.

[0069] The anomaly diagnosis and output module 704 is used to enable manual connection mode if automatic connection fails, and to perform anomaly diagnosis and output diagnosis results and solutions if manual connection fails. In some embodiments, the anomaly diagnosis and output module 704 includes: Enabling unit 7041 is used to enable manual connection mode in response to automatic connection failure; The first generation unit 7042 is used to generate and display a printer list in the manual connection mode, wherein the devices in the printer list are sorted according to a preset intelligent sorting algorithm. Calling unit 7043 is used to invoke the intelligent anomaly diagnosis algorithm in response to a connection failure after the user selects a target printer in the list. The second generation unit 7044 is used to locate the root cause of the failure based on the connection failure phenomenon, device characteristic data and current environment data, and generate corresponding solution prompts.

[0070] The feature update module 705 is used to update the multi-dimensional feature data of the corresponding device in the printer feature database after completing the connection interaction with the printer.

[0071] In some embodiments, the updated feature module 705 includes: The acquisition unit 7051 is used to acquire the interaction result of the connection after completing the connection interaction with the target printer. The interaction result includes connection success or connection failure. Update unit 7052 is used to update the multi-dimensional feature data corresponding to the target printer in the printer feature database stored in the mobile terminal in response to the interaction result; The multidimensional feature data includes: the number of successful historical connections, the time of the most recent connection, the average connection duration, the historical connection failure rate, and the average historical signal strength.

[0072] When the interaction result is a connection failure, updating the multidimensional feature data includes: Update the total number of connection attempts and the historical number of failed attempts; Based on the updated number of failures and the total number of attempts, the historical connection failure rate is recalculated and updated; the reason for this connection failure is recorded in the database.

[0073] Figure 7 The structure of the portable label printing device shown does not constitute a limitation on the portable label printing device, and can implement the steps of the portable label printing method provided in the above-described method embodiments.

[0074] above Figure 7 The portable label printing device in this embodiment of the invention will be described in detail from the perspective of modular functional entities. The portable label printing device in this embodiment of the invention will be described in detail from the perspective of hardware processing.

[0075] Figure 8 This is a schematic diagram of a portable label printing device provided in an embodiment of the present invention. The device 800 can vary significantly due to different configurations or performance characteristics. It may include one or more central processing units (CPUs) 810 (e.g., one or more processors) and a memory 820, and one or more storage media 830 (e.g., one or more mass storage devices) for storing application programs 833 or data 832. The memory 820 and storage media 830 can be temporary or persistent storage. The program stored in the storage media 830 may include one or more modules (not shown), each module including a series of instruction operations on the device 800. Furthermore, the processor 810 may be configured to communicate with the storage media 830 and execute the series of instruction operations in the storage media on the device 800.

[0076] Device 800 may also include one or more power supplies 840, one or more wired or wireless network interfaces 850, one or more input / output interfaces 860, and / or one or more operating systems 831, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc.

[0077] This invention also provides a computer-readable storage medium, which can be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the steps of the portable label printing method.

[0078] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system, device, or unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0079] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0080] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A portable method for printing waybills, characterized in that, The portable printing method for waybills includes: The feature database is initialized. The mobile terminal creates a feature database for storing multidimensional feature data of the printer and initializes the feature database. When the automatic connection condition is triggered, the mobile terminal calls the priority sorting algorithm to score the priority of the printers in the database and determine the connection priority of the printer. Based on the connection priority of the printers, the target printer is determined from the printers, and an automatic connection is initiated; If automatic connection fails, manual connection mode will be enabled. If manual connection fails, anomaly diagnosis will be performed, and the diagnosis results and solutions will be output. After completing the connection and interaction with the printer, update the multidimensional feature data of the corresponding device in the printer feature database.

2. The portable label printing method according to claim 1, characterized in that, The initialization of the feature database involves the mobile terminal creating a feature database for storing multidimensional feature data of the printer, and initializing the feature database, including: When the mobile terminal launches the application, it automatically creates a feature database to store multidimensional feature data of the printer. The mobile terminal initializes the feature database; The multidimensional feature data of printers in the feature database is encrypted.

3. The portable label printing method according to claim 1, characterized in that, When the automatic connection condition is triggered, the mobile terminal calls a priority sorting algorithm to score the printers in the database and determine the connection priority of the printers, including: In response to the automatic connection condition being triggered, the mobile terminal calls the priority sorting algorithm to score the priority of printers in the feature database. The connection priority of the printer is determined based on the priority score.

4. The portable label printing method according to claim 3, characterized in that, The step of determining the target printer from the printers based on the printer's connection priority and initiating an automatic connection includes: Based on the printer's connection priority, the printer connection success rate prediction model is invoked, and the predicted success rate is output. The predicted success rate is compared with a preset printer connection success threshold; Printers whose predicted success rate is greater than or equal to the connection success threshold are identified as target printers; Initiate an automatic connection to the target printer.

5. The portable label printing method according to claim 3, characterized in that, If automatic connection fails, manual connection mode will be enabled. If manual connection fails, anomaly diagnosis will be performed, and diagnostic results and solutions will be output, including: In response to automatic connection failure, enable manual connection mode; In the manual connection mode, a printer list is generated and displayed, and the devices in the printer list are sorted according to a preset intelligent sorting algorithm; In response to a connection failure after the user selects a target printer from the list, the intelligent anomaly diagnosis algorithm is invoked. Based on the connection failure phenomenon, device characteristic data, and current environment data, the root cause of the failure is located, and corresponding solution prompts are generated.

6. The portable label printing method according to claim 1, characterized in that, After completing the connection and interaction with the printer, updating the multi-dimensional feature data of the corresponding device in the printer feature database includes: After completing the connection interaction with the target printer, obtain the interaction result of this connection, which includes whether the connection was successful or failed. In response to the interaction result, update the multi-dimensional feature data corresponding to the target printer stored in the printer feature database of the mobile terminal; The multidimensional feature data includes: the number of successful historical connections, the time of the most recent connection, the average connection duration, the historical connection failure rate, and the average historical signal strength.

7. The portable label printing method according to claim 1, characterized in that, When the interaction result is a connection failure, updating the multidimensional feature data includes: Update the total number of connection attempts and the historical number of failed attempts; Based on the updated number of failures and the total number of attempts, the historical connection failure rate is recalculated and updated; The reason for this connection failure is recorded in the database.

8. A portable waybill printing device, characterized in that, include: The feature database initialization module is used by the mobile terminal to create a feature database for storing multi-dimensional feature data of the printer, and to initialize the feature database. The connection priority determination module is used to determine the connection priority of the printer by calling a priority sorting algorithm to score the printers in the database when the automatic connection condition is triggered. An automatic connection module is used to determine the target printer from the printers according to the connection priority of the printers and initiate an automatic connection; The anomaly diagnosis and output module is used to enable manual connection mode if automatic connection fails, and to perform anomaly diagnosis and output the diagnosis results and solutions if manual connection fails. The feature update module is used to update the multi-dimensional feature data of the corresponding device in the printer feature database after the connection interaction with the printer is completed.

9. A portable waybill printing device, characterized in that, It includes a memory and at least one processor, wherein the memory stores computer-readable instructions; The at least one processor invokes the computer-readable instructions in the memory to perform the steps of the portable label printing method as described in any one of claims 1-7.

10. A computer-readable storage medium storing computer-readable instructions thereon, characterized in that, When the computer-readable instructions are executed by a processor, they implement the steps of the portable label printing method as described in any one of claims 1-7.