Elevator control system and method based on smart phone
By designing a smartphone-based elevator control system, using the main control module, isolation module and initialization module, the problems of communication and electrical safety between elevators and smartphones are solved, and safe and convenient elevator control and charging functions are achieved.
Patent Information
- Application Number
- CN202510030221.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-08
- Publication Date
- 2025-04-15
AI Technical Summary
In the prior art, elevators lack the ability to communicate directly with smartphones and there are electrical safety risks when controlling elevators.
A smartphone-based elevator control system is designed, including a main control module, an isolation module and an initialization module. The main control module communicates with the smartphone through a USB interface. The isolation module is electrically isolated during the transmission of control commands and allows the elevator to charge the main control module.
It realizes the communication connection between the elevator and the smartphone, obtains control instructions, and provides electrical isolation when controlling the elevator, ensures electrical safety, and allows the elevator to charge the main control module, which has a wide range of application prospects.
Smart Images

Figure CN119822170A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of elevator control, and in particular relates to an elevator control system and method based on a smart phone. Background Art
[0002] With the popularity and enhancement of functions of smart phones, more and more devices need to be controlled by smart phones.
[0003] In existing technologies, elevators often lack the ability to communicate directly with smartphones, and there are electrical safety risks when controlling the elevator. Summary of the invention
[0004] In view of this, the present invention provides an elevator control system and method based on a smart phone to solve the problems existing in the prior art.
[0005] On the one hand, the present invention provides an elevator control system based on a smart phone, which is used to control an elevator. The elevator has the control interface and the power interface. The system includes: a main control module, which is provided with a USB interface and a signal transmission interface; a smart phone, which is communicatively connected to the USB interface to input control instructions to the main control module; an isolation module, which is communicatively connected to the signal transmission interface and the power interface respectively, and the isolation module performs electrical isolation during the transmission process of the control instruction to the elevator, and enables the elevator to charge the main control module; an initialization module, which is communicatively connected to the main control module and the isolation module respectively, and the initialization module initializes the main control module and the isolation module after being powered on.
[0006] In some optional embodiments, the main control module includes: a processor, which is provided with the USB interface, the signal transmission interface and the authentication interface; an authentication module, which is communicatively connected to the authentication interface, and the authentication module is suitable for obtaining the information of the smartphone to authenticate the smartphone.
[0007] In some optional implementations, the smart phone is an Apple phone, and the authentication module is an MFI authentication chip.
[0008] In some optional embodiments, the isolation module includes: a digital isolator having a first signal terminal, the first signal terminal being communicatively connected to the signal transmission interface; a transceiver having a second signal terminal, the transceiver being communicatively connected to the digital isolator, and the second signal terminal being suitable for outputting control instructions.
[0009] In some optional implementations, the transceiver is an RS-422 transceiver, and the signal transmission interface is a URAT interface.
[0010] In some optional embodiments, the isolation module further includes a photoelectric coupler, and the photoelectric coupler is electrically connected to the processor.
[0011] On the other hand, the present invention also provides an elevator control method based on a smart phone, which adopts an elevator control system based on a smart phone. The elevator control method based on a smart phone includes: initializing a main control module and an isolation module of the elevator control system based on the smart phone after power is supplied; inputting control instructions to the main control module through a smart phone; electrically isolating the control instructions through the isolation module; and sending the control instructions after electrical isolation to the elevator.
[0012] In some optional embodiments, the elevator control method based on a smartphone also includes: obtaining information of the smartphone; authenticating the smartphone based on the information of the smartphone to obtain an authentication result; if the authentication result shows that the authentication is successful, sending the control instruction to the elevator; if the authentication result shows that the authentication is unsuccessful, refusing to send the control instruction to the elevator.
[0013] In some optional embodiments, the smartphone is authenticated based on the information of the smartphone to obtain an authentication result, which specifically includes: encrypting a random number sent by the smartphone by an algorithm and a key in an authentication module to obtain encrypted data; decrypting the encrypted data by the smartphone to obtain a decryption result; and comparing the decryption result with the random number to obtain the matching result.
[0014] The beneficial effects of the present invention are as follows: the present invention can not only realize the communication connection between the elevator and the smart phone and obtain control instructions, but also provide electrical isolation when controlling the elevator to ensure electrical safety, and allow the elevator to charge the main control module, and has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the specific implementation of the present invention or the technical solution in the prior art, the following briefly introduces the drawings required for use in the specific implementation or the prior art description. Obviously, the drawings described below are some implementations of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0016] Figure 1 This is a block diagram of a smart phone-based elevator control system according to an embodiment of the present invention;
[0017] Figure 2 This is a schematic diagram of a processor based on a smartphone elevator control system according to an embodiment of the present invention;
[0018] Figure 3 This is a schematic diagram of an authentication module based on a smartphone elevator control system according to an embodiment of the present invention;
[0019] Figure 4 This is a schematic diagram of an isolation module based on a smartphone elevator control system according to an embodiment of the present invention;
[0020] Figure 5 This is a power management circuit diagram of a main control module based on a smart phone elevator control system according to an embodiment of the present invention;
[0021] Figure 6 The present invention is a flowchart of a smart phone-based elevator control method according to an embodiment of the present invention.
[0022] Description of reference numerals:
[0023] 100. Data communication converter of smart phone; 110. Main control module; 111. Processor; 112. Authentication module; 1101. USB interface; 1102. Signal transmission interface; 1103. Authentication interface; 120. Isolation module; 121. Digital isolator; 1201. First signal terminal; 122. Transceiver; 1202. Second signal terminal; 123. Optocoupler; 200. Smart phone; 300. Elevator; 301. Control interface; 302. Power interface. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0025] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0026] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0027] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0028] Combine the following Figures 1 to 6 , describing an embodiment of the present invention.
[0029] like Figure 1 As shown, according to an embodiment of the invention, there is provided an elevator control system based on a smart phone, which is used to control an elevator 300, and the elevator 300 has a control interface 301 and a power interface 302. The system comprises: 100, comprising: a main control module 110, which is provided with a USB interface and a signal transmission interface, and the USB interface is suitable for communicating and connecting with a smart phone 200 to obtain control instructions from the smart phone 200; an isolation module 120, which is respectively communicated and connected with the signal transmission interface and the elevator 300, and the isolation module 120 performs electrical isolation during the transmission process of the control instructions sent to the elevator 300, and enables the elevator to charge the main control module 110; an initialization module, which is respectively communicated and connected with the main control module 110 and the isolation module 120, and the initialization module initializes the main control module 110 and the isolation module 120 after being powered.
[0030] In this embodiment, the system is powered on and initialized and self-checked, each hardware module is initialized, and its own software version and status are self-checked to ensure that each module works properly. The data communication converter based on the smart phone 200 mainly includes a main control module 110 and an isolation module 120. The main control module 110 is equipped with a USB interface, and the USB interface is used to communicate with the smart phone 200, so that the main control module 110 can receive control instructions from the smart phone 200. The main control module 110 is also provided with a signal transmission interface, which can transmit the control instructions received by the main control module 110 to the isolation module 120, so that data can be exchanged between the isolation module 120 and the main control module 110. The role of the isolation module 120 is dual. First, it can communicate with the signal transmission interface to ensure that the control instructions issued by the main control module 110 can be accurately transmitted to the elevator 300. Secondly, the isolation module 120 provides an electrical isolation function during the transmission of the control command, which can ensure that there is no direct electrical connection between the main control module 110 and the elevator 300, thereby preventing electrical faults from propagating from one device to another, which greatly enhances the safety of the entire system and protects the main control module 110 from electrical interference or faults that may be generated by the elevator 300. The elevator 300 can charge the main control module 110 so that the main control module 110 can obtain power from the elevator 300 to maintain its operation.
[0031] In this embodiment, the smart phone 200 communicates with the main control module 110 through the USB interface, sends control instructions, and then safely transmits the control instructions to the elevator 300 through the isolation module 120. At the same time, the elevator 300 can provide power to the main control module 110, thereby improving the safety and flexibility of the data communication converter based on the smart phone 200 and improving the efficiency of equipment control.
[0032] Furthermore, the main control module 110 includes: a processor 111, which is provided with a USB interface, a signal transmission interface and an authentication interface; an authentication module 112, which is communicatively connected to the authentication interface, and the authentication module 112 is suitable for obtaining information of the smart phone 200 to authenticate the smart phone 200.
[0033] In this embodiment, the main control module 110 mainly includes a processor 111 and an authentication module 112, and the processor 111 is responsible for executing program instructions, processing data, and controlling the work of other modules. The smart phone 200 communicates with the main control module 110 via a USB cable, sending control instructions or receiving data. The signal transmission interface is used to transmit the control instructions received by the processor 111 to the isolation module 120, thereby controlling the elevator 300. For example, data interaction can be performed with the isolation module 120 in a wireless manner via UART. The authentication interface is used to communicate with the authentication module 112 to ensure that only authenticated smart phones 200 can interact with the main control module 110. Among them, the authentication module 112 authenticates the connected smart phone 200. Based on the information obtained, the authentication module 112 will perform a series of verification processes to determine whether the smart phone 200 is authorized to communicate with the main control module 110. If the smart phone 200 passes the authentication, the authentication module 112 will notify the main control module 110 to allow the smart phone 200 to perform further communication and control operations. If the authentication fails, the main control module 110 will reject the control request of the smart phone 200 to protect the security of the system.
[0034] Therefore, the main control module 110 can not only receive and process control instructions from the smart phone 200, but also ensure that these instructions come from an authenticated smart phone 200, thereby improving the security and reliability of the entire system.
[0035] like Figure 2As shown, the processor 111 is provided with several pins, among which, pin PA0-WKUP: indicates that the PA0 pin has a wake-up function. PA13 / JTMS / SWDIO: indicates that the PA13 pin can be used as JTAG test mode selection and serial wire debug data input and output. PB2 / BOOT1: indicates that the PB2 pin is used for boot mode selection. Power supply and ground: VDD and VSS pins are used to provide power and ground. For example, VDD_1 to VDD_4: indicate the power pins of the processor 111. VSS_1 to VSS_4: indicate the ground pins of the processor 111. NRST: reset pin, used to reset the processor 111. BOOT0: boot mode selection pin, used to select the boot mode of the processor 111. VBAT: backup battery input, used for real-time clock. OSC_IN / PD0 and OSC_OUT / PD1: external crystal oscillator input and output pins. PC14-OSC32_IN and PC15-OSC32_OUT: 32.768kHz external crystal input and output pins, typically used for RTC. PA13 / JTMS / SWDIO and PA14 / JTCK / SWCLK: Used for JTAG or SWD (Serial Wire Debug) interface for debugging and programming processor 111. PC13-TAMPER-RTC: Has anti-tamper and RTC functions. PA8, PA9, PA10, PA11, PA12: These pins may have multiple functions, depending on the configuration of processor 111.
[0036] Furthermore, the smart phone 299 is an Apple phone, and the authentication module 112 is an MFI authentication chip.
[0037] Since the smart phone 200 is an Apple phone, the authentication module 112 uses MFI (Made for iPhone / iPod / iPad, MFI for short). MFI certification is a logo use license issued by Apple to its authorized accessory manufacturers for external accessories, which is intended to ensure that these accessories are compatible with Apple products and meet Apple's quality standards. The authentication module 112 communicates with the main control module 110 through the authentication interface, obtains the information of the smart phone 200 to authenticate the smart phone 200, and ensures that only authenticated devices can interact with the converter, thereby ensuring the security and reliability of the system.
[0038] The MFI authentication module 112 includes a 3959 circuit and an MFI343S00177 circuit, which are used for the MFI authentication chip to ensure the compatibility of the iPhone with the communication converter. The processor 111 performs I2C data transmission with the MFI authentication chip, and after authentication, the MFI authentication chip can establish IAP2 communication with the iPhone.
[0039] like Figure 3As shown, the authentication module 112 is provided with an authentication circuit diagram, in which two I2C interfaces are used to communicate with the microprocessor. An I2C bus expander or isolator is used. The VSS and VCC pins are connected to the ground and the 3.3V power supply, respectively, to power the chip. SDA and SCL are the data line and clock line of the I2C bus, which are connected to the 3.3V power supply through pull-up resistors R12 and R11 (2.2kΩ), respectively. These resistors ensure that the bus is at a high level in the idle state. C13 is a decoupling capacitor used to stabilize the power supply voltage and reduce power supply noise. U4 may be an I2C EEPROM. The VSS and VDD pins are connected to the ground and the 3.3V power supply, respectively, to power the device. WP is a write protection pin, which is connected to the ground to allow writing to the device. The SCL and SDA pins are the clock line and data line of the I2C bus. The I2C bus is a two-wire serial communication protocol, and SDA and SCL are used for data transmission and clock synchronization, respectively. The pull-up resistor is essential for the normal operation of the I2C bus, ensuring that the bus remains at a high level when there is no device driving it. Decoupling capacitors help filter out high frequency noise on the power line and provide a stable power supply to the I2C devices.
[0040] The data communication converter can not only receive and process the control instructions from the Apple mobile phone, but also ensure that these instructions come from certified devices, while achieving electrical isolation during the transmission of control instructions and allowing the elevator 300 to charge the main control module 110, thereby improving the safety, reliability and convenience of the entire system.
[0041] Furthermore, the isolation module 120 includes: a digital isolator 121, having a first signal terminal 1201, the first signal terminal 1201 is communicatively connected to the signal transmission interface; a transceiver 122, having a second signal terminal 1202, the transceiver 122 is communicatively connected to the digital isolator 121, and the second signal terminal 1202 is suitable for outputting control instructions.
[0042] In this embodiment, the isolation module 120 mainly includes a digital isolator 121 and a transceiver 122. The digital isolator 121 transmits digital signals between different voltage domains while maintaining electrical isolation. Among them, the digital isolator 121 transmits signals through non-conductive media, such as light, electromagnetic fields or electric fields, to achieve isolation. The digital isolator 121 can isolate the circuit between analog signals and digital signals to prevent mutual interference. The transceiver 122 is connected to the digital isolator 121 in communication and is responsible for converting the signal received by the digital isolator 121 into a format suitable for reception by the elevator 300. Among them, the transceiver 122 can convert the signal and transmit it on the communication line. It usually includes two parts, a transmitter and a receiver, which are used to realize the conversion of data between different signal formats.
[0043] The combined use of the digital isolator 121 and the transceiver 122 not only improves the anti-interference capability of the system, but also ensures the reliability and stability of data transmission. The digital isolator 121 has a high isolation voltage and strong anti-interference capability, while the transceiver 122 provides flexible signal conversion and transmission capabilities.
[0044] By achieving isolation between different parts of the circuit, adverse factors such as electromagnetic interference and electromagnetic pulses are effectively avoided, providing a strong guarantee for the stable operation of the circuit.
[0045] The isolation module 120 realizes electrical isolation and signal transmission between the main control module 110 and the elevator 300 through the coordinated work of the digital isolator 121 and the transceiver 122, thereby ensuring the safety and stability of the entire data communication converter.
[0046] Furthermore, the transceiver 122 is an RS-422 transceiver 122, and the signal transmission interface is a URAT interface.
[0047] The transceiver 122 in the isolation module 120 adopts the RS-422 standard, which can realize long-distance, high-speed data transmission. The RS-422 transceiver 122 converts the signal from the digital isolator 121 into a differential signal, which is transmitted through a balanced twisted pair cable and has good anti-interference ability and long-distance transmission characteristics.
[0048] The URAT interface is a universal asynchronous receiver-transmitter serial port, which is used to realize serial transmission of data. The URAT interface converts the parallel data of the main control module 110 into a serial data stream, and transmits it to the elevator 300 through the digital isolator 121 and the RS-422 transceiver 122. The isolation module 120 using the RS-422 transceiver 122 can provide high-speed, long-distance data transmission while maintaining signal integrity and system stability. The RS-422 standard allows multiple receiving nodes to be connected on the same transmission line, up to 10 nodes, which makes it very useful in application scenarios requiring multi-point communication.
[0049] The isolation module 120 realizes electrical isolation and signal transmission between the main control module 110 and the elevator 300 through the combination of the digital isolator 121 and the RS-422 transceiver 122, ensuring the safety and reliability of the data communication converter. At the same time, the URAT interface, as the starting point of signal transmission, completes the data serialization process, providing a basis for subsequent isolation and transmission.
[0050] The lighting end of the iPhone transmits the USB signal to the processor 111 through the USB interface. The USB signal outputs the UART signal through the processor 111 and is transmitted to the RS-422 transceiver 122 under the action of the digital isolator 121. The RS-422 transceiver 122 converts the UART signal into a 422 signal under the working voltage of 5V. Conversely, the 422 signal is converted into a UART signal under the action of the RS-422 transceiver 122 and the data is transmitted back to the processor 111 through the digital isolator 121. The UART signal outputs the USB signal through the processor 111 and is connected to the lighting end of the iPhone under the USB interface to realize data communication. Therefore, data transmission between the lighting end of the iPhone and the RS-422 transceiver 122 is realized.
[0051] Furthermore, the isolation module 120 further includes a photocoupler 123 , and the photocoupler 123 is electrically connected to the processor 111 .
[0052] In this embodiment, the photocoupler 123 is a semiconductor optoelectronic device that transmits electrical signals through electrical-optical-electrical conversion. In the isolation module 120, the photocoupler 123 is electrically connected to the processor 111 to achieve electrical isolation between the input and output circuits. This isolation is essential for protecting sensitive circuits, preventing high voltage spikes, and eliminating electrical noise in signals.
[0053] The working principle of the photocoupler 123 is based on the photoelectric effect and the characteristics of the PN junction. When current passes through a light emitting diode (LED), the LED emits a light signal, which is received by a photosensitive element (such as a phototransistor) encapsulated in the same housing and converted into an electrical signal. Since the input and output ends are transmitted via optical signals, the two parts are completely isolated electrically, without feedback and interference of electrical signals, thereby providing stable performance and strong anti-interference capabilities.
[0054] like Figure 4As shown, the isolation module 120 is provided with a power module, which may be used to protect the processor 111 from high voltage or current shock. The power module provides two voltage outputs: VIA and VOB. These two voltages are used for different circuit parts. CURX and MCUTX represent the receiving and transmitting pins of the processor 111 for serial communication. C19 is a decoupling capacitor used to stabilize the voltage of the MCUTX pin. The isolation chip U4, SP3400 is a four-channel digital isolator 121 used to provide electrical isolation between different circuits while allowing digital signals to pass. The VCC pin provides power to the isolator, and the GND pin is grounded. The A, B, C, and D pins are input terminals, corresponding to the Y, Z, W, and X pins on the other side of the isolator as output terminals. R15, R23, R32, R34, and R35 are current limiting resistors used to protect the circuit and control the current. C17 is a decoupling capacitor used to stabilize the power pin of the isolation chip. The optocoupler U2, HCPL-316J is a high-speed optocoupler used to provide electrical isolation between circuits. The input side of the optocoupler is the LED part, which is connected to the output of the isolation chip through resistors R13, R18, R20, and R21. The output side is the phototransistor part, which is connected to the ground through resistors R17 and R22 to form a current loop. The filter is F1, 22uH, which is an inductor filter used to suppress electromagnetic interference and protect the circuit from high-frequency noise. Connector PG is a programming or debugging interface for connecting to external devices. D2 is a transient voltage suppression diode TVS used to protect the circuit from voltage spikes.
[0055] In general, the isolation part including the digital isolator 121 and the optical coupler is used to provide electrical isolation between the processor 111 and the external circuit while allowing digital signals to pass through. This design can improve the safety and reliability of the system and prevent high voltage or current from damaging the processor 111.
[0056] like Figure 5As shown, the main control module 110 is provided with a power management circuit for converting the input voltage into a stable output voltage and providing the required voltage for different devices. Among them, F1 is a self-recovering fuse for overcurrent protection. When the current exceeds the set value, F1 will disconnect the circuit to protect the subsequent circuit from damage. The voltage regulator U2, DS90C282 is a low voltage drop linear regulator LDO, which is used to convert the input voltage VIN into a stable 3.3V output voltage VOUT. The EN pin is used to enable or disable the regulator. When the EN pin is grounded, the regulator is enabled; when the EN pin is floating or connected to a high level, the regulator is disabled. C6 and C7 are bypass capacitors used to reduce power supply noise and ensure the stability of the output voltage. C8 is an output capacitor used to further smooth the output voltage and reduce ripple. TP_PV3 is a test point for measuring the output voltage of the regulator to facilitate debugging and testing. P1 is an I2C interface for communicating with the processor 111. I2C is a commonly used serial communication protocol for connecting multiple devices. R9 and R10 are pull-up resistors that ensure that the I2C bus is at a high level when idle. SW1 is a switch that controls the on and off of the circuit. When SW1 is closed, the circuit is on; when SW1 is open, the circuit is off. Connector Header 4 is a 4-pin connector for connecting external devices or circuits. +3.3V and GND provide 3.3V power and ground respectively. R8 is a current limiting resistor that limits the current flowing through SW1 to protect the switch and circuit. The input voltage is converted into a stable 3.3V output through a voltage regulator and communicates with external devices through the I2C interface. At the same time, overcurrent protection and switch control functions are also included in the circuit to ensure the safety and flexibility of the circuit.
[0057] The isolation module 120 includes a digital isolation circuit and an optocoupler circuit, which can not only effectively isolate the power supply, but also transmit the signal without modulation and demodulation. The power module is mainly a DS8562 power conversion circuit, which can convert 5V voltage into 3.3V voltage to power various circuits.
[0058] The converter circuit works as follows: under the action of the DS8562 power conversion chip, the 5V power supply is converted into a 3.3V power supply, thereby powering the processor 111 and the MFI authentication module 112. The processor 111 performs I2C data transmission with the MFI authentication chip, which is used for the MFI authentication chip. After authentication, IAP2 communication can be established with the iPhone. The lighting end of the iPhone transmits the USB signal to the processor 111 through the USB interface, and the USB signal outputs the UART signal through the processor 111, and is transmitted to the RS-422 transceiver 122 under the action of the digital isolator 121. The RS-422 transceiver 122 converts the UART signal into a 422 signal under the working voltage of 5V. Conversely, under the action of the RS-422 transceiver 122, the 422 signal is converted into a UART signal and the data is transmitted back to the processor 111 through the digital isolator 121. The UART signal outputs the USB signal through the processor 111, and is connected to the lighting end of the iPhone under the USB interface to realize data communication. In this way, data transmission between the lighting terminal of the iPhone and the RS-422 transceiver 122 is achieved.
[0059] like Figure 6 As shown, the present invention also provides an elevator control method based on a smart phone, using an elevator control system based on a smart phone, and the elevator control method based on a smart phone includes the following steps:
[0060] Step S101: Initialize the main control module and isolation module of the elevator control system based on the smart phone after power is supplied.
[0061] Step S102: input control instructions to the main control module via the smart phone.
[0062] Step S103: electrically isolating the control instruction through an isolation module.
[0063] Step S104: The control instruction after electrical isolation is sent to the elevator.
[0064] In this embodiment, the self-check is realized after the power is turned on. The main control module and the isolation module are initialized, so that the self-check of the software version and status can be realized to ensure that each module works properly. The smartphone establishes standard USB device communication through the USB interface, and the control command is sent to the main control module through the smartphone. The main control module converts the control command into data and sends it to the elevator. Therefore, the operation control of the elevator is realized through the smartphone.
[0065] Furthermore, the elevator control method based on a smart phone also includes the following steps:
[0066] Step S201: Obtain information of a smart phone.
[0067] Step S202: Authenticate the smartphone based on the information of the smartphone to obtain an authentication result. Step S203: If the authentication result shows that the authentication is successful, send a control instruction to the elevator.
[0068] Step S204: If the authentication result shows that the authentication is unsuccessful, the control instruction is refused to be sent to the elevator.
[0069] Furthermore, step S202, authenticating the smartphone based on the information of the smartphone to obtain an authentication result, specifically includes the following steps:
[0070] Step S2021: Encrypt the random number sent by the smart phone using the algorithm and key in the authentication module 112 to obtain encrypted data.
[0071] Step S2022: Decrypt the encrypted data through the smart phone to obtain a decryption result.
[0072] Step S2023: Compare the decryption result with the random number to obtain a matching result.
[0073] In this embodiment, the Apple mobile phone establishes standard USB device communication through the lighting interface. Establishing IAP2 communication with the iPhone mobile phone, this process is the standard communication process of the Apple mobile phone to the peripherals. Synchronization of various communication parameters of the device and authentication of the access device. This authentication is a process in which the random number sent by the iPhone is encrypted using the algorithm and key in the internal preset certificate, and then the mobile phone decrypts the encryption result and compares the result with the random number sent. After the IAP2 process is established, the mobile phone sends data and commands to the MCU, and the MCU sends the data and commands to the elevator through the UART and 422 conversion circuit.
[0074] Obviously, the above embodiments are merely examples for clear description and are not limitations of the implementation methods.
[0075] For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. However, the obvious changes or modifications derived from this are still within the protection scope of the invention.
Claims
1. An elevator control system based on a smart phone, used to control an elevator, the elevator having the control interface and the power interface, characterized in that: The system comprises: The main control module is provided with a USB interface and a signal transmission interface; A smart phone, connected to the USB interface for inputting control instructions to the main control module; an isolation module, which is communicatively connected to the signal transmission interface and the power supply interface respectively, and the isolation module performs electrical isolation during the transmission process of the control instruction being sent to the elevator, and enables the elevator to charge the main control module; The initialization module is respectively connected to the main control module and the isolation module for communication. After being powered on, the initialization module initializes the main control module and the isolation module.
2. The data communication converter based on a smart phone according to claim 1, characterized in that: The main control module comprises: A processor, provided with the USB interface, the signal transmission interface and the authentication interface; An authentication module is communicatively connected to the authentication interface, and the authentication module is suitable for obtaining information of the smart phone to authenticate the smart phone.
3. The data communication converter based on a smart phone according to claim 2, characterized in that: The smart phone is an Apple phone, and the authentication module is an MFI authentication chip.
4. The data communication converter based on a smart phone according to claim 2, characterized in that: The isolation module comprises: A digital isolator is provided with a first signal terminal, wherein the first signal terminal is communicatively connected to the signal transmission interface; The transceiver is provided with a second signal terminal, the transceiver is communicatively connected with the digital isolator, and the second signal terminal is suitable for outputting control instructions.
5. The data communication converter based on a smart phone according to claim 4, characterized in that: The transceiver is an RS-422 transceiver, and the signal transmission interface is a URAT interface.
6. The data communication converter based on a smart phone according to claim 4, characterized in that: The isolation module further includes a photoelectric coupler, and the photoelectric coupler is electrically connected to the processor.
7. An elevator control method based on a smart phone, characterized in that: Using the smart phone-based elevator control system as claimed in claim 7, the smart phone-based elevator control method comprises: Initializing the main control module and the isolation module of the elevator control system based on the smart phone after power is supplied; Input control instructions to the main control module via a smart phone; Electrically isolating the control instruction by the isolation module; The control instruction after electrical isolation is controlled is sent to the elevator.
8. The elevator control method based on a smart phone according to claim 7, characterized in that: Also includes: Obtaining information of the smartphone; Authenticating the smartphone based on the information of the smartphone to obtain an authentication result; If the authentication result shows that the authentication is successful, sending the control instruction to the elevator; If the authentication result shows that the authentication is unsuccessful, the control instruction is refused to be sent to the elevator.
9. The smart phone-based elevator control system according to claim 8, characterized in that: Authenticating the smartphone based on the information of the smartphone to obtain an authentication result specifically includes: The random number sent by the smart phone is encrypted by the algorithm and key in the authentication module to obtain encrypted data; Decrypting the encrypted data through a smart phone to obtain a decryption result; The decryption result is compared with the random number to obtain the matching result.