CN111447127B - Bus multiplexing method and system - Google Patents

Bus multiplexing method and system Download PDF

Info

Publication number
CN111447127B
CN111447127B CN202010167787.6A CN202010167787A CN111447127B CN 111447127 B CN111447127 B CN 111447127B CN 202010167787 A CN202010167787 A CN 202010167787A CN 111447127 B CN111447127 B CN 111447127B
Authority
CN
China
Prior art keywords
bus
pin
instruction
communication
controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010167787.6A
Other languages
Chinese (zh)
Other versions
CN111447127A (en
Inventor
贾槐真
张玉
宋昌建
单华锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinmao Green Building Technology Co Ltd
Original Assignee
Jinmao Green Building Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jinmao Green Building Technology Co Ltd filed Critical Jinmao Green Building Technology Co Ltd
Priority to CN202010167787.6A priority Critical patent/CN111447127B/en
Publication of CN111447127A publication Critical patent/CN111447127A/en
Application granted granted Critical
Publication of CN111447127B publication Critical patent/CN111447127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40013Details regarding a bus controller

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a bus multiplexing method and a system, which relate to the field of intelligent equipment, wherein the method comprises the following steps: the method comprises the following steps that a JM PIN device host receives a control instruction sent by a gateway, detects whether a bus is idle according to the control instruction, and sends a disconnection instruction to a bus coupling controller; the bus coupling controller executes a disconnection instruction, disconnects the physical connection of the first intelligent device and releases a bus occupied by the first intelligent device; the JM PIN equipment host sends a bus switching instruction to a bus coupling controller; the bus coupling controller closes the connection with the second intelligent device through the second bus coupler, so that the second intelligent device occupies the bus. Aiming at intelligent equipment using different bus protocols, the invention does not need to use various corresponding bus interfaces independently, does not need to arrange a plurality of buses, and does not need to manually switch the connection of different intelligent equipment, the whole operation is automatically completed by the equipment, and the invention is simple and convenient, and greatly improves the use feeling of users.

Description

Bus multiplexing method and system
Technical Field
The invention relates to the field of intelligent equipment, in particular to a bus multiplexing method and a bus multiplexing system.
Background
At present, with the continuous development of smart homes, household wall-mounted intelligent equipment is smaller and smaller, and is lighter and thinner, so that a new challenge is provided for a traditional bus interface, meanwhile, the increasing multi-system docking requirements of the intelligent equipment industry are increased, the complexity of the system is improved, and higher requirements are provided for the installation space of the bus interface which is originally in a position of catching an elbow.
Under present traditional mode, the production of intelligent equipment is in order to adapt to many systems, multi-functional demand, and the intelligent equipment adopts different buses more, and different bus interfaces produce respectively, but because the single batch shipment volume of front-loading is less, causes intelligent equipment overall cost high, and the bus interface model is many, manages the difficulty.
The intelligent devices using the same bus protocol are switched to meet the requirement of multiplexing the same bus, the same bus interface can be used, the numerical values of the number of communication lines of the bus interface, the reference voltage and the like cannot be changed naturally, and the use scenes of a plurality of intelligent devices using various bus protocols are limited.
When a plurality of intelligent devices with different bus protocols are switched, not only are a plurality of corresponding bus interfaces required, but also a plurality of buses must be arranged, a power supply module for providing a plurality of communication voltages and reference levels is also required, and finally, different intelligent devices can be switched by manual operation.
Disclosure of Invention
In view of the above problems, the present invention provides a method and system for bus multiplexing, which solves the above problems.
In order to solve the above problem, an embodiment of the present invention provides a bus multiplexing method, which is applied to an intelligent home system, where the intelligent home system includes: the intelligent device comprises a JM PIN device host, a gateway, a bus coupling controller, a first bus coupler, a second bus coupler, a first intelligent device and a second intelligent device, wherein the JM PIN device host is respectively connected with the gateway and the bus coupling controller; the method comprises the following steps:
the JM PIN device host receives a control instruction sent by the gateway, and detects whether the bus is idle according to the control instruction, wherein the control instruction is used for indicating the JM PIN device host to switch the first device occupying the bus to the second intelligent device occupying the bus;
under the condition that the bus is idle, the JM PIN device host sends a disconnection instruction to the bus coupling controller;
the bus coupling controller executes the disconnection instruction through the first bus coupler, disconnects the physical connection between the first intelligent device and the bus coupling controller, and releases a bus occupied by the first intelligent device;
the JM PIN device host sends the bus switching instruction to the bus coupling controller;
and the bus coupling controller responds to the bus switching instruction, closes the connection with the second intelligent equipment through the second bus coupler, enables the second intelligent equipment to occupy the bus, and further enables the JM PIN equipment host to communicate with the second intelligent equipment through the bus.
Optionally, the JM PIN device host receives the control instruction and also receives a parameter sent by the gateway, where the parameter is a parameter suitable for the second smart device to occupy the bus for communication, and the parameter includes: bus parameter and power parameter, bus coupling controller embeds there is: a protocol parameter, where the protocol parameter is a voltage value, a level value, and a parameter corresponding to an identifier of a communication PIN, where the first smart device and the second smart device occupy the bus for communication, and the JM PIN device host includes: communication stitch, power module, JM PIN equipment host computer to bus coupling controller sends the bus and switches over the instruction, includes:
the bus coupling controller sends disconnection confirming information to the JM PIN device host;
after receiving the disconnection confirming information, the JM PIN device host adjusts the communication voltage and the reference level output to the bus coupling controller through the power module according to the power parameters, and the communication voltage and the reference level are output through the power PINs;
the JM PIN equipment host determines an identifier of a communication PIN communicating with the bus coupling controller according to the bus parameters, and sends the identifier to the bus coupling controller through the communication PIN corresponding to the identifier;
the bus coupling controller checks the received communication voltage and reference level output by the JM PIN device host and the sent identification of the communication PINs by combining the protocol parameters;
under the condition of no error in check, the bus coupling controller sends parameter error-free information to the JM PIN equipment host;
and the JM PIN equipment host receives the parameter error-free information and sends a bus switching instruction to the bus coupling controller.
Optionally, the checking by the bus coupling controller according to the received communication voltage and the reference level output by the JM PIN device host and the sent identifier of the communication PIN in combination with the protocol parameter includes:
the bus coupling controller receives a parameter checking instruction sent by the JM PIN device host, wherein the parameter checking instruction is used for instructing the bus coupling controller to check the communication voltage, the reference level and the identification of the communication PIN output by the JM PIN device by adopting the parameters corresponding to the voltage value, the level value and the identification of the communication PIN, which are required by the second intelligent device to occupy the bus for communication, in the protocol parameters;
and the bus coupling controller checks whether the received communication voltage and the reference level value output by the JM PIN device and the sent identification of the communication PIN are consistent with the voltage value and the level value which are required by the second intelligent device for occupying the bus to communicate and the identification of the communication PIN in the protocol parameters.
Optionally, the executing, by the bus coupling controller, the disconnection instruction through the first bus coupler, disconnecting the physical connection between the first smart device and the bus coupling controller, and releasing the bus occupied by the first smart device includes:
the bus coupling controller receives the disconnection instruction and forwards the disconnection instruction to the first bus coupler;
the first bus coupler receives the disconnect instruction;
the first bus coupler executes the disconnection instruction, and disconnects the first bus coupler from the first intelligent device, so that the first intelligent device is disconnected from the bus coupling controller, and a bus occupied by the first intelligent device is released;
the bus coupling controller closes the connection with the second intelligent device through the second bus coupler in response to the bus switching instruction, so that the second intelligent device occupies the bus, and further the JM PIN device host communicates with the second intelligent device through the bus, including:
the bus coupling controller sends a closing instruction to the second bus coupler in response to the bus switching instruction;
the second bus coupler receives a close command;
the second bus coupler executes the closing instruction, and closes the connection between the second bus coupler and the second intelligent device, so that the second intelligent device is connected with the bus coupling controller;
the bus coupling controller sends connection confirmation information to the JM PIN equipment host;
and after receiving the connection confirmation information, the JM PIN device host communicates with the second intelligent device through the bus.
Optionally, the gateway is connected to a cloud platform, and the gateway includes: the method comprises the following steps that before the JM PIN device host receives the control instruction and the parameters sent by the gateway, the method comprises the following steps:
the gateway receives a master control instruction sent by the cloud platform, wherein the master control instruction is a comprehensive instruction used for completing the operation of switching the first intelligent equipment which is communicated with the JM PIN equipment host machine to the second intelligent equipment;
the gateway generates and packages the control instruction and the parameters according to the master control instruction and the intelligent home scheme;
and the gateway sends the packed control instruction and the packed parameters to the JM PIN device host.
Optionally, the gateway generates the control instruction and the parameter according to the master control instruction in combination with the smart home solution, including:
when the master control instruction is the operation of switching the first intelligent device communicating with the JM PIN device host to the second intelligent device, the gateway determines that the working data of the second intelligent device in the household scheme is different from the working data of the first intelligent device;
and the gateway generates the control instruction and the parameters according to the working data of the second intelligent device.
Optionally, the JM PIN device host includes: the bus detection module, the JM PIN device host detects whether the bus is idle according to the control instruction, including:
the JM PIN device host calls the bus detection module to detect whether the previous instruction is executed or not according to the control instruction;
the JM PIN device host calls the bus detection module to detect whether data transmission exists on the bus or not according to the control instruction;
and under the condition that the previous instruction is executed and no data is transmitted on the bus, the JM PIN device host determines that the bus is idle.
The embodiment of the invention also provides a bus multiplexing system, which comprises: gateway, JM PIN host, bus coupling controller, first bus coupler, second bus coupler, first smart machine and second smart machine, JM PIN host includes: the core board, the JM PIN controller, the communication PIN, the power supply PIN and the power supply module; the gateway includes: the control instruction sending module and the control instruction generating module are connected with the control module; the bus coupling controller includes: an instruction parameter checking module; the first bus coupler includes: a first execution module; the second bus coupler includes: a second execution module;
the core board is respectively connected with the control instruction sending module and the JM PIN controller, the JM PIN controller is respectively connected with the communication PIN and the power supply module, the power supply module is connected with the power supply PIN, and the communication PIN and the power supply PIN are both connected with the instruction parameter checking module;
the instruction parameter checking module is respectively connected with the first execution module and the second execution module, the first execution module is connected with the first intelligent device, the second execution module is connected with the second intelligent device, and the bus coupling controller, the first bus coupler, the second bus coupler, the first intelligent device and the second intelligent device are communicated with each other on the basis of buses;
the JM PIN controller receives a control instruction sent by the control instruction sending module through the core board, and detects whether the bus is idle according to the control instruction, wherein the control instruction is used for indicating the JM PIN controller to switch the first equipment occupying the bus into the second intelligent equipment occupying the bus;
under the condition that the bus is idle, the JM PIN controller sends a disconnection instruction to the instruction parameter checking module;
the instruction parameter checking module executes the disconnection instruction through the first execution module, disconnects the physical connection between the first intelligent device and the bus coupling controller, and releases a bus occupied by the first intelligent device;
the JM PIN controller sends the bus switching instruction to the instruction parameter checking module;
the instruction parameter checking module responds to the bus switching instruction, and the second execution module is closed to be connected with the second intelligent device, so that the second intelligent device occupies the bus, and the core board is communicated with the second intelligent device through the bus.
Optionally, the JM PIN controller receives the control instruction and also receives a parameter sent by the control instruction sending module through the core board, where the parameter is a parameter suitable for the second smart device to occupy the bus for communication, and the parameter includes: bus parameters and power supply parameters;
the instruction parameter checking module is internally provided with: the protocol parameters are parameters corresponding to voltage values, level values and identification of communication pins, wherein the voltage values and the level values are required by the first intelligent device and the second intelligent device for respectively occupying the bus for communication;
the instruction parameter checking module sends disconnection confirming information to the JM PIN controller;
after receiving the disconnection confirming information, the JM PIN controller adjusts the communication voltage and the reference level output to the instruction parameter checking module through the power module according to the power parameters, and the communication voltage and the reference level are output through the power PINs;
the JM PIN controller determines an identifier of a communication PIN communicating with the instruction parameter checking module according to the bus parameters, and sends the identifier to the instruction parameter checking module through the communication PIN corresponding to the identifier;
the instruction parameter checking module checks the received communication voltage and reference level output by the JM PIN equipment host and the sent identification of the communication PINs by combining the protocol parameters;
under the condition of no error, the instruction parameter checking module sends parameter no-error information to the JM PIN controller;
and the JM PIN controller receives the parameter error-free information and sends a bus switching instruction to the instruction parameter checking module.
Optionally, the instruction parameter checking module receives a parameter checking instruction sent by the JM PIN device host, where the parameter checking instruction is used to instruct the instruction parameter checking module to check the communication voltage, the reference level, and the identifier of the communication PIN output by the JM PIN device by using a parameter corresponding to a voltage value, a level value, and an identifier of the communication PIN, where the parameter is required by the second intelligent device to occupy the bus for communication in the protocol parameter;
and the instruction parameter checking module checks whether the received communication voltage and the reference level value output by the JM PIN device and the sent identification of the communication PIN are consistent with the voltage value, the level value and the identification of the communication PIN which are required by the protocol parameter and correspond to the bus occupied by the second intelligent device for communication.
Optionally, the instruction parameter checking module receives the disconnection instruction and forwards the disconnection instruction to the first execution module;
the first execution module receives the disconnection instruction;
the first execution module executes the disconnection instruction, disconnects the connection between the first execution module and the first intelligent device, disconnects the connection between the first intelligent device and the bus coupling controller, and releases a bus occupied by the first intelligent device;
the instruction parameter checking module responds to the bus switching instruction and sends a closing instruction to the second execution module;
the second execution module receives a closing instruction;
the execution module executes the closing instruction, and closes the connection between the execution module and the second intelligent device, so that the second intelligent device is connected with the bus coupling controller;
the instruction parameter checking module sends connection confirmation information to the JM PIN controller;
and after receiving the connection confirmation information, the JM PIN controller enables the core board to communicate with the second intelligent device through the bus.
Optionally, the gateway further comprises: the intelligent home scheme is a scheme consisting of all data for controlling the first intelligent equipment and the second intelligent equipment to work;
the control instruction generating module receives a master control instruction sent by the cloud platform, wherein the master control instruction is a comprehensive instruction used for completing the operation of switching the first intelligent equipment which is communicated with the JM PIN equipment host machine to the second intelligent equipment;
the control instruction generation module generates the control instruction and the parameters according to the master control instruction and the intelligent home scheme and packages the control instruction and the parameters;
and the control instruction sending module sends the packed control instruction and the packed parameters to the JM PIN device host.
Optionally, in a case that the master control instruction is an operation of switching the first smart device communicating with the JM PIN device host to the second smart device, the control instruction generating module is specifically configured to:
determining that the working data of the second intelligent device is different from the working data of the first intelligent device in the household scheme;
and generating the control instruction and the parameter according to the working data of the second intelligent device.
Optionally, the JM PIN device host includes: a bus detection module;
the JM PIN controller calls the bus detection module to detect whether the previous instruction is executed or not according to the control instruction;
the JM PIN controller calls the bus detection module to detect whether data transmission exists on the bus or not according to the control instruction;
the JM PIN controller determines that the bus is idle when a previous instruction is executed and there is no data transfer on the bus.
By adopting the bus multiplexing method provided by the invention, under the condition that the first intelligent equipment and the second intelligent equipment communicate based on different bus protocols but need to use the same bus, the JM PIN equipment host firstly detects whether the bus is idle, and sends a disconnection instruction to the bus coupling controller under the condition that the bus is idle, so that the bus coupling controller disconnects the physical connection between the first intelligent equipment and the bus coupling controller through the first bus coupler, and the bus occupied by the first intelligent equipment is released. And then, the JM PIN device host sends a bus switching instruction to the bus coupling controller so that the bus coupling controller is closed to be connected with the second intelligent device through the second bus coupler, and therefore the second intelligent device occupies the bus to communicate with the JM PIN device host.
Aiming at intelligent equipment using different bus protocols, the invention does not need to use various corresponding bus interfaces independently, does not need to arrange a plurality of buses, and does not need to manually switch the connection of different intelligent equipment, the whole operation is automatically completed by the equipment, and the invention is simple and convenient, and greatly improves the use feeling of users.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a schematic structural diagram of a bus multiplexing system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of bus multiplexing according to an embodiment of the invention;
fig. 3 is a block diagram of a bus multiplexing system according to an embodiment of the invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below. It should be understood that the specific embodiments described herein are merely illustrative of the invention, but do not limit the invention to only some, but not all embodiments.
In order to better explain the scheme of the present invention, a bus multiplexing system is introduced first, and referring to fig. 1, a schematic structural diagram of the bus multiplexing system according to the embodiment of the present invention is shown, where the bus multiplexing system includes: the intelligent equipment comprises a gateway, a JM PIN equipment host, a JM PIN embedded part, first intelligent equipment and second intelligent equipment, wherein the first intelligent equipment and the second intelligent equipment respectively use different bus protocols, and because communication voltage, reference level, communication PINs and related parameter settings required by the different bus protocols are possibly different, the intelligent equipment corresponding to the different bus protocols needs to be changed into parameters meeting communication of the intelligent equipment when occupying the same bus for communication.
Generally, after the bus multiplexing system is delivered to a user, the user can set and control the whole bus multiplexing system through a related APP or a dedicated control terminal or voice, all operations performed based on the related APP or the dedicated control terminal need to pass through a cloud platform, the cloud platform receives a related instruction, the related instruction is issued to a gateway in the local bus multiplexing system of the user after being analyzed and converted, and because communication between the cloud platform and the gateway is different from communication modes and protocols of the gateway and other devices in the bus multiplexing system, the related instruction issued by the cloud platform needs to be analyzed and converted in the gateway and then can be sent to other devices for execution.
For example: assuming that the first intelligent device is a cinema device and the second intelligent device is a karaoke projection device, when the current user watches a movie by using the cinema device, after the movie is finished, the user wants K songs, complex rewiring is not needed, cinema equipment is closed, projection K song equipment is started, automatic switching is only needed to be carried out by using an APP or a control terminal or voice, a switching command is sent to a cloud platform, the cloud platform receives the switching command and analyzes and converts the switching command to form a main control command, the main control command is issued to a gateway in a user local signal system, the main control command is a comprehensive command used for completing switching of cinema equipment which communicates with a PIN JM equipment host machine into projection K song equipment operation, the main control command is analyzed and converted again by the gateway, and the gateway sends related commands and parameters to the JM equipment host machine by combining with an intelligent home scheme configured by the gateway, so that switching of the projection K song equipment is finally completed.
In the embodiment of the invention, the JM PIN device host comprises: nuclear core plate, JM PIN controller, JM PIN communication stitch, JM PIN power stitch, power module, JM PIN built-in fitting includes: the core board is respectively connected with the gateway and the JM PIN controller, the JM PIN controller is respectively connected with the JM PIN communication PIN and the power module, the power module is connected with the JM PIN power PIN, the JM PIN communication PIN and the JM PIN power PIN are both connected with the bus coupling controller, the bus coupling controller is respectively connected with the first bus coupler and the second bus coupler, the first bus coupler is connected with the first intelligent equipment, and the second bus coupler is connected with the second intelligent equipment. The bus coupling controller, the first bus coupler, the second bus coupler, the first intelligent device and the second intelligent device are communicated with each other on the basis of a bus.
Based on the bus multiplexing system, the following explains a bus multiplexing method, and referring to fig. 2, a flowchart of a bus multiplexing method according to an embodiment of the present invention is shown, and is applied to the bus multiplexing system, where the bus multiplexing method specifically includes the following steps:
step 101: and the JM PIN device host receives the control instruction sent by the gateway and detects whether the bus is idle according to the control instruction, wherein the control instruction is used for indicating the JM PIN device host to switch the bus occupied by the first device into the bus occupied by the second intelligent device.
In the embodiment of the present invention, a core board in a JM PIN device host receives a control instruction sent by a gateway and also receives a parameter sent by the gateway, and the control instruction and the parameter sent by the gateway are packed and sent together, so the core board first splits the packet and removes the control instruction and the parameter, where the control instruction is used to instruct a JM PIN controller in the JM PIN device host to complete a comprehensive instruction for switching a bus occupied by a first device to a bus occupied by a second smart device, and after receiving the control instruction, the JM PIN controller finally completes switching of the smart devices according to each set operation step, and the set operation steps basically include:
detecting whether the bus is idle → sending a disconnection instruction if the bus is idle → receiving disconnection information of the first intelligent device → adjusting output parameters and outputting → receiving error-free information of the parameters → sending a bus switching instruction → receiving connection information of the second intelligent device → communicating with the second intelligent device. As will be explained in detail below, further description is omitted.
Before a core board in a JM PIN device host receives a control instruction and parameters sent by a gateway, it can be known from the foregoing that the gateway first receives a master control instruction sent by a cloud platform, and the gateway is configured with an intelligent home solution, where the intelligent home solution is a solution formed by all data for controlling the first intelligent device and the second intelligent device to work, and since two intelligent devices use different bus protocols, communication voltages, reference levels, communication PINs and related parameter (e.g., transmission rate, data encoding mode, data compression format, frame rate, data format, etc.) required by the two intelligent devices during communication may be different, and thus the intelligent home solutions corresponding to the two intelligent devices are different; of course, if there are more than two intelligent devices with different bus protocols multiplexing the same bus, the intelligent home schemes corresponding to the intelligent devices are all configured in the gateway.
After receiving the master control instruction, the gateway generates a comprehensive instruction for switching operation of the intelligent device according to the identification of the intelligent device to be switched (namely the intelligent device to occupy the bus) indicated by the master control instruction and by combining an intelligent household scheme corresponding to the intelligent device: the method comprises the steps of controlling an instruction, generating various parameters for communication of a bus occupied by the intelligent equipment, packaging the parameters and sending the parameters to a core board in a JM PIN equipment host;
after receiving the control instruction and the parameter, the core board needs to split and recombine to obtain the control instruction and the parameter sent by the gateway, and operates according to the preset priority of various instructions, and if the core board is processing or simultaneously receives another instruction, the core board needs to preferentially execute the instruction with high priority according to the priority of the instruction. If the control instruction has high priority, suspending the instruction being processed, or temporarily storing another instruction at the same time, and preferentially sending the control instruction and the parameter to the JM PIN controller; if the instruction being processed, or another instruction, has a high priority, the control instructions and parameters are sent to the JM PIN controller after processing is complete.
After receiving the control instruction and the parameters, the JM PIN controller operates according to the set operation steps, firstly, the bus idle detection is carried out, and the JM PIN controller comprises: and the JM PIN controller calls the bus detection module according to the control instruction to detect whether the previous instruction is executed completely, wherein the previous instruction refers to the previous instruction processed by the JM PIN controller and is not the previous instruction processed by the core board. Meanwhile, a bus detection module is called to detect whether data transmission still exists on the bus, and when a user sends a switching command to the bus multiplexing system to process the step, the first intelligent device may still have data transmission on the bus because the data to be transmitted is large, so that the first intelligent device needs to detect whether data transmission still exists on the bus.
Under the condition that the previous instruction is executed and no data is transmitted on the bus, the JM PIN controller can determine that the bus is in an idle state at the moment and can execute the next operation.
Step 102: in the case of bus idle, the JM PIN device host sends a disconnect command to the bus coupling controller.
In the embodiment of the invention, under the condition that the JM PIN controller determines that the bus is in an idle state, the JM PIN controller sends a disconnection instruction to the bus coupling controller through a JM PIN communication PIN, wherein the disconnection instruction is an instruction for disconnecting the first intelligent device from the bus coupling controller. It should be noted that, at this time, the JM PIN communication PIN, the communication voltage, the level, and other parameters are still used according to the bus communication occupied by the first smart device.
Step 103: and the bus coupling controller executes a disconnection instruction through the first bus coupler, disconnects the physical connection between the first intelligent equipment and the bus coupling controller, and releases the bus occupied by the first intelligent equipment.
In the embodiment of the invention, after the bus coupling controller receives the disconnection instruction sent by the JM PIN controller, the first bus coupler executes the disconnection instruction, so that the physical connection between the first intelligent equipment and the bus coupling controller is disconnected, and the bus occupied by the first intelligent equipment is released. It should be noted that the first bus coupler and the second bus coupler may be optical couplers, and the coupler is small and exquisite in size, high in sensitivity and good in durability, and the coupler is directly controlled by a disconnection instruction of the bus coupling controller to disconnect the physical connection between the intelligent device and the bus coupling controller; certainly, the first bus coupler and the second bus coupler can also be relay devices with automatic control functions, the relay devices are slightly large in size, high in sensitivity (lower than an optical coupler) and not easy to damage, after the relay devices receive disconnection instructions, the microprocessor of the relay devices controls the relay devices to be disconnected according to the disconnection instructions, and physical connection between intelligent equipment and the bus coupling controller is disconnected. Specifically, the method comprises the following steps:
step s 1: the bus coupling controller receives the disconnection command and forwards the disconnection command to the first bus coupler.
In the embodiment of the invention, after the bus coupling controller receives the disconnection instruction, if the bus coupling controller is the optical coupling type first bus coupler, the bus coupling controller executes the disconnection instruction, and the electric signal of the transmitting end of the optical coupling is disconnected, so that the disconnection operation can be completed. If the first bus coupler is automatically controlled, the bus coupling controller forwards the disconnect command to the microprocessor of the first bus coupler.
Step s 2: the first bus coupler receives a disconnect command.
Step s 3: and the first bus coupler executes the disconnection instruction to disconnect the first bus coupler from the first intelligent device, so that the first intelligent device is disconnected from the bus coupling controller, and the bus occupied by the first intelligent device is released.
In the embodiment of the invention, after the microprocessor of the first bus coupler receives the disconnection instruction, the main contact and the normally open auxiliary contact of the relay device are disconnected, so that the disconnection of the physical connection between the microprocessor and the first intelligent device can be realized, namely, the physical connection between the first intelligent device and the bus coupling controller is disconnected, and the first intelligent device can not use the bus to transmit any instruction and data, namely, the bus occupied by the first intelligent device is released.
After the first intelligent device releases the occupied bus, the bus coupling controller sends disconnection confirming information to the JM PIN controller, the JM PIN controller carries out the next operation step only after receiving the information, and otherwise, the JM PIN controller does not carry out the subsequent operation step.
Step 104: the JM PIN device host sends a bus switching instruction to the bus coupling controller.
In the embodiment of the invention, after the first intelligent device is disconnected and the JM PIN controller in the JM PIN device host receives the disconnection confirming information, the JM PIN controller sends a bus switching instruction to the bus coupling controller.
The parameters sent by the gateway and received by the JM PIN controller comprise: bus parameters and power supply parameters, step 104 specifically includes:
step t 1: the bus coupling controller sends a disconnect confirmation message to the JM PIN device host.
Step t 2: after receiving the disconnection confirming information, the JM PIN device host adjusts the communication voltage and the reference level output to the bus coupling controller through the power module according to the power parameters, and the communication voltage and the reference level are output through power PINs.
Step t 3: the JM PIN device host determines the identification of a communication PIN communicating with the bus coupling controller according to the bus parameters, and sends the identification to the bus coupling controller through the communication PIN corresponding to the identification.
In the embodiment of the invention, after the first intelligent device is disconnected, the bus coupling controller sends disconnection confirming information to the JM PIN controller, and after the JM PIN controller receives the disconnection confirming information, the communication voltage and the reference level output to the bus coupling controller are adjusted through the power module according to the power parameter. Naturally, the adjusted communication voltage and reference level need to be output to the bus coupling controller through the power pin.
Meanwhile, the JM PIN controller needs to determine the identifier of the communication PIN communicating with the bus coupling controller according to the bus parameter and send the identifier to the bus coupling controller, it can be understood that the bus parameter is the communication PIN required by the second intelligent device when occupying the bus for communication, and the communication PIN is different from the communication PIN required by the first intelligent device when occupying the bus for communication.
Step t 4: and the bus coupling controller checks the received communication voltage and reference level output by the JM PIN equipment host and the sent identification of the communication PIN by combining protocol parameters.
In the embodiment of the invention, the bus coupling controller is internally provided with: the protocol parameters are parameters corresponding to voltage values, level values and identification of communication pins required by the first intelligent device and the second intelligent device to respectively occupy the bus for communication, that is, the bus coupling controller stores the voltage values, the level values and the identification of the communication pins required by the two intelligent devices to respectively occupy the bus for communication, so that the actual voltage, the level and the identification can be checked according to the actual values and the identification sent by the communication pins after the actual voltage, level and identification are received.
For example: the voltage value required by the first intelligent device for occupying the bus to communicate is 12V, the level value is 1, and the identification of the communication pins is 1, 2 and 5; the voltage value required by the second intelligent device for occupying the bus to communicate is 24V, the level value is 2, and the identification of the communication pins is 1, 2, 6 and 8; then the JM PIN controller adjusts the communication voltage to be 24V and the reference level to be 2 through the power module, outputs the communication voltage to the bus coupling controller through the power PINs, transmits respective identifications to the bus coupling controller through the communication PINs with the identifications 1, 2, 6 and 8, stores voltage values, level values and identifications of the communication PINs, required by the second intelligent equipment for occupying the buses for communication, in the bus coupling controller, checks, and checks whether the actually received parameters are consistent with the stored parameters.
If the communication PINs with the identifiers of 1, 5, 6 and 8 transmit the identifiers of 1, 2, 6 and 8 to the bus coupling controller, although the identifiers received by the bus coupling controller are consistent, the communication PINs transmitting the identifiers are wrong, the bus coupling controller also considers that the check parameters are wrong, the bus coupling controller feeds back information to the JM PIN controller no matter the check parameters are wrong or correct, if the check parameters are wrong, the JM PIN controller does not perform subsequent operation steps, and only if the check is correct, the JM PIN controller performs the subsequent operation steps.
In the above process, before the bus coupling controller performs the checking, a parameter checking instruction sent by the JM PIN controller is received, where the parameter checking instruction is used to instruct the bus coupling controller to check the communication voltage, the reference level, and the identifier of the communication PIN output by the JM PIN device by using the parameter corresponding to the voltage value, the level value, and the identifier of the communication PIN, which are required by the second smart device to occupy the bus for communication, in the protocol parameter. Of course, if the second smart device is switched to the first smart device, the parameter checking indication sent by the JM PIN controller is used to indicate the bus coupling controller to check the communication voltage, the reference level, and the identifier of the communication PIN output by the JM PIN device by using the parameter corresponding to the voltage value, the level value, and the identifier of the communication PIN, which are required by the first smart device to occupy the bus for communication, in the protocol parameter.
Step t 5: and under the condition of checking, the bus coupling controller sends parameter error-free information to the JM PIN device host.
Step t 6: and the JM PIN equipment host receives the parameter error-free information and sends a bus switching instruction to the bus coupling controller.
In the embodiment of the invention, the JM PIN controller sends a bus switching instruction to the bus coupling controller only after receiving the parameter error-free information sent by the bus coupling controller.
Step 105: and the bus coupling controller responds to the bus switching instruction, and closes the connection with the second intelligent equipment through the second bus coupler, so that the second intelligent equipment occupies the bus, and the JM PIN equipment host is communicated with the second intelligent equipment through the bus.
In the embodiment of the invention, after receiving a bus switching instruction sent by a JM PIN controller, a bus coupling controller responds to the bus switching instruction, and closes the connection with a second intelligent device through a second bus coupler by a principle similar to that of disconnecting a first intelligent device, so that the second intelligent device occupies a bus, and further a core board in a JM PIN device host communicates with the second intelligent device through the JM PIN controller, a communication PIN, the bus coupling controller and the second bus coupler, and a power supply module is required to provide communication voltage and reference level through the power supply PIN. Specifically, the method comprises the following steps:
the bus coupling controller responds to the bus switching instruction to send a closing instruction to the second bus coupler, and if the bus coupling controller is the optical coupler type second bus coupler, the bus coupling controller responds to the bus switching instruction and directly sends an electric signal to a transmitting end of the optical coupler, namely, the second bus coupler is closed to be connected with the second intelligent device; in the case of the automatically controlled relay-type second bus coupler, a closing command needs to be sent to it.
The second bus coupler receives the closing instruction and executes the closing instruction, and after the microprocessor of the second bus coupler receives the closing instruction, the main contact and the normally open auxiliary contact of the relay device are switched on, so that the connection between the second bus coupler and the second intelligent device is closed, namely the second intelligent device is connected with the bus coupling controller.
After the second intelligent device is connected with the bus coupling controller, the bus coupling controller sends connection confirmation information to a JM PIN controller in the JM PIN device host, the JM PIN controller feeds back the connection confirmation information to a core board in the JM PIN device host after receiving the connection confirmation information, the core board communicates with the second intelligent device through the JM PIN controller, a corresponding communication PIN, the bus coupling controller and the second bus coupler after receiving the connection confirmation information, and meanwhile the power module is required to provide corresponding communication voltage and reference level through the power PIN.
Referring to fig. 3, a block diagram of a bus multiplexing system according to an embodiment of the present invention is shown, the system including: gateway, JM PIN host, bus coupling controller, first bus coupler, second bus coupler, first smart machine and second smart machine, JM PIN host includes: the core board, the JM PIN controller, the communication PIN, the power supply PIN and the power supply module; the gateway includes: the control instruction sending module and the control instruction generating module are connected with the control module; the bus coupling controller includes: an instruction parameter checking module; the first bus coupler includes: a first execution module; the second bus coupler includes: a second execution module;
the core board is respectively connected with the control instruction sending module and the JM PIN controller, the JM PIN controller is respectively connected with the communication PIN and the power supply module, the power supply module is connected with the power supply PIN, and the communication PIN and the power supply PIN are both connected with the instruction parameter checking module;
the instruction parameter checking module is respectively connected with the first execution module and the second execution module, the first execution module is connected with the first intelligent device, the second execution module is connected with the second intelligent device, and the bus coupling controller, the first bus coupler, the second bus coupler, the first intelligent device and the second intelligent device are communicated with each other on the basis of buses;
the JM PIN controller receives a control instruction sent by the control instruction sending module through the core board, and detects whether the bus is idle according to the control instruction, wherein the control instruction is used for indicating the JM PIN controller to switch the first equipment occupying the bus into the second intelligent equipment occupying the bus;
under the condition that the bus is idle, the JM PIN controller sends a disconnection instruction to the instruction parameter checking module;
the instruction parameter checking module executes the disconnection instruction through the first execution module, disconnects the physical connection between the first intelligent device and the bus coupling controller, and releases a bus occupied by the first intelligent device;
the JM PIN controller sends the bus switching instruction to the instruction parameter checking module;
the instruction parameter checking module responds to the bus switching instruction, and the second execution module is closed to be connected with the second intelligent device, so that the second intelligent device occupies the bus, and the core board is communicated with the second intelligent device through the bus.
Optionally, the JM PIN controller receives the control instruction and also receives a parameter sent by the control instruction sending module through the core board, where the parameter is a parameter suitable for the second smart device to occupy the bus for communication, and the parameter includes: bus parameters and power supply parameters;
the instruction parameter checking module is internally provided with: the protocol parameters are parameters corresponding to voltage values, level values and identification of communication pins, wherein the voltage values and the level values are required by the first intelligent device and the second intelligent device for respectively occupying the bus for communication;
the instruction parameter checking module sends disconnection confirming information to the JM PIN controller;
after receiving the disconnection confirming information, the JM PIN controller adjusts the communication voltage and the reference level output to the instruction parameter checking module through the power module according to the power parameters, and the communication voltage and the reference level are output through the power PINs;
the JM PIN controller determines an identifier of a communication PIN communicating with the instruction parameter checking module according to the bus parameters, and sends the identifier to the instruction parameter checking module through the communication PIN corresponding to the identifier;
the instruction parameter checking module checks the received communication voltage and reference level output by the JM PIN equipment host and the sent identification of the communication PINs by combining the protocol parameters;
under the condition of no error, the instruction parameter checking module sends parameter no-error information to the JM PIN controller;
and the JM PIN controller receives the parameter error-free information and sends a bus switching instruction to the instruction parameter checking module.
Optionally, the instruction parameter checking module receives a parameter checking instruction sent by the JM PIN device host, where the parameter checking instruction is used to instruct the instruction parameter checking module to check the communication voltage, the reference level, and the identifier of the communication PIN output by the JM PIN device by using the parameter corresponding to the voltage value, the level value, and the identifier of the communication PIN, which are required by the second intelligent device to occupy the bus for communication, in the protocol parameter;
the instruction parameter checking module checks whether the received communication voltage and the reference level value output by the JM PIN device and the sent identification of the communication PIN are consistent with the voltage value and the level value which are required by the second intelligent device for occupying the bus to communicate and the identification of the communication PIN in the protocol parameters.
Optionally, the instruction parameter checking module receives the disconnection instruction and forwards the disconnection instruction to the first execution module;
the first execution module receives the disconnection instruction;
the first execution module executes the disconnection instruction, disconnects the connection between the first execution module and the first intelligent device, disconnects the connection between the first intelligent device and the bus coupling controller, and releases a bus occupied by the first intelligent device;
the instruction parameter checking module responds to the bus switching instruction and sends a closing instruction to the second execution module;
the second execution module receives a closing instruction;
the execution module executes the closing instruction, and closes the connection between the execution module and the second intelligent device, so that the second intelligent device is connected with the bus coupling controller;
the instruction parameter checking module sends connection confirmation information to the JM PIN controller;
and after receiving the connection confirmation information, the JM PIN controller enables the core board to communicate with the second intelligent device through the bus.
Optionally, the gateway further comprises: the intelligent home scheme is a scheme consisting of all data for controlling the first intelligent equipment and the second intelligent equipment to work;
the control instruction generating module receives a master control instruction sent by the cloud platform, wherein the master control instruction is a comprehensive instruction used for completing the operation of switching the first intelligent equipment which is communicated with the JM PIN equipment host machine to the second intelligent equipment;
the control instruction generation module generates and packages the control instruction and the parameters according to the master control instruction and the intelligent home scheme;
and the control instruction sending module sends the packed control instruction and the packed parameters to the JM PIN device host.
Optionally, in a case that the master control instruction is an operation of switching the first smart device communicating with the JM PIN device host to the second smart device, the control instruction generating module is specifically configured to:
determining that the working data of the second intelligent device in the home scheme is different from the working data of the first intelligent device;
and generating the control instruction and the parameters according to the working data of the second intelligent device.
Optionally, the JM PIN device host includes: a bus detection module;
the JM PIN controller calls the bus detection module to detect whether the previous instruction is executed or not according to the control instruction;
the JM PIN controller calls the bus detection module to detect whether data transmission exists on the bus or not according to the control instruction;
the JM PIN controller determines that the bus is idle when a previous instruction is executed and there is no data transfer on the bus.
In summary, according to the bus multiplexing method provided by the present invention, when a first smart device and a second smart device communicate based on different bus protocols but need to use the same bus, a JM PIN device host first detects whether the bus is idle, and sends a disconnection instruction to a bus coupling controller when the bus is idle, so that the bus coupling controller disconnects a physical connection between the first smart device and the bus coupling controller through a first bus coupler, thereby releasing the bus occupied by the first smart device. And then, the JM PIN device host sends a bus switching instruction to the bus coupling controller so that the bus coupling controller closes the connection with the second intelligent device through the second bus coupler, and therefore the second intelligent device occupies the bus to communicate with the JM PIN device host.
Aiming at intelligent equipment using different bus protocols, the invention does not need to use various corresponding bus interfaces independently, does not need to arrange a plurality of buses, and does not need to manually switch the connection of different intelligent equipment, the whole operation is automatically completed by the equipment, and the invention is simple and convenient, and greatly improves the use feeling of users.
It should be noted that, the signal multiplexing system according to the embodiment of the present invention may comprehensively consider the physical overhead area and the number of communication PINs, and in an optimal state, the intelligent device may use one JM PIN device host to control the switching as much as possible, so as to achieve a more ideal operation effect and provide better service for the user.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or article that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, or article.
The foregoing detailed description of the embodiments of the present invention has been presented for purposes of illustration and description, and is intended to be exemplary only and is not intended to be exhaustive or to limit the invention to the precise forms disclosed; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. The bus multiplexing method is characterized by being applied to an intelligent home system, and the intelligent home system comprises the following steps: the intelligent device comprises a JM PIN device host, a gateway, a bus coupling controller, a first bus coupler, a second bus coupler, a first intelligent device and a second intelligent device, wherein the JM PIN device host is respectively connected with the gateway and the bus coupling controller; the method comprises the following steps:
the JM PIN device host receives a control instruction sent by the gateway, and detects whether the bus is idle according to the control instruction, wherein the control instruction is used for indicating the JM PIN device host to switch the first device occupying the bus to the second intelligent device occupying the bus;
under the condition that the bus is idle, the JM PIN device host sends a disconnection instruction to the bus coupling controller;
the bus coupling controller executes the disconnection instruction through the first bus coupler, disconnects the physical connection between the first intelligent device and the bus coupling controller, and releases a bus occupied by the first intelligent device;
the JM PIN device host sends the bus switching instruction to the bus coupling controller;
the bus coupling controller responds to the bus switching instruction, the connection with the second intelligent device is closed through the second bus coupler, so that the second intelligent device occupies the bus, and the JM PIN device host is further communicated with the second intelligent device through the bus;
the JM PIN device host receives the control instruction and also receives a parameter sent by the gateway, where the parameter is a parameter suitable for the second smart device to occupy the bus for communication, and includes: the bus coupling controller is internally provided with: protocol parameters, the protocol parameters are parameters corresponding to voltage values, level values and identification of communication pins required by the first intelligent device and the second intelligent device to respectively occupy the bus for communication, and the JMPIN device host comprises: communication stitch, power module, JM PIN equipment host computer to bus coupling controller sends the bus and switches over the instruction, includes:
the bus coupling controller sends disconnection confirming information to the JM PIN device host;
after receiving the disconnection confirming information, the JM PIN device host adjusts the communication voltage and the reference level output to the bus coupling controller through the power module according to the power parameters, and the communication voltage and the reference level are output through the power PINs;
the JM PIN device host determines an identifier of a communication PIN communicating with the bus coupling controller according to the bus parameters, and sends the identifier to the bus coupling controller through the communication PIN corresponding to the identifier;
the bus coupling controller checks the protocol parameters according to the received communication voltage and the reference level output by the JM PIN device host and the sent identification of the communication PIN;
under the condition of no error in checking, the bus coupling controller sends parameter error-free information to the JM PIN device host;
and the JM PIN equipment host receives the parameter error-free information and sends a bus switching instruction to the bus coupling controller.
2. The method as claimed in claim 1, wherein the checking by the bus coupling controller with the protocol parameters according to the received communication voltage, the reference level and the transmitted identification of the communication PIN outputted by the JM PIN device host comprises:
the bus coupling controller receives a parameter checking instruction sent by the JM PIN device host, wherein the parameter checking instruction is used for instructing the bus coupling controller to check the communication voltage, the reference level and the identification of the communication PIN output by the JM PIN device by adopting the parameters corresponding to the voltage value, the level value and the identification of the communication PIN, which are required by the second intelligent device to occupy the bus for communication, in the protocol parameters;
and the bus coupling controller checks whether the received communication voltage and the reference level value output by the JM PIN device and the sent identification of the communication PIN are consistent with the voltage value and the level value which are required by the second intelligent device for occupying the bus to communicate and the identification of the communication PIN in the protocol parameters.
3. The method of claim 1, wherein the bus coupling controller executes the disconnect instruction via the first bus coupler to disconnect the physical connection between the first smart device and the bus coupling controller and release the bus occupied by the first smart device, comprising:
the bus coupling controller receives the disconnection instruction and forwards the disconnection instruction to the first bus coupler;
the first bus coupler receives the disconnect instruction;
the first bus coupler executes the disconnection instruction, and disconnects the first bus coupler from the first intelligent device, so that the first intelligent device is disconnected from the bus coupling controller, and a bus occupied by the first intelligent device is released;
the bus coupling controller closes the connection with the second intelligent device through the second bus coupler in response to the bus switching instruction, so that the second intelligent device occupies the bus, and further the JM PIN device host communicates with the second intelligent device through the bus, including:
the bus coupling controller sends a closing instruction to the second bus coupler in response to the bus switching instruction;
the second bus coupler receives a close command;
the second bus coupler executes the closing instruction, and closes the connection between the second bus coupler and the second intelligent device, so that the second intelligent device is connected with the bus coupling controller;
the bus coupling controller sends connection confirmation information to the JM PIN equipment host;
and after receiving the connection confirmation information, the JM PIN device host communicates with the second intelligent device through the bus.
4. The method of claim 1, wherein the gateway is connected to a cloud platform, and wherein the gateway comprises: the method comprises the following steps that before the JM PIN device host receives the control instruction and the parameters sent by the gateway, the method comprises the following steps:
the gateway receives a master control instruction sent by the cloud platform, wherein the master control instruction is a comprehensive instruction used for completing the operation of switching the first intelligent equipment which is communicated with the JM PIN equipment host machine to the second intelligent equipment;
the gateway generates and packages the control instruction and the parameters according to the master control instruction and the intelligent home scheme;
and the gateway sends the packed control instruction and the packed parameters to the JM PIN device host.
5. The method according to claim 4, wherein the gateway generates the control instruction and the parameter according to the master instruction in combination with the smart home solution, and the method comprises:
under the condition that the master control instruction is the operation of switching the first intelligent device communicating with the JM PIN device host to the second intelligent device, the gateway determines that the working data of the second intelligent device in the household scheme is different from the working data of the first intelligent device;
and the gateway generates the control instruction and the parameters according to the working data of the second intelligent device.
6. The method as claimed in claim 1, wherein said JM PIN device host comprises: the bus detection module, the JM PIN device host detects whether the bus is idle according to the control instruction, including:
the JM PIN device host calls the bus detection module to detect whether the previous instruction is executed or not according to the control instruction;
the JM PIN device host calls the bus detection module to detect whether data are transmitted on the bus or not according to the control instruction;
and under the condition that the previous instruction is executed and no data is transmitted on the bus, the JM PIN device host determines that the bus is idle.
7. A system for bus multiplexing, the system comprising: gateway, JM PIN host, bus coupling controller, first bus coupler, second bus coupler, first smart machine and second smart machine, JM PIN host includes: the core board, the JM PIN controller, the communication PIN, the power supply PIN and the power supply module; the gateway includes: the control instruction sending module and the control instruction generating module are connected with the control module; the bus coupling controller includes: an instruction parameter checking module; the first bus coupler includes: a first execution module; the second bus coupler includes: a second execution module;
the core board is respectively connected with the control instruction sending module and the JM PIN controller, the JM PIN controller is respectively connected with the communication PIN and the power module, the power module is connected with the power PIN, and the communication PIN and the power PIN are both connected with the instruction parameter checking module;
the instruction parameter checking module is respectively connected with the first execution module and the second execution module, the first execution module is connected with the first intelligent device, the second execution module is connected with the second intelligent device, and the bus coupling controller, the first bus coupler, the second bus coupler, the first intelligent device and the second intelligent device are communicated with each other on the basis of buses;
the JM PIN controller receives a control instruction sent by the control instruction sending module through the core board, and detects whether the bus is idle according to the control instruction, wherein the control instruction is used for indicating the JM PIN controller to switch the first equipment occupying the bus into the second intelligent equipment occupying the bus;
under the condition that the bus is idle, the JM PIN controller sends a disconnection instruction to the instruction parameter checking module;
the instruction parameter checking module executes the disconnection instruction through the first execution module, disconnects the physical connection between the first intelligent device and the bus coupling controller, and releases a bus occupied by the first intelligent device;
the JM PIN controller sends the bus switching instruction to the instruction parameter checking module;
the instruction parameter checking module responds to the bus switching instruction, and closes the connection with the second intelligent device through the second execution module, so that the second intelligent device occupies the bus, and the core board is communicated with the second intelligent device through the bus;
the JM PIN controller receives the control instruction and also receives a parameter sent by the control instruction sending module through the core board, where the parameter is a parameter applicable to the second smart device occupying the bus for communication, and includes: bus parameters and power supply parameters;
the instruction parameter checking module is internally provided with: the protocol parameters are parameters corresponding to voltage values, level values and identification of communication pins, wherein the voltage values and the level values are required by the first intelligent device and the second intelligent device for respectively occupying the bus to communicate;
the instruction parameter checking module sends disconnection confirmation information to the JM PIN controller;
after receiving the disconnection confirming information, the JM PIN controller adjusts the communication voltage and the reference level output to the instruction parameter checking module through the power module according to the power parameters, and the communication voltage and the reference level are output through the power PINs;
the JM PIN controller determines an identifier of a communication PIN communicating with the instruction parameter checking module according to the bus parameters, and sends the identifier to the instruction parameter checking module through the communication PIN corresponding to the identifier;
the instruction parameter checking module checks the received communication voltage and reference level output by the JM PIN equipment host and the sent identification of the communication PINs by combining the protocol parameters;
under the condition of no error, the instruction parameter checking module sends parameter no-error information to the JM PIN controller;
and the JM PIN controller receives the parameter error-free information and sends a bus switching instruction to the instruction parameter checking module.
8. The system according to claim 7, wherein the command parameter checking module receives a parameter checking instruction sent by the JM PIN device host, where the parameter checking instruction is used to instruct the command parameter checking module to check the communication voltage, the reference level, and the identifier of the communication PIN output by the JM PIN device by using the parameters corresponding to the voltage value, the level value, and the identifier of the communication PIN, which are required by the second smart device to occupy the bus for communication, in the protocol parameters;
the instruction parameter checking module checks whether the received communication voltage and the reference level value output by the JM PIN device and the sent identification of the communication PIN are consistent with the voltage value and the level value which are required by the second intelligent device for occupying the bus to communicate and the identification of the communication PIN in the protocol parameters.
CN202010167787.6A 2020-03-11 2020-03-11 Bus multiplexing method and system Active CN111447127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010167787.6A CN111447127B (en) 2020-03-11 2020-03-11 Bus multiplexing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010167787.6A CN111447127B (en) 2020-03-11 2020-03-11 Bus multiplexing method and system

Publications (2)

Publication Number Publication Date
CN111447127A CN111447127A (en) 2020-07-24
CN111447127B true CN111447127B (en) 2022-05-06

Family

ID=71653978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010167787.6A Active CN111447127B (en) 2020-03-11 2020-03-11 Bus multiplexing method and system

Country Status (1)

Country Link
CN (1) CN111447127B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1811740A (en) * 2006-02-28 2006-08-02 重庆重邮信科股份有限公司 Method for achieving multiprocessor share peripheral circuit and its circuit
US7162554B1 (en) * 2001-07-11 2007-01-09 Advanced Micro Devices, Inc. Method and apparatus for configuring a peripheral bus
CN102841875A (en) * 2012-07-05 2012-12-26 深圳市中联创新自控系统有限公司 Host computer with intelligent bus interface and security system
CN106255964A (en) * 2014-04-28 2016-12-21 高通股份有限公司 Sensor global bus
CN109739792A (en) * 2018-10-12 2019-05-10 成都必盛科技有限公司 Serial ports charging communication multiplexing method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10725442B2 (en) * 2014-09-12 2020-07-28 Fisher-Rosemount Systems, Inc. Methods and apparatus to communicatively couple on/off valves to controllers in a process control system
EP3268868B1 (en) * 2015-03-11 2018-12-05 Qualcomm Incorporated Farewell reset and restart method for coexistence of legacy and next generation devices over a shared multi-mode bus
CN109032984A (en) * 2018-05-31 2018-12-18 广州吉欧电子科技有限公司 A kind of method and USB OTG equipment of multiplexing USB interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7162554B1 (en) * 2001-07-11 2007-01-09 Advanced Micro Devices, Inc. Method and apparatus for configuring a peripheral bus
CN1811740A (en) * 2006-02-28 2006-08-02 重庆重邮信科股份有限公司 Method for achieving multiprocessor share peripheral circuit and its circuit
CN102841875A (en) * 2012-07-05 2012-12-26 深圳市中联创新自控系统有限公司 Host computer with intelligent bus interface and security system
CN106255964A (en) * 2014-04-28 2016-12-21 高通股份有限公司 Sensor global bus
CN109739792A (en) * 2018-10-12 2019-05-10 成都必盛科技有限公司 Serial ports charging communication multiplexing method

Also Published As

Publication number Publication date
CN111447127A (en) 2020-07-24

Similar Documents

Publication Publication Date Title
CN101542981B (en) Communication system having a master/slave structure
US8299361B2 (en) Method and terminal device for implementing audio connector interface conversion
US20150224890A1 (en) Connector converter and vehicle charging system and method using the same
US8028111B2 (en) Radio communication apparatus, communication control method, and computer-readable program
CN104158251B (en) terminal, charger and charging method
CN111817382B (en) Charger, data line and charging equipment
CN110099402B (en) Wireless IO link communication network with additional master and method of operation thereof
CN113007874A (en) Air conditioner, air conditioner operation method and electric appliance system
CN106055497A (en) Communication method of circuit board and circuit board
WO2009144843A1 (en) Communication system, test device, communication device, communication method, and test method
CN111447127B (en) Bus multiplexing method and system
KR20230016688A (en) Chargers, data lines and charging equipment
US20130242798A1 (en) Apparatus for duplicating router in building automatic control system and controlling method thereof
CN101193092A (en) Network device and its data synchronization transmission method
JP4441556B2 (en) Control method for vehicle power generation system
JP3777809B2 (en) Method for detecting line abnormality in duplex communication system
WO2010105473A1 (en) Signal transmission device and method
CN211454332U (en) Excitation system of two thermal controllers based on field bus
CN219268856U (en) Bluetooth wireless communication system and intelligent device
KR102076273B1 (en) A home appliance and a control method the same
JP4144833B2 (en) Centralized transmission device, communication system, operation method, automatic meter reading system, and recording medium
CN115243127A (en) Stereo set firmware upgrading circuit and electronic equipment
JP3797716B2 (en) Water heater
US20200218680A1 (en) Field bus system for driving power outputs
CN113347508A (en) External device communication circuit, external device communication connection method and intelligent terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant