Ginuc bus expansion method and system

By integrating multiple bus interfaces into a unified physical interface, the problem of connection difficulties between different bus devices is solved, efficient connection and communication between devices is achieved, development process is simplified and system flexibility and maintainability is improved.

CN120086166APending Publication Date: 2025-06-03深圳市中微信息技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510159835.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-13
Publication Date
2025-06-03

AI Technical Summary

Technical Problem

In the prior art, the connection between devices of different bus interfaces is difficult, resulting in increased system complexity, cost and failure risks, and limitations on the design flexibility and portability of miniaturized devices.

Method used

By integrating the GPIO interface, I2C bus, Network bus, USB interface, CAN bus and COM bus into a unified physical interface, efficient connection and communication between different types of electronic devices are realized, and software protocol development is carried out based on a unified protocol stack.

Benefits of technology

It simplifies the hardware design and software development process, reduces the complexity and cost of system integration, improves the flexibility, scalability and maintainability of equipment, and adapts to a variety of application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120086166A_ABST
    Figure CN120086166A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a system for extending a ginc bus in the technical field of electronic equipment and buses, the method and the system are applied to extension equipment, and the system comprises a processor, an interface module and a ginc bus integration interface which are fixed on a PCB (Printed Circuit Board); a signal conversion circuit is integrated on the processor, the signal conversion circuit is used for switching electric signals connected with the transceiver and / or the controller, the interface module is electrically connected with interface pins of the processor, the interface module comprises a controller interface, a communication interface, a power interface and a peripheral equipment interface, and the interface module is used for receiving instructions input by the interfaces. Various bus interfaces are integrated into a unified physical interface, the complexity and repeated labor of hardware design are reduced, efficient connection and instant communication between different types of electronic equipment are achieved, software protocol development can be carried out based on a unified protocol stack, the development process and difficulty are greatly simplified, and the development efficiency is improved. And maintaining the equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of electronic equipment and bus, in particular to a GINUc bus expansion method and system. Background Art

[0002] Generally speaking, different buses have their own independent interfaces. When adding new functions or connecting different types of devices, you may be limited by the existing interfaces of the device. For example, if a device equipped with only a USB interface wants to connect a sensor based on the I2C bus, you need to add an additional I2C to USB adapter, which not only increases the cost, but may also introduce compatibility issues and reduce the stability of the system.

[0003] At the same time, in complex electronic systems, when devices with multiple different bus interfaces are interconnected, various adapters, gateways and other intermediate devices are often required to perform protocol conversion and signal conditioning, which increases the complexity, cost and failure risk of the system. For example, in a smart home system, if you want to connect CAN bus industrial control equipment with smart home appliances based on USB or Ethernet, you need special CAN-USB gateways or CAN-Ethernet gateways and other devices to achieve communication, which increases the difficulty of system integration, reduces overall performance and reliability, and increases the overall size of the equipment.

[0004] For miniaturized devices with limited space or devices with high portability requirements, such as smart watches and micro sensor nodes, too many interfaces will seriously limit the flexibility of their design and the possibility of further miniaturization. Especially for hardware developers, they need to design different hardware circuits and wiring schemes for different bus interfaces, which increases the complexity and workload of hardware design. Software developers also need to write corresponding drivers and communication protocol stacks for each bus, and when performing system integration and debugging, they need to spend a lot of time to solve compatibility issues between different buses, resulting in extended development cycles and increased development costs; on the other hand, the electrical characteristics and protocol differences of different interfaces often require matching complex switching processes and adaptive circuits, which makes it more difficult for devices to work together. Summary of the invention

[0005] The purpose of the present invention is to provide a ginuc bus expansion method and system, which integrates a variety of commonly used bus interfaces such as GPIO interface, I2C bus, Network bus, USB interface, CAN bus, and COM bus into a unified physical interface, so as to realize efficient connection and communication between different types of electronic devices, and help reduce the difficulty of collaborative work between devices.

[0006] To achieve the above object, the present invention provides the following technical solutions: In a first aspect, the present invention provides a ginuc bus expansion system, which is applied to an expansion device. The ginuc bus expansion method and system include a processor, an interface module, and a ginuc bus integration interface fixed on a PCB board; A signal conversion circuit is integrated on the processor, and the signal conversion circuit is used to switch the electrical signals connected to the transceiver and / or the controller; The interface module is electrically connected to the interface pins of the processor. The interface module includes a controller interface, a communication interface, a power interface, and a peripheral device interface. The interface module is used to receive instructions input by each interface. By integrating multiple bus interfaces into a unified physical interface, the complexity and repetitive labor of hardware design are reduced, efficient connection and timely communication between different types of electronic devices are achieved, and software protocol development can be carried out based on a unified protocol stack, greatly simplifying the development process and difficulty. During the maintenance stage of the device; The ginuc bus integration interface is integrated at the signal input / output end of the processor. The ginuc bus integration interface includes a GPIO port, an I2C port, a Network network port, a USB port, a CAN bus, and a COM bus. By allowing various types of devices to access through the same interface, and by applying the ginuc bus integration interface to the expansion function module, and cooperating with multiple physical ports and bus forms, the unified communication standard of the ginuc bus integration interface can be achieved, realizing the fast and flexible interface connection function and the expansion function of the bus module. Device manufacturers or users can flexibly select and connect devices of different buses according to specific needs, without reserving specific interfaces separately for each new device or new function, and only need to perform corresponding configuration and driver update at the software level to achieve the expansion and upgrade of device functions, greatly improving the flexibility and scalability of the system, and being able to better adapt to the changing market demands and diverse application scenarios.

[0007] The GPIO port, I2C port, Network network port, USB port, CAN bus, and COM bus are connected to the pins of the processor using a POGO PIN connector, which is beneficial to enhancing the reliability of the electrical connection between the ginuc bus integration interfaces. The definition of the ginuc bus integration interface is as follows;

[0008] Among them, Geographic Address Lines are used to distinguish slot numbers, and are represented in 3 states, namely "1", "0", and "Z", and can represent a total of 27 slots, that is, 27 total function module identifications.

[0009] By setting the unity of interfaces and protocols, it makes fault troubleshooting and repair easier, reduces after-sales maintenance costs and the difficulty of technical support, improves the maintainability of the device and customer satisfaction. It can flexibly allocate bus bandwidth and transmission resources according to the needs and data characteristics of different devices, achieve efficient data transmission and real-time processing, and facilitate complex systems for real-time control. Through reasonable scheduling, it can simultaneously meet the communication requirements of high-speed data devices and real-time control devices on the same bus, improve the data transmission efficiency and overall performance of the system, and is conducive to optimizing the bus space, strengthening the integration of the communication bus, enhancing the flexibility and scalability of the system by simplifying device collaboration and interoperability, while reducing the development and maintenance costs of the bus.

[0010] A bus protocol architecture module, and the bus protocol architecture module includes a physical layer, a data link layer, and an application layer.

[0011] As a further solution of the present invention: The signal conversion circuit is a double-pole double-throw switch. The signal conversion circuit includes a first switch, a second switch, and an enable terminal. The first switch includes a first high-level channel and a second high-level channel. The second switch includes a first low-level channel and a second low-level channel. The first switch and the second switch simultaneously select one corresponding level channel to form a logic signal. The output terminal D+ of the first switch can be connected to the HSD1+ channel or the KSD2+ channel. At the same time, the output terminal D- of the second switch can be connected to the HSD1- channel or the KSD2- channel.

[0012] As a further solution of the present invention: The processor is a Loongson IB200 chip.

[0013] As a further solution of the present invention: The controller interface includes CAN interface pins, LCD interface pins, USB interface pins, and I2C interface pins. By integrating the GPIO interface, I2C bus, Network bus, USB interface, CAN bus, and COM bus into one interface, it can greatly simplify the interface design of the device, reduce the layout area of interface-related components on the circuit board, contribute to the miniaturization and lightweight design of the device, improve the portability and aesthetics of the device, while reducing the hardware manufacturing cost, reducing the requirements for hardware resources such as interface connectors and wiring, and can enhance the adaptability to miniaturized and portable devices and application scenarios with strict requirements for space layout, such as smart home gateways and wearable devices; The CAN interface pins are used to further connect external devices by connecting to the CAN bus and / or COM bus. The COM bus is an interface for data transmission between a computer and external devices. It uses a serial communication method, that is, data is transmitted bit by bit on a communication line, which can enhance the adaptability to long-distance data transmission; The external devices include but are not limited to microcontrollers, sensors, and actuators, so as to achieve efficient and stable data transmission in a harsh electrical environment and enhance the anti-interference ability of data transmission; The LCD interface pins are used for electrically connecting the execution module; The USB interface pins are used to simplify the connection process between the computer and the external devices by connecting to the USB port, enabling hot plugging of the external devices, which include but are not limited to mice, keyboards, printers, and external hard drives; The I2C interface pins are used to further connect to the environmental sensor module for short-distance communication by connecting to the I2C port.

[0014] As a further solution of the present invention: The CAN interface is electrically connected to an eight-segment digital tube, and the eight-segment digital tube is composed of eight light-emitting diodes. The eight-segment digital tube realizes the display of different numbers or letters by lighting some of the eight light-emitting diodes.

[0015] As a further solution of the present invention: The environmental sensor module includes any one or a combination of several of a smoke sensor, a temperature sensor, and a humidity sensor.

[0016] As a further solution of the present invention: The communication interface includes an asynchronous communication interface UART and a NET interface, and the power interface is electrically connected to a switch, which is used to control the power on and off of the processor.

[0017] As a further solution of the present invention: The interface module further includes an audio interface, an analog-to-digital / digital-to-analog converter interface, and a key module.

[0018] As a further solution of the present invention: The audio interface is electrically connected to a buzzer, and the analog-to-digital / digital-to-analog converter interface is an ADC / DAC interface.

[0019] As a further solution of the present invention: The GPIO port is the signal input / output pin for connecting external devices to the processor. When the GPIO port of the processor 1 is in the input state, the processor can read the status of the external device through the GPIO port. When the GPIO port of the processor 1 is in the output state, the processor can control the operation of the external device through the GPIO port; The Network network port is used to connect multiple computers and external devices of computers at different geographical locations. By connecting computers and external devices at different geographical locations through the Network network port, it is possible to achieve resource sharing and information transfer between computer systems under the management and coordination of a network operating system, network management software, and network communication protocols. For example, by connecting the computers of different employees in a company to the internal local area network (LAN - Local Area Network) of the company, employees within the company can share resources such as files and printers, facilitating work communication.

[0020] As a further solution of the present invention: The physical layer is compatible with the electrical signal transmission standards of GPIO ports, I2C ports, Network network ports, USB ports, CAN buses, and COM buses, ensuring that multiple signals can be stably transmitted on the same interface without interfering with each other; The data link layer is used to unify the communication mechanisms of the buses on each physical layer, enabling the physical layer to initiate data transmission requests in a consistent manner. For example, integrating different transmission modes of USB ports, master - slave communication modes of I2C ports, and arbitration mechanisms of CAN buses; The application layer is used to provide API interfaces for external application programs or operating systems. The API interfaces can implement operations such as opening, closing, data reading and writing, and parameter configuration for different connected peripheral devices, as well as the calling methods of the APIs and parameter passing rules, etc.

[0021] In a second aspect, the present invention also provides a ginuc bus expansion method, which is applied to the ginuc bus expansion system as described in the above - mentioned solution. The ginuc bus expansion method includes the following steps: S1: When an external device is connected to the ginuc bus integration interface, the processor identifies the device type by parsing the descriptors of USB devices, detecting the addresses of I2C devices, and judging the identifiers of CAN devices; S2: Allocate memory space, set communication parameters, and load the driver programs corresponding to the devices. By designing the integrated interface and unified high - level protocol, devices of different buses can be directly connected to the same interface and communicate and cooperate under the unified protocol framework, making the data exchange and control instruction transmission between devices more efficient and convenient. System integrators can more easily build complex electronic systems, reducing the technical threshold and cost of system integration, improving the performance and reliability of the entire system, and reducing potential faults caused by interface incompatibility and protocol conversion.

[0022] As a further solution of the present invention: The driver program includes a program to avoid hot - plugging phenomena, ensuring the stability and reliability of the system when devices are connected or removed.

[0023] As a further solution of the present invention: The communication parameters include baud rate, data bits, and stop bits.

[0024] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. By integrating multiple bus interfaces into a unified physical interface, the present invention reduces the complexity and repetitive labor of hardware design, realizes efficient connection and timely communication between different types of electronic devices, and can develop software protocols based on a unified protocol stack, greatly simplifying the development process and difficulty. During the maintenance stage of the device.

[0025] 2. By setting the unity of the interface and protocol, the present invention makes fault troubleshooting and repair easier, reduces after-sales maintenance costs and the difficulty of technical support, improves the maintainability of the device and customer satisfaction, can flexibly allocate bus bandwidth and transmission resources according to the needs and data characteristics of different devices, realizes efficient transmission and real-time processing of data, and is suitable for complex systems for real-time control. Through reasonable scheduling, it can simultaneously meet the communication requirements of high-speed data devices and real-time control devices on the same bus, improve the data transmission efficiency and overall performance of the system, is conducive to optimizing the bus space, strengthening the integration of the communication bus, enhancing the flexibility and scalability of the system by simplifying the cooperation and interoperability between devices, and at the same time reducing the development and maintenance costs of the bus.

[0026] 3. By integrating the GPIO interface, I2C bus, Network bus, USB interface, CAN bus, and COM bus into one interface, the present invention can greatly simplify the interface design of the device, reduce the layout area of interface-related components on the circuit board, contribute to the realization of miniaturization and lightweight design of the device, improve the portability and aesthetics of the device, while reducing the hardware manufacturing cost, reducing the demand for hardware resources such as interface connectors and wiring, and can enhance the adaptability to miniaturized and portable devices and application scenarios with strict requirements for space layout, such as smart home gateways and wearable devices.

[0027] 4. By connecting various types of devices to the same interface, whether it is simple sensors such as I2C bus and GPIO interface, high-speed data transmission devices such as USB storage devices and high-speed network cameras, or CAN bus and COM bus devices in the industrial control field, they can all be flexibly connected. At the same time, new functional modules or different types of external devices can be added by software configuration and / or adjustment of some hardware, without the need for large-scale re-design of the entire interface architecture of the device, greatly shortening the product R & D cycle and time to market, and enhancing the competitiveness of the product in the market.

[0028] 5. By designing an integrated interface and a unified high-level protocol, the present invention enables devices of different buses to be directly connected to the same interface and communicate and cooperate under the unified protocol framework. This makes the data exchange and control instruction transmission between devices more efficient and convenient. System integrators can more easily build complex electronic systems, reducing the technical threshold and cost of system integration, improving the performance and reliability of the entire system, and reducing potential faults caused by interface incompatibility and protocol conversion.

[0029] 6. By integrating multiple bus interfaces, the present invention allows hardware developers to focus on a set of interface designs, and software developers can develop application programs based on a unified protocol stack, reducing repetitive labor and technical complexity in the development process. During the maintenance stage of the device, the unity of the interface and protocol can be adjusted, simplifying the steps of fault troubleshooting and repair, and greatly reducing the after-sales maintenance cost and technical support difficulty. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 is a schematic diagram of the system architecture of the present invention including a ginuc bus interface; Figure 2 is a logic block diagram of the signal conversion module of the present invention; Figure 3 is a schematic diagram of the first application of the ginuc bus interface of the present invention; Figure 4 is a schematic diagram of the second application of the ginuc bus interface of the present invention.

[0031] In the figure: 1. Processor; 2. Interface module; 3. Ginuc bus integrated interface. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0032] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0033] In the first aspect, the present invention provides a ginuc bus expansion system applied to expansion devices. The ginuc bus expansion method and system include a processor 1, an interface module 2, and a ginuc bus integrated interface 3 fixed on a PCB board; a signal conversion circuit is integrated on the processor 1, and the signal conversion circuit is used to switch the electrical signals connecting the transceiver and / or the controller.

[0034] The interface module 2 is electrically connected to the interface pins of the processor 1. The interface module 2 includes a controller interface, a communication interface, a power interface, and a peripheral device interface. The interface module 2 is used to receive instructions input by each interface; The ginuc bus integration interface 3 is integrated at the signal input / output end of the processor 1. The ginuc bus integration interface 3 includes GPIO ports, I2C ports, Network ports, USB ports, CAN buses, and COM buses, allowing various types of devices to access through the same interface.

[0035] By applying the ginuc bus integration interface to the extended function module and cooperating with various physical ports and bus forms, it is possible to unify the communication standard of the ginuc bus integration interface, realize the fast and flexible interface connection function and the expansion function of the bus module. Device manufacturers or users can flexibly select and connect devices of different buses according to specific needs, without reserving specific interfaces separately for each new device or new function, and only need to perform corresponding configuration and driver updates at the software level to achieve the expansion and upgrade of device functions, greatly improving the flexibility and scalability of the system, and being able to better adapt to the changing market demands and diverse application scenarios. By integrating multiple bus interfaces into a unified physical interface, it reduces the complexity and repetitive labor of hardware design, realizes the efficient connection and timely communication between different types of electronic devices, and can develop software protocols based on a unified protocol stack, greatly simplifying the development process and difficulty. During the maintenance stage of the device.

[0036] The GPIO ports, I2C ports, Network ports, USB ports, CAN buses, and COM buses are connected to the pins of the processor using POGO PIN connectors, which is beneficial to enhancing the reliability of the electrical connection between the ginuc bus integration interfaces. The definition of the ginuc bus integration interface is as follows;

[0037] Among them, Geographic Address Lines, used to distinguish slot numbers, are represented in 3 states, namely "1", "0", "Z", and can represent a total of 27 slots, that is, 27 total function module identifications.

[0038] By setting the unity of interfaces and protocols, it makes fault troubleshooting and repair easier, reduces after-sales maintenance costs and the difficulty of technical support, improves the maintainability of equipment and customer satisfaction. It can flexibly allocate bus bandwidth and transmission resources according to the requirements and data characteristics of different devices, achieve efficient data transmission and real-time processing, and facilitate complex systems for real-time control. Through reasonable scheduling, it can simultaneously meet the communication requirements of high-speed data devices and real-time control devices on the same bus, improve the data transmission efficiency and overall performance of the system, and is conducive to optimizing the bus space, strengthening the integration of communication buses, enhancing the flexibility and scalability of the system by simplifying device collaboration and interoperability, while reducing the development and maintenance costs of the bus.

[0039] The bus protocol architecture module, and the bus protocol architecture module includes a physical layer, a data link layer, and an application layer.

[0040] Preferably, the signal conversion circuit is a double-pole double-throw switch. The signal conversion circuit includes a first switch, a second switch, and an enable terminal. The first switch includes a first high-level channel and a second high-level channel. The second switch includes a first low-level channel and a second low-level channel. The first switch and the second switch simultaneously select one corresponding level channel to form a logic signal. The output terminal D+ of the first switch can be connected to the HSD1+ channel or the KSD2+ channel. At the same time, the output terminal D- of the second switch can be connected to the HSD1- channel or the KSD2- channel.

[0041] Preferably, the processor is a Loongson IB200 chip.

[0042] Preferably, the controller interface includes CAN interface pins, LCD interface pins, USB interface pins, and I2C interface pins. By integrating GPIO interfaces, I2C buses, Network buses, USB interfaces, CAN buses, and COM buses into one interface, it can greatly simplify the interface design of the device, reduce the layout area of interface-related components on the circuit board, contribute to the miniaturization and lightweight design of the device, improve the portability and aesthetics of the device, while reducing the hardware manufacturing cost, reducing the demand for hardware resources such as interface connectors and wiring, and strengthening the adaptability to miniaturized and portable devices and application scenarios with strict requirements for space layout, such as smart home gateways and wearable devices.

[0043] By designing integrated interfaces and unified high-level protocols, devices on different buses can be directly connected to the same interface and communicate and cooperate under a unified protocol framework. It makes data exchange and control instruction transmission between devices more efficient and convenient. System integrators can more easily build complex electronic systems, reduce the technical threshold and cost of system integration, improve the performance and reliability of the entire system, and reduce the potential for faults caused by interface incompatibility and protocol conversion.

[0044] The CAN interface pins are used to further connect external devices by connecting to the CAN bus and / or the COM bus. The COM bus is an interface for data transmission between a computer and external devices. It uses serial communication, that is, data is transmitted bit by bit on a communication line, which can enhance the adaptability to long-distance data transmission.

[0045] By connecting various types of devices to the same interface, whether it is simple sensors such as I2C bus, GPIO interface, high-speed data transmission devices such as USB storage devices, high-speed network cameras, or CAN bus and COM bus devices in the industrial control field, they can be flexibly accessed. At the same time, new functional modules can be added or different types of external devices can be connected by software configuration and / or adjustment of some hardware, without large-scale re-design of the entire device's interface architecture, greatly shortening the product R & D cycle and time to market, and enhancing the competitiveness of the product in the market.

[0046] External devices include but are not limited to microcontrollers, sensors, and actuators, so as to achieve efficient and stable data transmission in a harsh electrical environment and enhance the anti-interference ability of data transmission; The LCD interface pins are used for electrical connection to the execution module; The USB interface pins are used to simplify the connection process between a computer and external devices by connecting to a USB port, enabling hot plugging of external devices. External devices include but are not limited to mice, keyboards, printers, and external hard drives; The I2C interface pins are used to further connect to an environmental sensor module for short-distance communication by connecting to an I2C port.

[0047] Preferably, the CAN interface is electrically connected to an eight-segment digital tube. The eight-segment digital tube consists of eight light-emitting diodes, and different numbers or letters are displayed by lighting some of the eight light-emitting diodes.

[0048] Preferably, the communication interface includes an asynchronous communication interface UART and a NET interface. The power interface is electrically connected to a switch, and the switch is used to control the power on and off of the processor 1.

[0049] Preferably, the interface module further includes an audio interface, an analog-to-digital / digital-to-analog converter interface, and a button module.

[0050] Preferably, the audio interface is electrically connected to a buzzer, and the analog-to-digital / digital-to-analog converter interface is an ADC / DAC interface.

[0051] Preferably, the GPIO port is a signal input / output pin for an external device to connect to the processor 1. When the GPIO port of the processor 1 is in the input state, the processor 1 can read the status of the external device through the GPIO port. When the GPIO port of the processor 1 is in the output state, the processor 1 can control the operation of the external device through the GPIO port; The Network network port is used to connect multiple computers and external devices of computers in different geographical locations. By connecting computers and external devices of computers in different geographical locations through the Network network port, resource sharing and information transfer between computer systems can be realized under the management and coordination of a network operating system, network management software, and network communication protocols. For example, by connecting the computers of different employees in a company to the internal local area network LAN - Local Area Network of the company respectively, employees in the company can share resources such as files and printers, which is convenient for work communication.

[0052] Preferably, the physical layer is compatible with the electrical signal transmission standards of the GPIO port, I2C port, Network network port, USB port, CAN bus, and COM bus, ensuring that multiple signals can be stably transmitted on the same interface without interference with each other; The data link layer is used to unify the communication mechanisms of the buses on each physical layer, enabling the physical layer to initiate data transmission requests in a consistent manner. For example, integrating different transmission modes of the USB port, master - slave communication mode of the I2C port, and arbitration mechanism of the CAN bus; The application layer is used to provide API interfaces for external application programs or operating systems. The API interfaces can implement operations such as opening, closing, data reading and writing, and parameter configuration of different connected peripheral devices, as well as the calling methods of the APIs, parameter passing rules, etc.

[0053] Example 1: Connect the intelligent door lock to the CAN pin of the ginuc bus integration interface 3 through the CAN bus. The CAN controller inside the door lock control unit communicates with the CAN bus of the processor to realize the functions of door lock switch control and status feedback.

[0054] Example 2: Adopt an environmental sensor module, such as a smoke sensor, temperature sensor, and humidity sensor, which can be connected to the I2C pin of the ginuc bus integration interface 3 through the I2C port, making the environmental sensor module a slave device of the I2C port. The processor regularly reads the data collected by the smoke sensor, temperature sensor, and humidity sensor to automatically control air - conditioning or fresh - air system devices according to the environmental situation.

[0055] Example 3: Connect the only camera to the USB pins of the ginuc bus integration interface 3 through the USB port. The camera transmits the collected video data to the central control device. The processor can receive and process the video data, store it, or upload it to the cloud server through the communication interface for the user to remotely view the content captured by the camera.

[0056] Embodiment 4: The processor is connected to the home router through the Network network port to achieve connection to the Internet, so as to receive remote control instructions from users and upload device status information.

[0057] The present invention also provides a ginuc bus expansion method. Using the ginuc bus expansion system in the above solution, the ginuc bus expansion method includes the following steps: S1: When an external device is connected to the ginuc bus integration interface 3, the processor identifies the device type by parsing the descriptors of USB devices, detecting the I2C device address, and judging the CAN device identifier; specifically, after the processor starts, it first initializes the hardware and software resources of the integrated ginuc bus interface, including each bus controller and protocol stack, and then performs device scanning and identification. Determine the device types of connected intelligent door locks, environmental sensors, intelligent cameras, etc. through the above device identification process, and complete corresponding configurations.

[0058] S2: Allocate memory space, set communication parameters, and load the drivers corresponding to the devices.

[0059] Preferably, the driver includes a program to avoid hot plugging phenomena, ensuring the stability and reliability of the system when devices are connected or removed. The application program runs on the processor and realizes the control and data interaction of different devices through unified API functions. For example, call the data reading function of the I2C port every once in a while to obtain environmental sensor data, judge whether the air conditioner settings need to be adjusted according to the data, and if so, send a control command to the intelligent door lock through the CAN bus, and at the same time upload information such as environmental data and door lock status to the cloud server through the network port. When the user sends a remote control instruction (such as turning on the camera to view the situation at home) through the mobile application, the cloud server forwards the instruction to the central control device, and the central control device sends it to the intelligent camera through the USB interface.

[0060] Preferably, the communication parameters include baud rate, data bits, and stop bits.

[0061] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention, according to the technical solution of the present invention and its inventive concept, makes equivalent substitutions or changes, and should be covered by the protection scope of the present invention.

Claims

1. A ginuc bus expansion system, characterized in that: Applied to expansion equipment, the ginuc bus expansion method and system include: A processor fixed on the PCB board, the processor is integrated with a signal conversion circuit, the signal conversion circuit is used to switch the electrical signal connected to the transceiver and / or the controller; An interface module, the interface module is electrically connected to the interface pins of the processor, the interface module includes a controller interface, a communication interface, a power interface and a peripheral device interface, and the interface module is used to receive instructions input by each interface; ginuc bus integration interface, the ginuc bus integration interface is integrated in the signal input / output end of the processor, the ginuc bus integration interface includes GPIO port, I2C port, Network port, USB port, CAN bus and COM bus, allowing various types of devices to access through the same interface; A bus protocol architecture module, wherein the bus protocol architecture module is integrated into the processor, and the bus protocol architecture module includes a physical layer, a data link layer and an application layer.

2. The ginuc bus expansion system according to claim 1, characterized in that: The signal conversion circuit is a double-pole double-throw switch, which includes a first switch, a second switch and an enable terminal. The first switch includes a first high-level channel and a second high-level channel, and the second switch includes a first low-level channel and a second low-level channel. The first switch and the second switch simultaneously select a corresponding level channel to form a logic signal.

3. The ginuc bus expansion system according to claim 1, characterized in that: The controller interface includes CAN interface pins, LCD interface pins, USB interface pins and I2C interface pins; The CAN interface pins are used to further connect external devices by connecting to the CAN bus and / or COM bus; The LCD interface pins are used to electrically connect the execution module; The USB interface pins are used to simplify the process of connecting computers to external devices by connecting USB ports; The I2C interface pins are used to connect through the I2C port.

4. The ginuc bus expansion system according to claim 3, characterized in that: The CAN interface is electrically connected to an eight-segment digital tube, which is eight light-emitting diodes.

5. The ginuc bus expansion system according to claim 4, characterized in that: The environmental sensor module includes any one or a combination of smoke sensors, temperature sensors, and humidity sensors.

6. The ginuc bus expansion system according to claim 5, characterized in that: The communication interface includes an asynchronous communication interface UART and a NET interface, and the power interface is electrically connected to a switch, which is used to control the power on and off of the processor.

7. The ginuc bus expansion system according to claim 6, characterized in that: The interface module also includes an audio interface, an analog-to-digital / analog-to-digital converter interface and a key module. The audio interface is electrically connected to a buzzer, and the analog-to-digital / analog-to-digital converter interface is an ADC / DAC interface.

8. The ginuc bus expansion system according to claim 7, characterized in that: The GPIO port is a signal input / output pin for connecting an external device to the processor; Network ports are used to connect multiple computers in different geographical locations and external devices of the computer.

9. The ginuc bus expansion system according to claim 8, characterized in that: The physical layer is compatible with the electrical signal transmission standards of GPIO port, I2C port, Network port, USB port, CAN bus and COM bus; The data link layer is used to unify the communication mechanism of the buses on each physical layer, so that the physical layer can initiate data transmission requests in a consistent manner; The application layer is used to provide an API interface to external applications or operating systems.

10. A ginuc bus expansion method, characterized in that: Applied to the GINC bus extension system according to any one of claims 1 to 9, the GINC bus extension method comprises: When an external device is connected to the GINUC bus integration interface, the processor identifies the device type by parsing the USB device descriptor, detecting the I2C device address, and determining the CAN device identifier; Allocate memory space; Set communication parameters; Load the driver of the corresponding device, and by accessing the integrated interface and unified high-level protocol, devices on different buses can be directly connected to the same interface and communicate and work together under a unified protocol framework.