Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

165 results about "Callback" patented technology

In computer programming, a callback, also known as a "call-after" function, is any executable code that is passed as an argument to other code that is expected to call back (execute) the argument at a given time. This execution may be immediate as in a synchronous callback, or it might happen at a later time as in an asynchronous callback. Programming languages support callbacks in different ways, often implementing them with subroutines, lambda expressions, blocks, or function pointers.

Monitoring method and device, verification equipment, medium and program

The embodiment of the invention provides a monitoring method and device, verification equipment, a medium and a program, the monitoring method is applied to a register monitor and comprises the steps that a design path corresponding to a target register and a path character string stored in the register monitor are obtained, and the value of a signal in the design path of the target register is a monitoring object of the register monitor; an update waiting task is called, the update waiting task is used for registering callback functions on a plurality of signals of the design path, and the callback functions are automatically called when the values of the signals change so as to respond to and process the changes of the values of the signals; when the value of the signal in the design path changes, a callback function is executed to trigger a value change occurrence event, the value change occurrence event being used to indicate that the value of the signal in the design path changes. According to the method, the change of the value of the register can be monitored, the value in the register model is updated in real time, state synchronization of the register model and the register in the to-be-tested design is ensured, and the simulation verification accuracy is improved.
Owner:HAIGUANG INTEGRATED CIRCUIT DESIGN (BEIJING) CO LTD

Heterogeneous computing scheduling method, device and equipment based on proxy thread and storage medium

The invention discloses a heterogeneous computing scheduling method and device based on a proxy thread, computer equipment and a storage medium, the scheduling method comprises the steps that a working thread group and the proxy thread are created, the working thread group comprises at least one working thread, and a lockless communication queue is established to connect the working thread group and the proxy thread; in response to the received to-be-processed task of the execution unit, the working thread submits an operation request of the to-be-processed task to the proxy thread through the lock-free communication queue; in response to successful submission of the operation request, performing local data calculation by the working thread, and entering dormancy if the local data calculation is completed; in response to the operation request received by the proxy thread, the proxy thread submits the operation request to an execution unit and polls whether the to-be-processed task is processed or not; in response to completion of processing of the to-be-processed task, the proxy thread wakes up a corresponding working thread through a callback function and returns a processing result; by means of the method, the high concurrency performance and the compatibility of heterogeneous equipment can be remarkably improved.
Owner:JINAN INSPUR DATA TECH CO LTD

Support API prefix in callback uri

Embodiments of the present disclosure relate to supporting API prefix in callback URI. A first first device is provided comprising at least one processor and at least one memory storing instructions. The at least one memory and the instructions are configured to, with the at least one processor, cause the first device at least to: receive, from a second device, a service request message, wherein the service request message comprises a first callback Uniform Resource Identifier, URI, with a first Application Programming Interface, API, prefix; in response to determining that the second device is not reachable, send, to a third device, a discovery request for discovering a further second device instance; receive, from the third device, a discovery response; determine a second callback URI based on the discovery response; and send to the further second device instance a callback request message based on the second callback URI.
Owner:NOKIA TECHNOLOGIES OY

Blockchain-based data processing method and apparatus, device, storage medium, and program product

This application discloses a blockchain-based data processing method performed by a computer device. The method includes: determining a token identification in response to a resource reception request; calling a general callback function in a smart contract of a blockchain and determining M virtual resources having the token identification issued by an issuing object in the blockchain; acquiring a resource attribute of the M virtual resources and determining a token attribute corresponding to the token identification based on the resource attribute of the M virtual resources, the issuing object holding a target virtual resource in the M virtual resources, and the M being a positive integer; and determining a resource identification of the target virtual resource transferred to a receiving object based on the token attribute of the token identification, the resource identifications corresponding to different token attributes being different.
Owner:TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Automatic data calculation method and system based on configuration driving

The invention discloses an automatic data calculation method and system based on configuration driving, relates to the technical field of automation of configuration driving, and solves the problems that although standardized data acquisition of multi-source heterogeneous equipment is realized in the prior art, data calculation modeling depends on hard coding; the same function is difficult to reuse so that the development period is long; computational logic is embedded in a program, debugging and modification are difficult, system retransmission is needed for demand change, and the maintenance cost is high; the technical problems that a large amount of manual intervention exists in a calculation link, rules cannot be dynamically adapted according to field requirements, system universality and expandability are poor, project efficiency is restricted, and multi-scene energy data analysis requirements are difficult to meet are solved. According to the method, common model measuring point configuration is set; after common model measuring point configuration information is read, a function registration mechanism is executed; carrying out callback function binding; and setting a function operation mechanism to solve the technical problem.
Owner:ANHUI UDAN TECH CO LTD

Equipment control method and device, computer equipment and storage medium

The invention provides an equipment control method and device, computer equipment and a storage medium, and the method comprises the steps: monitoring whether key value information of an equipment register of to-be-controlled equipment is written into a preset data structure defined by a kernel mode program or not by adopting a user mode program when an equipment drive program corresponding to the to-be-controlled equipment runs, and if the key value information of the device register exists in the preset data structure, reading the key value information of the device register by adopting a callback function defined by the kernel mode program, and executing read-write operation on the device register by adopting the callback function according to the key value information of the device register so as to control the to-be-controlled device. Once the user mode program monitors that the key value information exists in the preset data structure, the callback function defined by the kernel mode program completes reading and writing of the device register, and therefore the purposes that the device drive program does not need to be modified, register reading and writing are dynamically achieved, and the debugging cost is reduced are achieved.
Owner:PHYTIUM TECH CO LTD

A method, apparatus, device, medium, and product for file security level checking based on Windows operating system API hooking.

This application discloses a file security level checking method, apparatus, device, medium, and product based on Windows operating system API hooking, relating to the field of computer software applications. The method includes registering a callback function using a driver module; when the Windows operating system creates a process, the callback function sends the created process ID to a user-mode service module and receives a service completion message from the service module; within the service module, based on a DLL injection mechanism, the DLL injection program of the API hooking module is injected into the memory space of the created process; after the DLL injection program is injected, the API hooking module modifies the entry address of the target process's API and points this entry address to a custom hook function; the target process is the created process; when an application opens a file corresponding to the target process, the security level judgment logic of the hook function is called to determine whether the user's security level allows opening the file corresponding to the target process. This application avoids the problem of high-security file leakage.
Owner:XIAN JINGXING RUICHUANG TECHNOLOGY CO LTD

Virtual block device implementation methods, apparatus, media, and computer program products

This disclosure provides a method, apparatus, medium, and computer program product for implementing a virtual block device. The method includes: creating a virtual block device located between a file system and a physical block device, the virtual block device being used to forward a first block input / output request submitted by the file system to a physical block device bound to the virtual block device, and performing callback management on the first block input / output request; in response to a fault, maintaining the virtual block device's ability to receive the first block input / output request submitted by the file system, and unbinding the virtual block device from the physical block device; and in response to fault recovery, rebinding the virtual block device to the physical block device.
Owner:ZTE CORP

Peripheral data acquisition method and device based on Web environment

The embodiment of the invention provides a peripheral data acquisition method and device based on a Web environment, and the method comprises the steps: taking a Web page input box as an event monitoring carrier, monitoring a code scanning gun or keyboard input event, and capturing input data; judging whether the input data is code scanning gun data or manual input data according to the input speed, the end mark or the data length; if the input data is the code scanning gun data, transmitting the code scanning gun data in the memory cache region to a business logic layer through a callback function; and if the input data is the manual input data, delaying the manual input data for a preset time and then redisplaying the manual input data to the input box.
Owner:四川中仑数科科技有限责任公司

A blockchain smart contract architecture and a design method thereof

The application discloses a kind of blockchain smart contract architecture and its design method, belong to blockchain field, including: the interaction of using generic interface implementation and access layer, consensus algorithm layer and account data, smart contract module is generated independent software function module by integrating standard library, trusted check information packing, the call and callback function of mode are passed through function pointer, the call and interaction of smart contract framework and smart contract dynamic library are realized, the interaction of smart contract library and TA is realized by implementing the core logic of smart contract in the form of TA in trusted execution environment, and using the GP specification of Trustzone;Transaction information handled and generated by smart contract is temporarily stored to the transaction cache area, read by consensus algorithm, consensus and finally form new block and fall disk.The application guarantees the execution safety of the core logic of smart contract, optimizes blockchain software architecture, realizes the trusted check and efficient operation of contract, improves programming efficiency.
Owner:10TH RES INST OF CETC

Safety acquisition software plug-in implementation method and system for power monitoring system

The invention discloses a method and a system for realizing a security acquisition software plug-in with dynamic characteristics for an electric power monitoring system, and aims to solve the problems of difficulty in function extension, insufficient security and poor resource isolation of a traditional electric power monitoring system. According to the system, through a plug-in architecture design, a plug-in function module is realized in a dynamic library form, and dynamic loading, unloading and security isolation operation are supported. The plug-in is started through the sub-process, the main program ensures the legality of the plug-in through SM2 certificate verification, and efficient interaction between the main program and the plug-in is achieved through a callback function mechanism. The plug-in supports dynamic memory allocation, and potential safety hazards caused by predefined field length are avoided. Core rights points of the method comprise plug-in expansion capability, sub-process isolation, SM2 certificate verification, a transparent transmission mechanism and dynamic memory management, and the function expansibility, the safety and the operation stability of the power monitoring system can be remarkably improved.
Owner:NARI INFORMATION & COMM TECH

Method, system and device for automatically analyzing running state of physical layer software

The invention provides a physical layer software running state automatic analysis method, system and device, and the method comprises the steps: implanting statistical dotting information in a key execution node of physical layer software to form a data basis for automatic analysis; in a system initialization stage, a predefined analysis function is registered as a callback function of a user command interface, and the analysis function is configured to be used for collecting and processing statistical dotting information; and during the system operation period, receiving a trigger command through the user command interface to call the analysis function, and outputting the current operation state, the abnormal index and the positioning guidance of the physical layer software based on the processing result of the analysis function on the statistical dotting information. According to the method, the problems of low positioning efficiency, long time consumption and poor accuracy due to dependence on manual analysis of scattered logs in a current baseband physical layer software problem positioning method are solved.
Owner:HUBEI SILANG COMMUNICATION TECHNOLOGY CO LTD

Implementation method and device of js timer

PendingCN122309054AMessage queueCallback
This invention discloses a method for implementing a JS timer, comprising the following steps: Step S1: In a lightweight open-source HarmonyOS system, a JavaScript application creates a JS timer, which specifies a timing period and a callback function. Step S2: The JS timer is added as a task timer in the lightweight open-source HarmonyOS system, and executed by the task management module. Step S3: When the timing period of the task timer expires, an asynchronous message is sent to the JS APP thread, which then executes the asynchronous callback upon receiving the message. This invention automatically stops the JS timer when the device enters a low-power screen-off state, reducing unnecessary system wake-ups and saving device power. If the JS APP thread is busy, the JS timer cannot be scheduled and will not send unprocessable asynchronous messages, avoiding the problem of system crashes due to a full message queue and improving system robustness.
Owner:ASR MICROELECTRONICS CO LTD

A resource leakage monitoring method and terminal

The application discloses a resource leakage monitoring method and a terminal, which records detailed information of operation instructions, and stores the detailed information into a buffer area through format conversion, so as to ensure simple and universal format, optimize storage space, and reduce system resource overhead; the frequency of data writing into a disk is controlled according to a time threshold value or a capacity threshold value, and the data is written into the disk through executing a callback function, so as to realize decoupling between modules, reduce the burden of a main thread, and ensure the integrity and recoverability of the data; disk data is periodically read in an asynchronous loading mode, and pairing judgment is performed according to operation types; if there exist unpaired 'application' and'release' operation types, it is determined that there is a potential resource leakage, so as to identify the resource leakage type and the cause, count resource leakage objects according to type names and reference chain fields, mine the reference relationship between the objects with problems, and improve the accuracy and reliability of resource leakage detection.
Owner:FUJIAN TQ DIGITAL

A command line configuration storage method and a corresponding configuration reading method

The application discloses a configuration storage method of a command line and a corresponding configuration reading method, and relates to the technical field of command lines. When configuration storage is performed, the method does not directly store an entire command string, but first analyzes a target command line format corresponding to a target software module to which the command string belongs, so that data of variable parameters in the command string and callback function identification are stored as configuration data without storing data of fixed parameters. When subsequent configuration reading is performed, data of variable parameters of a command string to be read is transmitted into a callback function corresponding to callback function identification of the command string to be read, so that an execution result can be obtained. Therefore, the method can reduce the occupation of storage space on the basis of ensuring correct configuration reading.
Owner:WUXI TONGXIN HENGTONG TECH

Method for predicting beam expansion curve in compressible turbulence based on LSTM (Long Short Term Memory) model

The invention relates to the field of compressible turbulence, in particular to a method for predicting a beam expansion curve in compressible turbulence based on an LSTM (Long Short Term Memory) model, which comprises the following steps of: extracting multi-dimensional features of an input beam expansion front section curve, and converting the multi-dimensional features into an LSTM model adaptive format; a depth LSTM model is constructed; customizing a callback function based on a cosine annealing principle, and periodically adjusting a learning rate according to the callback function; integrating early stop, optimal model storage and learning rate scheduling callback strategies, dynamically adjusting the learning rate of the LSTM model, and optimizing the LSTM model; and the LSTM model sequentially executes a main training whole process, restores a real scale through reverse normalization, and outputs a prediction result of the beam expansion curve in the compressible turbulence. According to the method, the LSTM neural network model can be stably established, the model stability is good, the prediction result of the beam expansion curve in compressible turbulence is quantified, and the prediction result is accurate.
Owner:SANMING UNIV

Smooer unified authentication access method

The invention discloses a smoother unified authentication access method, and belongs to the technical field of information security. The method comprises the following steps that: an entry control module executes Token existence judgment and address source judgment, and obtains a unified authentication address through a fetch method; the front-end system dynamically creates a hidden iframe loading unified authentication address, and establishes a message monitor; the lightweight callback processing module detects a running environment, extracts code information, and sends the code information to a parent window through a postMessage method; the entry control module receives code information, verifies a source, stores the code information to a temporary variable, and triggers a custom event; and the routing interception authority control module obtains code information, sends an authorized login request to a rear end, stores Token after completing user identity verification, and enters a system. According to the method, authentication is completed in the current page through an iframe and post Message communication mechanism, so that repeated page skipping and repeated resource loading are avoided, non-perception silent authentication is realized, and user experience and system performance are improved.
Owner:云鼎科技股份有限公司

A method and system for logical time management services for federated trials

The application discloses a logical time management service method and system for joint tests, wherein participants set time control strategies and time limited strategies, and initiate logical time advancing requests and request processing callback requests to middleware according to preset time steps, and register callback functions; a time adjuster calculates a timestamp lower limit to provide data guarantee for time advancing; the middleware receives the logical time advancing requests, checks whether the participants have the right of the time control strategies, updates the current timestamp lower limit, receives the processing callback requests, checks FIFO queues and processes queue messages, checks the time limited strategies of the participants, checks TSO queue states and processes queue messages, checks the relationship between the time requested by the participants and the timestamp lower limit, and calls the callback functions allowed by the time advancing to the participants; the application provides an efficient and accurate logical time management mechanism, and solves the problem that the middleware of the existing joint test platform does not support logical time management.
Owner:HARBIN INST OF TECH

Business execution method and device, equipment, medium and program product

The invention provides a service execution method and device, equipment, a medium and a program product, and can relate to the computer network technology, and the method comprises the steps that a service module in a first controller responds to a service execution request for a target service, and arranges the target service into M to-be-executed tasks, selecting a target to-be-executed task needing to wait for an execution result from the M to-be-executed tasks; wherein M is a positive integer; the business module calls a task callback interface to transmit an identifier of the target to-be-executed task to a feedback module in the first controller; the business module inserts the target to-be-executed task into the task queue, so that the second controller obtains the target to-be-executed task from the task queue and executes the target to-be-executed task; and the feedback module obtains the execution result of the target to-be-executed task, and feeds back the execution result of the target to-be-executed task to the business module through the task callback interface, so that on one hand, the resource waste of the controller can be reduced, and on the other hand, the business execution efficiency can be improved.
Owner:TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Intelligent mine management and control platform and method based on whole process optimization large model of mineral processing

The application discloses an intelligent mine management and control platform and method based on a beneficiation whole-process optimization large model, relates to the technical field of industrial control, and comprises the following steps: constructing a unified data warehouse, collecting multi-source heterogeneous data, performing quality verification and space-time alignment, and generating beneficiation data; using the beneficiation data to train a twin prediction sub-model and an optimization decision sub-model respectively, forming a linkage model set; running the linkage model set in the intelligent mine management and control hub node to generate future state trends and candidate set values, and distributing the candidate set values to each business item; each business item forms an optimization instruction according to the candidate set value and a preset optimization target, and issues the optimization instruction to the bottom control layer for execution; and the new beneficiation data generated by the execution is returned to the unified data warehouse. The application constructs a callback closed loop in an application programming interface, prepositions the candidate set value as a twin prediction input, and returns the candidate set value in the same data closed loop, so that the cross-business item execution stability is improved.
Owner:CHANGCHUN GOLD DESIGN INST

Component updating method, device and equipment and computer readable storage medium

The invention discloses a component updating method and device, equipment and a computer readable storage medium, and the method comprises the steps: intercepting a modification operation of a state attribute of a memory address in a target state container instance through a set interceptor of a proxy object, and determining an attribute key value corresponding to the modification operation; searching a component subscription callback function of the target state attribute corresponding to the dependency attribute key value from a subscriber set corresponding to the target state container instance; and obtaining the modified state attribute value by using the component subscription callback function, and updating the target component corresponding to the component subscription callback function according to the modified state attribute value. According to the method, the probability of page jamming is greatly reduced, the problem of global state pollution is avoided, and real component-level sandbox isolation is realized.
Owner:HANGZHOU HONGSHU INFORMATION TECH CO LTD

A transition animation implementation method and device, terminal equipment and storage medium

Embodiments of the present application disclose a transition animation implementation method and device, terminal equipment and medium, the method comprising: triggering a callback function when a preset element change is detected by a listener function; obtaining size data of the preset element through the callback function, and assigning the size data of the preset element to a size attribute in a transition style of an outer element; wherein the preset element is nested in the outer element; and performing a transition animation of the size of the outer element based on the latest data of the size attribute in the transition style. By directly listening to the preset element and triggering the callback function after detecting the change, the size data of the preset element is obtained, which has a greater performance improvement compared to traversing the entire HTML document to find the preset element through the DOM interface after the rendering event occurs, and then obtaining the size data of the preset element. In addition, the transition animation only needs to be bound to the preset element, without the need to bind each rendering event, thereby improving the maintainability and development efficiency of the code.
Owner:BEIJING JINGDONG TUOXIAN TECH CO LTD

Programming method and related device

PendingCN121858088AVisual/graphical programmingCode generationAsynchronous operation
The invention discloses a programming method and a related device, a first operation building block is provided, the first operation building block comprises a first operation slot position and a first callback function slot position, the first operation slot position is used for receiving operation information of first operation, and the first callback function slot position is used for receiving function information of a first callback function. In response to the fact that the first operation building block is added to the to-be-executed event, the first programming code can be generated according to the operation information of the first operation, the function information of the first callback function and the first code template corresponding to the first operation building block, and then the event programming code corresponding to the to-be-executed event is generated according to the first programming code. The first programming code comprises a first operation code corresponding to the first operation and a callback code corresponding to the first callback function. The first operation building block is an asynchronous operation building block, the first callback code is executed after the first operation code is executed, other operations can be executed in parallel with the first operation, program blocking is reduced, and operation execution efficiency is improved.
Owner:TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Timer life cycle management method and device, equipment and storage medium

The invention provides a timer life cycle management method and device, equipment and a storage medium, a system timer object is created through a timer management instance, a timer callback function is registered in an operating system timed task interface, when a cycle corresponding to a timed cycle field is reached, task logic in a task function field is automatically triggered, and the timed task is automatically called. Therefore, precise scheduling and unified management of the timed tasks are realized. By setting the instance identification field and the running state flag field in the timer management information, each timer object can be uniquely identified and tracked, and the problem of repeated creation or state disorder is avoided. Furthermore, a stop signal is received through a monitoring coroutine in a stop stage, so that the safe termination of a timed task and the automatic release of resources are realized, and the reliable recovery of a timer and the stable operation of the system are ensured.
Owner:GUANGZHOU BAOLUN ELECTRONICS CO LTD

Data management method and device, equipment, medium and program product

The invention provides a data management method which can be applied to the technical field of big data. The data management method is executed in a user space file system and comprises the steps that an operation request for a first logic path file is received through a virtual file system, and the operation request is from a user program; the operation request is routed to a kernel driver, a callback function corresponding to the operation request is called, and the callback function is registered by a user program; on the basis of the callback function, a pre-established metadatabase is inquired, metadata corresponding to the first logic path is obtained, and the metadata at least comprises the mapping relation between the logic path and the physical path; and executing an operation corresponding to the operation request based on the metadata. The invention further provides a data management device and equipment, a storage medium and a program product.
Owner:NAT ASTRONOMICAL OBSERVATORIES CHINESE ACAD OF SCI

Method for coding and decoding field with unlimited length based on nanoopb

The invention discloses a method for encoding and decoding a field with unlimited length based on nanoopb, and belongs to the technical field of computers. According to the method, after a nanoopb tool automatically generates a code according to a. Proto file, a coding and decoding process is improved through the following steps: firstly, identifying all fields with unlimited lengths in a message, and replacing the data type of the fields with a self-defined dynamic array type; then replacing an initial value in the initialization macro and a callback function macro; and finally, realizing a unified custom callback function to process coding and decoding operations of all the fields with unlimited lengths. According to the method disclosed by the present invention, by packaging bottom layer Protobuf coding and decoding details, developers can complete serialization / deserialization operation without mastering complex coding rules and callback APIs, so that the learning cost is effectively reduced, the readability and maintainability of codes are significantly improved, and the method is suitable for resource-limited embedded system development.
Owner:FUJIAN BEIFENG COMM TECH CO LTD

Blockchain-based data processing method and apparatus, device, storage medium, and program product

This application discloses a blockchain-based data processing method performed by a computer device. The method includes: determining a token identification in response to a resource reception request; calling a general callback function in a smart contract of a blockchain and determining M virtual resources having the token identification issued by an issuing object in the blockchain; acquiring a resource attribute of the M virtual resources and determining a token attribute corresponding to the token identification based on the resource attribute of the M virtual resources, the issuing object holding a target virtual resource in the M virtual resources, and the M being a positive integer; and determining a resource identification of the target virtual resource transferred to a receiving object based on the token attribute of the token identification, the resource identifications corresponding to different token attributes being different.
Owner:TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Method and device for realizing asynchronization of synchronous network model, and distributed system

PendingCN121907852ATransmissionEngineeringSynchronous network
The invention discloses a synchronous network model asynchronization implementation method and device and a distributed system, and the method comprises the steps: initiating a service request through a sending thread pool, and recording task context information associated with the request after the request is sent; receiving a request result returned by the three-party server by using a receiving thread pool, performing reverse search in the task context information based on at least part of information carried in the request result, and matching a corresponding to-be-processed task; after successful matching, triggering an asynchronous callback function pre-registered by the user to complete service processing logic; based on a preset timing index structure, the overtime task is cleared, and the timing index structure at least comprises multiple pieces of task information sorted according to the task deadline. According to the invention, on the premise of not depending on underlying network control, asynchronous packaging of the synchronous interface is realized, and the throughput and response timeliness of the system are remarkably improved.
Owner:CSC FINANCIAL CO LTD

Driver PROFIdrive communication double mapping table access processing method

The invention relates to the technical field of industrial automation control, in particular to a driver PROFIdrive communication double mapping table access processing method. The technical problems that in practical application in the prior art, code compatibility is low, coupling is too high, a standardized access interface is lacked, and a function access mode is not flexible are solved. According to the technical scheme, the driver PROFIdrive communication double-mapping-table access processing method comprises the steps of establishing a special database, establishing double mapping tables, calling a unified read-write access interface and performing mapping query and access. According to the method, a standardized intermediate access layer is constructed, an intermediate layer callback function is defined, complete decoupling with a driver is specifically achieved, meanwhile, a uniform interface is provided for interaction between PROFIdrive and the driver, and the problems that code compatibility is low, coupling is too high, a standardized access interface is lacked and a function access mode is not flexible in communication are effectively solved.
Owner:东莞市智赢智能装备有限公司