Log capturing device and electronic equipment
By adding contact paths in the communication module slot, logs can be captured without disassembling the communication module, solving the problems of cumbersome processes and risks in existing technologies, simplifying the log capture process, reducing maintenance costs, and ensuring customer experience.
Patent Information
- Application Number
- CN202520207463.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-08
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2035-02-08
AI Technical Summary
Existing communication modules require disassembly of the device when capturing UARTlog, which is a cumbersome process and poses a risk of damaging other components, increasing maintenance costs and affecting customer experience.
By adding contact paths to the card slot of the communication module, logs can be captured by the main control module without disassembling the communication module, simplifying the process and avoiding risks.
Logs can be captured without disassembling the communication module, reducing maintenance costs, improving capture efficiency, and ensuring customer experience.
Smart Images

Figure CN223770629U_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a log capture device and electronic device. Background Technology
[0002] Currently, during communication module testing or troubleshooting customer issues, it is often necessary to capture the UART log (Universal Asynchronous Receiver / Transmitter) of the communication module to locate the cause of the fault. However, existing communication modules do not directly provide a UART log interface. Therefore, each time the UART log is captured, the communication module must be removed from the device to which it is plugged in, and then the UART log of the communication module must be captured through other peripherals. The whole process is cumbersome, and there is also a certain risk in removing the communication module from the PC. If disassembly causes damage to other components, it will lead to increased maintenance costs and seriously affect the customer experience. Utility Model Content
[0003] The main purpose of this application is to provide a log capture device and electronic device, which aims to simplify the log capture process of the communication module and avoid the risks existing in the conventional log capture process.
[0004] To achieve the above objectives, this application provides a log capture device for capturing logs from a communication module, comprising:
[0005] Motherboard;
[0006] A card slot is provided on the motherboard, and the card slot is used to insert the communication module so that the communication module can be connected to the motherboard;
[0007] A contact path is provided in the card slot, and the contact path is used to connect the transmitting contact and the receiving contact of the communication module when the communication module is inserted into the card slot;
[0008] The main control module is connected to the motherboard and is used to capture the logs of the communication module when the sending contact and the receiving contact establish a communication connection based on the contact path.
[0009] In one embodiment, the contact path includes a conductor soldered into the card slot.
[0010] In one embodiment, the two ends of the conductor correspond to the positions of the transmitting contact and the receiving contact mapped on the card slot, respectively.
[0011] In one embodiment, the conductor is one of a copper conductor, an aluminum conductor, an alloy conductor, or a non-metallic conductor.
[0012] In one embodiment, the motherboard includes:
[0013] A basic input / output system, connected to the card slot, is used to enable or disable the communication connection between the transmitting contact and the receiving contact.
[0014] In one embodiment, when the communication module is inserted into the card slot, the communication connection between the transmitting contact and the receiving contact is disabled.
[0015] In one embodiment, when the communication module is plugged into the card slot and there is a need for log capture, the basic input / output system enables the communication connection between the sending contact and the receiving contact.
[0016] In one embodiment, the basic input / output system restarts after the communication connection between the transmitting contact and the receiving contact is enabled or disabled.
[0017] In one embodiment, the main control module includes:
[0018] An enumeration unit, connected to the motherboard, is used to enumerate the serial port of the communication module when the sending contact and the receiving contact establish a communication connection based on the contact path.
[0019] A capture unit is connected to the motherboard and is used to capture the logs of the communication module according to the serial port of the communication module.
[0020] In addition, to achieve the above objectives, this application also provides an electronic device, which includes the log capture device described above.
[0021] This application discloses a log capture device and electronic device. The log capture device includes: a motherboard; a card slot disposed on the motherboard for inserting a communication module to connect the communication module to the motherboard; a contact path disposed in the card slot for connecting the transmitting and receiving contacts of the communication module when the communication module is inserted into the card slot; and a main control module connected to the motherboard for capturing the logs of the communication module when the transmitting and receiving contacts establish a communication connection based on the contact path. This application achieves the effect of capturing the logs of the communication module without disassembling the communication module by adding a contact path to the card slot for inserting the communication module. Compared with the cumbersome process of capturing UART logs in the prior art, the log capture device provided by this application does not require disassembly of the communication module or assistance from other peripherals, greatly simplifying the log capture process of the communication module. It can effectively avoid a series of risks that may be caused by disassembling the communication module, not only reducing maintenance costs but also resolving problems in a timely manner, thus ensuring that the customer experience is not seriously affected. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0023] Figure 1 A schematic diagram of the structure of a log capture device and a communication module provided in an embodiment of this application;
[0024] Figure 2 This is a schematic diagram of the structure of a log capture device with a card slot connected to a communication module, provided in an embodiment of this application.
[0025] Figure 3 A detailed structural diagram of the contact path in a log capture device provided in this application embodiment;
[0026] Figure 4 This is a schematic diagram illustrating the specific setting position of the contact path relative to the card slot in a log capture device provided in an embodiment of this application.
[0027] Figure 5 This is a detailed structural diagram of the main control module in a log capture device provided in an embodiment of this application.
[0028] Explanation of icon numbers:
[0029] 100, Communication module; 200, Main board; 201, Card slot; 202, Contact path; TX, Transmit contact; RX, Receive contact; 300, Main control module; 212, Conductor; 301, Enumeration unit; 302, Grabbing unit.
[0030] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0031] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0032] Currently, during communication module testing or troubleshooting customer issues, it is often necessary to capture the UART log of the communication module to locate the cause of the fault. However, existing communication modules do not have a direct UART log interface; instead, they only have pre-reserved TX (transmit) and RX (receive) test points on the back of the communication module. Therefore, capturing the UART log is particularly troublesome. It requires removing the communication module from the PC, soldering flying wires to the TX and RX points of the communication module, connecting them to the corresponding TX and RX jumpers on the development board, and then connecting the development board to another computer via USB. The corresponding software tools on the computer are then used to capture the UART log. The whole process is very cumbersome and dependent on other peripherals. As a result, when customers encounter problems with the communication module, they can only remove the communication module from the PC and send it back to the factory for troubleshooting and analysis. Moreover, modern PC motherboards have high space utilization, and removing the communication module from the PC carries certain risks. Disassembly may damage other components, which will not only increase maintenance costs but also seriously affect the customer experience.
[0033] Based on this, this application proposes a log capture device and electronic device. By adding contact paths in the slot for inserting the communication module, this application achieves the effect of capturing the communication module logs without disassembling the communication module. Compared with the cumbersome process of capturing UARTlog in the prior art, the log capture device provided by this application does not require disassembly of the communication module or assistance from other peripheral devices, greatly simplifying the log capture process of the communication module. It can effectively avoid a series of risks that may be caused by disassembling the communication module, not only reducing maintenance costs, but also solving problems in a timely manner, thereby ensuring that the customer experience is not seriously affected.
[0034] The log capture device and electronic device provided in this application are specifically described through the following embodiments, starting with the log capture device.
[0035] This application provides a log capture device, referring to... Figure 1 , Figure 1 This is a schematic diagram of a log capture device and a communication module provided in an embodiment of this application. The log capture device is used to capture logs from the communication module 100, and includes:
[0036] Motherboard 200;
[0037] Card slot 201 is provided on motherboard 200. Card slot 201 is used to insert communication module 100 so that communication module 100 can be connected to motherboard 200.
[0038] Contact path 202 is disposed in card slot 201. Contact path 202 is used to connect the transmitting contact TX and the receiving contact RX of communication module 100 when communication module 100 is inserted into card slot 201.
[0039] The main control module 300 is connected to the motherboard 200. The main control module 300 is used to capture the logs of the communication module 100 when the sending contact TX and the receiving contact RX establish a communication connection based on the contact path 202.
[0040] It should be noted that in this embodiment, the communication module 100 is not part of the log capture device. The communication module 100 is an external product that can be detachably connected to the log capture device. The motherboard 200 in the log capture device can be obtained by modifying any type of motherboard, as long as the motherboard has a slot 201 that can be used to plug in the communication module 100, and the slot 201 can be provided with additional contact paths 202. The main control module 300 can be a processor plugged into the motherboard 200. It can be a CPU (Central Processing Unit), an MCU (Microcontroller Unit), or any other type of processor. This embodiment does not limit this, as long as it has the functions of the main control module 300 in this embodiment.
[0041] It should be understood that, generally, the log capture requirement of the communication module 100 occurs during the testing of the communication module or the handling of customer issues. Therefore, the log capture device provided in this embodiment can also establish a connection between the motherboard 200 and input devices (such as mouse and keyboard), storage devices (such as memory and hard disk), and display devices (such as monitor) to form an electronic device with an operating system. This allows the developers or after-sales maintenance personnel of the communication module 100 to more intuitively realize the information interaction between the communication module 100, the motherboard 200, and the main control module 300 through the input devices and display devices, so as to quickly capture the UART log of the communication module 100 and thus locate the cause of the fault.
[0042] As an example, refer to Figure 2 , Figure 2 This diagram shows the structure of the log capture device after the communication module 100 is inserted into the card slot 201. Figure 2 In the diagram, the card slot 201 is covered by the communication module 100, so its frame and label are omitted. The contact path 202 is also covered by the communication module 100, but displaying the contact path 202 with a dashed frame can clearly show that it achieves the effect of connecting the transmitting contact TX and the receiving contact RX.
[0043] Reference Figure 3 In some feasible embodiments, the contact passage 202 includes a conductor 212 soldered into the slot 201.
[0044] In this embodiment, the contact passage 202 may include a conductor 212 and an insulating material wrapped around the surface of the conductor. Both ends of the conductor 212 are welded to the slot 201. (This is in conjunction with the above...) Figure 2 It can be seen that after the communication module 100 is inserted into the card slot 201, the conductor 212 can ensure that the transmitting contact TX and the receiving contact RX of the communication module 100 are physically connected at the hardware level.
[0045] Reference Figure 4 In some feasible embodiments, the two ends of conductor 212 correspond to the positions of the transmitting contact TX and the receiving contact RX mapped on the card slot 201, respectively.
[0046] In this embodiment, when the communication module 100 is normally inserted into the card slot 201, the positions of the transmitting contact TX and receiving contact RX of the communication module 100 mapped onto the card slot 201 can be determined. Therefore, the two ends of the conductor 212 can be soldered to these two mapped positions on the card slot 201 respectively, thereby ensuring that when the communication module 100 is inserted into the card slot 201 and powered on, the conductor 212 can provide a current path for the transmitting contact TX and receiving contact RX in the communication module 100.
[0047] In some feasible embodiments, conductor 212 is one of copper conductor, aluminum conductor, alloy conductor or non-metallic conductor.
[0048] In this embodiment, the material of conductor 212 can be selected according to actual needs. It can be a copper conductor, an aluminum conductor, an alloy conductor, or a non-metallic conductor, etc. This embodiment does not limit this, as long as it can connect the transmitting contact TX and the receiving contact RX of the communication module 100 when the communication module 100 is inserted into the card slot 201.
[0049] Similarly, in this embodiment, the contact path 202 can be implemented by any one of copper wires, aluminum wires, alloy wires or non-metallic wires, and this embodiment does not limit it.
[0050] In some feasible embodiments, the motherboard 200 includes:
[0051] The Basic Input / Output System (PIOS) is connected to the card slot 201. The PIOS is used to enable or disable the communication connection between the transmit contact TX and the receive contact RX.
[0052] In this embodiment, the motherboard 200 has an industry-standard firmware interface, BIOS (Basic Input Output System). Since the log capture device provided in this embodiment adds a contact path 202 in the card slot 201, continuously shorting the transmit contact TX and receive contact RX after the communication module 100 is plugged into the card slot 201 will cause the communication module 100 to be unable to communicate normally with the motherboard 200 or the main control module 300. Therefore, a control switch can be added in the BIOS to control the conduction (i.e., enabling) or deactivation (i.e., disabling) between the transmit contact TX and receive contact RX. Through this control switch, the on / off state between the transmit contact TX and receive contact RX can be flexibly controlled, taking into account both the normal use of the communication module 100 and UARTlog capture.
[0053] In some feasible embodiments, when the communication module 100 is plugged into the card slot 201, the communication connection between the transmitting contact TX and the receiving contact RX is disabled.
[0054] It should be understood that in this embodiment, the communication module 100 generally will not malfunction when it is first connected. That is to say, the purpose of connecting the communication module 100 is to enable it to communicate normally with the motherboard 200 and the main control module 300. Therefore, the control switch in the BIOS disables the communication connection between the transmitting contact TX and the receiving contact RX by default. Even if the contact path 202 has physically connected the transmitting contact TX and the receiving contact RX at the hardware level, it will not affect the normal communication between the communication module 100 and the motherboard 200 and the main control module 300.
[0055] In some feasible embodiments, when the communication module 100 is plugged into the card slot 201 and there is a need for log capture, the basic input / output system enables the communication connection between the transmitting contact TX and the receiving contact RX.
[0056] It should be understood that in this embodiment, the existence of log capture requirements indicates that the communication module 100 may have a problem. Therefore, it is necessary to enable the communication connection between the transmitting contact TX and the receiving contact RX through the control switch in the BIOS. Since the contact path 202 has already physically connected the transmitting contact TX and the receiving contact RX at the hardware level, the transmitting contact TX and the receiving contact RX are shorted at this time. The data sent by the communication module 100 through the transmitting contact TX will return to the communication module 100 from the receiving contact RX. Therefore, the main control module 300, which establishes a communication connection with the communication module 100 through the motherboard 200, can directly capture the logs of the communication module 100 through conventional UARTlog capture software tools.
[0057] In some feasible embodiments, the basic input / output system restarts after the communication connection between the transmit contact TX and the receive contact RX is enabled or disabled.
[0058] It is understandable that in this embodiment, after modifying the BIOS settings, it is necessary to save the changes and restart for the settings to take effect.
[0059] Reference Figure 5 In some feasible embodiments, the main control module 300 includes:
[0060] Enumeration unit 301 is connected to motherboard 200. Enumeration unit 301 is used to enumerate the serial port of communication module 100 when the sending contact TX and the receiving contact RX establish a communication connection based on contact path 202.
[0061] The capture unit 302 is connected to the motherboard 200 and is used to capture the logs of the communication module 100 according to the serial port of the communication module 100.
[0062] In this embodiment, in order to make the capture process visible, the functions of the main control module 300 generally need to be implemented in conjunction with the operating system. Therefore, when the log capture device establishes a connection with the input device (e.g., mouse, keyboard), storage device (e.g., memory, hard disk) and display device (e.g., monitor) through the motherboard 200 to form an electronic device with an operating system, the enumeration unit 301 can enumerate the serial port of the communication module 100 in the device manager of the electronic device, and the capture unit 302 can call conventional software tools for capturing UARTlog to achieve fast capture of UARTlog.
[0063] This embodiment provides a log capture device. By adding contact paths in the slot for inserting the communication module, the device achieves the effect of capturing the communication module logs without disassembling the communication module. Compared with the cumbersome process of capturing UARTlog in the prior art, the log capture device provided in this embodiment does not require disassembling the communication module or using other peripheral devices, which greatly simplifies the log capture process of the communication module. It can effectively avoid a series of risks that may be caused by disassembling the communication module, not only reducing maintenance costs, but also solving problems in a timely manner, thereby ensuring that the customer experience is not seriously affected.
[0064] In addition, this application also provides an electronic device, which includes the log capture device provided in the above embodiments.
[0065] Since the electronic device proposed in this embodiment includes the log capture device proposed in the above embodiments, it has the beneficial effects of the above embodiments. For details on the specific working process and principle of the log capture device, please refer to the log capture devices provided in the above embodiments. They will not be described in detail here, and all are within the protection scope of this embodiment.
[0066] It should be noted that all directional indicators (such as up, down, left, right, front, back, etc.) in the embodiments of this application are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicator will also change accordingly.
[0067] Furthermore, the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of those features. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified. Additionally, the meaning of "and / or" throughout the text includes three parallel solutions; for example, "A and / or B" includes solution A, solution B, or a solution that simultaneously satisfies A and B.
[0068] In this application, unless otherwise expressly specified and limited, the terms "connection," "fixed," etc., should be interpreted broadly. For example, "fixed" can mean a fixed connection, a detachable connection, or an integral part; it can mean a mechanical connection or an electrical connection; it can mean a direct connection or an indirect connection through an intermediate medium; it can mean the internal communication of two components or the interaction between two components, unless otherwise expressly limited. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0069] It should also be understood that references to "one embodiment" or "some embodiments" in the specification of embodiments of this application mean that one or more embodiments of this application include the specific features, structures, or characteristics described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0070] It should be noted that the technical solutions of the various embodiments of this application can be combined with each other, but only if they are implemented by those skilled in the art. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed by this application.
[0071] The above are merely optional embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A log scraping apparatus for scraping logs of a communication module, characterized in that, The log grabbing device comprises: a mainboard; a card slot arranged on the mainboard, the card slot being used for inserting the communication module so as to connect the communication module with the mainboard; a contact passage arranged in the card slot, the contact passage being used for connecting the sending contact and the receiving contact of the communication module when the communication module is inserted into the card slot; a main control module connected with the mainboard, the main control module being used for grabbing the log of the communication module when the sending contact and the receiving contact establish a communication connection based on the contact passage.
2. The log scraping apparatus of claim 1, wherein, The contact passage comprises a conductor welded in the card slot.
3. The log scraping apparatus of claim 2, wherein, The two ends of the conductor are respectively mapped to the positions of the sending contact and the receiving contact on the card slot.
4. The log scraping apparatus of claim 2, wherein, The conductor is one of a copper conductor, an aluminum conductor, an alloy conductor or a non-metallic conductor.
5. The log scraping apparatus of claim 1, wherein, The mainboard comprises: a basic input / output system connected with the card slot, the basic input / output system being used for enabling or disabling the communication connection between the sending contact and the receiving contact.
6. The log scraping apparatus of claim 5, wherein, When the communication module is inserted into the card slot, the communication connection between the sending contact and the receiving contact is in a disabled state.
7. The log scraping apparatus of claim 5, wherein, When the communication module is inserted into the card slot and there is a log grabbing requirement, the basic input / output system enables the communication connection between the sending contact and the receiving contact.
8. The log scraping apparatus of claim 5, wherein, After enabling or disabling the communication connection between the sending contact and the receiving contact, the basic input / output system is restarted.
9. The log scraping apparatus according to any one of claims 1 to 8, wherein, The main control module comprises: an enumeration unit connected with the mainboard, the enumeration unit being used for enumerating the serial port of the communication module when the sending contact and the receiving contact establish a communication connection based on the contact passage; a grabbing unit connected with the mainboard, the grabbing unit being used for grabbing the log of the communication module according to the serial port of the communication module.
10. An electronic device, comprising: The electronic device comprises the log grabbing device according to any one of claims 1 to 9.