Intelligent fusion terminal reading method and device, electronic equipment and storage medium

By building Component 1 and Component 2 within the intelligent converged terminal and using a two-level cache pool to manage the copying and reading business, the robustness problem of the intelligent converged terminal when handling a large number of copying and reading businesses is solved, the stability and efficiency of the copying and reading business are improved, and the development process of application threads is simplified.

CN121078124AActive Publication Date: 2025-12-05北京思凌科半导体技术有限公司
View PDF 5 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing intelligent converged terminals have low robustness when handling a large number of copying and reading services, and have difficulty effectively managing the differences in concurrent interaction and communication media capabilities, which affects the stability and efficiency of copying and reading services.

Method used

Component 1 and Component 2 are built in the intelligent converged terminal. Component 1 aggregates reading and copying services through a level 1 cache pool. Component 2 implements a request-response model for concurrent reading and copying and interacts with downstream communication media through a level 2 cache pool. By utilizing the isolation and matching capabilities of the two-level cache pools for communication media, a timeout mechanism for reading and copying services is designed to manage multiple concurrent services.

Benefits of technology

It improves the robustness of the copying and reading business, simplifies the development logic of application threads, isolates the capability differences of downstream communication media, ensures the maximization of communication media performance, and reduces system resource requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121078124A_ABST
    Figure CN121078124A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent fusion terminal reading method and device, electronic equipment and a storage medium, and relates to the technical field of power grid systems.The method comprises the steps that a component 1 and a component 2 are constructed in an intelligent fusion terminal; when a reading type service is generated, calling a service interface of a component 1 by using an application thread to put a reading message of the application thread into a first-level cache pool; calling a service interface of a component 2 by using an application thread to put the read message into a second-level cache pool, and sending the read message to a downstream communication medium through the component 2; when the component 2 receives a response message uploaded by a downstream communication medium, searching a reading message with the same ID as the response message in the second-level cache pool by using the component 2, and when the reading message is searched, uploading the response message to the component 1; and searching a reading message corresponding to the response message in the first-level cache pool by using the component 1, and when the reading message is found, reporting the response message to the application thread. According to the method, two stages of cache pools are used, so that the robustness of the copying and reading service is improved.
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 includes the following steps: 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; 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; 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; 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; The component 1 searches for the reading message corresponding to the response message in the first-level cache pool, and when the reading message is searched, the response message is reported to the application thread.

[0006] In some embodiments, the method further comprises the following steps: When a read-type service is generated, the application thread calls the service interface of the component 1, and when there is still space in the first-level cache pool in the component 1, the read message of the application thread is put into the first-level cache pool.

[0007] In some embodiments, the method further comprises the following steps: After the read message is put into the first-level cache pool, a first timeout time of the read message is calculated; When the first timer of the component 1 expires, it is checked whether the first timeout time exceeds the time set by the first timer. If yes, information of a failed waiting response interaction is fed back to the application thread, and the space used by the read message in the first-level cache pool and the second-level cache pool is cleared.

[0008] In some embodiments, the method further comprises the following steps: When the component 1 puts the read message into the first-level cache pool, the application thread calls the service interface of the component 2, and when there is still space in the second-level cache pool in the component 2, the read message is put into the second-level cache pool, and the read message is sent to the downstream communication medium through the component 2.

[0009] In some embodiments, the method further comprises the following steps: When the read message is put into the second-level cache pool, an ID of the read message is assigned by the component 2, and a second timeout time is calculated; When the second timer of the component 2 expires, it is checked whether the second timeout time exceeds the time set by the second timer. If yes, the current second timeout time is calculated again, and the read message is sent to the downstream communication medium.

[0010] In some embodiments, the method further comprises the following steps: When the read message with the same ID as the response message is searched in the second-level cache pool, the corresponding read message in the second-level cache pool is released; When the read message with the same ID as the response message is not searched in the second-level cache pool, the received response message is released.

[0011] In some embodiments, the method further comprises the following steps: When the corresponding readout message is not found in the first-level cache pool, the received response message is released. When the corresponding readout message is not found in the first-level cache pool, the received response message is released.

[0012] To achieve the above object, another aspect of the embodiment of the present application provides an intelligent fusion terminal readout device, which comprises: A component construction unit is configured to construct component 1 and component 2 in the intelligent fusion terminal; wherein the component 1 is configured to converge all readout services in the intelligent fusion terminal through a first-level cache pool, and the component 2 is configured to implement a concurrent readout request response model and interact with a downstream communication medium through a second-level cache pool. A first readout unit is configured to, when a readout service is generated, utilize an application thread to call a service interface of the component 1 to place a readout message of the application thread into the first-level cache pool. A second readout unit is configured to utilize the application thread to call a service interface of the component 2 to place the readout message into the second-level cache pool, and transmit the readout message to the downstream communication medium through the component 2. A first response unit is configured to, when the component 2 receives a response message uploaded from the downstream communication medium, utilize the component 2 to search for the readout message with the same ID as the response message in the second-level cache pool, and when the readout message is searched, upload the response message to the component 1. A second response unit is configured to utilize the component 1 to search for the readout message corresponding to the response message in the first-level cache pool, and when the readout message is searched, report the response message to the application thread.

[0013] To achieve the above object, another aspect of the embodiment 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.

[0014] To achieve the above object, another aspect of the embodiment 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.

[0015] To achieve the above object, another aspect of the embodiment of the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method described above.

[0016] The embodiment of the present application at least has the following beneficial effects: The present application provides a kind of intelligent fusion terminal copy reading method, device, electronic equipment and storage medium, and the scheme of the present application is constructed 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 interact 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 the copy reading message is placed in 2 level cache pool, and the copy reading message is sent to downstream communication medium by component 2;When component 2 receives the response message uploaded on downstream communication medium, component 2 searches the copy reading message with the same ID of response message in 2 level cache pool, when searching, response message is uploaded to component 1;The copy reading message corresponding to response message is found in 1 level cache pool by component 1, when searching, response message is reported to application thread.The present application uses two level cache pools, 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;Through 2 level cache pool, downstream communication medium is matched, 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

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort.

[0018] Figure 1 A flowchart of a copy reading method of an intelligent fusion terminal provided by the embodiment of the present application is shown. Figure 2 An architecture diagram of software for implementing the method of the embodiment of the present application is shown. Figure 3 A processing flowchart of copy reading message provided by the embodiment of the present application is shown. Figure 4 A processing flowchart of timer 1 provided by the embodiment of the present application is shown. Figure 5A processing flowchart of the timer 2 provided for the embodiment of the present application is shown in FIG. 2; Figure 6 A processing flowchart of the response message provided for the embodiment of the present application is shown in FIG. 3; Figure 7 A structural schematic diagram of an intelligent fusion terminal copy reading device provided for the embodiment of the present application is shown in FIG. 4; Figure 8 A hardware structural schematic diagram of an electronic device provided for the embodiment of the present application is shown in FIG. 5. DETAILED DESCRIPTION

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

[0020] 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.

[0021] Before the embodiments of the present application are described in detail, first, some related technologies involved in the embodiments of the present application are described as follows: The present application provides an intelligent fusion terminal copy reading scheme for the problem of how to effectively apply carrier channels when a large number of services use carrier channels for interaction, and to simplify the application thread logic development. By abstracting service types and designing a two-level cache mode, the present application standardizes the general logic of the upper layer software to implement copy reading type services, simplifies software development, smoothes service traffic, matches the actual bearing capacity of carrier communication, and increases the robustness of copy reading type services.

[0022] Specifically, the present application provides an intelligent fusion terminal copy reading scheme for the current situation of complex and non-standard implementation of intelligent fusion terminal copy reading type services. Two components are introduced to implement the aggregation of intelligent fusion terminal copy reading type services and an abstract <request, response> model supporting concurrent copy reading, and two cache pools are used to smooth service bursts. The implementation framework of copy reading type services is standardized, the implementation complexity of intelligent fusion terminal copy reading type services is greatly simplified, and the matching of carrier communication capacity is enhanced.

[0023] Reference Figure 1The embodiment of the present application provides a kind of intelligent fusion terminal copy reading method, this method can include but not limited to including S100 to S140, as follows: S100: component 1 and component 2 are constructed in intelligent fusion terminal;Wherein, the component 1 is used to converge all copy reading type services in the intelligent fusion terminal by 1-level cache pool, the component 2 is used to realize the request response model of concurrent copy reading, and interacts with downstream communication medium through 2-level cache pool; S110: when generating copy reading type service, the service interface of the component 1 is called by application thread, and the copy reading message of the application thread is placed in the 1-level cache pool; S120: the service interface of the component 2 is called by the application thread, and the copy reading message is placed in the 2-level cache pool, and the copy reading message is sent to the downstream communication medium by the component 2; S130: when the component 2 receives the response message uploaded on the downstream communication medium, the component 2 searches the copy reading message with the same ID in the 2-level cache pool, and when searching, the response message is uploaded to the component 1; S140: the component 1 searches the copy reading message corresponding to the response message in the 1-level cache pool, and when searching, the response message is reported to the application thread.

[0024] Optionally, when generating copy reading type service, the service interface of the component 1 is called by application thread, and the copy reading message of the application thread is placed in the 1-level cache pool, including the following steps: When generating copy reading type service, the service interface of the component 1 is called by the application thread, and when the 1-level cache pool in the component 1 still has remaining space, the copy reading message of the application thread is placed in the 1-level cache pool.

[0025] Optionally, the method further comprises the following steps: After the copy reading message is placed in the 1-level cache pool, the first timeout time of the copy reading message is calculated; 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, if yes, the information of waiting response interaction failure is fed back to the application thread, and the space used by the copy reading message in the 1-level cache pool and the 2-level cache pool is cleared.

[0026] Optionally, the service interface of the component 2 is called by the application thread, and the copy reading message is placed in the 2-level cache pool, and the copy reading message is sent to the downstream communication medium by the component 2, including the following steps: When the component 1 puts the reading message into the 1st level cache pool, the application thread is used to call the service interface of the component 2, and when there is still space in the 2nd level cache pool in the component 2, the reading message is put into the 2nd level cache pool, and the reading message is sent to the downstream communication medium.

[0027] Optionally, the method further comprises the following steps: When the reading message is put into the 2nd level cache pool, the component 2 allocates an ID for the reading message and calculates a second timeout time; When the second timer of the component 2 expires, 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 reading message is sent to the downstream communication medium.

[0028] Optionally, the method further comprises the following steps: When the reading message with the same ID as the response message is searched in the 2nd level cache pool, the corresponding reading message in the 2nd level cache pool is released; When the reading message with the same ID as the response message is not searched in the 2nd level cache pool, the received response message is released.

[0029] Optionally, the method further comprises the following steps: When the corresponding reading message is searched in the 1st level cache pool, the reading message not sent is searched in the 1st level cache pool and sent to the component 2, and then the step of using the application thread to call the service interface of the component 2 to put the reading message into the 2nd level cache pool and sending the reading message to the downstream communication medium by the component 2 is returned, until the reading message not sent is not searched in the 1st level cache pool; When the corresponding reading message is not searched in the 1st level cache pool, the received response message is released.

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

[0031] Specifically, the embodiment provides a reading method of an intelligent fusion terminal, comprising the following steps: S1: the intelligent fusion terminal realizes the connection of reading type services through two components, wherein the component 1 realizes reading service convergence, converges all reading 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 reading, 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 is shown in the following figure: S2: When a copy reading type service is generated, the application thread calls the service interface of component 1, and when there is still space in the 1st level cache pool in the component, the copy reading message of the application thread can be put into the 1st level cache pool, otherwise the copy reading service fails; the size of the 1st level cache pool is M, and when the copy reading message is successfully put into the 1st level cache pool, the timeout time T1 of the copy reading message is calculated; exemplarily, Figure 3 the processing flowchart of the copy reading message is as follows; S3: Component 1 contains a 100ms period timer Timer1, and after the timer expires, the timeout time T1 of the copy reading message in the 1st level cache pool is checked, and if the set time is exceeded, it means that the copy reading message fails to wait for response interaction, and the information is fed back to the corresponding application thread, and the 1st and 2nd level cache pool spaces used by the copy reading message are cleared; exemplarily, Figure 4 the processing flowchart of the timer 1 is as follows; S4: After component 1 completes putting the copy reading message into the 1st level cache pool, the service interface of component 2 is called, and when there is still space in the 2nd level cache pool in component 2, the copy reading message of the application thread can be put into the 2nd level cache pool, otherwise the service message needs to be continuously cached in the 1st level cache pool to wait for scheduling; the size of the 2nd level cache pool is N, generally N S5: Component 2 contains a 100ms period timer Timer2, and after the timer expires, the timeout time T2 of the copy reading message in the 2nd level cache pool is checked, and if the set time is exceeded, it means that the sending fails, and the component calculates the timeout time T2 again, and sends the copy reading message to the downstream communication medium again; exemplarily, Figure 5 the processing flowchart of the timer 2 is as follows; S6: When the response message is received, component 2 searches the copy reading message with the same ID in the 2nd level cache, and when it is found, the response message is uploaded to component 1, and the corresponding copy reading message in the 2nd level cache is released; when it is not found, the received response message is directly released; exemplarily, Figure 6 the processing flowchart of the response message is as follows; S7: When component 1 receives the response message reported by component 2, the corresponding copy reading message is searched in the 1st level cache, and when it is found, the response message is reported to the corresponding application thread, and a copy reading message not sent is searched from the 1st level cache and sent to component 2, and the related processing logic is the same as S4; when it is not found, the received response message is directly released.

[0032] It can be understood that the embodiment has the following beneficial effects: The copy reading service in the intelligent fusion terminal is realized by two associated components, which unifies the design method of various copy reading application threads, and facilitates the software development efficiency and quality improvement.

[0033] Two-level cache is used, and the first-level cache is used to undertake random burst copy reading services, isolates the ability of the downstream communication medium, and prevents the ability of the communication medium from affecting the development logic of the application thread; and the second-level cache matches the communication medium capacity to ensure the maximum performance release of the communication medium.

[0034] Component 2 designs a general <request, response> model, and the copy reading application thread does not need to pay attention to how to interact between the communication layer and the data storage device, and which retransmission strategy to use, which simplifies the design difficulty of the copy reading application thread.

[0035] A copy reading service timeout method is designed, which manages the timeout of multiple concurrent services through a single timer, reducing the demand for system resources.

[0036] 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 upper copy reading applications, facilitating software implementation and quality improvement; two-level cache pools are designed, wherein the first-level cache pool is used to undertake random burst copy reading service messages of the upper application, smooth the generated high-speed traffic, isolate the ability of the downstream communication medium, and prevent the difference in the ability of the communication medium from affecting the development of the application thread, while the second-level cache pool matches the ability of the communication medium to ensure the maximum performance release of the communication interpretation; in component 2, an abstract <request, response> model supporting concurrent copy reading is designed, so that the upper copy reading application thread does not need to pay attention to how to interact between the communication layer and the data storage device, and which retransmission strategy to use, which simplifies the design difficulty of the copy reading application thread; in the two components, a copy reading service timeout judgment mechanism is designed, which can manage the timeout of multiple concurrent copy reading services through a single timer, reducing the demand for system resources.

[0037] Next, some optional embodiments of the application are described: Embodiment one: the application copy reading service can be put into two-level cache and receive a response message, including the following steps: S1: the application thread calls the service interface of component 1, passes a copy reading message, the remaining space of the first-level cache pool of component 1 is sufficient, the copy reading message can be put in, and the timeout time T1 of the copy reading message is calculated after being put in; S2: component 1 continues to call the service interface of component 2, passes the above copy reading message, the remaining space of the second-level cache pool of component 2 is sufficient, the copy reading message can be put in, the message ID1 is assigned and the message timeout time T2 is calculated after being put in, and the underlying communication medium service interface is called to send the message; S3: The 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 the component 1, and releases the corresponding copy message in the 2-level cache pool; S4: The component 1 receives the response message reported by the 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.

[0038] Embodiment two: The application copy class business can be put into two-level cache but has not received the response message, including the following steps: S1: The application thread calls the service interface of the component 1, delivers a copy message, the 1-level cache pool of the component 1 has sufficient space to put the copy message, calculates the timeout time T1 of the copy message after putting it in; S2: The component 1 continues to call the service interface of the component 2, delivers the above copy message, the 2-level cache pool of the component 2 has sufficient space to put the copy message, allocates the message ID 1 and the timeout time T2 of the message after putting it in, and calls the underlying communication medium service interface to send the message; S3: The timer in the 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; S4: The timer in the 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 of the 1-level cache pool, and cancels the sending of the copy message by calling the service interface of the component 2.

[0039] 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 comprises: component construction unit, for constructing component 1 and component 2 in intelligent fusion terminal;Wherein, the component 1 is used to converge 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 interact with downstream communication medium through 2-level cache pool; 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; second copy unit, for the service interface of the component 2 is called by the application thread to put the copy message in the 2-level cache pool, and the component 2 is used to send the copy message to the downstream communication medium; The first response unit is configured to search for the copy message with the same ID as the response message in the 2-level cache pool of the component 2 when the component 2 receives the response message on the downstream communication medium, and upload the response message to the component 1 when the copy message is searched. The second response unit is configured to search for the copy message corresponding to the response message in the 1-level cache pool of the component 1, and report the response message to the application thread when the copy message is searched.

[0040] It can be understood that the contents in the above method embodiments are 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.

[0041] The electronic device provided in the embodiment of the present application includes a memory and a processor. The memory stores a computer program. 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 including a tablet computer, a vehicle-mounted computer, etc.

[0042] It can be understood that the contents in the above method embodiments are 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.

[0043] Please refer to Figure 8 , Figure 8 The hardware structure of the electronic device of another embodiment is illustrated, and the electronic device includes: 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 configured to execute related programs to implement the technical solutions provided in the embodiments of the present application. The memory 802 can be implemented in the form of a ROM (Read Only Memory), a static storage device, a dynamic storage device, or a RAM (Random Access Memory). The memory 802 can store an operating system and other application programs. When the technical solutions provided in the embodiments of the present application 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 implement the method of the embodiments of the present application. The input / output interface 803 is configured to implement information input and output. The communication interface 804 is configured to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (for example, a USB, a network cable, and the like) or a wireless manner (for example, a mobile network, WIFI, Bluetooth, and the like). 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. 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.

[0044] The embodiment of the present application further provides a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to realize the method of the present application.

[0045] It can be understood that the contents in the above method embodiments are applicable to the storage medium embodiments. The storage medium embodiments specifically realize the functions of the above method embodiments, and achieve the same beneficial effects as the above method embodiments.

[0046] The embodiment of the present application further provides a computer program product, which includes a computer program. The computer program is executed by a processor to realize the method described above.

[0047] The memory is a non-transitory computer readable storage medium, which can be used to store a non-transitory software program and a non-transitory computer executable program. In addition, the memory can include a high-speed random access memory, and can further include a non-transitory memory, for example, 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 remotely arranged relative to the processor. These remote memories can be connected to the processor through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0048] 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.

[0049] 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 the figures, or combine certain steps, or different steps.

[0050] The apparatus embodiments described above are merely exemplary, and the units described as separate units can or can not be physically separate, i.e., can be located in one place, or can be distributed over multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment.

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

[0052] The terms "first", "second", "third", "fourth" and the like in the description of the application and in the claims of the foregoing drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the use of the terms so

[0053] It should be understood that in this application, "at least one" means one or more, and "multiple" means two or more. "And / or" is used to describe the relationship between the associated objects, which means that there can be three relationships, for example, "A and / or B" can mean that there are three cases: only A, only B, and A and B at the same time, where A and B can be singular or plural. The character " / " generally represents that the associated objects before and after are in an "or" relationship. "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 mean a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0054] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented by other manners. For example, the apparatus embodiments described above are merely illustrative, for example, the division of the above units is merely 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 units or components shown or discussed can be indirect coupling or communication connection through some interfaces, apparatuses or units, and can be electrical, mechanical or other forms.

[0055] The units described above as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they can be located in one place or distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

[0056] In addition, the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, 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.

[0057] If the integrated unit is realized in the form of 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 solutions of the present application essentially or the part of the prior art that makes a contribution 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, including a plurality of 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 method of each embodiment of the present application. The foregoing 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.

[0058] The preferred embodiments of the embodiments of the present application are described above with reference to the accompanying drawings, but this does not limit the scope of the rights of the embodiments of the present application. Any modification, equivalent replacement and improvement 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 rights 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

  • Message processing method and device

    CN113794585A

  • Cross-network data synchronization and exception handling method based on two-stage cache

    CN113849526A

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

    CN116996793A

  • Data acquisition method, station device and data acquisition system

    CN117833960A

  • IC card

    JP2016095877A