Data acquisition method and device based on MBB equipment, storage medium and electronic equipment

The power management integrated circuit of MBB equipment generates local bit rate and time interval, and real-time calibration of the clock frequency of the host and MBB equipment, solving the low data transmission efficiency and memory usage problems caused by small memory of MBB equipment, and achieving efficient data acquisition and transmission.

CN119183161AActive Publication Date: 2024-12-24QUECTEL WIRELESS SOLUTIONS CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411335896.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2024-12-24
Estimated Expiration
2044-09-24

AI Technical Summary

Technical Problem

When MBB devices use PCIe interface for data transmission, due to small memory, data transmission efficiency is low, and the memory usage problem caused by data accumulation is difficult to solve.

Method used

The clock frequency is output through the power management integrated circuit of the MBB device, and the time interval obtained by the local bit rate and clock frequency division is generated, PCIe TLP MSI messages are generated, and the message is sent to the host using this time interval as a cycle, and the host and MBB are calibrated in real time. The clock frequency of the device matches the local bit rate with the remote bit rate, thereby performing data acquisition and transmission.

Benefits of technology

It improves data transmission efficiency, reduces memory usage beyond expectations caused by data accumulation, and ensures the effectiveness and stability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119183161A_ABST
    Figure CN119183161A_ABST
Patent Text Reader

Abstract

The invention relates to a data acquisition method based on MBB equipment, a data acquisition device based on the MBB equipment, a storage medium and electronic equipment. The data acquisition method based on the MBB equipment comprises the following steps: generating a local bit rate of the MBB equipment and a first time interval T1 obtained based on clock frequency division of the MBB equipment, wherein the clock frequency is output by a power management integrated circuit (PMIC) of the MBB equipment; generating a PCIe TLP MSI message based on a local bit rate time sequence of the MBB equipment, and sending the PCIe TLP MSI message to a host by taking a first time interval T1 as a period, so that the host calibrates clock frequencies of the host and the MBB equipment in real time based on the first time interval T1 carried in the PCIe TLP MSI message and a second time interval T2 for receiving the PCIe TLP MSI message, enabling the local bit rate of the MBB equipment to be matched with the remote bit rate of the host in real time; based on real-time matching of the local bit rate of the MBB equipment and the far-end bit rate of the host, peripheral data acquisition and transmission are performed through the MBB equipment, so that the data transmission efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of network communication technology, and in particular to a data collection method based on an MBB device, a data collection device based on an MBB device, a storage medium, and an electronic device. Background Art

[0002] PCI-Express (Peripheral Component Interconnect Express) is a high-speed serial computer expansion bus standard. PCIE is a high-speed serial point-to-point dual-channel high-bandwidth transmission. The connected devices are allocated exclusive channel bandwidth and do not share bus bandwidth. It mainly supports active power management, error reporting, end-to-end reliable transmission, hot plugging, and quality of service (QOS) functions. Mobile broadband (MBB) devices provide a mobile computer that includes a wireless data connection to mobile phone services. MBB devices support one or more mobile network radio technologies. When MBB devices use the PCIE interface for data transmission, data transmission efficiency needs to be considered in view of the small memory. Summary of the invention

[0003] In view of this, the embodiments of the present disclosure are intended to provide a data collection method based on an MBB device, a data collection device based on an MBB device, a storage medium, and an electronic device.

[0004] The technical solution of the present disclosure is achieved as follows:

[0005] In a first aspect, the present disclosure provides a data collection method based on an MBB device, wherein a host is connected to the MBB device through a PCIE interface, and the MBB device is connected to a peripheral device.

[0006] The data collection method based on an MBB device provided in an embodiment of the present disclosure includes:

[0007] Generate, based on a clock frequency output by a power management integrated circuit PMIC of the MBB device, a local bit rate of the MBB device and a first time interval T1 obtained by dividing the clock of the MBB device;

[0008] Generate a PCIe TLP MSI message based on the local bit rate timing of the MBB device, and send the PCIe TLP MSI message to the host at the first time interval T1 as a period, so that the host can calibrate the clock frequency of the host and the MBB device in real time based on the first time interval T1 carried in the PCIe TLP MSI message and the second time interval T2 for receiving the PCIe TLP MSI message, so that the local bit rate of the MBB device matches the remote bit rate of the host in real time; wherein the remote bit rate of the host is determined by the second time interval T2 for the host to receive the PCIe TLP MSI message;

[0009] Based on real-time matching of the local bit rate of the MBB device with the remote bit rate of the host, data collection and transmission of the peripheral device are performed through the MBB device.

[0010] In some embodiments, the real-time matching of the local bit rate of the MBB device with the remote bit rate of the host and the data collection and transmission of the peripheral device through the MBB device include:

[0011] receiving a transaction feature capture instruction sent by the host; wherein the transaction feature capture instruction includes data feature information for starting data transmission;

[0012] Based on the data feature information in the transaction feature capture instruction, determining the collected data whose data collection process matches the data feature information;

[0013] Based on the collection time corresponding to the collected data matching the data characteristic information, data transmission is started at a target baud rate determined based on a local bit rate of the MBB device.

[0014] In some embodiments, the data feature information includes at least one of the following:

[0015] The interval period between N consecutive rising edges is the same;

[0016] The interval period between N consecutive falling edges is the same.

[0017] In some embodiments, the target baud rate determined based on the local bit rate of the MBB device includes:

[0018] Target baud rate P; wherein P=N*B*S; wherein B is the local bit rate of the MBB device; B=1 / f; f is the first time interval T1 obtained by dividing the clock of the MBB device; S is the data symbol bit contained in a PCIE TLP message, wherein S=1024; and N is the number of PCIE TLP data messages transmitted in the first time interval T1.

[0019] In a second aspect, the present disclosure provides a data collection method based on an MBB device, where a host is connected to the MBB device through a PCIE interface, and the MBB device is connected to a peripheral device, and the method includes:

[0020] receiving a PCIe TLP MSI message sent by the MBB device at the first time interval T1 as a period; wherein the first time interval T1 is obtained by dividing the clock of the MBB device;

[0021] calibrating the clock frequencies of the host and the MBB device in real time based on the second time interval T2 of receiving the PCIe TLP MSI message and the first time interval T1, so that the remote bit rate of the host matches the local bit rate of the MBB device in real time; wherein the local bit rate of the MBB device is generated based on the clock frequency output by the power management integrated circuit PMIC of the MBB device;

[0022] Based on real-time matching of the local bit rate of the MBB device with the remote bit rate of the host, data collection and transmission of the peripheral device are performed through the MBB device.

[0023] In some embodiments, the real-time calibration of the clock frequencies of the host and the MBB device based on the second time interval T2 of receiving the PCIe TLP MSI message and the first time interval T1, so that the remote bit rate of the host matches the local bit rate of the MBB device in real time, includes:

[0024] determining a time difference between the second time interval T2 and the first time interval T1;

[0025] Based on the time difference between the second time interval T2 and the first time interval T1, the clock frequency of the host is adjusted so that the remote bit rate of the host matches the local bit rate of the MBB device in real time.

[0026] In some embodiments, adjusting the clock frequency of the host based on the time difference between the second time interval T2 and the first time interval T1 so that the remote bit rate of the host matches the local bit rate of the MBB device in real time includes:

[0027] Determine the clock deviation based on the time difference between the second time interval T2 and the first time interval T1, in combination with the clock rate and transmission delay parameters of the PCIE interface;

[0028] According to the clock deviation, the clock frequency of the host is adjusted so that the clock frequencies of the host and the MBB device are synchronized, so that the local bit rate of the MBB device matches the remote bit rate of the host in real time.

[0029] In some embodiments, based on real-time matching of a local bit rate of the MBB device with a remote bit rate of the host, data collection and transmission of a peripheral device are performed through the MBB device, including:

[0030] Generate transaction feature capture instructions based on data feature information of collected data required by the application;

[0031] sending the transaction feature capture instruction to the MBB device, so that the MBB device monitors the collected data obtained in the data collection process in real time based on the data feature information included in the transaction feature capture instruction, and determines a collection time corresponding to the collected data matching the data feature information;

[0032] Based on the collection time corresponding to the collection data matching the data characteristic information, start receiving the collection data for data transmission by the MBB device at the target baud rate; wherein the data characteristic information includes at least one of the following:

[0033] The interval period between N consecutive rising edges is the same;

[0034] The interval period between N consecutive falling edges is the same.

[0035] In some embodiments, the target baud rate determined based on the local bit rate of the MBB device includes:

[0036] Target baud rate P; wherein P=N*B*S; wherein B is the local bit rate of the MBB device; B=1 / f; f is the first time interval T1 obtained by dividing the clock of the MBB device; S is the data symbol bit contained in a PCIE TLP message, wherein S=1024; and N is the number of PCIE TLP data messages transmitted in the first time interval T1.

[0037] In a third aspect, the present disclosure provides a data collection device based on an MBB device, where a host is connected to the MBB device through a PCIE interface, and the MBB device is connected to a peripheral device, and the device includes:

[0038] an information generating module, configured to generate, based on a clock frequency output by a power management integrated circuit PMIC of the MBB device, a local bit rate of the MBB device and a first time interval T1 obtained by dividing the clock of the MBB device;

[0039] a message sending module, configured to generate a PCIe TLP MSI message based on the local bit rate timing of the MBB device, and send the PCIe TLP MSI message to the host at a first time interval T1 as a period, so that the host can calibrate the clock frequencies of the host and the MBB device in real time based on the first time interval T1 carried in the PCIe TLP MSI message and a second time interval T2 for receiving the PCIe TLP MSI message, so that the local bit rate of the MBB device matches the remote bit rate of the host in real time; wherein the remote bit rate of the host is determined by the second time interval T2 for the host to receive the PCIe TLP MSI message;

[0040] The data transmission module is used to collect and transmit data of the peripheral device through the MBB device based on real-time matching of the local bit rate of the MBB device and the remote bit rate of the host.

[0041] In a fourth aspect, the present disclosure provides a data collection device based on an MBB device, where a host is connected to the MBB device through a PCIE interface, and the MBB device is connected to a peripheral device, and the device includes:

[0042] a message receiving module, configured to receive a PCIeTLP MSI message sent by the MBB device at the first time interval T1 as a period; wherein the first time interval T1 is obtained by dividing the clock of the MBB device;

[0043] a bit rate matching module, configured to calibrate the clock frequencies of the host and the MBB device in real time based on the second time interval T2 of receiving the PCIe TLP MSI message and the first time interval T1, so that the remote bit rate of the host matches the local bit rate of the MBB device in real time; wherein the local bit rate of the MBB device is generated based on the clock frequency output by a power management integrated circuit PMIC of the MBB device;

[0044] The data transmission module is used to collect and transmit data of the peripheral device through the MBB device based on real-time matching of the local bit rate of the MBB device and the remote bit rate of the host.

[0045] In a third aspect, the present disclosure provides a computer-readable storage medium, on which a data collection program based on an MBB device is stored. When the data collection program based on the MBB device is executed by a processor, the data collection method based on the MBB device described in the first aspect is implemented.

[0046] In a fourth aspect, the present disclosure provides an electronic device, including a memory, a processor, and a data collection program based on an MBB device stored in the memory and executable on the processor, wherein when the processor executes the data collection program based on the MBB device, the data collection method based on the MBB device described in the first aspect is implemented.

[0047] According to an MBB device-based data collection method according to an embodiment of the present disclosure, a host is connected to an MBB device through a PCIE interface, and the MBB device is connected to a peripheral device. The method includes: generating a local bit rate of the MBB device and a first time interval T1 obtained based on clock division of the MBB device based on a clock frequency output by a power management integrated circuit PMIC of the MBB device; generating a PCIe TLP MSI message based on the local bit rate timing of the MBB device, and sending the PCIe TLP MSI message to the host with the first time interval T1 as a period, so that the host calibrates the clock frequencies of the host and the MBB device in real time based on the first time interval T1 carried in the PCIe TLP MSI message and a second time interval T2 of receiving the PCIe TLP MSI message, so that the local bit rate of the MBB device matches the remote bit rate of the host in real time; wherein the remote bit rate of the host is determined by the second time interval T2 of receiving the PCIe TLP MSI message by the host; and collecting and transmitting data of the peripheral device through the MBB device based on the real-time matching of the local bit rate of the MBB device and the remote bit rate of the host. In the present application, when the host collects data from the peripheral device through the MBB device, the host and the MBB device transmit data through the PCIE interface. In view of the small memory of the MBB device, the bit rate is matched in real time based on the local bit rate of the MBB device and the remote bit rate of the host to perform data transmission, so as to improve the data transmission efficiency and reduce the unexpected memory usage caused by data accumulation.

[0048] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 The data collection method based on MBB equipment is shown in accordance with an exemplary embodiment. Figure 1 ;

[0050] Figure 2is a schematic diagram of a connection structure between a host and an MBB device according to an exemplary embodiment;

[0051] Figure 3 The data collection method based on MBB equipment is shown in accordance with an exemplary embodiment. Figure 2 ;

[0052] Figure 4 The structure of a data collection device based on an MBB device according to an exemplary embodiment is shown Figure 1 ;

[0053] Figure 5 The structure of a data collection device based on an MBB device according to an exemplary embodiment is shown Figure 2 . DETAILED DESCRIPTION

[0054] Embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.

[0055] PCI-Express (Peripheral Component Interconnect Express) is a high-speed serial computer expansion bus standard. PCIE is a high-speed serial point-to-point dual-channel high-bandwidth transmission. The connected devices are allocated exclusive channel bandwidth and do not share bus bandwidth. It mainly supports active power management, error reporting, end-to-end reliable transmission, hot plugging, and quality of service (QOS) functions. Mobile broadband (MBB) devices provide a mobile computer that includes a wireless data connection to mobile phone services. MBB devices support one or more mobile network radio technologies. When MBB devices use the PCIE interface for data transmission, data transmission efficiency needs to be considered in view of the small memory.

[0056] In view of the above situation, the present disclosure provides a data collection method based on an MBB device. Figure 1 The data collection method based on MBB equipment is shown in accordance with an exemplary embodiment. Figure 1 .like Figure 1 As shown, the data collection method based on the MBB device includes:

[0057] Step 10: Generate, based on a clock frequency output by a power management integrated circuit PMIC of the MBB device, a local bit rate of the MBB device and a first time interval T1 obtained by dividing the clock of the MBB device;

[0058] Step 11: Generate a PCIe TLP MSI message based on the local bit rate timing of the MBB device, and send the PCIe TLP MSI message to the host at the first time interval T1 as a period, so that the host can calibrate the clock frequency of the host and the MBB device in real time based on the first time interval T1 carried in the PCIe TLP MSI message and the second time interval T2 for receiving the PCIe TLP MSI message, so that the local bit rate of the MBB device matches the remote bit rate of the host in real time; wherein the remote bit rate of the host is determined by the second time interval T2 for the host to receive the PCIe TLP MSI message;

[0059] Step 12: Based on real-time matching of the local bit rate of the MBB device and the remote bit rate of the host, data of the peripheral device is collected and transmitted through the MBB device.

[0060] In this exemplary embodiment, the first time interval T1 obtained based on the clock frequency division of the MBB (Mobile Broadband) device can be a clock signal with a frequency of F_main obtained from the main clock, and then a clock signal with a frequency of F_div obtained by frequency division. Then, the frequency division ratio (N) is F_main divided by F_div. That is, N = F_main / F_div. The first time interval T1 (corresponding to the clock period of F_div) is 1 / F_div.

[0061] In this exemplary embodiment, Figure 2 FIG. 1 is a schematic diagram showing a connection structure between a host and an MBB device according to an exemplary embodiment. Figure 2 As shown, the host and the MBB device are connected through a PCIE interface, and the MBB device is connected to the sampling peripheral.

[0062] Among them, Figure 2 As shown in Figure 1, PCIe (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) uses a data transmission mode based on messages (TLP), and all bus transactions are implemented through messages. Figure 2As shown, MSI (Message Signaled Interrupts) is an interrupt mechanism in PCIe, which uses a memory write request TLP to submit an interrupt request to the processor. When the MSI message is sent using the PCIe interface, the MSI message can be encapsulated as a TLP and transmitted to the host through the PCIe link. In this exemplary embodiment, since there is a bit rate inconsistency between the MBB device and the host, this will affect the data transmission between the MBB device and the host. In order to improve the data transmission efficiency and reduce the accumulation of data in the MBB device memory after data collection, the local bit rate of the MBB device is matched with the remote bit rate of the host in real time in this application, so as to improve the data transmission efficiency.

[0063] The real-time calibration of the clock frequencies of the host and the MBB device based on the first time interval T1 carried in the PCIe TLP MSI message and the second time interval T2 for receiving the PCIe TLP MSI message, so that the local bit rate of the MBB device matches the remote bit rate of the host in real time, includes:

[0064] Based on the first time interval T1 carried in the PCIe TLP MSI message and the second time interval T2 for receiving the PCIe TLPMSI message, combined with parameters such as the clock rate and transmission delay of the PCIE interface, a clock deviation is calculated;

[0065] According to the calculated clock deviation, the host adjusts its clock frequency to reduce or eliminate the deviation, so that the clock frequencies of the host and the MBB device are synchronized, and the local bit rate of the MBB device matches the remote bit rate of the host in real time.

[0066] In this exemplary embodiment, there is a time difference between a first time interval T1 at which the MBB device sends the PCIe TLP MSI message to the host and a second time interval T2 at which the host receives the PCIe TLP MSI message. The clock deviation is calculated in combination with parameters such as the clock rate and transmission delay of the PCIE interface. Then, according to the calculated clock deviation, the host adjusts its clock frequency to reduce or eliminate the deviation, so that the clock frequency of the host is synchronized with that of the MBB device, thereby matching the local bit rate of the MBB device with the remote bit rate of the host in real time. Then, data transmission is performed when the local bit rate of the MBB device matches the remote bit rate of the host in real time, thereby effectively improving data transmission efficiency.

[0067] The host is connected to the MBB device through the PCIE interface, and the MBB device can be connected to the peripheral device through the USB interface. The PCIe (Audio) Interface Driver component runs in the host, which is used to manage the PCIe audio interface device and ensure that the audio signal is correctly and efficiently transmitted between the host and the PCIe audio device.

[0068] In this exemplary embodiment, Host PCIe MHIDriver is a PCIe interface driver for connecting a modem and a host, wherein MHI (Modem Host Interface) is a communication interface between the modem and the host. This driver is mainly used for PCIe-based devices, so that the modem can be connected to the host through the PCIe interface.

[0069] Host PCIe RC Driver is the PCIe root complex driver, which is mainly used to manage and control the root complex (RC) device on the PCIe bus. It obtains the information of the PCIe root complex through the device tree and controls and manages the PCIe device by registering the driver to the kernel.

[0070] In the present application, when the host collects data from the peripheral device through the MBB device, the host and the MBB device transmit data through the PCIE interface. In view of the small memory of the MBB device, the bit rate is matched in real time based on the local bit rate of the MBB device and the remote bit rate of the host to perform data transmission, so as to improve the data transmission efficiency and reduce the unexpected memory usage caused by data accumulation.

[0071] In some embodiments, the real-time matching of the local bit rate of the MBB device with the remote bit rate of the host and the data collection and transmission of the peripheral device through the MBB device include:

[0072] receiving a transaction feature capture instruction sent by the host; wherein the transaction feature capture instruction includes data feature information for starting data transmission;

[0073] Based on the data feature information in the transaction feature capture instruction, determining the collected data whose data collection process matches the data feature information;

[0074] Based on the collection time corresponding to the collected data matching the data characteristic information, data transmission is started at a target baud rate determined based on a local bit rate of the MBB device.

[0075] In this exemplary embodiment, the upper layer app of the host sends a capture transaction. The Host PCIe (Audio) Interface of the host sends a transaction feature capture instruction to the MBB device of the PCIe interface and writes it into the MBB device transaction capture observation area of ​​the PCIe interface. The MBB device and the sampling peripheral of the PCIe interface perform real-time sampling according to the negotiated bit rate and cyclically cover the data buffer Data buff of the MBB device connected to the PCIe interface.

[0076] At the same time, the MBB device calls the data collection monitoring thread based on the transaction feature capture instruction to monitor the data collected by the MBB device, and compares whether the data features of the collected data are the same as the data feature information in the transaction feature capture instruction. If the data features of the collected data are the same as the data feature information in the transaction feature capture instruction, the collection time of the collected data with the same data features as the data feature information in the transaction feature capture instruction is determined as the data node for starting data transmission, and submitted to the upper-layer APP. Figure 2 The transaction capture is completed. Wait for the upper-layer app to send the next transaction, such as: based on the capture point (the data node that starts data transmission), obtain the capture point data context in the USB / PCM interface Data buff of the MBB device of the PCIe interface. Based on the capture point, the Host PCIe MHIDriver starts real-time sampling and synchronous transmission of the MBB device data of the PCIe interface.

[0077] For example, based on the data node that starts data transmission, the MBB device starts to transmit the collected data to the host. The data feature information in the transaction feature capture instruction is used to characterize the data validity of the collected data. For example, the data feature information includes at least one of the following:

[0078] The interval period between N consecutive rising edges is the same;

[0079] The interval period between N consecutive falling edges is the same. That is, stable data is collected, indicating that the system has been working stably and effectively, and the collected data is valid data. At this time, the MBB device can transmit the collected valid data to the host. This is conducive to improving the effectiveness of data collection and transmission.

[0080] In some embodiments, the target baud rate determined based on the local bit rate of the MBB device includes:

[0081] Target baud rate P; wherein P=N*B*S; wherein B is the local bit rate of the MBB device; B=1 / f; f is the first time interval T1 obtained by dividing the clock of the MBB device; S is the data symbol bit contained in a PCIE TLP message, wherein S=1024; and N is the number of PCIE TLP data messages transmitted in the first time interval T1.

[0082] In this exemplary embodiment, after determining the data node for starting data transmission, data transmission can be performed based on the target baud rate between the host and the MBB device. The target baud rate can be determined based on the local bit rate of the MBB device. In this way, a reasonable data transmission rate can be configured, which is suitable for data collection scenarios and helps to reduce the occurrence of mismatches between data collection and transmission.

[0083] Assume that the CLOCK output by the PMIC of the MBB device is F=1KHZ, and the unit time is 1S; T=1 / F=1mS (i.e., one PCIe TLP MSI message is sent in 1mS), and 1000 [PCIe TLP MSI messages] can be transmitted per unit time, that is, the actual local bit rate is: 1Kbps.

[0084] Assume that the local bit rate and the remote bit rate are negotiated to be B = 1 Kbps. Within one bit rate transmission time (T = 1 mS), the MBB device transmits N = 10 PCIe TLP data packets to the host PCIe Driver. One [PCIe TLP data packet] contains a data symbol S = 1024 bits.

[0085] That is, the target baud rate: B*N*S=1Kbps*10*1024=10Mbps.

[0086] In this exemplary embodiment, when data is transmitted, the sampled data is directly synchronized to the Host PCIe (Audio) Interface Ring buff ring buffer, and the MBB device transmits the data collected based on the negotiated target baud rate to the Host PCIeMHIDriver through a PCIe TLP data message.

[0087] The present disclosure provides a data collection method based on an MBB device, where a host is connected to the MBB device through a PCIE interface, and the MBB device is connected to a peripheral device. Figure 3 The data collection method based on MBB equipment is shown in accordance with an exemplary embodiment. Figure 2 .like Figure 3 As shown, the method includes:

[0088] Step 30: Receive a PCIe TLP MSI message sent by the MBB device at the first time interval T1 as a period; wherein the first time interval T1 is obtained by dividing the clock of the MBB device;

[0089] Step 31: calibrate the clock frequencies of the host and the MBB device in real time based on the second time interval T2 of receiving the PCIe TLP MSI message and the first time interval T1, so that the remote bit rate of the host matches the local bit rate of the MBB device in real time; wherein the local bit rate of the MBB device is generated based on the clock frequency output by the power management integrated circuit PMIC of the MBB device;

[0090] Step 32: Based on real-time matching of the local bit rate of the MBB device and the remote bit rate of the host, data of the peripheral device is collected and transmitted through the MBB device.

[0091] In this exemplary embodiment, the first time interval T1 obtained based on the clock frequency division of the MBB (Mobile Broadband) device can be a clock signal with a frequency of F_main obtained from the main clock, and then a clock signal with a frequency of F_div obtained by frequency division. Then, the frequency division ratio (N) is F_main divided by F_div. That is, N = F_main / F_div. The first time interval T1 (corresponding to the clock period of F_div) is 1 / F_div.

[0092] In this exemplary embodiment, PCIe (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) uses a data transfer mode based on messages (TLP), and all bus transactions are implemented through messages. MSI (Message Signaled Interrupts) is an interrupt mechanism in PCIe, which uses a memory write request TLP to submit an interrupt request to the processor. Among them, when using the PCIe interface to send an MSI message, the MSI message can be encapsulated as a TLP and transmitted to the host through the PCIe link.

[0093] In this exemplary embodiment, since there is a bit rate inconsistency between the MBB device and the host, this will affect the data transmission between the MBB device and the host. In order to improve the data transmission efficiency and reduce the accumulation of data in the MBB device memory after data collection, the local bit rate of the MBB device is matched with the remote bit rate of the host in real time in the present application, so as to improve the data transmission efficiency.

[0094] In this exemplary embodiment, Figure 2 As shown in the figure, the host is connected to the MBB device through the PCIE interface, and the MBB device can be connected to the peripheral device through the USB interface. The PCIe (Audio) Interface Driver component runs in the host, and the PCIe (Audio) Interface Driver component is used to manage the PCIe audio interface device to ensure that the audio signal is correctly and efficiently transmitted between the host and the PCIe audio device.

[0095] In this exemplary embodiment, Host PCIe MHIDriver is a PCIe interface driver for connecting a modem and a host, wherein MHI (Modem Host Interface) is a communication interface between the modem and the host. This driver is mainly used for PCIe-based devices, so that the modem can be connected to the host through the PCIe interface.

[0096] In the present application, when the host collects data from the peripheral device through the MBB device, the host and the MBB device transmit data through the PCIE interface. In view of the small memory of the MBB device, the bit rate is matched in real time based on the local bit rate of the MBB device and the remote bit rate of the host to perform data transmission, so as to improve the data transmission efficiency and reduce the unexpected memory usage caused by data accumulation.

[0097] In some embodiments, the real-time calibration of the clock frequencies of the host and the MBB device based on the second time interval T2 of receiving the PCIe TLP MSI message and the first time interval T1, so that the remote bit rate of the host matches the local bit rate of the MBB device in real time, includes:

[0098] determining a time difference between the second time interval T2 and the first time interval T1;

[0099] Based on the time difference between the second time interval T2 and the first time interval T1, the clock frequency of the host is adjusted so that the remote bit rate of the host matches the local bit rate of the MBB device in real time.

[0100] In this exemplary embodiment, determining the time difference between the second time interval T2 and the first time interval T1 includes:

[0101] Based on the first time interval T1 carried in the PCIe TLP MSI message and the second time interval T2 for receiving the PCIe TLP MSI message, combined with parameters such as the clock rate and transmission delay of the PCIE interface, the clock deviation is calculated.

[0102] In some embodiments, adjusting the clock frequency of the host based on the time difference between the second time interval T2 and the first time interval T1 so that the remote bit rate of the host matches the local bit rate of the MBB device in real time includes:

[0103] Determine the clock deviation based on the time difference between the second time interval T2 and the first time interval T1, in combination with the clock rate and transmission delay parameters of the PCIE interface;

[0104] According to the clock deviation, the clock frequency of the host is adjusted so that the clock frequencies of the host and the MBB device are synchronized, so that the local bit rate of the MBB device matches the remote bit rate of the host in real time.

[0105] In some embodiments, based on real-time matching of a local bit rate of the MBB device with a remote bit rate of the host, data collection and transmission of a peripheral device are performed through the MBB device, including:

[0106] Generate transaction feature capture instructions based on data feature information of collected data required by the application;

[0107] sending the transaction feature capture instruction to the MBB device, so that the MBB device monitors the collected data obtained in the data collection process in real time based on the data feature information included in the transaction feature capture instruction, and determines a collection time corresponding to the collected data matching the data feature information;

[0108] Based on the collection time corresponding to the collection data matching the data characteristic information, start receiving the collection data for data transmission by the MBB device at the target baud rate; wherein the data characteristic information includes at least one of the following:

[0109] The interval period between N consecutive rising edges is the same;

[0110] The interval period between N consecutive falling edges is the same.

[0111] In this exemplary embodiment, the host may send a transaction feature capture instruction to the MBB device connected to the PCIE interface through the PCIE interface. The MBB device calls the data collection monitoring thread based on the transaction feature capture instruction to monitor the data collected by the MBB device, and compares whether the data features of the collected data are the same as the data feature information in the transaction feature capture instruction. When the data features of the collected data are the same as the data feature information in the transaction feature capture instruction, the collection time of the collected data whose data features are the same as the data feature information in the transaction feature capture instruction is determined as the data node for starting data transmission. Then, based on the data node for starting data transmission, the MBB device starts to transmit the collected data to the host. The data feature information in the transaction feature capture instruction is used to characterize the data validity of the collected data. For example, the data feature information includes at least one of the following:

[0112] The interval period between N consecutive rising edges is the same;

[0113] The interval period between N consecutive falling edges is the same. That is, stable data is collected, indicating that the system has been working stably and effectively, and the collected data is valid data. At this time, the MBB device can transmit the collected valid data to the host. This is conducive to improving the effectiveness of data collection and transmission.

[0114] In some embodiments, the target baud rate includes:

[0115] Target baud rate P; wherein P=N*B*S; wherein B is the local bit rate of the MBB device; B=1 / f; f is the first time interval T1 obtained by dividing the clock of the MBB device; S is the data symbol bit contained in a PCIE TLP message, wherein S=1024; and N is the number of PCIE TLP data messages transmitted in the first time interval T1.

[0116] In this exemplary embodiment, after determining the data node for starting data transmission, data transmission can be performed based on the target baud rate between the host and the MBB device. The target baud rate can be determined based on the local bit rate of the MBB device. In this way, a reasonable data transmission rate can be configured, which is suitable for data collection scenarios and helps to reduce the occurrence of mismatches between data collection and transmission.

[0117] The present disclosure provides a data collection device based on an MBB device, wherein a host is connected to the MBB device via a PCIE interface, and the MBB device is connected to a peripheral device. Figure 4 The structure of a data collection device based on an MBB device according to an exemplary embodiment is shown Figure 1 .like Figure 4 As shown, the device comprises:

[0118] An information generating module 40 is configured to generate, based on a clock frequency output by a power management integrated circuit PMIC of the MBB device, a local bit rate of the MBB device and a first time interval T1 obtained by dividing the clock of the MBB device;

[0119] A message sending module 41 is configured to generate a PCIe TLP MSI message based on the local bit rate timing of the MBB device, and send the PCIe TLP MSI message to the host at a first time interval T1 as a period, so that the host can calibrate the clock frequency of the host and the MBB device in real time based on the first time interval T1 carried in the PCIe TLP MSI message and a second time interval T2 for receiving the PCIe TLP MSI message, so that the local bit rate of the MBB device matches the remote bit rate of the host in real time; wherein the remote bit rate of the host is determined by the second time interval T2 for the host to receive the PCIe TLP MSI message;

[0120] The data transmission module 42 is configured to perform data collection and transmission of peripheral devices through the MBB device based on real-time matching of the local bit rate of the MBB device with the remote bit rate of the host.

[0121] In this exemplary embodiment, the first time interval T1 obtained based on the clock frequency division of the MBB (Mobile Broadband) device can be a clock signal with a frequency of F_main obtained from the main clock, and then a clock signal with a frequency of F_div obtained by frequency division. Then, the frequency division ratio (N) is F_main divided by F_div. That is, N = F_main / F_div. The first time interval T1 (corresponding to the clock period of F_div) is 1 / F_div.

[0122] In this exemplary embodiment, Figure 2 As shown, the host and the MBB device are connected through a PCIE interface, and the MBB device is connected to the sampling peripheral.

[0123] Among them, Figure 2 As shown in Figure 1, PCIe (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) uses a data transmission mode based on messages (TLP), and all bus transactions are implemented through messages. Figure 2As shown, MSI (Message Signaled Interrupts) is an interrupt mechanism in PCIe, which uses a memory write request TLP to submit an interrupt request to the processor. When the MSI message is sent using the PCIe interface, the MSI message can be encapsulated as a TLP and transmitted to the host through the PCIe link. In this exemplary embodiment, since there is a bit rate inconsistency between the MBB device and the host, this will affect the data transmission between the MBB device and the host. In order to improve the data transmission efficiency and reduce the accumulation of data in the MBB device memory after data collection, the local bit rate of the MBB device is matched with the remote bit rate of the host in real time in this application, so as to improve the data transmission efficiency.

[0124] The real-time calibration of the clock frequencies of the host and the MBB device based on the first time interval T1 carried in the PCIe TLP MSI message and the second time interval T2 for receiving the PCIe TLP MSI message, so that the local bit rate of the MBB device matches the remote bit rate of the host in real time, includes:

[0125] Based on the first time interval T1 carried in the PCIe TLP MSI message and the second time interval T2 for receiving the PCIe TLPMSI message, combined with parameters such as the clock rate and transmission delay of the PCIE interface, a clock deviation is calculated;

[0126] According to the calculated clock deviation, the host adjusts its clock frequency to reduce or eliminate the deviation, so that the clock frequencies of the host and the MBB device are synchronized, and the local bit rate of the MBB device matches the remote bit rate of the host in real time.

[0127] In this exemplary embodiment, the host is connected to the MBB device through a PCIE interface, and the MBB device can be connected to the peripheral device through a USB interface. The PCIe (Audio) Interface Driver component runs in the host, and the PCIe (Audio) Interface Driver component is used to manage the PCIe audio interface device to ensure that the audio signal is correctly and efficiently transmitted between the host and the PCIe audio device.

[0128] In this exemplary embodiment, Host PCIe MHIDriver is a PCIe interface driver for connecting a modem and a host, wherein MHI (Modem Host Interface) is a communication interface between the modem and the host. This driver is mainly used for PCIe-based devices, so that the modem can be connected to the host through the PCIe interface.

[0129] Host PCIe RC Driver is the PCIe root complex driver, which is mainly used to manage and control the root complex (RC) device on the PCIe bus. It obtains the information of the PCIe root complex through the device tree and controls and manages the PCIe device by registering the driver to the kernel.

[0130] In the present application, when the host collects data from the peripheral device through the MBB device, the host and the MBB device transmit data through the PCIE interface. In view of the small memory of the MBB device, the bit rate is matched in real time based on the local bit rate of the MBB device and the remote bit rate of the host to perform data transmission, so as to improve the data transmission efficiency and reduce the unexpected memory usage caused by data accumulation.

[0131] In some embodiments, the data transmission module is used to

[0132] receiving a transaction feature capture instruction sent by the host; wherein the transaction feature capture instruction includes data feature information for starting data transmission;

[0133] Based on the data feature information in the transaction feature capture instruction, determining the collected data whose data collection process matches the data feature information;

[0134] Based on the collection time corresponding to the collected data matching the data characteristic information, data transmission is started at a target baud rate determined based on a local bit rate of the MBB device.

[0135] The upper layer app of the host sends a capture transaction. The Host PCIe (Audio) Interface of the host sends a transaction feature capture instruction to the MBB device of the PCIe interface and writes it into the MBB device transaction capture observation area of ​​the PCIe interface. The MBB device and sampling peripheral of the PCIe interface perform real-time sampling according to the negotiated bit rate and cyclically overwrite the data buffer Data buff of the MBB device connected to the PCIe interface.

[0136] At the same time, the MBB device calls the data collection monitoring thread based on the transaction feature capture instruction to monitor the data collected by the MBB device, and compares whether the data features of the collected data are the same as the data feature information in the transaction feature capture instruction. If the data features of the collected data are the same as the data feature information in the transaction feature capture instruction, the collection time of the collected data with the same data features as the data feature information in the transaction feature capture instruction is determined as the data node for starting data transmission, and submitted to the upper-layer APP. Figure 2The transaction capture is completed. Wait for the upper-layer app to send the next transaction, such as: based on the capture point (the data node that starts data transmission), obtain the capture point data context in the USB / PCM interface Data buff of the MBB device of the PCIe interface. Based on the capture point, the Host PCIe MHIDriver starts real-time sampling and synchronous transmission of the MBB device data of the PCIe interface.

[0137] For example, based on the data node that starts data transmission, the MBB device starts to transmit the collected data to the host. The data feature information in the transaction feature capture instruction is used to characterize the data validity of the collected data. For example, the data feature information includes at least one of the following:

[0138] The interval period between N consecutive rising edges is the same;

[0139] The interval period between N consecutive falling edges is the same. That is, stable data is collected, indicating that the system has been working stably and effectively, and the collected data is valid data. At this time, the MBB device can transmit the collected valid data to the host. This is conducive to improving the effectiveness of data collection and transmission.

[0140] In some embodiments, the target baud rate determined based on the local bit rate of the MBB device includes:

[0141] Target baud rate P; wherein P=N*B*S; wherein B is the local bit rate of the MBB device; B=1 / f; f is the first time interval T1 obtained by dividing the clock of the MBB device; S is the data symbol bit contained in a PCIE TLP message, wherein S=1024; and N is the number of PCIE TLP data messages transmitted in the first time interval T1.

[0142] In this exemplary embodiment, after determining the data node for starting data transmission, data transmission can be performed based on the target baud rate between the host and the MBB device. The target baud rate can be determined based on the local bit rate of the MBB device. In this way, a reasonable data transmission rate can be configured, which is suitable for data collection scenarios and helps to reduce the occurrence of mismatches between data collection and transmission.

[0143] Assume that the CLOCK output by the PMIC of the MBB device is F=1KHZ, and the unit time is 1S; T=1 / F=1mS (i.e., one PCIe TLP MSI message is sent in 1mS), and 1000 [PCIe TLP MSI messages] can be transmitted per unit time, that is, the actual local bit rate is: 1Kbps.

[0144] Assume that the local bit rate and the remote bit rate are negotiated to be B = 1 Kbps. Within one bit rate transmission time (T = 1 mS), the MBB device transmits N = 10 PCIe TLP data packets to the host PCIe Driver. One [PCIe TLP data packet] contains a data symbol S = 1024 bits.

[0145] That is, the target baud rate: B*N*S=1Kbps*10*1024=10Mbps.

[0146] In this exemplary embodiment, when data is transmitted, the sampled data is directly synchronized to the Host PCIe (Audio) Interface Ring buff ring buffer, and the MBB device transmits the data collected based on the negotiated target baud rate to the Host PCIeMHIDriver through a PCIe TLP data message.

[0147] The present disclosure provides a data collection device based on an MBB device, wherein a host is connected to the MBB device via a PCIE interface, and the MBB device is connected to a peripheral device. Figure 5 The structure of a data collection device based on an MBB device according to an exemplary embodiment is shown Figure 2 .like Figure 5 As shown, the device comprises:

[0148] The message receiving module 50 is configured to receive a PCIe TLP MSI message sent by the MBB device at the first time interval T1 as a period; wherein the first time interval T1 is obtained by dividing the clock of the MBB device;

[0149] a bit rate matching module 51, configured to calibrate the clock frequencies of the host and the MBB device in real time based on the second time interval T2 of receiving the PCIe TLP MSI message and the first time interval T1, so that the remote bit rate of the host matches the local bit rate of the MBB device in real time; wherein the local bit rate of the MBB device is generated based on the clock frequency output by a power management integrated circuit PMIC of the MBB device;

[0150] The data transmission module 52 is configured to collect and transmit data of a peripheral device through the MBB device based on real-time matching of a local bit rate of the MBB device with a remote bit rate of the host.

[0151] In this exemplary embodiment, the first time interval T1 obtained based on the clock frequency division of the MBB (Mobile Broadband) device can be a clock signal with a frequency of F_main obtained from the main clock, and then a clock signal with a frequency of F_div obtained by frequency division. Then, the frequency division ratio (N) is F_main divided by F_div. That is, N = F_main / F_div. The first time interval T1 (corresponding to the clock period of F_div) is 1 / F_div.

[0152] In this exemplary embodiment, PCIe (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) uses a data transfer mode based on messages (TLP), and all bus transactions are implemented through messages. MSI (Message Signaled Interrupts) is an interrupt mechanism in PCIe, which uses a memory write request TLP to submit an interrupt request to the processor. Among them, when using the PCIe interface to send an MSI message, the MSI message can be encapsulated as a TLP and transmitted to the host through the PCIe link.

[0153] In this exemplary embodiment, since there is a bit rate inconsistency between the MBB device and the host, this will affect the data transmission between the MBB device and the host. In order to improve the data transmission efficiency and reduce the accumulation of data in the MBB device memory after data collection, the local bit rate of the MBB device is matched with the remote bit rate of the host in real time in the present application, so as to improve the data transmission efficiency.

[0154] In this exemplary embodiment, Figure 2 As shown in the figure, the host is connected to the MBB device through the PCIE interface, and the MBB device can be connected to the peripheral device through the USB interface. The PCIe (Audio) Interface Driver component runs in the host, and the PCIe (Audio) Interface Driver component is used to manage the PCIe audio interface device to ensure that the audio signal is correctly and efficiently transmitted between the host and the PCIe audio device.

[0155] In this exemplary embodiment, Host PCIe MHIDriver is a PCIe interface driver for connecting a modem and a host, wherein MHI (Modem Host Interface) is a communication interface between the modem and the host. This driver is mainly used for PCIe-based devices, so that the modem can be connected to the host through the PCIe interface.

[0156] In the present application, when the host collects data from the peripheral device through the MBB device, the host and the MBB device transmit data through the PCIE interface. In view of the small memory of the MBB device, the bit rate is matched in real time based on the local bit rate of the MBB device and the remote bit rate of the host to perform data transmission, so as to improve the data transmission efficiency and reduce the unexpected memory usage caused by data accumulation.

[0157] In some embodiments, the bit rate matching module is used to

[0158] determining a time difference between the second time interval T2 and the first time interval T1;

[0159] Based on the time difference between the second time interval T2 and the first time interval T1, the clock frequency of the host is adjusted so that the remote bit rate of the host matches the local bit rate of the MBB device in real time.

[0160] In this exemplary embodiment, determining the time difference between the second time interval T2 and the first time interval T1 includes:

[0161] Based on the first time interval T1 carried in the PCIe TLP MSI message and the second time interval T2 for receiving the PCIe TLP MSI message, combined with parameters such as the clock rate and transmission delay of the PCIE interface, the clock deviation is calculated.

[0162] The adjusting the clock frequency of the host based on the time difference between the second time interval T2 and the first time interval T1 so that the remote bit rate of the host matches the local bit rate of the MBB device in real time includes:

[0163] According to the calculated clock deviation, the host adjusts its clock frequency to reduce or eliminate the deviation, so that the clock frequencies of the host and the MBB device are synchronized, and the local bit rate of the MBB device matches the remote bit rate of the host in real time.

[0164] In some embodiments, the data transmission module is used to

[0165] Generate transaction feature capture instructions based on data feature information of collected data required by the application;

[0166] sending the transaction feature capture instruction to the MBB device, so that the MBB device monitors the collected data obtained in the data collection process in real time based on the data feature information included in the transaction feature capture instruction, and determines a collection time corresponding to the collected data matching the data feature information;

[0167] Based on the collection time corresponding to the collection data matching the data characteristic information, start receiving the collection data for data transmission by the MBB device at the target baud rate; wherein the data characteristic information includes at least one of the following:

[0168] The interval period between N consecutive rising edges is the same;

[0169] The interval period between N consecutive falling edges is the same.

[0170] In this exemplary embodiment, the host may send a transaction feature capture instruction to the MBB device connected to the PCIE interface through the PCIE interface. The MBB device calls the data collection monitoring thread based on the transaction feature capture instruction to monitor the data collected by the MBB device, and compares whether the data features of the collected data are the same as the data feature information in the transaction feature capture instruction. When the data features of the collected data are the same as the data feature information in the transaction feature capture instruction, the collection time of the collected data whose data features are the same as the data feature information in the transaction feature capture instruction is determined as the data node for starting data transmission. Then, based on the data node for starting data transmission, the MBB device starts to transmit the collected data to the host. The data feature information in the transaction feature capture instruction is used to characterize the data validity of the collected data. For example, the data feature information includes at least one of the following:

[0171] The interval period between N consecutive rising edges is the same;

[0172] The interval period between N consecutive falling edges is the same. That is, stable data is collected, indicating that the system has been working stably and effectively, and the collected data is valid data. At this time, the MBB device can transmit the collected valid data to the host. This is conducive to improving the effectiveness of data collection and transmission.

[0173] In some embodiments, the target baud rate determined based on the local bit rate of the MBB device includes:

[0174] Target baud rate P; wherein P=N*B*S; wherein B is the local bit rate of the MBB device; B=1 / f; f is the first time interval T1 obtained by dividing the clock of the MBB device; S is the data symbol bit contained in a PCIE TLP message, wherein S=1024; and N is the number of PCIE TLP data messages transmitted in the first time interval T1.

[0175] In this exemplary embodiment, after determining the data node for starting data transmission, data transmission can be performed based on the target baud rate between the host and the MBB device. The target baud rate can be determined based on the local bit rate of the MBB device. In this way, a reasonable data transmission rate can be configured, which is suitable for data collection scenarios and helps to reduce the occurrence of mismatches between data collection and transmission.

[0176] The present disclosure provides a computer-readable storage medium, on which a data collection program based on an MBB device is stored. When the data collection program based on the MBB device is executed by a processor, the data collection method based on the MBB device described in the above embodiments is implemented.

[0177] The present disclosure provides an electronic device, including a memory, a processor, and a data collection program based on an MBB device that is stored in the memory and can be run on the processor. When the processor executes the data collection program based on the MBB device, the data collection method based on the MBB device described in the above embodiments is implemented.

[0178] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can obtain instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.

[0179] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0180] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0181] In the description of the present disclosure, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present disclosure and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present disclosure.

[0182] In addition, the terms "first", "second", etc. used in the embodiments of the present disclosure are only used for descriptive purposes and should not be understood as indicating or implying relative importance, or implicitly indicating the number of technical features indicated in the embodiments. Therefore, the features defined by the terms "first", "second", etc. in the embodiments of the present disclosure may explicitly or implicitly indicate that at least one of the features is included in the embodiment. In the description of the present disclosure, the word "multiple" means at least two or two or more, such as two, three, four, etc., unless otherwise clearly and specifically defined in the embodiments.

[0183] In the present disclosure, unless otherwise clearly specified or limited in the embodiments, the terms "installed", "connected", "connected" and "fixed" etc. appearing in the embodiments should be understood in a broad sense. For example, the connection can be a fixed connection, a detachable connection, or an integrated connection. It can be understood that it can also be a mechanical connection, an electrical connection, etc.; of course, it can also be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal connection of two elements, or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present disclosure can be understood according to the specific implementation situation.

[0184] In the present disclosure, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.

[0185] Although the embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present disclosure. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present disclosure.

Claims

1. A data collection method based on MBB equipment, characterized in that: The host and the MBB device are connected via a PCIE interface, the MBB device is connected to a peripheral device, and the method includes: Generate, based on a clock frequency output by a power management integrated circuit PMIC of the MBB device, a local bit rate of the MBB device and a first time interval T1 obtained by dividing the clock of the MBB device; Generate a PCIe TLP MSI message based on the local bit rate timing of the MBB device, and send the PCIe TLP MSI message to the host at the first time interval T1 as a period, so that the host can calibrate the clock frequency of the host and the MBB device in real time based on the first time interval T1 carried in the PCIe TLP MSI message and the second time interval T2 for receiving the PCIe TLP MSI message, so that the local bit rate of the MBB device matches the remote bit rate of the host in real time; wherein the remote bit rate of the host is determined by the second time interval T2 for the host to receive the PCIe TLP MSI message; Based on real-time matching of the local bit rate of the MBB device with the remote bit rate of the host, data collection and transmission of the peripheral device are performed through the MBB device.

2. The data collection method based on MBB equipment according to claim 1, characterized in that: The real-time matching of the local bit rate of the MBB device with the remote bit rate of the host and performing data collection and transmission of the peripheral device through the MBB device includes: receiving a transaction feature capture instruction sent by the host; wherein the transaction feature capture instruction includes data feature information for starting data transmission; Based on the data feature information in the transaction feature capture instruction, determining the collected data whose data collection process matches the data feature information; Based on the collection time corresponding to the collected data matching the data characteristic information, data transmission is started at a target baud rate determined based on a local bit rate of the MBB device.

3. The MBB device-based data collection method according to claim 2, characterized in that: The data characteristic information includes at least one of the following: The interval period between N consecutive rising edges is the same; The interval period between N consecutive falling edges is the same.

4. The data collection method based on MBB equipment according to claim 2, characterized in that: The target baud rate determined based on the local bit rate of the MBB device includes: Target baud rate P; wherein P=N*B*S; wherein B is the local bit rate of the MBB device; B=1 / f; f is the first time interval T1 obtained by dividing the clock of the MBB device; S is the data symbol bit contained in a PCIE TLP message, wherein S=1024; and N is the number of PCIE TLP data messages transmitted in the first time interval T1.

5. A data collection method based on MBB equipment, characterized in that: The host and the MBB device are connected via a PCIE interface, the MBB device is connected to a peripheral device, and the method includes: receiving a PCIe TLP MSI message sent by the MBB device at a first time interval T1 as a period; wherein the first time interval T1 is obtained by dividing a clock of the MBB device; calibrating the clock frequencies of the host and the MBB device in real time based on the second time interval T2 of receiving the PCIe TLP MSI message and the first time interval T1, so that the remote bit rate of the host matches the local bit rate of the MBB device in real time; wherein the local bit rate of the MBB device is generated based on the clock frequency output by the power management integrated circuit PMIC of the MBB device; Based on real-time matching of the local bit rate of the MBB device with the remote bit rate of the host, data collection and transmission of the peripheral device are performed through the MBB device.

6. The MBB device-based data collection method according to claim 5, characterized in that: The real-time calibrating the clock frequencies of the host and the MBB device based on the second time interval T2 of receiving the PCIe TLP MSI message and the first time interval T1, so that the remote bit rate of the host matches the local bit rate of the MBB device in real time, includes: determining a time difference between the second time interval T2 and the first time interval T1; Based on the time difference between the second time interval T2 and the first time interval T1, the clock frequency of the host is adjusted so that the remote bit rate of the host matches the local bit rate of the MBB device in real time.

7. The MBB device-based data collection method according to claim 6, characterized in that: The adjusting the clock frequency of the host based on the time difference between the second time interval T2 and the first time interval T1 so that the remote bit rate of the host matches the local bit rate of the MBB device in real time includes: Determine the clock deviation based on the time difference between the second time interval T2 and the first time interval T1, in combination with the clock rate and transmission delay parameters of the PCIE interface; According to the clock deviation, the clock frequency of the host is adjusted so that the clock frequencies of the host and the MBB device are synchronized, so that the local bit rate of the MBB device matches the remote bit rate of the host in real time.

8. The data collection method based on MBB equipment according to claim 5, characterized in that: Based on real-time matching of the local bit rate of the MBB device with the remote bit rate of the host, data collection and transmission of the peripheral device are performed through the MBB device, including: Generate transaction feature capture instructions based on data feature information of collected data required by the application; sending the transaction feature capture instruction to the MBB device, so that the MBB device monitors the collected data obtained in the data collection process in real time based on the data feature information included in the transaction feature capture instruction, and determines a collection time corresponding to the collected data matching the data feature information; Based on the collection time corresponding to the collection data matching the data characteristic information, start receiving the collection data for data transmission by the MBB device at the target baud rate; wherein the data characteristic information includes at least one of the following: The interval period between N consecutive rising edges is the same; The interval period between N consecutive falling edges is the same.

9. The MBB device-based data collection method according to claim 8, characterized in that: The target baud rate includes: Target baud rate P; wherein P=N*B*S; wherein B is the local bit rate of the MBB device; B=1 / f; f is the first time interval T1 obtained by dividing the clock of the MBB device; S is the data symbol bit contained in a PCIE TLP message, wherein S=1024; and N is the number of PCIE TLP data messages transmitted in the first time interval T1.

10. A data collection device based on MBB equipment, characterized in that: The host and the MBB device are connected via a PCIE interface, the MBB device is connected to a peripheral device, and the apparatus includes: an information generating module, configured to generate, based on a clock frequency output by a power management integrated circuit PMIC of the MBB device, a local bit rate of the MBB device and a first time interval T1 obtained by dividing the clock of the MBB device; a message sending module, configured to generate a PCIe TLP MSI message based on the local bit rate timing of the MBB device, and send the PCIe TLP MSI message to the host at the first time interval T1 as a period, so that the host can calibrate the clock frequency of the host and the MBB device in real time based on the first time interval T1 carried in the PCIe TLP MSI message and the second time interval T2 for receiving the PCIe TLP MSI message, so that the local bit rate of the MBB device matches the remote bit rate of the host in real time; wherein the remote bit rate of the host is determined by the second time interval T2 for the host to receive the PCIe TLP MSI message; The data transmission module is used to collect and transmit data of the peripheral device through the MBB device based on real-time matching of the local bit rate of the MBB device and the remote bit rate of the host.

11. A data collection device based on MBB equipment, characterized in that: The host and the MBB device are connected via a PCIE interface, the MBB device is connected to a peripheral device, and the apparatus includes: A message receiving module, configured to receive a PCIe TLP MSI message sent by the MBB device at a first time interval T1 as a period; wherein the first time interval T1 is obtained by dividing a clock of the MBB device; a bit rate matching module, configured to calibrate the clock frequencies of the host and the MBB device in real time based on the second time interval T2 of receiving the PCIe TLP MSI message and the first time interval T1, so that the remote bit rate of the host matches the local bit rate of the MBB device in real time; wherein the local bit rate of the MBB device is generated based on the clock frequency output by a power management integrated circuit PMIC of the MBB device; The data transmission module is used to collect and transmit data of the peripheral device through the MBB device based on real-time matching of the local bit rate of the MBB device and the remote bit rate of the host.

12. A computer-readable storage medium, characterized in that: A data collection program based on an MBB device is stored thereon. When the data collection program based on the MBB device is executed by the processor, the data collection method based on the MBB device according to any one of claims 1 to 9 is implemented.

13. An electronic device, characterized in that: The method comprises a memory, a processor, and a data collection program based on an MBB device which is stored in the memory and can be run on the processor. When the processor executes the data collection program based on the MBB device, the data collection method based on the MBB device according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Clock management method and device, electronic equipment and storage medium

    CN113406991A

  • Information transmission method and device related to MBB equipment and power consumption control system

    CN118158785A

  • Time synchronization system and method and switch

    CN118174813A

  • Time synchronization for clocks separated by a communication link

    US20190332137A1