WO2019119229A1 - 通信方法及装置、水泵、无人机、可读存储介质 - Google Patents

通信方法及装置、水泵、无人机、可读存储介质 Download PDF

Info

Publication number
WO2019119229A1
WO2019119229A1 PCT/CN2017/117012 CN2017117012W WO2019119229A1 WO 2019119229 A1 WO2019119229 A1 WO 2019119229A1 CN 2017117012 W CN2017117012 W CN 2017117012W WO 2019119229 A1 WO2019119229 A1 WO 2019119229A1
Authority
WO
WIPO (PCT)
Prior art keywords
water pump
connection data
control system
information
mode
Prior art date
Application number
PCT/CN2017/117012
Other languages
English (en)
French (fr)
Inventor
方朝晖
潘仑
何纲
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2017/117012 priority Critical patent/WO2019119229A1/zh
Priority to CN201780006744.6A priority patent/CN108521785B/zh
Publication of WO2019119229A1 publication Critical patent/WO2019119229A1/zh
Priority to US16/905,123 priority patent/US20200319656A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/10Simultaneous control of position or course in three dimensions
    • G05D1/101Simultaneous control of position or course in three dimensions specially adapted for aircraft
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/185Space-based or airborne stations; Stations for satellite systems
    • H04B7/18502Airborne stations
    • H04B7/18506Communications with or from aircraft, i.e. aeronautical mobile service
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D15/00Control, e.g. regulation, of pumps, pumping installations or systems
    • AHUMAN NECESSITIES
    • A01AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTING; TRAPPING; FISHING
    • A01MCATCHING, TRAPPING OR SCARING OF ANIMALS; APPARATUS FOR THE DESTRUCTION OF NOXIOUS ANIMALS OR NOXIOUS PLANTS
    • A01M7/00Special adaptations or arrangements of liquid-spraying apparatus for purposes covered by this subclass
    • A01M7/0025Mechanical sprayers
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B64AIRCRAFT; AVIATION; COSMONAUTICS
    • B64CAEROPLANES; HELICOPTERS
    • B64C39/00Aircraft not otherwise provided for
    • B64C39/02Aircraft not otherwise provided for characterised by special use
    • B64C39/024Aircraft not otherwise provided for characterised by special use of the remote controlled vehicle type, i.e. RPV
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B64AIRCRAFT; AVIATION; COSMONAUTICS
    • B64DEQUIPMENT FOR FITTING IN OR TO AIRCRAFT; FLIGHT SUITS; PARACHUTES; ARRANGEMENT OR MOUNTING OF POWER PLANTS OR PROPULSION TRANSMISSIONS IN AIRCRAFT
    • B64D1/00Dropping, ejecting, releasing, or receiving articles, liquids, or the like, in flight
    • B64D1/16Dropping or releasing powdered, liquid, or gaseous matter, e.g. for fire-fighting
    • B64D1/18Dropping or releasing powdered, liquid, or gaseous matter, e.g. for fire-fighting by spraying, e.g. insecticides
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D29/00Details, component parts, or accessories
    • F04D29/007Details, component parts, or accessories especially adapted for liquid pumps
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/0094Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots involving pointing a payload, e.g. camera, weapon, sensor, towards a fixed or moving target
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B64AIRCRAFT; AVIATION; COSMONAUTICS
    • B64UUNMANNED AERIAL VEHICLES [UAV]; EQUIPMENT THEREFOR
    • B64U2101/00UAVs specially adapted for particular uses or applications

Definitions

  • the embodiments of the present application relate to the field of communications, and in particular, to a communication method and apparatus, a water pump, a drone, and a readable storage medium.
  • the operation of agricultural drones is mainly based on liquid spraying.
  • the water pump is an important component for liquid spraying, and it is also the most frequent device in actual operation.
  • the pump can only be detected by the factory information of the pump. Better locate the specific cause of the pump damage.
  • it is also necessary to obtain information on the use of the water pump, so that the use of the water pump can be analyzed and studied through the use of the relevant information.
  • how to make the pump control system simple, fast and directly obtain the relevant usage information of the water pump is a problem that needs to be solved urgently.
  • the embodiment of the present application provides a communication method and device, a water pump, a drone, and a readable storage medium, which are used to provide a stable and reliable communication mode to realize reliable transmission of relevant usage information of a water pump.
  • the first aspect of the present application provides a communication method, which is applied to a mobile platform, where the mobile platform includes a water pump for spraying liquid, and the communication method includes:
  • the target communication mode of the water pump is determined according to the connection data
  • the second control system is in communication with the second control system in accordance with the target communication mode.
  • a second aspect of the present application provides a communication device for use in a mobile platform, the mobile platform including a water pump for spraying a liquid, the communication device comprising:
  • the target communication mode of the water pump is determined according to the connection data
  • the second control system is in communication with the second control system in accordance with the target communication mode.
  • a third aspect of the present application provides a water pump, which may include the communication device provided by the second aspect described above.
  • a fourth aspect of the present application provides an unmanned aerial vehicle comprising the water pump provided by the above third aspect.
  • a fifth aspect of the present application provides a computer readable storage medium having stored thereon a computer program.
  • the computer program is executed by the processor, the following steps are implemented:
  • the target communication mode of the water pump is determined according to the connection data
  • the second control system is in communication with the second control system in accordance with the target communication mode.
  • the embodiments of the present application have the following advantages:
  • the embodiment of the present application provides a communication method.
  • the water pump receives the connection data sent by the first control system, and when the communication mode of the first control system is the same as the current communication mode of the water pump, the target communication of the water pump may be determined according to the connection data. And communicating with the second control system indicated by the connection data in accordance with the target communication mode. Therefore, through the above communication method, the second control system can realize communication with the water pump, and can directly, directly and conveniently acquire the relevant usage information of the water pump instead of the simple factory information, thereby facilitating the second.
  • the control system analyzes and studies the use of the water pump according to the obtained communication information, and can timely determine the damage, cause and responsibility of the water pump when the water pump is damaged.
  • one or more communication modes can be provided on one side of the water pump, and one or more communication modes can be switched, which is advantageous for the water pump to be applied to various usage scenarios.
  • FIG. 1 is a schematic diagram of an embodiment of a communication method in an embodiment of the present application.
  • FIG. 2 is a schematic diagram of another embodiment of a communication method according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of another embodiment of a communication method according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of another embodiment of a communication method according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of another embodiment of a communication method according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another embodiment of a communication method according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another embodiment of a communication method according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another embodiment of a communication method according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another embodiment of a communication method according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of interaction of an embodiment of a communication method according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a communication frame based on FIG. 10 according to an embodiment of the present application.
  • FIG. 12 is a schematic diagram of interaction of another embodiment of a communication method according to an embodiment of the present application.
  • FIG. 13 is a schematic diagram of a communication frame based on FIG. 12 according to an embodiment of the present application.
  • FIG. 14 is a schematic diagram of an embodiment of a communication device according to an embodiment of the present application.
  • the embodiment of the present application provides a communication method and device, a water pump, a drone, and a readable storage medium, which are used to provide a stable and reliable communication mode to realize reliable transmission of relevant usage information of a water pump.
  • an embodiment of the communication method in the embodiment of the present invention includes:
  • step 101 when the water pump is powered on, detecting whether the water pump receives the connection data sent by the first control system, and if so, executing step 102, if not, executing step 104;
  • the mobile platform may include a water pump for spraying liquid, and the water pump may be provided with a chip such as to enable communication with its control system.
  • the detecting device corresponding to the method in this embodiment can detect whether the water pump receives the connection data sent by the first control system.
  • one or more communication modes can be provided on one side of the water pump to adapt to different scenarios and hardware.
  • the first control system may send connection data to the water pump to instruct the water pump to communicate with the second control system through a corresponding communication manner.
  • the first control system may not have sent connection data to the pump, so the pump may not have the need to communicate with the outside to avoid waste of communication resources.
  • the water pump is powered on, it can be detected whether the water pump receives the connection data sent by the first control system.
  • the first control system may be the same as the second control system, or may not be the same as the second control system, and is not specifically limited herein.
  • the first control system and/or the second control system may be disposed on the mobile platform, or may not be disposed on the mobile platform, and is not specifically limited herein.
  • the communication mode of the first control system is the current communication mode of the water pump, determining a target communication mode of the water pump according to the connection data;
  • the water pump when the water pump receives the connection data sent by the first control system, it can further detect whether the communication mode of the first control system is the same as the current communication mode of the water pump, if the communication mode of the first control system is the current state of the water pump.
  • the communication method can determine the target communication mode of the water pump based on the received connection data.
  • the communication mode of the first control system may be different from the current communication mode of the water pump.
  • the water pump may have a problem that the received connection data cannot be parsed or parsed incorrectly, and accordingly, the corresponding communication cannot be performed according to the connection data. Therefore, after the water pump receives the connection data, if it is determined that the communication mode of the first control system is the same as the current communication mode of the water pump, the connection data can be correctly analyzed, and the target communication mode of the water pump can be determined according to the connection data.
  • the current communication mode of the water pump and the target communication mode of the water pump may be the same or different, and Make specific limits.
  • communication with the second control system may be performed according to the target communication mode.
  • the second control system is an indication of connection data.
  • connection data may not only indicate the target communication object of the water pump, but also indicate the target communication mode of the water pump and the target communication object, and may further indicate the communication content of the water pump and the target communication object.
  • the target communication object ie, the second control system
  • the target communication object may be the second control system of the first control system, or may be a second control system different from the first control system.
  • the first control system A sends connection data to the water pump B according to the communication mode A1. After the water pump B receives the connection data, if the current communication mode of the water pump B is also A1, after analyzing the connection data, the water pump can be determined according to the connection data. In the target communication mode A1 of B, the water pump B can communicate with the second control system, that is, A, according to the target communication mode A1, to perform interaction of related communication information.
  • the first control system A sends connection data to the water pump B according to the communication mode A1. After the water pump B receives the connection data, if the current communication mode of the water pump B is also A1, after analyzing the connection data, the water pump can be determined according to the connection data.
  • the target communication method A2 of B (A2 may be the same as or different from A1), and the water pump B may communicate with the second control system C indicating the connection data in accordance with the target communication method A2 to perform interaction of the related communication information.
  • the current communication mode A1 of the water pump B can be switched to the target communication mode A2, and before the switching, the corresponding hardware initialization processing can be performed to implement the A1. Switch to A2.
  • the other operations may not be performed, that is, the process ends.
  • connection data sent by the first control system after the water pump does not receive the connection data sent by the first control system, other operations may be performed, such as continuously detecting whether there is connection data sent by the first control system. limited.
  • step 104 when the communication mode of the first control system is different from the current communication mode of the water pump, the content described in the above step 104 may also be performed, which is not specifically limited herein.
  • the water pump receives the connection data sent by the first control system, and when the communication mode of the first control system is the same as the current communication mode of the water pump, the target communication mode of the water pump may be determined according to the connection data, and the The target communication mode communicates with the second control system indicated by the connection data. Therefore, through the above communication method, the second control system can realize communication with the water pump, and can directly, directly and conveniently acquire the relevant usage information of the water pump instead of the simple factory information, thereby facilitating the second.
  • the control system analyzes and studies the use of the water pump according to the obtained communication information, and can timely determine the damage, cause and responsibility of the water pump when the water pump is damaged.
  • one or more communication modes can be provided on one side of the water pump, and one or more communication modes can be switched, which is beneficial to the pump being applicable to various usage scenarios.
  • connection data sent by the first control system after receiving the connection data sent by the first control system, it may be detected whether the communication mode of the first control system is the same as the current communication mode of the water pump, but the first time the water pump does not receive the first communication system.
  • connection data or connection data sent by the control system does not meet the preset conditions, different operations can be performed, which are described below:
  • another embodiment of the communication method in the embodiment of the present application includes:
  • step 201 when the water pump is powered on, detecting whether the water pump receives the connection data sent by the first control system, and if so, executing step 202, if not, executing step 206;
  • Step 201 in this embodiment is the same as step 101 in the embodiment shown in FIG. 1, and details are not described herein again.
  • the current communication mode of the water pump can be switched according to the second preset rule.
  • the second preset rule in this embodiment may be set according to actual needs, for example, multiple communication modes may be switched in turn, or multiple communication modes may be switched according to the order of use frequency, and may also be The communication method used at one time starts to switch, and is not specifically limited herein.
  • 202 when the communication mode of the first control system is the current communication mode of the water pump, detecting whether the connection data meets the preset condition, if yes, executing step 203, if not, executing step 206;
  • the water pump may further detect whether the connection data meets the preset condition.
  • connection data can be correctly parsed when the communication mode of the first control system is the same as the current communication mode of the water pump
  • the analysis result of the connection data may be used. Correctness is used to judge whether the communication mode of the first control system is the same as the current communication mode of the water pump, that is, if the connection data is correctly parsed, the communication mode of the first control system is the current communication mode of the water pump, and vice versa, the default first control The communication method of the system is different from the current communication mode of the water pump.
  • one or more communication modes provided on the pump side may be respectively set according to the classification of the communication mode.
  • the connection data can be correctly parsed and responded to the connection data, and vice versa
  • the connection data is parsed and may not respond to the connection data.
  • the communication mode of the first control system may be the same as the current communication mode of the water pump, but the data characteristics corresponding to the connection data may not meet the preset conditions, thereby causing unreliable connection data, such as connection data.
  • the baud rate does not meet the preset conditions, so in order to avoid the data security problem caused by such problems, the connection data can be detected correspondingly before responding to the connection data.
  • the method for determining whether the communication mode of the first control system is the same as the current communication mode of the water pump is not limited to the above description, and in actual applications, other methods may be adopted, as long as it can be used for determining Whether the communication mode of a control system is the same as the current communication mode of the water pump, and is not specifically limited herein.
  • connection data if the connection data satisfies the preset condition, the working mode of the water pump can be determined according to the connection data.
  • the specific manner of determining the working mode of the water pump according to the connection data may be:
  • the operating mode of the water pump is determined based on the content information.
  • connection data meets the preset condition, it means that the connection data can be correctly parsed, and after the connection data is correctly parsed, the content information of the connection data can be obtained, and the content information can indicate the corresponding working mode that the water pump needs to enter.
  • the corresponding working mode allows the pump side to perform the corresponding function.
  • one or more working modes may be provided on one side of the water pump, and the working mode may include, but is not limited to, one of a data output mode, a command input mode, a programming mode, and a data editing mode.
  • the programming mode may refer to, for example, setting an input command
  • the data output mode may refer to, for example, external output data
  • the command input mode may refer to a command such as receiving an external input
  • the data editing mode may refer to data such as an edit output.
  • the target communication mode of the water pump may be further determined according to the working mode.
  • one working mode may correspond to a communication mode
  • the specific working mode and the communication mode corresponding to the working mode may be set by the first control system and connected to the data via the first control system. Instructions. Therefore, after determining the working mode that the pump needs to enter, the target communication mode of the water pump can be determined.
  • Step 205 in this embodiment is the same as step 103 in the embodiment shown in FIG. 1, and details are not described herein again.
  • the corresponding working mode can make the water pump side perform the corresponding function
  • the function of the corresponding working mode can be performed. For example, when it is determined according to the connection data that the working mode of the water pump is the data output mode, when the current working mode of the water pump is not the data output mode, the current working mode of the water pump can be switched to the data output mode first, and then the target communication mode can be followed. The corresponding data is output to the second control system to perform a function corresponding to the data output mode.
  • the target communication mode of the water pump may be determined according to the preset working mode.
  • a preset working mode may be preset on the water pump side, and the preset working mode may correspond to a communication mode, whereby the target communication mode of the water pump may be determined according to the preset working mode.
  • the preset working mode may be one of a plurality of working modes on the water pump side, and the preset working mode may be adjusted accordingly.
  • the preset working mode is determined in addition to the content described above. In practical applications, other methods may also be used, such as the working mode corresponding to the last time the water pump communicates with the second control system.
  • the working mode with the highest frequency of use of the water pump is the preset working mode, and is not specifically limited herein.
  • the target communication mode may include, but is not limited to, one of a serial port, an integrated circuit bus IIC, a serial peripheral interface SPI, a single bus, a controller area network CAN bus, and a pulse.
  • the first communication information may be transmitted outward according to the target communication mode.
  • the pump does not receive the connection data or the connection data does not meet the preset condition, it means that the pump side cannot know the communication object with which it communicates, but the pump side can still transmit the first communication information according to the target communication mode.
  • the first communication information can be acquired correspondingly when the second control system that communicates according to the target communication mode needs to acquire information about the water pump.
  • the detection of the received connection data is added in the embodiment, which is beneficial to reducing the response of the pump side to the connection data that does not meet the requirements, and also increases the communication security, which is beneficial to reduce.
  • the probability of leakage of the relevant usage data of the pump is beneficial to reduce.
  • a specific subsequent operation mode is provided for the case where the connection data is not received and the connection data does not satisfy the preset condition, which is beneficial to satisfy different communication scenarios.
  • another embodiment of the communication method in this embodiment of the present application includes:
  • step 302 when the communication mode of the first control system is the current communication mode of the water pump, detecting whether the connection data meets the preset condition, if yes, executing step 303, if not, executing step 306;
  • Steps 301 to 305 in this embodiment are the same as steps 201 to 205 in the embodiment shown in FIG. 2, and details are not described herein again.
  • the current power-on time of the water pump may be determined.
  • step 307 detecting whether the current power-on duration is greater than the preset duration, if not, proceeding to step 301, and if so, executing step 308;
  • the first control system may be detected multiple times. Whether the transmitted connection data or the detected connection data meets the preset condition, but the number of detections can be correspondingly limited to meet various communication possibilities of the water pump. Therefore, the preset duration may be preset according to the power-on duration of the water pump to limit the number of detections by the preset duration, that is, when the current power-on duration of the water pump is within the preset duration, step 301 to step 302 may be continuously performed. However, when the current power-on time of the water pump exceeds the preset duration, step 301 to step 302 may not be continuously performed.
  • Steps 308 to 309 in this embodiment are the same as steps 206 to 207 in the embodiment shown in FIG. 2, and details are not described herein again.
  • the embodiment increases the detection of the power-on duration of the water pump, and the preset duration of the electrical duration is used as a limit, so that the pump side can be powered on for a preset period of time.
  • Corresponding detection of the connection data is continuously performed to continuously adapt the first control system and the connection data it transmits.
  • another embodiment of the communication method in the embodiment of the present application includes:
  • step 401 when the water pump is powered on, detecting whether the water pump receives the connection data sent by the first control system, and if so, executing step 402; if not, executing step 401;
  • Step 401 in this embodiment is the same as step 201 in the embodiment shown in FIG. 2, and details are not described herein again.
  • the water pump when the water pump does not receive the connection data sent by the first control system, in order to be able to communicate with the second control system indicated by the connection data sent by the first control system, after the water pump is powered on, It is possible to cyclically detect whether the water pump receives the connection data sent by the first control system, until it detects that the water pump receives the connection data sent by the first control system, and can continue the subsequent process.
  • Step 402 in this embodiment is the same as step 202 in the embodiment shown in FIG. 2, and details are not described herein again.
  • connection data received by the water pump does not satisfy the preset condition
  • the water pump side cannot communicate with the second control system indicated by the connection data, and the water pump can be cyclically detected. Whether the connection data sent by the first control system is received, until it is detected that the water pump receives the connection data sent by the first control system, it can continue to detect whether the connection data meets the preset condition.
  • the water pump may receive the connection data sent by the first control system according to the preset period, that is, according to the preset The corresponding time interval is detected accordingly.
  • the duration corresponding to the preset period may be not less than the total duration of the two processes of step 401 to step 402 to avoid repeated execution of step 401 when the connection data meets the preset condition.
  • step 401 to step 402 when the water pump side receives the connection data and the connection data satisfies the preset condition, the loop execution of step 401 or step 401 to step 402 can be suspended.
  • the communication mode of the first control system when the communication mode of the first control system is different from the current communication mode of the water pump, it is also possible to cyclically detect whether the water pump receives the connection data sent by the first control system until the water pump is detected to be received.
  • the connection data sent by the first control system, and the communication mode of the first control system is the current communication mode of the water pump, and then it can continue to detect whether the connection data meets the preset condition.
  • Steps 403 to 405 in this embodiment are the same as steps 203 to 205 in the embodiment shown in FIG. 2, and details are not described herein again.
  • connection data after the water pump is powered on, if the connection data is not received or the connection data does not meet the preset condition, the corresponding detection of the connection data may be continuously performed until the water pump It can communicate with an adapted second control system.
  • the water pump can be switched when the current communication mode of the water pump does not match the communication mode of the first control system.
  • the current communication mode is adapted to the communication mode of the first control system, and is exemplified below based on FIG. 2:
  • another embodiment of the communication method in the embodiment of the present application includes:
  • step 502 after the water pump is powered on, detecting whether the water pump receives the connection data sent by the first control system, and if so, executing step 502; if not, executing step 508;
  • Step 501 in this embodiment is the same as step 201 in the embodiment shown in FIG. 2, and details are not described herein again.
  • step 502 detecting whether the communication mode of the first control system is the same as the current communication mode of the water pump, if not, executing step 503, and if yes, executing step 504;
  • step 502 For the related content of step 502 in this embodiment, reference may be made to the same content in step 202 in the embodiment of FIG. 2, and details are not described herein again.
  • the current communication mode of the water pump may be switched according to the first preset rule.
  • one or more communication modes may be provided on one side of the water pump.
  • the water pump may be switched according to the first preset rule. Current communication method.
  • the communication mode of the first control system can be correspondingly detected whether it is the same as the current communication mode of the water pump until the communication mode after the switching is the same as the communication mode of the first control system.
  • the first preset rule in this embodiment may be set according to actual needs, for example, multiple communication modes may be switched in turn, or multiple communication modes may be switched according to the order of use frequency, and may also be The communication mode that is used once is started to be switched.
  • the first preset rule may be the same as the second preset rule, or may be different from the second preset rule, and is not specifically limited herein.
  • the embodiment is more suitable for the case where the water pump and the first control system agree to have a corresponding communication mode, that is, when there is connection data sent by the first control system, the water pump does not determine which the first control system is.
  • the connection data transmitted by the communication mode but since the water pump and the first control system have a corresponding communication mode, the water pump side can switch the current communication mode to match the communication mode of the first control system.
  • steps may be performed. 507 to the flow of step 508.
  • step 504 detecting whether the connection data meets the preset condition, and if so, executing step 505, and if not, executing step 508;
  • the current communication mode of the water pump when the current communication mode of the water pump is switched to the same communication mode as the first control system, or the current communication mode of the water pump is originally the same as the communication mode of the first control system, it can detect whether the connection data meets the preset. condition.
  • Step 504 in this embodiment is the same as step 202 in the embodiment shown in FIG. 2, and details are not described herein again.
  • Steps 505 to 509 in this embodiment are the same as steps 203 to 207 in the embodiment shown in FIG. 2, and details are not described herein again.
  • the current communication mode of the water pump when the current communication mode of the water pump is different from the communication mode of the first control system, the current communication mode of the water pump can be switched to adapt to the first control system.
  • the communication method instead of continuously obtaining the connection data sent by the first control system whose communication mode is the same as the current communication mode of the water pump, is beneficial to the second control system of the connection data indication sent by the water pump side and the first control system. Communication efficiency.
  • connection data may include, but is not limited to, two types of data, such as bus data or a pulse signal. Based on different data types of the connection data, detecting whether the connection data meets a preset condition is different. Based on Figure 2, the bus data and the pulse signal are respectively exemplified:
  • FIG. 6 another embodiment of the communication method in the embodiment of the present application includes:
  • step 601 when the water pump is powered on, detecting whether the water pump receives the connection data sent by the first control system, and if so, executing step 602, if not, executing step 606;
  • Step 601 in this embodiment is the same as step 201 in the embodiment shown in FIG. 2, and details are not described herein again.
  • step 602 when the communication mode of the first control system is the current communication mode of the water pump, detecting whether the connection data conforms to the preset data protocol, and if yes, executing step 603, if not, executing step 606;
  • the data type of the connection data can be determined by the type of the communication interface.
  • the connection data is bus data, it can be detected whether the connection data conforms to a preset data protocol.
  • the bus data may include but is not limited to one of serial port data, integrated circuit bus IIC data, serial peripheral interface SPI data, single bus data, and controller area network CAN bus data.
  • the different bus data may correspond to the same preset data protocol.
  • the connection data After receiving the connection data, the connection data may be parsed, and the parsed connection data may be compared with a preset data protocol to detect whether the connection data conforms to the preset data. protocol.
  • Steps 603 to 607 in this embodiment are the same as steps 203 to 207 in the embodiment shown in FIG. 2, and details are not described herein again.
  • another embodiment of the communication method in the embodiment of the present application includes:
  • step 701 when the water pump is powered on, detecting whether the water pump receives the connection data sent by the first control system, and if so, executing step 702; if not, executing step 708;
  • the step 701 in this embodiment is the same as the step 201 in the embodiment shown in FIG. 2, and details are not described herein again.
  • the data type of the connection data can be determined by the type of the communication interface.
  • attribute information of the connection data can be acquired.
  • the attribute information may reflect the pulse type of the pulse signal, and the attribute information may include but is not limited to the frequency of the pulse, the number of pulses, the period of the pulse, and the pulsed power. At least one of a flat time, pulsed pulse width modulated PWM.
  • the pulse type of the connection data may be determined according to the attribute information.
  • step 704 detecting whether the pulse type meets the preset pulse type, if yes, executing step 705, if not, executing step 708;
  • one or more preset pulse types may be provided on the pump side.
  • each preset pulse type it may be set according to a preset range of at least one of a pulse frequency, a number of pulses, a pulse period, a pulse level time, and a pulse width modulation PWM.
  • the setting may be set according to a preset value of at least one of a frequency of the pulse, a number of pulses, a period of the pulse, a level time of the pulse, and a pulse width modulation PWM of the pulse.
  • the pulse type corresponding to the connection data can be compared with each preset pulse type. If the pulse type of the connected data matches one of the preset pulse types, the connection data is considered to satisfy the preset condition, if the connection data is If the pulse type does not match any of the preset pulse types, it is considered that the connection data does not satisfy the preset condition.
  • Steps 705 to 709 in this embodiment are the same as steps 203 to 207 in the embodiment shown in FIG. 2, and details are not described herein again.
  • the embodiment shown in FIG. 6 and the embodiment shown in FIG. 7 respectively provide a corresponding method for detecting the connection data according to the data type of the connection data, and the detection of the connection data of different data types is enhanced, and is also beneficial. It prevents the detection efficiency caused by the unclear detection means. At the same time, different detection methods for different data types can reduce the difficulty of cracking detection means and improve communication security.
  • the corresponding communication information may be transmitted, or the corresponding communication information may be received, based on the figure. 2, the following are illustrative examples:
  • another embodiment of the communication method in the embodiment of the present application includes:
  • step 801 when the water pump is powered on, detecting whether the water pump receives the connection data sent by the first control system, and if so, executing step 802; if not, executing step 806;
  • step 802 when the communication mode of the first control system is the current communication mode of the water pump, detecting whether the connection data meets the preset condition, if yes, executing step 803, and if not, executing step 806;
  • Steps 801 to 804 in this embodiment are the same as steps 201 to 204 in the embodiment shown in FIG. 2, and details are not described herein again.
  • the second communication information may be transmitted to the second control system according to the target communication mode.
  • the corresponding second communication information may be determined according to the requirement type of the second control system, and the second communication information is determined as follows: :
  • the working mode can correspond to the demand type of the second control system, that is, different second control systems have different requirements types, and in the same working mode, they can also be classified according to the demand type, such as a sub working mode, and each A demand type may indicate communication information that needs to be communicated in the corresponding sub-operation mode. Therefore, after the received connection data satisfies the preset condition, the first working mode of the water pump may be determined according to the content information of the connection data, and the demand type of the second control system determines the sub-working mode of the water pump in the working mode. Further determining the content of the second communication information according to the sub-operation mode, and transmitting the second communication information to the second control system according to the target communication mode.
  • the working mode does not correspond to the demand type of the second control system, that is, the working mode will not be classified in advance according to the demand type of the second control system. Therefore, after the received connection data satisfies the preset condition, the working mode of the water pump may be determined according to the content information of the connection data, and the content of the second communication information is determined by the demand type of the second control system (requirement of the second control system) The type may be determined as long as the content of the second communication information is determined, and then the second communication information is transmitted to the second control system in accordance with the target communication mode.
  • the first communication information or the second communication information may include, but is not limited to, a usage time of the water pump (the usage time may be, for example, the total power-on time of the water pump, may also be a total spray duration such as a water pump, etc.), and the water pump
  • the state of use (this state of use can be such as the power-on state of the pump, or the spray state of the pump, etc.), the service life of the pump, the remaining life of the pump, the version of the pump, the hardware information of the pump, and the factory of the pump At least one of information, environmental information of the water pump, and working information of the water pump.
  • the environmental information may include, but is not limited to, temperature information and/or humidity information
  • the work information may include, but is not limited to, at least one of an operating current, an operating voltage, liquid pressure information, and liquid flow rate information.
  • a variety of sensors may be provided on the water pump to obtain corresponding information.
  • a temperature sensor may be provided to collect temperature information in the environmental information of the water pump.
  • Steps 806 to 807 in this embodiment are the same as steps 206 to 207 in the embodiment shown in FIG. 2, and details are not described herein again.
  • another embodiment of the communication method in the embodiment of the present application includes:
  • step 901 when the water pump is powered on, detecting whether the water pump receives the connection data sent by the first control system, and if so, executing step 902; if not, executing step 906;
  • step 902 when the communication mode of the first control system is the current communication mode of the water pump, detecting whether the connection data meets the preset condition, if yes, executing step 903, and if not, executing step 906;
  • Steps 901 to 904 in this embodiment are the same as steps 201 to 204 in the embodiment shown in FIG. 2, and details are not described herein again.
  • the third communication information transmitted by the second control system may be accepted according to the target communication mode.
  • the third communication system may also receive the third communication transmitted by the second control system. information.
  • the current communication mode of the water pump can be adjusted to the target communication mode, that is, the communication mode of the second control system. Since the communication mode of the water pump and the communication mode of the second control system are both target communication modes, the second control system may send the third communication information to the water pump, and the water pump side may receive the third communication information to implement communication. Interaction.
  • the third communication information may include, but is not limited to, control information and/or query information.
  • the control information may include but is not limited to the closing instruction information or the opening instruction information, the closing instruction information may be used to turn off the water pump, and the opening instruction information may be used to turn on the water pump;
  • the query information may be used to obtain related information of the water pump, such as a water pump.
  • the usage status information, the usage time of the water pump, etc., after receiving such information, the pump side can feed back the query content required by the second control system to the second control system.
  • Steps 906 to 907 in this embodiment are the same as steps 206 to 207 in the embodiment shown in FIG. 2, and details are not described herein again.
  • the first control system may include, but is not limited to, one of a control system of the mobile platform, a spray system of the mobile platform, and an external communication device of the mobile platform.
  • the second control system may be the first control system, that is, the control system or the spray system of the mobile platform may communicate with the water pump side to obtain The information about the water pump; when the first control system is an external communication device of the mobile platform, the second control system may be different from the first control system, and the second control system may be a background service system of the mobile platform, such as after-sales, the outside
  • the communication device can be placed on the water pump, used as a component part of the water pump, or used as a stand-alone device.
  • the mobile platform may include, but is not limited to, an object that moves on land, on water, or in the air.
  • the mobile platform in the embodiment of the present application may be a drone to enhance the application of the drone in the agricultural industry.
  • the second control system is the first control system:
  • the first control system sends connection data to the water pump
  • step 1002 after the water pump is powered on, detecting whether the water pump receives the connection data sent by the first control system, and if so, executing step 1003, if not, executing step 1005;
  • the communication mode of the first control system is the current communication mode of the water pump, determining a target communication mode of the water pump according to the connection data;
  • the first control system may be a control system of the drone, that is, a flight control system, and the flight control system of the drone may send connection data to the water pump.
  • the pump side can analyze the connection data and can fly according to the analyzed connection data.
  • the control system communicates according to the target communication mode (ie, the current communication mode), such as transmitting the usage status information of the water pump to the flight control system.
  • the second control system is not the first control system:
  • the first control system sends connection data to the water pump
  • step 1202 after the water pump is powered on, detecting whether the water pump receives the connection data sent by the first control system, and if so, executing step 1203, if not, executing step 1205;
  • the communication mode of the first control system is the current communication mode of the water pump, determining a target communication mode of the water pump according to the connection data;
  • the first control system may be an external communication device (assumed to be a stand-alone device) of the drone, such as peripheral hardware, and the external communication device may Send the connection data to the pump side.
  • the pump side can analyze the connection data and can Determining a second control system of the communication object of the water pump according to the analyzed connection data, such as a background service system of the drone, and determining a target communication mode with the background service system of the drone, so that the pump side can pass the target
  • the communication mode communicates with the background service system of the drone, such as the usage status of the water pump to the background service system of the drone, the usage time of the water pump, the service life of the water pump, the remaining service life of the water pump, the version of the water pump, and the water pump.
  • the communication device is applied to a mobile platform, and the mobile platform includes a water pump for spraying liquid.
  • the communication device in the embodiment of the present application includes:
  • the processor 1402 is configured to:
  • the target communication mode of the water pump is determined according to the connection data
  • Communication interface 1402 for:
  • the second control system is in communication with the second control system in accordance with the target communication mode.
  • the communication interface 1401 can receive the connection data sent by the first control system, and the processor 1402 can detect whether the communication interface 1401 receives the connection data, and when the processor 1402 determines that the communication interface 1401 corresponding to the water pump receives the connection. Data, and when the communication mode of the first control system is the same as the current communication mode of the water pump, the processor 1402 may determine the target communication mode of the water pump according to the connection data, and may cause the communication interface 1402 to follow the target communication mode and the connection data.
  • the indicated second control system communicates. Therefore, through the above communication method, the second control system can realize communication with the water pump, and can directly, directly and conveniently acquire the relevant usage information of the water pump instead of the simple factory information, thereby facilitating the second.
  • the control system analyzes and studies the use of the water pump according to the obtained communication information, and can timely determine the damage, cause and responsibility of the water pump when the water pump is damaged.
  • one or more communication modes can be provided on one side of the water pump, and one or more communication modes can be switched, which is beneficial to the pump being applicable to various usage scenarios.
  • the processor 1402 is further configured to:
  • the communication mode of the first control system is the current communication mode of the water pump.
  • the processor 1402 may be further specifically used to:
  • the target communication mode of the water pump is determined according to the working mode.
  • the processor 1402 is further configured to:
  • the target communication mode of the water pump is determined according to the preset working mode
  • the communication interface 1401 can be further specifically used for:
  • the first communication information is transmitted outward according to the target communication mode.
  • the processor 1402 is further configured to:
  • the step of determining the target communication mode of the water pump according to the preset working mode is triggered.
  • the processor 1402 is further configured to:
  • the step of detecting whether the water pump receives the connection data sent by the first control system is triggered according to the preset period.
  • the processor 1402 is further configured to:
  • the current communication mode of the water pump is switched according to the first preset rule.
  • the processor 1402 when the connection data is bus data, the processor 1402 may be further specifically used to:
  • connection data conforms to the preset protocol, and if so, it is determined that the connection data satisfies the preset condition.
  • the processor 1402 when the connection data is a pulse signal, the processor 1402 may be further specifically used to:
  • the communication interface 1401 may be further specifically used to:
  • the second communication information is transmitted to the second control system in accordance with the target communication mode.
  • the processor 1402 may be further specifically used to:
  • the operating mode of the water pump is determined based on the content information.
  • the processor 1402 is further configured to:
  • the working mode of the water pump is determined according to the content information, including:
  • the operating mode of the pump is determined based on the content information and the type of demand.
  • the processor 1402 may be further specifically used to:
  • the second communication information is determined according to the type of demand.
  • the communication interface 1401 may be further specifically used to:
  • the processor 1402 is further configured to:
  • the current communication mode of the water pump is switched according to the second preset rule.
  • the communication device can include, but is not limited to, a communication interface, a processor. It will be understood by those skilled in the art that the schematic diagram shown in FIG. 14 is merely an example of a communication device, and does not constitute a limitation of the communication device, and may include more or less components than those illustrated, or some components may be combined, or different. Components, such as the communication device, may also include input and output devices, network access devices, etc., for example, the communication device may also include a memory.
  • a computer program can be stored in the memory, the computer program being executable by the processor to complete the application.
  • the computer program can include a series of instruction segments capable of performing a particular function for describing the execution of the various components of the computer program in the communication device to implement a particular function as described in the corresponding communication device.
  • the processor may be a central processing unit (CPU), or may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), and an off-the-shelf device.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA Field-Programmable Gate Array
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like, which is the control center of the detecting device, and connects various parts of the entire detecting device using various interfaces and lines.
  • the memory can be used to store the computer program and/or module, the processor implementing the detection by running or executing a computer program and/or module stored in the memory, and recalling data stored in the memory Various functions of the device.
  • the memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored. Data created based on the use of the terminal (such as audio data, phone book, etc.).
  • the memory may include a high-speed random access memory, and may also include non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card.
  • non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card.
  • Flash Card at least one disk storage device, flash memory device, or other volatile solid-state storage device.
  • the embodiment of the present application further provides a water pump, which may include the communication device described above, and the communication device may be connected to the first control system or the second control system indicated by the first control system by corresponding communication means. Communicating, and transmitting the relevant usage information of the water pump to the first control system or the second control system during the communication process to satisfy the acquisition of the relevant usage information of the water pump by the first control system or the second control system.
  • a water pump which may include the communication device described above, and the communication device may be connected to the first control system or the second control system indicated by the first control system by corresponding communication means. Communicating, and transmitting the relevant usage information of the water pump to the first control system or the second control system during the communication process to satisfy the acquisition of the relevant usage information of the water pump by the first control system or the second control system.
  • the embodiment of the present application further provides a computer readable storage medium, where the computer program is stored, and when the computer program is executed by the processor, the steps described in the foregoing method embodiments may be implemented. Process.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a respective computer readable storage medium.
  • the present invention implements all or part of the processes in the foregoing corresponding embodiments, and may also be completed by a computer program to instruct related hardware, and the computer program may be stored in a computer readable storage medium.
  • the computer program when executed by the processor, implements the steps of the various method embodiments described above.
  • the computer program comprises computer program code, which may be in the form of source code, object code form, executable file or some intermediate form.
  • the computer readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM). , random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media Does not include electrical carrier signals and telecommunication signals.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Mechanical Engineering (AREA)
  • Pest Control & Pesticides (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Automation & Control Theory (AREA)
  • Astronomy & Astrophysics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Wood Science & Technology (AREA)
  • Insects & Arthropods (AREA)
  • Zoology (AREA)
  • Environmental Sciences (AREA)
  • Control Of Non-Positive-Displacement Pumps (AREA)
  • Control Of Positive-Displacement Pumps (AREA)
  • Traffic Control Systems (AREA)

Abstract

一种通信方法及装置、水泵、可读存储介质,用于提供一种稳定、可靠的通信方式,以实现水泵的相关使用信息的可靠性传输。本申请实施例中通信方法可应用于移动平台,移动平台包括用于喷洒液体的水泵,该通信方法包括:当水泵上电后,检测水泵是否接收有第一控制系统发送的连接数据;若接收,则当第一控制系统的通信方式为水泵的当前通信方式时,根据连接数据确定水泵的目标通信方式;按照目标通信方式与第二控制系统进行通信,第二控制系统为连接数据指示。

Description

通信方法及装置、水泵、无人机、可读存储介质 技术领域
本申请实施例涉及通信领域,尤其涉及一种通信方法及装置、水泵、无人机、可读存储介质。
背景技术
农业无人机由于高效的作业模式、安全便捷等优势受到了很多农户的青睐,其行业发展空间巨大。
目前,农业无人机的作业以液体喷洒为主。其中,水泵是实现液体喷洒的重要组件,也是实际作业中最频繁的器件。一般来说,水泵损坏后,需要对水泵进行定损、定因、定责,但由于无法获取水泵的相关使用信息,往往只能简单地通过水泵的出厂信息对水泵进行相应的检测,从而无法较好地定位水泵损坏的具体原因。同时,为了研发更加可靠耐用的水泵,也需要获取水泵的相关使用信息,以使得通过这些相关使用信息能够对水泵的使用情况进行分析和研究。然而,如何使得水泵的控制系统简单、快捷、直接地获取水泵的相关使用信息,是当前亟待解决的问题。
发明内容
本申请实施例提供了一种通信方法及装置、水泵、无人机、可读存储介质,用于提供一种稳定、可靠的通信方式,以实现水泵的相关使用信息的可靠性传输。
有鉴于此,本申请第一方面提供一种通信方法,其应用于移动平台,移动平台包括用于喷洒液体的水泵,该通信方法包括:
当水泵上电后,检测水泵是否接收有第一控制系统发送的连接数据;
若接收,则当第一控制系统的通信方式为水泵的当前通信方式时,根据连接数据确定水泵的目标通信方式;
按照目标通信方式与第二控制系统进行通信,第二控制系统为连接数据指示。
本申请第二方面提供一种通信装置,其应用于移动平台,移动平台包括用 于喷洒液体的水泵,该通信装置包括:
通信接口及处理器;
处理器,用于:
当水泵上电后,检测水泵对应的通信接口是否接收有第一控制系统发送的连接数据;
若接收,则当第一控制系统的通信方式为水泵的当前通信方式时,根据连接数据确定水泵的目标通信方式;
通信接口,用于:
按照目标通信方式与第二控制系统进行通信,第二控制系统为连接数据指示。
本申请第三方面提供一种水泵,该水泵可包括上述第二方面提供的通信装置。
本申请第四方面提供一种无人机,该无人机包括上述第三方面提供的水泵。
本申请第五方面提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时,实现如下步骤:
当水泵上电后,检测水泵是否接收有第一控制系统发送的连接数据;
若接收,则当第一控制系统的通信方式为水泵的当前通信方式时,根据连接数据确定水泵的目标通信方式;
按照目标通信方式与第二控制系统进行通信,第二控制系统为连接数据指示。
从以上技术方案可以看出,本申请实施例具有以下优点:
本申请实施例提供了一种通信方法,水泵通过接收第一控制系统发送的连接数据,在第一控制系统的通信方式与水泵的当前通信方式相同时,可以根据该连接数据确定水泵的目标通信方式,并可以按照该目标通信方式与由连接数据指示的第二控制系统进行通信。由此,通过上述的通信方法,第二控制系统同能够实现与水泵之间的通信,并可以简单、直接、便捷地获取水泵的相关使用信息,而非简单的出厂信息,从而有利于第二控制系统根据获取的通信信息对水泵的使用情况进行相应的分析与研究,并能够在水泵损坏时及时对水泵进行定损、定因、定责。同时,从上述描述可知,水泵一侧可以设有一种或以上 的通信方式,并可以支持一种或以上的通信方式的切换,有利于水泵适用于多种使用场景。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例中通信方法一个实施例示意图;
图2为本申请实施例中通信方法另一实施例示意图;
图3为本申请实施例中通信方法另一实施例示意图;
图4为本申请实施例中通信方法另一实施例示意图;
图5为本申请实施例中通信方法另一实施例示意图;
图6为本申请实施例中通信方法另一实施例示意图;
图7为本申请实施例中通信方法另一实施例示意图;
图8为本申请实施例中通信方法另一实施例示意图;
图9为本申请实施例中通信方法另一实施例示意图;
图10为本申请实施例中通信方法一个实施例交互示意图;
图11为本申请实施例中基于图10的通信框架示意图;
图12为本申请实施例中通信方法另一实施例交互示意图;
图13为本申请实施例中基于图12的通信框架示意图;
图14为本申请实施例中通信装置一个实施例示意图。
具体实施方式
本申请实施例提供了一种通信方法及装置、水泵、无人机、可读存储介质,用于提供一种稳定、可靠的通信方式,以实现水泵的相关使用信息的可靠性传输。
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所 有其他实施例,都应当属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
为便于理解,下面对本发明实施例中的具体流程进行描述,请参阅图1,本发明实施例中通信方法一个实施例包括:
101、当水泵上电后,检测水泵是否接收有第一控制系统发送的连接数据,若是,则执行步骤102,若否,则执行步骤104;
本实施例中,移动平台可以包括用于喷洒液体的水泵,水泵上可以设有诸如芯片,以实现与其控制系统之间的通信。为了向控制系统提供水泵的相关使用信息,在水泵上电后,本实施例中方法对应的检测装置可以检测水泵是否接收有第一控制系统发送的连接数据。其中,水泵一侧可以设有一种或以上的通信方式,以适应不同的场景和硬件。
具体的,当第二控制系统需要获取水泵的相关使用信息时,可以由第一控制系统可以向水泵发送连接数据,以指示水泵通过相应的通信方式与第二控制系统进行通信。但在实际应用中,水泵上电后,可能第一控制系统可能还未向水泵发送连接数据,那么水泵可能不存在与外部通信的需要,以避免通信资源的浪费。由此,在水泵上电后,可以检测水泵是否接收有第一控制系统发送的连接数据。
可以理解的是,本实施例中,第一控制系统可以与第二控制系统相同,也可以不与第二控制系统相同,此处不做具体限定。
需要说明的是,本实施例中,第一控制系统和/或第二控制系统可以设于移动平台上,也可以不设于移动平台上,此处不做具体限定。
102、当第一控制系统的通信方式为水泵的当前通信方式时,根据连接数据确定水泵的目标通信方式;
本实施例中,当水泵接收有第一控制系统发送的连接数据时,可以进一步检测第一控制系统的通信方式是否与水泵的当前通信方式相同,若第一控制系统的通信方式为水泵的当前通信方式,则可以根据接收的连接数据确定水泵的目标通信方式。
具体的,当水泵设有一种或以上的通信方式时,第一控制系统的通信方式有可能与水泵的当前通信方式不相同。当第一控制系统的通信方式不同于水泵的当前通信方式时,水泵可能会存在无法对接收的连接数据进行解析或解析错误的问题,进而也无法根据连接数据进行相应的通信。由此,水泵在接收到连接数据后,若确定第一控制系统系统的通信方式与水泵的当前通信方式相同,则可以正确解析连接数据,并可以根据连接数据确定水泵的目标通信方式。
可以理解的是,本实施例中,基于第一控制系统与第二控制系统的关系以及接收的连接数据,水泵的当前通信方式与水泵的目标通信方式可以相同,也可以不相同,此处不做具体限定。
103、按照目标通信方式与第二控制系统进行通信;
本实施例中,确定水泵的目标通信方式后,可以按照目标通信方式与第二控制系统进行通信。其中,第二控制系统为连接数据指示。
具体的,连接数据不仅可以指示水泵的目标通信对象,还可以指示水泵与目标通信对象的目标通信方式,更可以指示水泵与目标通信对象的通信内容。其中,该目标通信对象(即第二控制系统)可以为即第一控制系统的第二控制系统,也可以为不同于第一控制系统的第二控制系统,下面分别进行示例性说明:
一、第一控制系统A按照通信方式A1向水泵B发送连接数据,水泵B接收该连接数据后,若水泵B的当前通信方式也为A1,那么在解析连接数据后,可以根据连接数据确定水泵B的目标通信方式A1,则水泵B可以与第二控制系统,即A,按照目标通信方式A1进行通信,以进行相关通信信息的交互。
二、第一控制系统A按照通信方式A1向水泵B发送连接数据,水泵B接收该连接数据后,若水泵B的当前通信方式也为A1,那么在解析连接数据后,可以根据连接数据确定水泵B的目标通信方式A2(A2可以与A1相同,也可以不同),则水泵B可以与连接数据指示的第二控制系统C,按照目标通 信方式A2进行通信,以进行相关通信信息的交互。
其中,当目标通信方式A2不同于水泵B的当前通信方式A1时,可以将水泵B的当前通信方式A1切换为目标通信方式A2,且在切换前,可以做相应的硬件初始化处理,以实现A1至A2的切换。
104、结束流程。
本实施例中,若水泵未接收到第一控制系统发送的连接数据,则可以不执行其它操作,即结束流程。
可以理解的是,本实施例中,在水泵未接收到第一控制系统发送的连接数据后,还可以执行其它操作,如持续检测是否有第一控制系统发送的连接数据,此处不做具体限定。
需要说明的是,本实施例中,当第一控制系统的通信方式不同于水泵的当前通信方式时,也可以执行上述步骤104中说明的内容,此处不做具体限定。
本实施例中,水泵通过接收第一控制系统发送的连接数据,在第一控制系统的通信方式与水泵的当前通信方式相同时,可以根据该连接数据确定水泵的目标通信方式,并可以按照该目标通信方式与由连接数据指示的第二控制系统进行通信。由此,通过上述的通信方法,第二控制系统同能够实现与水泵之间的通信,并可以简单、直接、便捷地获取水泵的相关使用信息,而非简单的出厂信息,从而有利于第二控制系统根据获取的通信信息对水泵的使用情况进行相应的分析与研究,并能够在水泵损坏时及时对水泵进行定损、定因、定责。同时,从上述描述可知,水泵一侧可以设有一种或以上的通信方式,并可以支持一种或以上的通信方式的切换,有利于水泵适用于多种使用场景。
可以理解的是,本申请实施例中,在接收到第一控制系统发送的连接数据后,可以检测第一控制系统的通信方式是否与水泵的当前通信方式相同,而在水泵未接收到第一控制系统发送的连接数据或连接数据不满足预设条件时,可以执行不同的操作,下面分别进行说明:
请参阅图2,本申请实施例中通信方法另一实施例包括:
201、当水泵上电后,检测水泵是否接收有第一控制系统发送的连接数据,若是,则执行步骤202,若否,则执行步骤206;
本实施例中的步骤201与图1所示实施例中的步骤101相同,此处不再赘述。
进一步的,本实施例中,水泵上电后,在检测水泵是否接收有第一控制系统发送的连接数据之前,为了增大水泵的当前通信方式与第一控制系统的通信方式的适配机率,可以按照第二预设规则切换水泵的当前通信方式。
可以理解的是,本实施例中的第二预设规则可以根据实际需要设置,如可以轮流切换多种通信方式,也可以将多种通信方式按照使用频率的高低顺序进行切换,还可以从最后一次使用的通信方式开始进行切换,此处不做具体限定。202、当第一控制系统的通信方式为水泵的当前通信方式时,检测连接数据是否满足预设条件,若是,则执行步骤203,若否,则执行步骤206;
本实施例中,若水泵接收有第一控制系统发送的连接数据,则当第一控制系统的通信方式为水泵的当前通信方式时,可以进一步检测连接数据是否满足预设条件。
具体的,由于在第一控制系统的通信方式与水泵的当前通信方式相同时,可以正确解析连接数据,那么在水泵接收到第一控制系统发送的连接数据后,可以根据连接数据的解析结果的正确性来判断第一控制系统的通信方式是否与水泵的当前通信方式相同,即若连接数据解析正确,则默认第一控制系统的通信方式为水泵的当前通信方式,反之,则默认第一控制系统的通信方式不同于水泵的当前通信方式。
进一步的,为了防止水泵一侧可以响应任何第一控制系统以水泵的当前通信方式发送的连接数据,针对水泵一侧设有的一种或以上的通信方式,可以根据通信方式的分类分别设有相应的预设条件,并将该预设条件作为是否响应第一控制系统发送的连接数据的标准,即连接数据满足条件,则可以正确解析该连接数据并响应该连接数据,反之,则无法正确解析该连接数据并可以不响应该连接数据。
例如,本实施例中,可能存在第一控制系统的通信方式与水泵的当前通信方式相同,但连接数据对应的数据特征可能不符合预设条件,进而导致连接数据不可靠的情况,如连接数据的波特率不符合预设条件,那么为了避免此种问题引起的数据安全问题的发生,可以在响应连接数据之前对连接数据进行相应的检测。
可以理解的是,本实施例中确定第一控制系统的通信方式是否与水泵的当前通信方式相同的方法除了上述说明的内容,在实际应用中,还可以采用其它 方式,只要能够用于判断第一控制系统的通信方式是否与水泵的当前通信方式相同即可,此处不做具体限定。
203、根据连接数据确定水泵的工作模式;
本实施例中,若连接数据满足预设条件,则可以根据连接数据确定水泵的工作模式。
本实施例中,根据连接数据确定水泵的工作模式的具体方式可以为:
确定连接数据的内容信息;
根据内容信息确定水泵的工作模式。
具体的,当连接数据满足预设条件时,意味着可以正确解析连接数据,那么可以在正确解析连接数据后,获取连接数据的内容信息,该内容信息可以指示水泵需要进入的相应的工作模式,相应的工作模式可以使得水泵一侧执行相应的功能。
本实施例中,水泵一侧可以设有一个或以上的工作模式,该工作模式可以包括但不限于数据输出模式、命令输入模式、编程模式、数据编辑模式中的一种。其中,编程模式可以是指诸如设置输入命令,数据输出模式可以是指诸如对外输出数据,命令输入模式可以是指诸如接收外部输入的命令,数据编辑模式可以是指诸如编辑输出的数据。
204、根据工作模式确定水泵的目标通信方式;
本实施例中,根据连接数据确定水泵的工作模式后,可以进一步根据工作模式确定水泵的目标通信方式。
具体的,在连接数据中,一种工作模式可以对应一种通信方式,具体的工作模式以及该工作模式对应的通信方式可以由第一控制系统设定,并经由第一控制系统下方的连接数据指示。由此,确定水泵需要进入的工作模式后,即可确定水泵的目标通信方式。
205、按照目标通信方式与第二控制系统进行通信;
本实施例中的步骤205与图1所示实施例中的步骤103相同,此处不再赘述。
进一步的,本实施例中,由于相应的工作模式可以使得水泵一侧执行相应的功能,那么当水泵一侧按照目标通信方式与第二控制系统进行通信时,可以执行相应的工作模式的功能。例如,当根据连接数据确定水泵的工作模式为数 据输出模式时,当水泵的当前工作模式不为数据输出模式时,首先可以将水泵的当前工作模式切换为数据输出模式,其次可以按照目标通信方式对第二控制系统输出相应的数据,以执行数据输出模式相对应的功能。
206、根据预设工作模式确定水泵的目标通信方式;
本实施例中,若水泵未接收有连接数据或连接数据不满足预设条件,则可以根据预设工作模式确定水泵的目标通信方式。
具体的,当水泵一侧未接收有连接数据或连接数据不满足预设条件时,水泵仍可以向外传输相关数据。在此情况下,可以在水泵一侧预先设置预设工作模式,该预设工作模式可以对应一通信方式,由此根据预设工作模式可以确定水泵的目标通信方式。
其中,预设工作模式可以为水泵一侧的多个工作模式中的某一默认工作模式,该预设工作模式可以进行相应的调整。
可以理解的是,本实施例中预设工作模式除了以上述说明的内容确定之外,在实际应用中,还可以采用其它方式,如以水泵上一次与第二控制系统通信时对应的工作模式为预设工作模式,又如以水泵的使用频率最高的工作模式为预设工作模式,此处不做具体限定。
本实施例中,目标通信方式可以包括但不限于串口、集成电路总线IIC、串行外设接口SPI、单总线、控制器局域网络CAN总线、脉冲中的一种。
207、按照目标通信方式向外传输第一通信信息。
本实施例中,根据预设工作模式确定水泵的目标通信方式后,可以按照该目标通信方式向外传输第一通信信息。
具体的,在水泵未接收有连接数据或连接数据不满足预设条件时,意味着水泵一侧无法获悉与其通信的通信对象,但水泵一侧仍可以按照目标通信方式向外传输第一通信信息,以在按照该目标通信方式通信的第二控制系统需要获取水泵的相关信息时,能够对第一通信信息进行相应的获取。
需要说明的是,本实施例中,当第一控制系统的通信方式不同于水泵的当前通信方式时,也可以执行上述步骤206至步骤207中说明的内容,此处不做具体限定。
在图1所实施例的基础上,本实施例中增加了对接收到的连接数据的检测,有利于减少水泵一侧对不符合要求的连接数据的响应,也增加了通信安全, 有利于降低水泵的相关使用数据的泄露机率。同时,对未接收有连接数据以及连接数据不满足预设条件的情况,提供了具体的后续操作方式,有利于满足不同的通信场景。
请参阅图3,本申请实施例中通信方法另一实施例包括:
301、当水泵上电后,检测水泵是否接收有第一控制系统发送的连接数据,若是,则执行步骤302,若否,则执行步骤306;
302、当第一控制系统的通信方式为水泵的当前通信方式时,检测连接数据是否满足预设条件,若是,则执行步骤303,若否,则执行步骤306;
303、根据连接数据确定水泵的工作模式;
304、根据工作模式确定水泵的目标通信方式;
305、按照目标通信方式与第二控制系统进行通信;
本实施例中的步骤301至步骤305与图2所示实施例中的步骤201至步骤205相同,此处不再赘述。
306、确定水泵的当前上电时长;
本实施例中,若水泵未接收有连接数据或连接数据不满足预设条件,则可以确定水泵的当前上电时长。
307、检测当前上电时长是否大于预设时长,若否,则执行步骤301,若是,则执行步骤308;
本实施例中,确定水泵的当前上电时长后,可以检测水泵的当前上电时长是否大于预设时长。
具体的,为了能够与连接数据指示的第二控制系统按照目标通信方式通信,在水泵一侧未接收到连接数据或连接数据不满足预设条件时,可以多次检测是否接收到第一控制系统发送的连接数据或检测连接数据是否满足预设条件,但可以对检测次数进行相应的限制,以满足水泵的多种通信可能。由此,可以根据水泵的上电时长预先设置预设时长,以通过预设时长来限制检测次数,即当水泵的当前上电时长在预设时长内时,可以持续执行步骤301至步骤302,但当水泵的当前上电时长超过预设时长时,则可以不再持续执行步骤301至步骤302。
308、根据预设工作模式确定水泵的目标通信方式;
309、按照目标通信方式向外传输第一通信信息。
本实施例中的步骤308至步骤309与图2所示实施例中的步骤206至步骤207相同,此处不再赘述。
可以理解的是,本实施例中,当水泵的当前上电时长大于预设时长时,除了执行上述说明的步骤308至步骤309,在实际应用中,也可以不执行任何流程或执行其它流程,具体可以根据需要设置,此处不做具体限定。
在图2所示实施例的基础上,本实施例增加了对水泵的上电时长的检测,通过以上电时长对应的预设时长为界限,可以使得水泵一侧上电后,在预设时长内不断的进行连接数据的相应检测,以持续对第一控制系统以及其发送的连接数据进行适配。
请参阅图4,本申请实施例中通信方法另一实施例包括:
401、当水泵上电后,检测水泵是否接收有第一控制系统发送的连接数据,若是,则执行步骤402,若否,则执行步骤401;
本实施例中的步骤401与图2所示实施例中的步骤201相同,此处不再赘述。
进一步的,本实施例中,当水泵未接收有第一控制系统发送的连接数据时,为了能够与第一控制系统发送的连接数据指示的第二控制系统进行通信,则在水泵上电后,可以循环检测水泵是否接收有第一控制系统发送的连接数据,直到检测到水泵接收有第一控制系统发送的连接数据,则可以继续进行后续流程。
402、当第一控制系统的通信方式为水泵的当前通信方式时,检测连接数据是否满足预设条件,若是,则执行步骤403,若否,则执行步骤401;
本实施例中的步骤402与图2所示实施例中的步骤202相同,此处不再赘述。
进一步的,本实施例中,当水泵接收的连接数据不满足预设条件时,由于无法正确解析连接数据,则水泵一侧无法与连接数据指示的第二控制系统进行通信,那么可以循环检测水泵是否接收有第一控制系统发送的连接数据,直到检测到水泵接收有第一控制系统发送的连接数据,则可以继续检测连接数据是否满足预设条件。
其中,在第一次检测到水泵未接收有第一控制系统发送的连接数据或连接数据不满足预设条件时,可以按照预设周期检测水泵接收有第一控制系统发送 的连接数据,即按照预设的时间间隔进行相应的检测。
可选的,该预设周期对应的时长可以不小于步骤401至步骤402这两个流程所执行的总时长,以避免在连接数据满足预设条件时对步骤401的重复执行。
由此,通过步骤401至步骤402可知,当水泵一侧接收有连接数据,且该连接数据满足预设条件时,可以中止步骤401或步骤401至步骤402的循环执行。
需要说明的是,本实施例中,当第一控制系统的通信方式不同于水泵的当前通信方式时,也可以循环检测水泵是否接收有第一控制系统发送的连接数据,直到检测到水泵接收有第一控制系统发送的连接数据,且第一控制系统的通信方式为水泵的当前通信方式,则可以继续检测连接数据是否满足预设条件。
403、根据连接数据确定水泵的工作模式;
404、根据工作模式确定水泵的目标通信方式;
405、按照目标通信方式与第二控制系统进行通信。
本实施例中的步骤403至步骤405与图2所示实施例中的步骤203至步骤205相同,此处不再赘述。
不同于图2、图3所示实施例,本实施例中,在水泵上电后,若未接收到连接数据或连接数据不满足预设条件,则可以持续进行连接数据的相应检测,直到水泵可以与适配的第二控制系统通信。
可以理解的是,在上述任一种实施方式中,由于水泵一侧可以设有一种或以上的通信方式,那么在水泵的当前通信方式与第一控制系统的通信方式不匹配时,可以切换水泵的当前通信方式以适配第一控制系统的通信方式,下面基于图2进行示例性说明:
请参阅图5,本申请实施例中通信方法另一实施例包括:
501、当水泵上电后,检测水泵是否接收有第一控制系统发送的连接数据,若是,则执行步骤502,若否,则执行步骤508;
本实施例中的步骤501与图2所示实施例中的步骤201相同,此处不再赘述。
502、检测第一控制系统的通信方式是否与水泵的当前通信方式相同,若 否,则执行步骤503,若是,则执行步骤504;
本实施例中的步骤502的相关内容可以参照图2所实施例中步骤202中的相同内容,此处不再赘述。
503、按照第一预设规则切换水泵的当前通信方式;
本实施例中,若第一控制系统的通信方式不同于水泵的当前通信方式,那么可以按照第一预设规则切换水泵的当前通信方式。
具体的,水泵一侧可以设有一种或以上的通信方式,当通信方式为多种,且第一控制系统的通信方式不同于水泵的当前通信方式时,可以按照第一预设规则切换水泵的当前通信方式。其中,水泵的当前通信方式每切换一次,即可相应地检测第一控制系统的通信方式是否与水泵的当前通信方式相同,直至切换后的通信方式与第一控制系统的通信方式相同为止。
可以理解的是,本实施例中的第一预设规则可以根据实际需要设置,如可以轮流切换多种通信方式,也可以将多种通信方式按照使用频率的高低顺序进行切换,还可以从最后一次使用的通信方式开始进行切换,同时,第一预设规则可以与第二预设规则相同,也可以不同于第二预设规则,此处不做具体限定。
需要说明的是,本实施例较适用于水泵与第一控制系统约定有相应的通信方式的情况,即当有第一控制系统发送的连接数据时,水泵并不确定第一控制系统是以哪种通信方式传输的连接数据,但由于水泵与第一控制系统约定有相应的通信方式,则水泵一侧可以通过切换当前通信方式以匹配第一控制系统的通信方式。
可选的,在实际应用中,当水泵与第一控制系统未约定有相应的通信方式时,那么在水泵一侧所有的通信方式均无法匹配第一控制系统的通信方式时,可以执行诸如步骤507至步骤508的流程。
504、检测连接数据是否满足预设条件,若是,则执行步骤505,若否,则执行步骤508;
本实施例中,当水泵的当前通信方式切换至与第一控制系统的通信方式相同,或水泵的当前通信方式原本即与第一控制系统的通信方式相同时,可以检测连接数据是否满足预设条件。
本实施例中的步骤504与图2所示实施例中的步骤202相同,此处不再赘述。
505、根据连接数据确定水泵的工作模式;
506、根据工作模式确定水泵的目标通信方式;
507、按照目标通信方式与第二控制系统进行通信;
508、根据预设工作模式确定水泵的目标通信方式;
509、按照目标通信方式向外传输第一通信信息。
本实施例中的步骤505至步骤509与图2所示实施例中的步骤203至步骤207相同,此处不再赘述。
相对于图2所示实施例而言,本实施例中在水泵的当前通信方式不同于第一控制系统的通信方式时,可以实现对水泵的当前通信方式的切换,以适配第一控制系统的通信方式,而不是持续去获取通信方式与水泵的当前通信方式相同的第一控制系统发送的连接数据,有利于提高水泵一侧与第一控制系统发送的连接数据指示的第二控制系统的通信效率。
进一步的,本申请实施例中,连接数据可以包括但不限于两种数据类型,如总线数据或脉冲信号,基于连接数据的不同数据类型,检测连接数据是否满足预设条件的方式不一样,下面基于图2,以总线数据和脉冲信号分别进行示例性说明:
请参阅图6,本申请实施例中通信方法另一实施例包括:
601、当水泵上电后,检测水泵是否接收有第一控制系统发送的连接数据,若是,则执行步骤602,若否,则执行步骤606;
本实施例中的步骤601与图2所示实施例中的步骤201相同,此处不再赘述。
602、当第一控制系统的通信方式为水泵的当前通信方式时,检测连接数据是否符合预设数据协议,若是,则执行步骤603,若否,则执行步骤606;
本实施例中,在水泵一侧,通过通信接口的设计,在接收到连接数据后,可以由通信接口的类型确定连接数据的数据类型。当确定连接数据为总线数据时,可以检测该连接数据是否符合预设数据协议。
具体的,总线数据可以包括但不限于串口数据、集成电路总线IIC数据、串行外设接口SPI数据、单总线数据、控制器局域网络CAN总线数据中的一种。其中,不同的总线数据可以对应同一预设数据协议,接收到连接数据后,可以解析该连接数据,并可以将解析的连接数据与预设数据协议进行对比,以 检测连接数据是否符合预设数据协议。
603、根据连接数据确定水泵的工作模式;
604、根据工作模式确定水泵的目标通信方式;
605、按照目标通信方式与第二控制系统进行通信;
606、根据预设工作模式确定水泵的目标通信方式;
607、按照目标通信方式向外传输第一通信信息。
本实施例中的步骤603至步骤607与图2所示实施例中的步骤203至步骤207相同,此处不再赘述。
请参阅图7,本申请实施例中通信方法另一实施例包括:
701、当水泵上电后,检测水泵是否接收有第一控制系统发送的连接数据,若是,则执行步骤702,若否,则执行步骤708;
本实施例中的步骤701与图2所示实施例中的步骤201相同,此处不再赘述。
702、当第一控制系统的通信方式为水泵的当前通信方式时,获取连接数据的属性信息;
本实施例中,在水泵一侧,通过通信接口的设计,在接收到连接数据后,可以由通信接口的类型确定连接数据的数据类型。当确定连接数据为脉冲信号时,可以获取连接数据的属性信息。
具体的,由于属性信息的不同可以导致脉冲信号的差异,则属性信息可以反映脉冲信号的脉冲类型,该属性信息可以包括但不限于脉冲的频率、脉冲的个数、脉冲的周期、脉冲的电平时间、脉冲的脉冲宽度调制PWM中的至少一种。
703、根据属性信息确定连接数据的脉冲类型;
本实施例中,获取连接数据的属性信息后,可以根据属性信息确定连接数据的脉冲类型。
704、检测脉冲类型是否符合预设脉冲类型,若是,则执行步骤705,若否,则执行步骤708;
本实施例中,根据属性信息确定连接数据的脉冲类型后,可以检测脉冲类型是否满足预设脉冲类型。
其中,在水泵一侧,可以设有一个或以上的预设脉冲类型。针对每一预设 脉冲类型,可以根据脉冲的频率、脉冲的个数、脉冲的周期、脉冲的电平时间、脉冲的脉冲宽度调制PWM中的至少一种的预设范围为标准进行设置,也可以根据脉冲的频率、脉冲的个数、脉冲的周期、脉冲的电平时间、脉冲的脉冲宽度调制PWM中的至少一种的预设值为标准进行设置。
在实际应用中,可以将连接数据对应的脉冲类型与每一预设脉冲类型进行对比,若连接数据的脉冲类型与其中一预设脉冲类型符合,则认为连接数据满足预设条件,若连接数据的脉冲类型不与其中任一预设脉冲类型符合,则认为连接数据不满足预设条件。
705、根据连接数据确定水泵的工作模式;
706、根据工作模式确定水泵的目标通信方式;
707、按照目标通信方式与第二控制系统进行通信;
708、根据预设工作模式确定水泵的目标通信方式;
709、按照目标通信方式向外传输第一通信信息。
本实施例中的步骤705至步骤709与图2所示实施例中的步骤203至步骤207相同,此处不再赘述。
图6所示实施例和图7所示实施例,根据连接数据的数据类型,分别对连接数据的检测提出了相应的方法,加强了对不同数据类型的连接数据的检测针对性,也有利于防止对检测手段不清晰而造成的检测效率的低下。同时,对不同的数据类型的不同检测手段,可以降低检测手段的破解难度,有利于提高通信安全。
可以理解的是,本申请实施例中,在水泵一侧按照目标通信方式与第二控制系统通信的过程中,可以有相应的通信信息的发送,也可以有相应的通信信息的接收,基于图2,下面分别进行示例性说明:
请参阅图8,本申请实施例中通信方法另一实施例包括:
801、当水泵上电后,检测水泵是否接收有第一控制系统发送的连接数据,若是,则执行步骤802,若否,则执行步骤806;
802、当第一控制系统的通信方式为水泵的当前通信方式时,检测连接数据是否满足预设条件,若是,则执行步骤803,若否,则执行步骤806;
803、根据连接数据确定水泵的工作模式;
804、根据工作模式确定水泵的目标通信方式;
本实施例中的步骤801至步骤804与图2所示实施例中的步骤201至步骤204相同,此处不再赘述。
805、按照目标通信方式向第二控制系统传输第二通信信息;
本实施例中,确定水泵的目标通信方式后,可以按照目标通信方式向第二控制系统传输第二通信信息。
示例性的,连接数据的内容信息指示水泵需要向第二控制系统传输第二通信信息时,可以根据第二控制系统的需求类型,确定相应的第二通信信息,第二通信信息的确定方式如下:
1、工作模式可以与第二控制系统的需求类型相对应,即不同第二控制系统,其需求类型不一致,而在同一工作模式中,还可以根据需求类型进行分类,如子工作模式,且每一需求类型可以指示在对应子工作模式下需要通信的通信信息。由此,在接收的连接数据满足预设条件后,可以先行根据连接数据的内容信息确定水泵的一工作模式,再有第二控制系统的需求类型确定水泵在该工作模式下的子工作模式,以进一步根据子工作模式确定第二通信信息的内容,再按照目标通信方式向第二控制系统传输第二通信信息。
2、工作模式不与第二控制系统的需求类型相对应,即工作模式将不会预先按照第二控制系统的需求类型进行分类。由此,在接收的连接数据满足预设条件后,可以根据连接数据的内容信息确定水泵的工作模式,再由第二控制系统的需求类型确定第二通信信息的内容(第二控制系统的需求类型只要在确定第二通信信息的内容之前确定即可),而后按照目标通信方式向第二控制系统传输第二通信信息。
806、根据预设工作模式确定水泵的目标通信方式;
807、按照目标通信方式向外传输第一通信信息。
本实施例中,第一通信信息或第二通信信息可以包括但不限于水泵的使用时间(该使用时间可以为诸如水泵的上电总时长,也可以为诸如水泵的喷洒总时长等)、水泵的使用状态(该使用状态可以为诸如水泵的上电状态,也可以为诸如水泵的喷洒状态等)、水泵的使用寿命、水泵的剩余使用寿命、水泵的版本、水泵的硬件信息、水泵的出厂信息、水泵的环境信息、水泵的工作信息中的至少一种。其中,环境信息可以包括但不限于温度信息和/或湿度信息;工作信息可以包括但不限于工作电流、工作电压、液体压力信息、液体流速信 息中的至少一种。
在实际应用中,水泵上可以设有多种传感器,以获取相应的信息,例如,可以设有温度传感器,以采集水泵的环境信息中的温度信息。
本实施例中的步骤806至步骤807与图2所示实施例中的步骤206至步骤207相同,此处不再赘述。
请参阅图9,本申请实施例中通信方法另一实施例包括:
901、当水泵上电后,检测水泵是否接收有第一控制系统发送的连接数据,若是,则执行步骤902,若否,则执行步骤906;
902、当第一控制系统的通信方式为水泵的当前通信方式时,检测连接数据是否满足预设条件,若是,则执行步骤903,若否,则执行步骤906;
903、确定第一控制系统的通信方式为水泵的当前通信方式,并根据连接数据确定水泵的工作模式;
904、根据工作模式确定水泵的目标通信方式;
本实施例中的步骤901至步骤904与图2所示实施例中的步骤201至步骤204相同,此处不再赘述。
905、按照目标通信方式接收第二控制系统传输的第三通信信息;
本实施例中,确定水泵的目标通信方式后,可以按照目标通信方式接受第二控制系统传输的第三通信信息。
具体的,水泵一侧在按照目标通信方式与第二控制系统进行通信时,除了可以向第二控制系统发送第二通信信息外,也可以按照目标通信方式接收第二控制系统传输的第三通信信息。
即在确定目标通信方式后,水泵的当前通信方式可以调整为目标通信方式,也即第二控制系统的通信方式。由于此时水泵的通信方式与第二控制系统的通信方式均为目标通信方式,则第二控制系统可以发送第三通信信息至水泵,水泵一侧则可以接收该第三通信信息,以实现通信交互。
本实施例中,第三通信信息可以包括但不限于控制信息和/或查询信息。其中,该控制信息可以包括但不限于关闭指令信息或开启指令信息,关闭指令信息可以用于关闭水泵,开启指令信息可以用于开启水泵;查询信息可以用于获取水泵的相关使用信息,如水泵的使用状态信息、水泵的使用时间等,水泵一侧在接收到诸如此类信息后,可以将第二控制系统需要的查询内容反馈至第 二控制系统。
906、根据预设工作模式确定水泵的目标通信方式;
907、按照目标通信方式向外传输第一通信信息。
本实施例中的步骤906至步骤907与图2所示实施例中的步骤206至步骤207相同,此处不再赘述。
可以理解的是,在上述任一实施例中,第一控制系统可以包括但不限于移动平台的控制系统、移动平台的喷洒系统、移动平台的外在通信设备中的一种。
其中,当第一控制系统为移动平台的控制系统或移动平台的喷洒系统时,第二控制系统可以为第一控制系统,即移动平台的控制系统或喷洒系统可以与水泵一侧通信,以获取水泵的相关信息;当第一控制系统为移动平台的外在通信设备时,第二控制系统可以不同于第一控制系统,第二控制系统可以为移动平台的后台服务系统,如售后,该外在通信设备可以设于水泵上,作为水泵的一组件部分进行使用,也可以为独立设备进行使用。
需要说明的是,本申请实施例中,移动平台可以包括但不限于在陆地上、水上或空中移动的物体。可选的,本申请实施例中移动平台可以为无人机,以加强无人机在农业行业的应用。
上述从水泵一侧对本申请实施例中的通信方法进行了描述,进一步的,基于图1所示实施例说明的内容,下面对水泵的通信方式进行交互式说明:
如图10所示,第二控制系统即为第一控制系统:
1001、第一控制系统向水泵发送连接数据;
1002、当水泵上电后,检测水泵是否接收有第一控制系统发送的连接数据,若是,则执行步骤1003,若否,则执行步骤1005;
1003、当第一控制系统的通信方式为水泵的当前通信方式时,根据连接数据确定水泵的目标通信方式;
1004、按照目标通信方式与第一控制系统进行通信;
1005、结束流程。
图10所示实施例中的相关内容可以参考前述实施例,此处不再赘述。
示例性的,如图11所示,当移动平台为无人机时,第一控制系统可以为无人机的控制系统,即飞控系统,无人机的飞控系统可以发送连接数据至水泵一侧,水泵一侧在接收到连接数据后,若水泵的当前通信方式与无人机的飞控 系统的通信方式相同,水泵一侧可以解析连接数据,并可以根据解析后的连接数据与飞控系统按照目标通信方式(即当前通信方式)进行通信,如向飞控系统传输水泵的使用状态信息。
如图12所示,第二控制系统不为第一控制系统:
1201、第一控制系统向水泵发送连接数据;
1202、当水泵上电后,检测水泵是否接收有第一控制系统发送的连接数据,若是,则执行步骤1203,若否,则执行步骤1205;
1203、当第一控制系统的通信方式为水泵的当前通信方式时,根据连接数据确定水泵的目标通信方式;
1204、按照目标通信方式与第二控制系统进行通信;
1205、结束流程。
图12所示实施例中的相关内容可以参考前述实施例,此处不再赘述。
示例性的,如图13所示,当移动平台为无人机时,第一控制系统可以为无人机的外在通信设备(假设为独立设备),如外围硬件,该外在通信设备可以发送连接数据至水泵一侧,水泵一侧在接收到连接数据后,若外在通信设备的当前通信方式与无人机的飞控系统的通信方式相同,水泵一侧可以解析连接数据,并可以根据解析后的连接数据确定水泵的通信对象第二控制系统,如无人机的后台服务系统,并可以确定与无人机的后台服务系统的目标通信方式,从而使得水泵一侧可以通过该目标通信方式与无人机的后台服务系统进行通信,如向无人机的后台服务系统传输水泵的使用状态、水泵的使用时间、水泵的使用寿命、水泵的剩余使用寿命、水泵的版本、水泵的硬件信息、水泵的出厂信息、水泵的环境信息、水泵的工作信息等,以满足后台服务系统对水泵的相应分析与研究。
上面对本申请实施例中的通信方法进行了说明,下面对本申请实施例中的通信装置进行说明:
请参阅图14,该通信装置应用于移动平台,该移动平台包括用于喷洒液体的水泵,本申请实施例中的通信装置一个实施例包括:
通信接口1401及处理器1402;
处理器1402,用于:
当水泵上电后,检测水泵对应的通信接口1401是否接收有第一控制系统 发送的连接数据;
若接收,则当第一控制系统的通信方式为水泵的当前通信方式时,根据连接数据确定水泵的目标通信方式;
通信接口1402,用于:
按照目标通信方式与第二控制系统进行通信,第二控制系统为连接数据指示。
本实施例中,通信接口1401可以接收第一控制系统发送的连接数据,处理器1402则可以检测通信接口1401是否接收有该连接数据,当处理器1402确定水泵对应的通信接口1401接收有该连接数据,且在第一控制系统的通信方式与水泵的当前通信方式相同时,处理器1402可以根据该连接数据确定水泵的目标通信方式,并可以使得通信接口1402按照该目标通信方式与由连接数据指示的第二控制系统进行通信。由此,通过上述的通信方法,第二控制系统同能够实现与水泵之间的通信,并可以简单、直接、便捷地获取水泵的相关使用信息,而非简单的出厂信息,从而有利于第二控制系统根据获取的通信信息对水泵的使用情况进行相应的分析与研究,并能够在水泵损坏时及时对水泵进行定损、定因、定责。同时,从上述描述可知,水泵一侧可以设有一种或以上的通信方式,并可以支持一种或以上的通信方式的切换,有利于水泵适用于多种使用场景。
可选的,在本申请的一些实施例中,处理器1402,还可以进一步用于:
检测连接数据是否满足预设条件;
若满足,则确定第一控制系统的通信方式为水泵的当前通信方式。
可选的,在本申请的一些实施例中,处理器1402,可以进一步具体用于:
根据连接数据确定水泵的工作模式;
根据工作模式确定水泵的目标通信方式。
可选的,在本申请的一些实施例中,处理器1402,还可以进一步用于:
若水泵未接收有连接数据,或连接数据不满足预设条件,则根据预设工作模式确定水泵的目标通信方式;
通信接口1401,可以进一步具体用于:
按照目标通信方式向外传输第一通信信息。
可选的,在本申请的一些实施例中,处理器1402,还可以进一步用于:
若水泵未接收有连接数据,或连接数据不满足预设条件,则确定水泵的当前上电时长;
当当前上电时长不大于预设时长,触发检测水泵对应的通信接口是否接收有第一控制系统发送的连接数据的步骤;
当当前上电时长大于预设时长,触发根据预设工作模式确定水泵的目标通信方式的步骤。
可选的,在本申请的一些实施例中,处理器1402,还可以进一步用于:
若水泵未接收有连接数据,或连接数据不满足预设条件,则按照预设周期触发检测水泵是否接收有第一控制系统发送的连接数据的步骤。
可选的,在本申请的一些实施例中,处理器1402,还可以进一步用于:
当第一控制系统的通信方式不同于水泵的当前通信方式时,按照第一预设规则切换水泵的当前通信方式。
可选的,在本申请的一些实施例中,当连接数据为总线数据时,处理器1402,可以进一步具体用于:
检测连接数据是否符合预设协议,若是,则确定连接数据满足预设条件。
可选的,在本申请的一些实施例中,当连接数据为脉冲信号时,处理器1402,可以进一步具体用于:
获取连接数据的属性信息;
根据属性信息确定连接数据的脉冲类型;
检测脉冲类型是否符合预设脉冲类型,若是,则确定连接数据满足预设条件。
可选的,在本申请的一些实施例中,通信接口1401,可以进一步具体用于:
按照目标通信方式向第二控制系统传输第二通信信息。
可选的,在本申请的一些实施例中,处理器1402,可以进一步具体用于:
确定连接数据的内容信息;
根据内容信息确定水泵的工作模式。
可选的,在本申请的一些实施例中,处理器1402,还可以进一步用于:
确定第二控制系统的需求类型;
根据内容信息确定水泵的工作模式包括:
根据内容信息和需求类型确定水泵的工作模式。
可选的,在本申请的一些实施例中,处理器1402,可以进一步具体用于:
确定第二控制系统的需求类型;
根据需求类型确定第二通信信息。
可选的,在本申请的一些实施例中,通信接口1401,可以进一步具体用于:
按照目标通信方式接收第二控制系统传输的第三通信信息。
可选的,在本申请的一些实施例中,处理器1402,还可以进一步用于:
按照第二预设规则切换水泵的当前通信方式。
可以理解的是,所述通信装置可包括,但不仅限于,通信接口、处理器。本领域技术人员可以理解,图14所示示意图仅仅是通信装置的示例,并不构成对通信装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述通信装置还可以包括输入输出设备、网络接入设备等,又如,通信装置还可以包括存储器。
示例性的,所述存储器中可以存储有计算机程序,所述计算机程序可由所述处理器执行,以完成本申请。所述计算机程序可以包括能够完成特定功能的一系指令段,该指令段用于描述所述计算机程序在所述通信装置中各部件的执行过程,以实现如上述相应通信装置说明的具体功能。
所述处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器是所述检测设备的控制中心,利用各种接口和线路连接整个检测设备的各个部分。
所述存储器可用于存储所述计算机程序和/或模块,所述处理器通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现所述检测设备的各种功能。所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端 的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
进一步的,本申请实施例还提供了一种水泵,该水泵可以包括上述说明的通信装置,该通信装置通过相应的通信方式可以与第一控制系统或由第一控制系统指示的第二控制系统通信,并可以在通信过程中,将水泵的相关使用信息传输至第一控制系统或第二控制系统,以满足第一控制系统或第二控制系统对水泵的相关使用信息的获取。
更进一步的,本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时,可以实现上述方法实施例中说明的各个步骤流程。
可以理解的是,所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在相应的一个计算机可读取存储介质中。基于这样的理解,本发明实现上述相应的实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (57)

  1. 一种通信方法,其应用于移动平台,所述移动平台包括用于喷洒液体的水泵,其特征在于,所述通信方法包括:
    当所述水泵上电后,检测所述水泵是否接收有第一控制系统发送的连接数据;
    若接收,则当所述第一控制系统的通信方式为所述水泵的当前通信方式时,根据所述连接数据确定所述水泵的目标通信方式;
    按照所述目标通信方式与第二控制系统进行通信,所述第二控制系统为所述连接数据指示。
  2. 根据权利要求1所述的方法,其特征在于,在所述根据所述连接数据确定所述水泵的目标通信方式之前,所述方法还包括:
    检测所述连接数据是否满足预设条件;
    若满足,则触发所述根据所述连接数据确定所述水泵的目标通信方式的步骤。
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述连接数据确定所述水泵的目标通信方式包括:
    根据所述连接数据确定所述水泵的工作模式;
    根据所述工作模式确定所述水泵的目标通信方式。
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:
    若所述水泵未接收有所述连接数据,或所述连接数据不满足所述预设条件,则根据预设工作模式确定所述水泵的目标通信方式;
    按照所述目标通信方式向外传输第一通信信息。
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:
    若所述水泵未接收有所述连接数据,或所述连接数据不满足所述预设条件,则确定所述水泵的当前上电时长;
    当所述当前上电时长不大于预设时长,触发所述检测所述水泵是否接收有第一控制系统发送的连接数据的步骤;
    当所述当前上电时长大于所述预设时长,触发所述根据预设工作模式确定所述水泵的目标通信方式的步骤。
  6. 根据权利要2或3所述的方法,其特征在于,所述方法还包括:
    若所述水泵未接收有所述连接数据,或所述连接数据不满足所述预设条件,则按照预设周期触发所述检测所述水泵是否接收有第一控制系统发送的连接数据的步骤。
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述方法还包括:
    当所述第一控制系统的通信方式不同于所述水泵的所述当前通信方式时,按照第一预设规则切换所述水泵的所述当前通信方式。
  8. 根据权利要求2至7中任一项所述的方法,其特征在于,所述连接数据包括总线数据或脉冲信号。
  9. 根据权利要求8所述的方法,其特征在于,当所述连接数据为所述总线数据时,所述检测所述连接数据是否满足预设条件包括:
    检测所述连接数据是否符合预设数据协议,若是,则确定所述连接数据满足所述预设条件。
  10. 根据权利要求9所述的方法,其特征在于,所述总线数据包括串口数据、集成电路总线IIC数据、串行外设接口SPI数据、单总线数据、控制器局域网络CAN总线数据中的一种。
  11. 根据权利要求8所述的方法,其特征在于,当所述连接数据为所述脉冲信号时,所述检测所述连接数据是否满足预设条件包括:
    获取所述连接数据的属性信息;
    根据所述属性信息确定所述连接数据的脉冲类型;
    检测所述脉冲类型是否符合预设脉冲类型,若是,则确定所述连接数据满足所述预设条件。
  12. 根据权利要求11所述的方法,其特征在于,所述属性信息包括脉冲的频率、脉冲的个数、脉冲的周期、脉冲的电平时间、脉冲的脉冲宽度调制PWM中的至少一种。
  13. 根据权利要求3至11中任一项所述的方法,其特征在于,所述按照所述目标通信方式与第二控制系统进行通信包括:
    按照所述目标通信方式向第二控制系统传输第二通信信息。
  14. 根据权利要求13所述的方法,其特征在于,所述根据所述连接数据 确定所述水泵的工作模式包括:
    确定所述连接数据的内容信息;
    根据所述内容信息确定所述水泵的工作模式。
  15. 根据权利要14所述的方法,其特征在于,在所述根据所述信号类型确定所述水泵的工作模式之前,所述方法还包括:
    确定所述第二控制系统的需求类型;
    所述根据所述内容信息确定所述水泵的工作模式包括:
    根据所述内容信息和所述需求类型确定所述水泵的工作模式。
  16. 根据权利要求13所述的方法,其特征在于,在所述按照所述目标通信方式向所述第二控制系统传输第二通信信息之前,所述方法还包括:
    确定所述第二控制系统的需求类型;
    根据所述需求类型确定所述第二通信信息。
  17. 根据权利要求13至16中任一项所述的方法,其特征在于,所述第一通信信息或所述第二通信信息包括所述水泵的使用时间、所述水泵的使用状态、所述水泵的使用寿命、所述水泵的剩余使用寿命、所述水泵的版本、所述水泵的硬件信息、所述水泵的出厂信息、所述水泵的环境信息、所述水泵的工作信息中的至少一种。
  18. 根据权利要求17所述的方法,其特征在于,所述环境信息包括温度信息和/或湿度信息;
    所述工作信息包括工作电流、工作电压、液体压力信息、液体流速信息中的至少一种。
  19. 根据权利要求3至18中任一项所述的方法,其特征在于,所述工作模式包括数据输出模式、命令输入模式、编程模式、数据编辑模式中的一种。
  20. 根据权利要求1至19中任一项所述的方法,其特征在于,所述目标通信方式包括串口、集成电路总线IIC、串行外设接口SPI、单总线、控制器局域网络CAN总线、脉冲中的一种。
  21. 根据权利要求1至20中任一项所述的方法,其特征在于,所述按照所述目标通信方式与所述第二控制系统进行通信包括:
    按照所述目标通信方式接收所述第二控制系统传输的第三通信信息。
  22. 根据权利要求21所述的方法,其特征在于,所述第三通信信息包括 控制信息和/或查询信息。
  23. 根据权利要求22所述的方法,其特征在于,所述控制信息包括关闭指令信息或开启指令信息。
  24. 根据权利要求1至23中任一项所述的方法,其特征在于,在检测所述水泵是否接收有第一控制系统发送的连接数据之前,所述方法还包括:
    按照第二预设规则切换所述水泵的所述当前通信方式。
  25. 根据权利要求1至24中任一项所述的方法,其特征在于,所述第一控制系统包括所述移动平台的控制系统、所述移动平台的喷洒系统、所述移动平台的外在通信设备中的一种。
  26. 根据权利要求25所述的方法,其特征在于,所述外在通信设备设于所述水泵上。
  27. 根据权利要求1至26中任一项所述的方法,其特征在于,所述移动平台为无人机。
  28. 一种通信装置,其应用于移动平台,所述移动平台包括用于喷洒液体的水泵,其特征在于,所述通信装置包括:
    通信接口及处理器;
    所述处理器,用于:
    当所述水泵上电后,检测所述水泵对应的所述通信接口是否接收有第一控制系统发送的连接数据;
    若接收,则当所述第一控制系统的通信方式为所述水泵的当前通信方式时,根据所述连接数据确定所述水泵的目标通信方式;
    所述通信接口,用于:
    按照所述目标通信方式与第二控制系统进行通信,所述第二控制系统为所述连接数据指示。
  29. 根据权利要求28所述的装置,其特征在于,所述处理器,还用于:
    检测所述连接数据是否满足预设条件;
    若满足,则触发所述根据所述连接数据确定所述水泵的目标通信方式的步骤。
  30. 根据权利要求29所述的装置,其特征在于,所述处理器,具体用于:
    根据所述连接数据确定所述水泵的工作模式;
    根据所述工作模式确定所述水泵的目标通信方式。
  31. 根据权利要求30所述的装置,其特征在于,所述处理器,还用于:
    若所述水泵未接收有所述连接数据,或所述连接数据不满足所述预设条件,则根据预设工作模式确定所述水泵的目标通信方式;
    所述通信接口,具体用于:
    按照所述目标通信方式向外传输第一通信信息。
  32. 根据权利要求31所述的装置,其特征在于,所述处理器,还用于:
    若所述水泵未接收有所述连接数据,或所述连接数据不满足所述预设条件,则确定所述水泵的当前上电时长;
    当所述当前上电时长不大于预设时长,触发所述检测所述水泵对应的所述通信接口是否接收有第一控制系统发送的连接数据的步骤;
    当所述当前上电时长大于所述预设时长,触发所述根据预设工作模式确定所述水泵的目标通信方式的步骤。
  33. 根据权利要29或30所述的装置,其特征在于,所述处理器,还用于:
    若所述水泵未接收有所述连接数据,或所述连接数据不满足所述预设条件,则按照预设周期触发所述检测所述水泵是否接收有第一控制系统发送的连接数据的步骤。
  34. 根据权利要求28至33中任一项所述的装置,其特征在于,所述处理器,还用于:
    当所述第一控制系统的通信方式不同于所述水泵的所述当前通信方式时,按照第一预设规则切换所述水泵的所述当前通信方式。
  35. 根据权利要求29至34中任一项所述的装置,其特征在于,所述连接数据包括总线数据或脉冲信号。
  36. 根据权利要求35所述的装置,其特征在于,当所述连接数据为所述总线数据时,所述处理器,具体用于:
    检测所述连接数据是否符合预设数据协议,若是,则确定所述连接数据满足所述预设条件。
  37. 根据权利要求36所述的装置,其特征在于,所述总线数据包括串口数据、集成电路总线IIC数据、串行外设接口SPI数据、单总线数据、控制器局域网络CAN总线数据中的一种。
  38. 根据权利要求35所述的装置,其特征在于,当所述连接数据为所述脉冲信号时,所述处理器,具体用于:
    获取所述连接数据的属性信息;
    根据所述属性信息确定所述连接数据的脉冲类型;
    检测所述脉冲类型是否符合预设脉冲类型,若是,则确定所述连接数据满足所述预设条件。
  39. 根据权利要求38所述的装置,其特征在于,所述属性信息包括脉冲的频率、脉冲的个数、脉冲的周期、脉冲的电平时间、脉冲的脉冲宽度调制PWM中的至少一种。
  40. 根据权利要求30至39中任一项所述的方法,其特征在于,所述通信接口,具体用于:
    按照所述目标通信方式向第二控制系统传输第二通信信息。
  41. 根据权利要求40所述的装置,其特征在于,所述处理器,具体用于:
    确定所述连接数据的内容信息;
    根据所述内容信息确定所述水泵的工作模式。
  42. 根据权利要41所述的装置,其特征在于,所述处理器,还用于:
    确定所述第二控制系统的需求类型;
    所述根据所述内容信息确定所述水泵的工作模式包括:
    根据所述内容信息和所述需求类型确定所述水泵的工作模式。
  43. 根据权利要求40所述的装置,其特征在于,所述处理器,还用于:
    确定所述第二控制系统的需求类型;
    根据所述需求类型确定所述第二通信信息。
  44. 根据权利要求40至43中任一项所述的装置,其特征在于,所述第一通信信息或所述第二通信信息包括所述水泵的使用时间、所述水泵的使用状态、所述水泵的使用寿命、所述水泵的剩余使用寿命、所述水泵的版本、所述水泵的硬件信息、所述水泵的出厂信息、所述水泵的环境信息、所述水泵的工作信息中的至少一种。
  45. 根据权利要求44所述的装置,其特征在于,所述环境信息包括温度信息和/或湿度信息;
    所述工作信息包括工作电流、工作电压、液体压力信息、液体流速信息中 的至少一种。
  46. 根据权利要求30至45中任一项所述的方法,其特征在于,所述工作模式包括数据输出模式、命令输入模式、编程模式、数据编辑模式中的一种。
  47. 根据权利要求28至46中任一项所述的方法,其特征在于,所述目标通信方式包括串口、集成电路总线IIC、串行外设接口SPI、单总线、控制器局域网络CAN总线、脉冲中的一种。
  48. 根据权利要求28至47中任一项所述的装置,其特征在于,所述通信接口,具体用于:
    按照所述目标通信方式接收所述第二控制系统传输的第三通信信息。
  49. 根据权利要求48所述的装置,其特征在于,所述第三通信信息包括控制信息和/或查询信息。
  50. 根据权利要求49所述的装置,其特征在于,所述控制信息包括关闭指令信息或开启指令信息。
  51. 根据权利要求28至50中任一项所述的装置,其特征在于,处理器,还用于:
    按照第二预设规则切换所述水泵的所述当前通信方式。
  52. 根据权利要求28至51中任一项所述的装置,其特征在于,所述第一控制系统包括所述移动平台的控制系统、所述移动平台的喷洒系统、所述移动平台的外在通信设备中的一种。
  53. 根据权利要求52所述的装置,其特征在于,所述外在通信设备设于所述水泵上。
  54. 根据权利要求28至53中任一项所述的装置,其特征在于,所述移动平台为无人机。
  55. 一种水泵,其特征在于,包括如权利要求28至54中任一项所述的通信装置。
  56. 一种无人机,其特征在于,所述无人机包括所述权利要55所述的水泵。
  57. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于:所述计算机程序被处理器执行时实现如权利要求1至27中任意一项所述方法的步骤。
PCT/CN2017/117012 2017-12-18 2017-12-18 通信方法及装置、水泵、无人机、可读存储介质 WO2019119229A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/CN2017/117012 WO2019119229A1 (zh) 2017-12-18 2017-12-18 通信方法及装置、水泵、无人机、可读存储介质
CN201780006744.6A CN108521785B (zh) 2017-12-18 2017-12-18 通信方法及装置、水泵、无人机、可读存储介质
US16/905,123 US20200319656A1 (en) 2017-12-18 2020-06-18 Communication method and device, water pump, unmanned aerial vehicle, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/117012 WO2019119229A1 (zh) 2017-12-18 2017-12-18 通信方法及装置、水泵、无人机、可读存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/905,123 Continuation US20200319656A1 (en) 2017-12-18 2020-06-18 Communication method and device, water pump, unmanned aerial vehicle, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2019119229A1 true WO2019119229A1 (zh) 2019-06-27

Family

ID=63433163

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/117012 WO2019119229A1 (zh) 2017-12-18 2017-12-18 通信方法及装置、水泵、无人机、可读存储介质

Country Status (3)

Country Link
US (1) US20200319656A1 (zh)
CN (1) CN108521785B (zh)
WO (1) WO2019119229A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4015827B1 (en) 2020-12-16 2023-09-27 Grundfos Holding A/S Pump assembly and method for controlling an electric motor for driving an impeller of a pump unit of a pump assembly

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130244588A1 (en) * 2012-03-13 2013-09-19 Ge Aviation Systems Llc Method for transmitting aircraft flight data
CN106716278A (zh) * 2016-08-31 2017-05-24 深圳市大疆创新科技有限公司 无人机、电子调速器及其控制方法、控制系统
WO2017088097A1 (zh) * 2015-11-23 2017-06-01 深圳市大疆创新科技有限公司 数据传输方法及相关装置
CN107223107A (zh) * 2016-11-24 2017-09-29 深圳市大疆创新科技有限公司 农业无人飞行器及其喷洒控制方法

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014017563A (ja) * 2012-07-05 2014-01-30 Fujitsu Ltd 通信制御方法、通信制御プログラムおよび通信制御装置
US20160081123A1 (en) * 2013-04-25 2016-03-17 Kyocera Corporation User terminal, base station, and processor
CN104678758A (zh) * 2013-12-03 2015-06-03 青岛博利尔机械设备有限公司 供水冗余控制系统
CN205154591U (zh) * 2015-12-08 2016-04-13 卧龙电气集团股份有限公司 水泵变频监控系统
CN205605403U (zh) * 2016-05-17 2016-09-28 钟灵宪 智能水泵控制装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130244588A1 (en) * 2012-03-13 2013-09-19 Ge Aviation Systems Llc Method for transmitting aircraft flight data
WO2017088097A1 (zh) * 2015-11-23 2017-06-01 深圳市大疆创新科技有限公司 数据传输方法及相关装置
CN106716278A (zh) * 2016-08-31 2017-05-24 深圳市大疆创新科技有限公司 无人机、电子调速器及其控制方法、控制系统
CN107223107A (zh) * 2016-11-24 2017-09-29 深圳市大疆创新科技有限公司 农业无人飞行器及其喷洒控制方法

Also Published As

Publication number Publication date
US20200319656A1 (en) 2020-10-08
CN108521785B (zh) 2019-12-20
CN108521785A (zh) 2018-09-11

Similar Documents

Publication Publication Date Title
CN106465045B (zh) 用于快速配置入网(onboarding)具备互联网能力的设备的装置和方法
US11581915B2 (en) Device control method and apparatus, storage medium, processor, and terminal
US9820185B2 (en) Electronic device, controller and control method for NFC
US10349353B2 (en) Automatic uploading method and portable information capturing device capable of automatic uploading
US20190347237A1 (en) Serial port communication mode conversion method, system, and circuit
WO2020019944A1 (zh) 一种智能分析系统、方法及装置
WO2019119229A1 (zh) 通信方法及装置、水泵、无人机、可读存储介质
US11294867B2 (en) Internet of things architecture with a cloud-based integration platform
CN106100939A (zh) 网络设备启动时间测试方法及测试控制台
CN106887228B (zh) 机器人的语音控制方法、装置及机器人
WO2019144803A1 (zh) 流量统计方法、装置、存储介质及电子装置
US9622023B2 (en) Remote wakeup of sleeping subsystems
WO2011160341A1 (zh) 基于llrp协议的阅读器驱动装置、系统及方法
US20210225136A1 (en) Relaying device status information using light indicator patterns
CN113791792A (zh) 应用调用信息的获取方法、设备以及存储介质
CN104335195A (zh) 输入解码器
CN208953286U (zh) 一种辅助驾驶产品测试装置
US20210373540A1 (en) Wireless Communication For Industrial Automation
CN113032054B (zh) 一种服务执行方法、装置、存储介质及电子装置
CN114513399A (zh) 设备识别方法、装置和计算机可读存储介质及电子设备
CN112492555A (zh) 一种控制指令的处理方法以及装置
CN109522256B (zh) 一种串口通信方法、网络设备、控制设备及存储介质
CN111294630A (zh) 一种视频传输设备的控制方法及多端口转发设备
CN114293876B (zh) 开门控制方法、系统、电子设备和计算机可读存储介质
US20180337431A1 (en) Systems and methods for improving cell balancing and cell failure detection

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17935447

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17935447

Country of ref document: EP

Kind code of ref document: A1