An intelligent fusion terminal copying method and device, electronic equipment and storage medium

By constructing Component 1 and Component 2 within the intelligent converged terminal and utilizing a two-level buffer pool to isolate the impact of downstream communication media, the robustness and communication performance of the copying service are improved, thus solving the problem of insufficient robustness of copying services in existing technologies.

CN121078124BActive Publication Date: 2026-02-13北京思凌科半导体技术有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511613519.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-11-06
Publication Date
2026-02-13
Estimated Expiration
2045-11-06

AI Technical Summary

Technical Problem

Existing intelligent converged terminals lack robustness when performing data transfer services, especially when a large number of services interact simultaneously using the carrier channel, which reduces the reliability of data transfer services.

Method used

Component 1 and Component 2 are built within the intelligent converged terminal. Component 1 aggregates copying and reading services through a level 1 cache pool, while Component 2 implements a concurrent copying and reading request-response model and interacts with downstream communication media through a level 2 cache pool. The two-level cache pools are used to isolate the impact of downstream communication media capabilities, thereby improving the robustness of copying and reading services.

Benefits of technology

By using a two-level cache pool design, the impact of downstream communication media on application threads is isolated, improving the robustness of the copying and reading business, maximizing the performance release of the communication media, and simplifying the design difficulty of copying and reading application threads.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121078124B_ABST
    Figure CN121078124B_ABST
Patent Text Reader

Abstract

The application discloses a kind of intelligent fusion terminal copy reading method, device, electronic equipment and storage medium, it is related to power grid system technical field, method includes: in intelligent fusion terminal, component 1 and component 2 are built;When producing copy reading type service, the service interface of component 1 is called using application thread to put the copy reading message of application thread into 1 level cache pool;The service interface of component 2 is called using application thread to put copy reading message into 2 level cache pool, and copy reading message is sent to downstream communication medium by component 2;When component 2 receives the response message uploaded on downstream communication medium, search the same copy reading message of the ID of response message in 2 level cache pool using component 2, when search, response message is uploaded to component 1;Response message corresponding copy reading message is found in 1 level cache pool using component 1, when search, response message is reported to application thread.The application uses two level cache pool, and improves the robustness of copy reading service.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of power grid systems, and in particular to an intelligent fusion terminal reading method and device, an electronic device, and a storage medium. BACKGROUND

[0002] At present, when an electricity collection system is constructed on a local side, an intelligent fusion terminal at a transformer end is included, and the intelligent fusion terminal carries a carrier communication unit, an electric energy meter at a residential end, and a carrier communication unit included therein.

[0003] In actual field applications, as the demand of a power system is continuously upgraded, in addition to implementing basic businesses such as daily frozen collection, curve collection, broadcast time correction, and fee control, the intelligent fusion terminal also needs to support emerging businesses such as line loss analysis, photovoltaic soft control, and orderly power utilization. The bottom layer of these complex businesses needs the intelligent fusion terminal to complete interaction with various types of metering and control devices in a transformer area. A large number of businesses simultaneously use a carrier channel for interaction, which reduces the robustness of reading type businesses. SUMMARY

[0004] The main purpose of the embodiments of the present application is to propose an intelligent fusion terminal reading method, device, electronic device, and storage medium to improve the robustness of reading type businesses.

[0005] To achieve the above purpose, one aspect of the embodiments of the present application proposes an intelligent fusion terminal reading method, which comprises the following steps:

[0006] Components 1 and 2 are constructed in the intelligent fusion terminal; wherein the component 1 is used to gather all reading type businesses in the intelligent fusion terminal through a first-level cache pool, and the component 2 is used to implement a request response model of concurrent reading and interact with a downstream communication medium through a second-level cache pool;

[0007] When a reading type business is generated, a service interface of the component 1 is called by an application thread to put a reading message of the application thread into the first-level cache pool;

[0008] The service interface of the component 2 is called by the application thread to put the reading message into the second-level cache pool, and the reading message is sent to the downstream communication medium by the component 2;

[0009] When the component 2 receives a response message uploaded on the downstream communication medium, the component 2 searches for the reading message with the same ID as the response message in the second-level cache pool, and when the reading message is searched, the response message is uploaded to the component 1;

[0010] The component 1 is used to find the corresponding copy message of the response message in the 1st level cache pool, and when the copy message is found, the response message is reported to the application thread.

[0011] In some embodiments, when the copy service is generated, the service interface of the component 1 is called by the application thread to put the copy message of the application thread into the 1st level cache pool, including the following steps:

[0012] When the copy service is generated, the service interface of the component 1 is called by the application thread, and when there is still space in the 1st level cache pool in the component 1, the copy message of the application thread is put into the 1st level cache pool.

[0013] In some embodiments, the method further includes the following steps:

[0014] After the copy message is put into the 1st level cache pool, the first timeout time of the copy message is calculated;

[0015] When the first timer of the component 1 times out, it is checked whether the first timeout time exceeds the time set by the first timer, and if so, information of a failed waiting response interaction is fed back to the application thread, and the space used by the copy message in the 1st level cache pool and the 2nd level cache pool is cleared.

[0016] In some embodiments, the service interface of the component 2 is called by the application thread to put the copy message into the 2nd level cache pool, and the component 2 is used to send the copy message to the downstream communication medium, including the following steps:

[0017] After the component 1 puts the copy message into the 1st level cache pool, the service interface of the component 2 is called by the application thread, and when there is still space in the 2nd level cache pool in the component 2, the copy message is put into the 2nd level cache pool, and the copy message is sent to the downstream communication medium.

[0018] In some embodiments, the method further includes the following steps:

[0019] When the copy message is put into the 2nd level cache pool, the component 2 is used to assign an ID to the copy message and calculate a second timeout time.

[0020] When the second timer of the component 2 times out, it is checked whether the second timeout time exceeds the time set by the second timer, and if so, the current second timeout time is calculated again, and the copy message is sent to the downstream communication medium.

[0021] In some embodiments, the method further includes the following steps:

[0022] releasing the corresponding read message in the second-level cache pool when the read message with the same ID as the response message is searched in the second-level cache pool;

[0023] releasing the received response message when the read message with the same ID as the response message is not searched in the second-level cache pool.

[0024] In some embodiments, the method further comprises the following steps:

[0025] when the corresponding read message is searched in the first-level cache pool, searching for the unsent read message in the first-level cache pool and issuing the read message to the component 2, and then returning to the step of placing the read message into the second-level cache pool by using the service interface of the component 2 called by the application thread, and sending the read message to the downstream communication medium by the component 2, until the unsent read message is not searched in the first-level cache pool;

[0026] releasing the received response message when the corresponding read message is not searched in the first-level cache pool.

[0027] To achieve the above object, another aspect of the embodiment of the present application proposes an intelligent fusion terminal reading device, which comprises:

[0028] a component construction unit, configured to construct a component 1 and a component 2 in an intelligent fusion terminal; wherein the component 1 is configured to converge all read type services in the intelligent fusion terminal through a first-level cache pool, and the component 2 is configured to implement a concurrent reading request response model and interact with a downstream communication medium through a second-level cache pool;

[0029] a first reading unit, configured to, when a read type service is generated, place a read message of an application thread into the first-level cache pool by using a service interface of the component 1 called by the application thread;

[0030] a second reading unit, configured to place the read message into the second-level cache pool by using a service interface of the component 2 called by the application thread, and send the read message to the downstream communication medium by the component 2;

[0031] a first response unit, configured to, when the component 2 receives a response message uploaded from the downstream communication medium, search for the read message with the same ID as the response message in the second-level cache pool by using the component 2, and upload the response message to the component 1 when the read message is searched;

[0032] A second response unit is configured to search for the copy reading message corresponding to the response message in the first-level cache pool by using the component 1, and report the response message to the application thread when the copy reading message is found.

[0033] To achieve the above object, another aspect of the embodiments of the present application provides an electronic device, which comprises a memory and a processor, the memory stores a computer program, and the processor implements the above method when executing the computer program.

[0034] To achieve the above object, another aspect of the embodiments of the present application provides a computer readable storage medium, which stores a computer program, and the computer program implements the above method when executed by a processor.

[0035] To achieve the above object, another aspect of the embodiments of the present application provides a computer program product, which comprises a computer program, and the computer program implements the above method when executed by a processor.

[0036] The embodiments of the present application at least have the following beneficial effects:

[0037] The present application provides a kind of intelligent fusion terminal copy reading method, device, electronic equipment and storage medium, and the application scheme is by constructing component 1 and component 2 in intelligent fusion terminal;Wherein, component 1 is used to gather all copy reading type services in intelligent fusion terminal by 1-level cache pool, component 2 is used to realize the request response model of concurrent copy reading, and is interacted with downstream communication medium by 2-level cache pool;When generating copy reading type service, the service interface of component 1 is called by application thread, and the copy reading message of application thread is placed in 1-level cache pool;The service interface of component 2 is called by application thread, and copy reading message is placed in 2-level cache pool, and copy reading message is sent to downstream communication medium by component 2;When component 2 receives the response message uploaded by downstream communication medium, component 2 searches the copy reading message identical with the ID of response message in 2-level cache pool, and when searching, response message is uploaded to component 1;The copy reading message corresponding to response message is searched in 1-level cache pool by component 1, and when searching, response message is reported to application thread.The present application uses two-level cache pool, wherein 1-level cache pool is used to undertake random burst copy reading type service, can isolate downstream communication medium, prevent the ability of downstream communication medium from influencing the development logic of application thread, and further improve the robustness of copy reading service;Downstream communication medium is matched by 2-level cache pool, so that downstream communication medium releases maximum performance, provides reliable communication ability for copy reading service, and further improves the robustness of copy reading service. BRIEF DESCRIPTION OF DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly introduced. Obviously, the drawings in the following description only represent some embodiments of the present application. Other drawings can be obtained by those of ordinary skill in the art without any creative effort.

[0039] Figure 1 A flowchart of a smart converged terminal copy reading method provided by the embodiments of the present application is shown in the figure.

[0040] Figure 2 An architecture diagram of software for implementing the method of the embodiments of the present application is shown in the figure.

[0041] Figure 3 A processing flowchart of a copy reading message provided by the embodiments of the present application is shown in the figure.

[0042] Figure 4 A processing flowchart of a timer 1 provided by the embodiments of the present application is shown in the figure.

[0043] Figure 5 A processing flowchart of a timer 2 provided by the embodiments of the present application is shown in the figure.

[0044] Figure 6 A processing flowchart of a response message provided by the embodiments of the present application is shown in the figure.

[0045] Figure 7 A structure diagram of a smart converged terminal copy reading device provided by the embodiments of the present application is shown in the figure.

[0046] Figure 8 A hardware structure diagram of an electronic device provided by the embodiments of the present application is shown in the figure. DETAILED DESCRIPTION

[0047] In order to make the objects, technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not intended to limit the present application. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application, but are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the appended claims.

[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application, and are not intended to limit the present application.

[0049] Before the embodiments of the application are described in detail, first, some related technologies involved in the embodiments of the application are described as follows:

[0050] The application provides an intelligent fusion terminal reading scheme, which can effectively apply carrier channels when a large number of services use the carrier channels for interaction, and can simplify the application thread logic development. The intelligent fusion terminal reading scheme abstracts service types, designs a two-level cache mode, standardizes the general logic of the upper-layer software for implementing reading-type services, simplifies software development, smoothes service traffic, matches the actual bearing capacity of carrier communication, and increases the robustness of reading-type services.

[0051] Specifically, the application provides an intelligent fusion terminal reading scheme to solve the problem of complex and non-standard implementation of reading-type services of the intelligent fusion terminal. Two components are introduced to implement the aggregation of reading-type services of the intelligent fusion terminal and an abstract <request, response> model supporting concurrent reading, and two cache pools are used to smooth service bursts, thereby standardizing the implementation framework of reading-type services, greatly simplifying the implementation complexity of reading-type services of the intelligent fusion terminal, and enhancing the matching of carrier communication capacity.

[0052] Reference Figure 1 The embodiments of the application provide an intelligent fusion terminal reading method, which can include but is not limited to S100 to S140, and specifically as follows:

[0053] S100: constructing a component 1 and a component 2 in an intelligent fusion terminal; wherein the component 1 is used to aggregate all reading-type services in the intelligent fusion terminal through a first-level cache pool, and the component 2 is used to implement a request-response model supporting concurrent reading and interact with a downstream communication medium through a second-level cache pool;

[0054] S110: when a reading-type service is generated, a service interface of the component 1 is called by an application thread to put a reading message of the application thread into the first-level cache pool;

[0055] S120: a service interface of the component 2 is called by the application thread to put the reading message into the second-level cache pool, and the reading message is sent to the downstream communication medium by the component 2;

[0056] S130: when the component 2 receives a response message uploaded by the downstream communication medium, the component 2 searches for the reading message with the same ID as the response message in the second-level cache pool, and when the reading message is found, the response message is uploaded to the component 1;

[0057] S140: searching for the copy message corresponding to the response message in the 1st level cache pool by using the component 1, and reporting the response message to the application thread when the copy message is found.

[0058] Optionally, the step of putting the copy message of the application thread into the 1st level cache pool by using the service interface of the component 1 when the copy type service is generated comprises the following steps.

[0059] When the copy type service is generated, the service interface of the component 1 is called by using the application thread, and the copy message of the application thread is put into the 1st level cache pool when there is still remaining space in the 1st level cache pool in the component 1.

[0060] Optionally, the method further comprises the following steps.

[0061] After the copy message is put into the 1st level cache pool, a first timeout time of the copy message is calculated.

[0062] When the first timer of the component 1 times out, it is checked whether the first timeout time exceeds the time set by the first timer, and if yes, information of a failed waiting response interaction is fed back to the application thread, and the space used by the copy message in the 1st level cache pool and the 2nd level cache pool is cleared.

[0063] Optionally, the step of putting the copy message into the 2nd level cache pool by using the service interface of the component 2 and sending the copy message to the downstream communication medium by using the component 2 comprises the following steps.

[0064] After the component 1 puts the copy message into the 1st level cache pool, the service interface of the component 2 is called by using the application thread, and the copy message is put into the 2nd level cache pool and sent to the downstream communication medium when there is still remaining space in the 2nd level cache pool in the component 2.

[0065] Optionally, the method further comprises the following steps.

[0066] When the copy message is put into the 2nd level cache pool, an ID is assigned to the copy message by using the component 2, and a second timeout time is calculated.

[0067] When the second timer of the component 2 times out, it is checked whether the second timeout time exceeds the time set by the second timer, and if yes, the current second timeout time is calculated again, and the copy message is sent to the downstream communication medium.

[0068] Optionally, the method further comprises the following steps.

[0069] releasing the corresponding read message in the 2nd level cache pool when the read message with the same ID as the response message is searched in the 2nd level cache pool;

[0070] releasing the received response message when the read message with the same ID as the response message is not searched in the 2nd level cache pool.

[0071] Optionally, the method further comprises the following steps:

[0072] when the corresponding read message is searched in the 1st level cache pool, searching the unsent read message in the 1st level cache pool from the component 2, and then returning the step of putting the read message into the 2nd level cache pool by using the service interface of the component 2 called by the application thread, sending the read message to the downstream communication medium through the component 2, until the unsent read message is not searched in the 1st level cache pool;

[0073] releasing the received response message when the corresponding read message is not searched in the 1st level cache pool.

[0074] Next, some optional embodiments of the present application will be described and explained in detail in combination with specific application examples.

[0075] Specifically, the embodiment provides a read method of intelligent fusion terminal, comprising the following steps: S1: the intelligent fusion terminal realizes the acceptance of read type service through two components, wherein the component 1 realizes read service convergence, converges all read type services in the intelligent fusion terminal through a 1st level cache pool, and the component 2 realizes an abstract <request, response> model supporting concurrent read, and realizes the interaction with a downstream communication medium through a 2nd level cache pool; Figure 2 The architecture diagram of the software for realizing the method of the embodiment;

[0076] S2: when the read type service is generated, the application thread calls the service interface of the component 1, when the 1st level cache pool space in the component still has a remainder, the read message of the application thread can be put into the 1st level cache pool, otherwise the read service fails; the size of the 1st level cache pool is M, when the read message is successfully put into the 1st level cache pool, the timeout time T1 of the read message is calculated; exemplarily, Figure 3 The flowchart of the processing of the read message;

[0077] S3: Component 1 contains a 100 ms period timer Timer1, after the timer expires, check the timeout time T1 of the read message in the 1st level cache pool, if it exceeds the set time, it means that the read message waiting response interaction fails, the information will be fed back to the corresponding application thread, and the 1st and 2nd level cache pool spaces used by the read message will be cleared; for example, Figure 4 The processing flow chart of Timer1 is shown in the following figure:

[0078] S4: When component 1 completes the read message into the 1st level cache pool, it will continue to call the service interface of component 2, when the 2nd level cache pool space in component 2 still has remaining, the read message of the application thread can be put into the 2nd level cache pool, otherwise the business message needs to continue to be cached in the 1st level cache pool to wait for scheduling; the size of the 2nd level cache pool is N, generally N < M, and N is related to the transmission capacity of the downstream communication medium, when the read message is successfully put into the 2nd level cache pool, component 2 allocates an ID for it and calculates the timeout time T2, T2 < T1, and sends the read message to the downstream communication medium;

[0079] S5: Component 2 contains a 100 ms period timer Timer2, after the timer expires, check the timeout time T2 of the read message in the 2nd level cache pool, if it exceeds the set time, it means that this sending fails, the component calculates the timeout time T2 again, and sends the read message to the downstream communication medium again; for example, Figure 5 The processing flow chart of Timer2 is shown in the following figure:

[0080] S6: When the response message is received, component 2 searches the read message with the same ID in its 2nd level cache, when it is found, the response message is uploaded to component 1, and the corresponding read message in the 2nd level cache is released; when it is not found, the received response message is directly released; for example, Figure 6 The processing flow chart of the response message is shown in the following figure:

[0081] S7: When component 1 receives the response message reported by component 2, it searches for the corresponding read message in its 1st level cache, when it is found, the response message is reported to the corresponding application thread, and a read message not sent is searched from the 1st level cache and sent to component 2, the related processing logic is the same as S4; when it is not found, the received response message is directly released.

[0082] It can be understood that the embodiment has the following beneficial effects:

[0083] The read service in the intelligent fusion terminal is realized by two associated components, which unifies the design method of various read application threads, and facilitates the improvement of software development efficiency and quality.

[0084] Two-level cache is used, and the first-level cache is used to undertake random burst reading service, isolate the ability of downstream communication medium, prevent the ability of communication medium from affecting the development logic of application thread; and the second-level cache matches the communication medium capacity, and guarantees the maximum performance release of communication medium.

[0085] The component 2 designs a general <request, response> model, and the reading application thread does not need to pay attention to how to interact between the communication layer and the data storage device and what retransmission strategy is used, thereby simplifying the design difficulty of the reading application thread.

[0086] A reading service timeout method is designed, a single timer is used to manage the timeout of multiple concurrent services, and the demand for system resources is reduced.

[0087] The embodiment proposes many optimization details in view of the deficiencies and defects of the prior art, wherein two associated underlying components are designed to provide a unified thread design framework for the upper reading application, facilitate software implementation and quality improvement; two-level cache pools are designed, wherein the first-level cache pool is used to undertake the random burst reading service message of the upper application, smooth the generated high-speed traffic, isolate the ability of downstream communication medium, prevent the difference of the ability of communication medium from affecting the development of the application thread, and the second-level cache pool matches the ability of the communication medium, guarantees the maximum performance release of communication interpretation; in the component 2, a set of abstract <request, response> model supporting concurrent reading is designed, so that the upper reading application thread does not need to pay attention to how to interact between the communication layer and the data storage device and what retransmission strategy is used, thereby simplifying the design difficulty of the reading application thread; in the two components, a reading service timeout judgment mechanism is designed, a single timer can be used to manage the timeout of multiple concurrent reading services, and the demand for system resources is reduced.

[0088] Next, some optional embodiments of the application are described:

[0089] Embodiment one: the application reading service can be put into two-level cache and receive a response message, including the following steps:

[0090] S1: the application thread calls the service interface of the component 1, and transmits a reading message, the first-level cache pool of the component 1 has sufficient remaining space, can put the reading message, and calculates the timeout time T1 of the reading message after putting;

[0091] S2: the component 1 continues to call the service interface of the component 2, transmits the above reading message, the second-level cache pool of the component 2 has sufficient remaining space, can put the reading message, allocates the message ID1 and the technical message timeout time T2 after putting, and simultaneously calls the underlying communication medium service interface to send the message;

[0092] S3: Component 2 receives the response message reported on the communication medium, finds the corresponding copy message in the 2-level cache pool through the message ID, uploads the response message to component 1, and releases the corresponding copy message in the 2-level cache pool;

[0093] S4: Component 1 receives the response message reported by component 2, finds the corresponding copy message in the 1-level cache pool, uploads the response message to the corresponding application thread, and releases the corresponding copy message in the 1-level cache pool.

[0094] Embodiment two: the application copy class business can be put into two-level cache but has not received a response message, including the following steps:

[0095] S1: the application thread calls the service interface of component 1, passes a copy message, the 1-level cache pool of component 1 has sufficient space to put the copy message, calculates the timeout time T1 of the copy message after putting it in;

[0096] S2: component 1 continues to call the service interface of component 2, passes the above copy message, the 2-level cache pool of component 2 has sufficient space to put the copy message, allocates message ID1 and technical message timeout time T2 after putting it in, and calls the underlying communication medium service interface to send the message;

[0097] S3: the timer in component 2 continuously times out, judges that the timeout time of the above copy message has arrived, this sending fails, recalculates the copy mode as broadcast copy, and recalculates the timeout time T2;

[0098] S4: the timer in component 1 continuously times out, judges that the timeout time of the above copy message has arrived, this copy fails, feeds back the failure information to the corresponding application thread, releases the corresponding copy message in the 1-level cache pool, and cancels the sending of the copy message by calling the service interface of component 2.

[0099] Reference Figure 7 The embodiment of the application further provides a kind of intelligent fusion terminal copy device, can realize the intelligent fusion terminal copy method described above, the device includes:

[0100] Component building unit, for building component 1 and component 2 in intelligent fusion terminal;Wherein, the component 1 is used to gather all copy class businesses in the intelligent fusion terminal through 1-level cache pool, and the component 2 is used to realize the request response model of concurrent copy, and interacts with downstream communication medium through 2-level cache pool;

[0101] First copy unit, for when generating copy class business, the service interface of the component 1 is called by application thread to put the copy message of the application thread in the 1-level cache pool;

[0102] A second reading unit is configured to put the reading message into the 2-level cache pool by invoking a service interface of the component 2 using the application thread, and send the reading message to the downstream communication medium through the component 2;

[0103] A first response unit is configured to search for the reading message with the same ID as the response message in the 2-level cache pool using the component 2 when the component 2 receives the response message uploaded on the downstream communication medium, and upload the response message to the component 1 when the reading message is searched.

[0104] A second response unit is configured to search for the reading message corresponding to the response message in the 1-level cache pool using the component 1, and report the response message to the application thread when the reading message is searched.

[0105] It can be understood that the contents in the above method embodiments are all applicable to the device embodiments, the device embodiments specifically implement the functions of the above method embodiments, and achieve the same beneficial effects as the above method embodiments.

[0106] The embodiment of the present application further provides an electronic device, which comprises a memory and a processor. The memory stores a computer program, and the processor implements the method of the embodiment of the present application when executing the computer program. The electronic device can be any intelligent terminal, such as a tablet computer or a vehicle-mounted computer.

[0107] It can be understood that the contents in the above method embodiments are all applicable to the device embodiments, the device embodiments specifically implement the functions of the above method embodiments, and achieve the same beneficial effects as the above method embodiments.

[0108] Please refer to Figure 8 , Figure 8 The hardware structure of the electronic device of another embodiment is illustrated, which comprises:

[0109] The processor 801 can be implemented in a general-purpose CPU (Central Processing Unit), a microprocessor, an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits, and is used to execute related programs to implement the technical solutions provided by the embodiments of the present application.

[0110] The memory 802 can be implemented in the form of a Read Only Memory (ROM), a static storage device, a dynamic storage device or a Random Access Memory (RAM), etc. The memory 802 can store an operating system and other application programs, and when the technical solutions provided by the embodiments of the present specification are implemented by software or firmware, the related program codes are stored in the memory 802 and are called and executed by the processor 801 to perform the method of the embodiments of the present application;

[0111] The input / output interface 803 is configured to realize information input and output.

[0112] The communication interface 804 is configured to realize the communication interaction between the device and other devices, and the communication can be realized by a wired manner (for example, a USB, a network cable, etc.) or a wireless manner (for example, a mobile network, WIFI, Bluetooth, etc.).

[0113] The bus 805 is configured to transmit information between various components (for example, the processor 801, the memory 802, the input / output interface 803 and the communication interface 804) of the device.

[0114] The processor 801, the memory 802, the input / output interface 803 and the communication interface 804 are connected to each other through the bus 805 to realize the communication connection between the device.

[0115] The embodiments of the present application also provide a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the method of the present application.

[0116] It can be understood that the contents in the above method embodiments are all applicable to the present storage medium embodiments. The functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved by the present storage medium embodiments are also the same as those achieved by the above method embodiments.

[0117] The embodiments of the present application also provide a computer program product, which includes a computer program. The computer program is executed by a processor to implement the above method.

[0118] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory can include a high-speed random access memory, and can also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state memory device. In some embodiments, the memory can optionally include a memory disposed remotely with respect to the processor, and these remote memories can be connected to the processor through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0119] The embodiments described in the embodiments of the present application are used to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art can know that, with the evolution of technology and the appearance of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

[0120] Those skilled in the art can understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and can include more or fewer steps than shown in the figures, or combine certain steps, or different steps.

[0121] The device embodiments described above are only schematic, and the units described as separate components can or can not be physically separate, that is, they can be located in one place, or can be distributed on multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiments of the present application.

[0122] Those skilled in the art can understand that all or some of the steps in the above disclosed method, the functional modules / units in the system and the device can be implemented as software, firmware, hardware and their appropriate combinations.

[0123] The terms "first", "second", "third", "fourth" and the like used in the specification of the present application and the above-described drawings (if any) are used to distinguish similar objects, and do not necessarily have to describe a particular order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0124] It should be understood that, in the application, "at least one" refers to one or more, and "multiple" refers to two or more. "And / or" is used to describe the association relationship of the associated objects, which means that there can be three relationships, for example, "A and / or B" can represent three cases of only A, only B and A and B existing at the same time, wherein A and B can be singular or plural. The character " / " generally represents an "or" relationship between the front and rear associated objects. "At least one of the following" or the like means any combination of these items, including any combination of single or multiple items. For example, at least one of a, b or c can represent a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b and c can be single or multiple.

[0125] In several embodiments provided in the application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the above units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed mutual ones can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.

[0126] The units described above as separate components can or can not be physically separated, and the components displayed as units can or can not be physical units, that is, they can be located in one place, or can be distributed on multiple network units. According to actual needs, part or all of the units can be selected to achieve the purpose of the embodiment scheme.

[0127] In addition, each functional unit in each embodiment of the application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0128] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, essentially or in other words, the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes multiple instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various program storage media.

[0129] The preferred embodiments of the embodiments of the present application are described above with reference to the accompanying drawings, and are not limited to the scope of the embodiments of the present application. Any modifications, equivalent replacements and improvements made by those skilled in the art without departing from the scope and essence of the embodiments of the present application shall be within the scope of the embodiments of the present application.

Claims

1. A method for transcribing text using an intelligent fusion terminal, characterized in that, The method includes the following steps: Component 1 and Component 2 are constructed within the intelligent converged terminal; wherein, Component 1 is used to aggregate all copying and reading services within the intelligent converged terminal through a level 1 cache pool, and Component 2 is used to implement a concurrent copying and reading request-response model and interact with downstream communication media through a level 2 cache pool; When a copying or reading service is generated, the application thread calls the service interface of component 1 to put the copying or reading message of the application thread into the level 1 cache pool. The application thread calls the service interface of component 2 to put the copied message into the level 2 buffer pool, and then the component 2 sends the copied message to the downstream communication medium. When component 2 receives a response message uploaded by the downstream communication medium, it searches for the copy message with the same ID as the response message in the level 2 cache pool. When the message is found, it uploads the response message to component 1. The component 1 is used to search for the copy message corresponding to the response message in the level 1 cache pool. When the message is found, the response message is reported to the application thread.

2. The intelligent fusion terminal reading method according to claim 1, characterized in that, When a copying / reading service is generated, the application thread calls the service interface of component 1 to put the copying / reading message of the application thread into the level 1 cache pool, including the following steps: When a copying or reading service is generated, the application thread calls the service interface of component 1. When there is still space in the level 1 cache pool within component 1, the copying or reading message of the application thread is placed into the level 1 cache pool.

3. The intelligent fusion terminal copying method according to claim 2, characterized in that, The method further includes the following steps: After the copied message is placed into the Level 1 buffer pool, the first timeout time of the copied message is calculated; When the first timer of component 1 times out, it checks whether the first timeout time exceeds the time set by the first timer. If so, it feeds back the information of failure to wait for response interaction to the application thread and clears the space used by the copy message in the level 1 cache pool and the level 2 cache pool.

4. The intelligent fusion terminal reading method according to claim 1, characterized in that, The step of using the application thread to call the service interface of component 2 to put the copied message into the level 2 buffer pool, and then sending the copied message to the downstream communication medium through component 2, includes the following steps: After component 1 puts the copy message into the level 1 cache pool, it uses the application thread to call the service interface of component 2. When there is still space in the level 2 cache pool in component 2, it puts the copy message into the level 2 cache pool and sends the copy message to the downstream communication medium.

5. The intelligent fusion terminal reading method according to claim 4, characterized in that, The method further includes the following steps: When the copied message is placed into the Level 2 buffer pool, the component 2 assigns an ID to the copied message and calculates the second timeout period. When the second timer of component 2 times out, it checks whether the second timeout time exceeds the time set by the second timer. If so, it recalculates the current second timeout time and sends the copy message to the downstream communication medium.

6. The intelligent fusion terminal reading method according to claim 1, characterized in that, The method further includes the following steps: When a copy message with the same ID as the response message is found in the Level 2 cache pool, the corresponding copy message in the Level 2 cache pool is released; When no copy message with the same ID as the response message is found in the Level 2 cache pool, the received response message is released.

7. A method for intelligent fusion terminal copying according to any one of claims 1 to 6, characterized in that, The method further includes the following steps: When searching for the corresponding copy message in the Level 1 cache pool, the unsent copy message is searched for in the Level 1 cache pool and sent to the Component 2. Then, the process returns to the step of using the application thread to call the service interface of the Component 2 to put the copy message into the Level 2 cache pool and sending the copy message to the downstream communication medium through the Component 2, until no unsent copy message is found in the Level 1 cache pool. When the corresponding copy message is not found in the Level 1 cache pool, the received response message is released.

8. A smart fusion terminal reading device, characterized in that, The device includes: The component building unit is used to build component 1 and component 2 within the intelligent converged terminal; wherein, component 1 is used to aggregate all copying and reading services within the intelligent converged terminal through a level 1 cache pool, and component 2 is used to implement a concurrent copying and reading request-response model and interact with downstream communication media through a level 2 cache pool; The first copying unit is used to, when a copying service is generated, use the application thread to call the service interface of the component 1 to put the copying message of the application thread into the level 1 cache pool. The second copying unit is used to call the service interface of the component 2 using the application thread to put the copying message into the level 2 buffer pool, and send the copying message to the downstream communication medium through the component 2; The first response unit is used to search for the copy message with the same ID as the response message in the second-level cache pool when the component 2 receives the response message uploaded by the downstream communication medium, and upload the response message to the component 1 when the response message is found. The second response unit is used to use the component 1 to search for the copy message corresponding to the response message in the level 1 cache pool, and when the message is found, to report the response message to the application thread.

9. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Active out-of-order concurrent meter reading method based on dual-mode communication

    CN116996793A

  • Data acquisition method, station device and data acquisition system

    CN117833960A