WO2017071078A1 - 通讯模组固件和插件生成方法及装置 - Google Patents

通讯模组固件和插件生成方法及装置 Download PDF

Info

Publication number
WO2017071078A1
WO2017071078A1 PCT/CN2015/099440 CN2015099440W WO2017071078A1 WO 2017071078 A1 WO2017071078 A1 WO 2017071078A1 CN 2015099440 W CN2015099440 W CN 2015099440W WO 2017071078 A1 WO2017071078 A1 WO 2017071078A1
Authority
WO
WIPO (PCT)
Prior art keywords
product
program template
plug
communication module
description information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2015/099440
Other languages
English (en)
French (fr)
Inventor
王元波
孙启民
李飞云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to MX2016004103A priority Critical patent/MX374563B/es
Priority to JP2017547059A priority patent/JP6254751B2/ja
Priority to KR1020167005172A priority patent/KR101770931B1/ko
Priority to RU2016124782A priority patent/RU2653276C2/ru
Publication of WO2017071078A1 publication Critical patent/WO2017071078A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Definitions

  • the present disclosure relates to the field of communication module technologies, and in particular, to a communication module firmware and a plug-in generation method and apparatus.
  • suppliers can build a set of third-party partners and developers based on intelligent Wi-Fi modules, including device connection and binding, data transmission and storage, and users.
  • An open platform for interactive interfaces The developer fills in his own company and product introduction in the development platform.
  • the software development kit for the smart Wi-Fi module, the communication module firmware software development kit and the terminal application plug-in can be obtained. Since the basic firmware is written in the module, the developer needs to customize the software development kit of the firmware and the software development kit of the terminal application plug-in in combination with the product functions of the module.
  • developers are not familiar with the module structure and details of software development kits for Wi-Fi modules, communication module firmware, and terminal application plug-ins, it is still familiar with these software development kits. It takes a lot of time and time and effort.
  • the embodiments of the present disclosure provide a communication module firmware and a plug-in generating method and apparatus, including the following technical solutions:
  • a communication module firmware and a plug-in generating method including:
  • the communication module firmware being built into a device on which the product is installed, the plug-in being installable in a terminal; the device The terminal uses the communication module firmware and the plug-in to implement the functions of the product.
  • the product performance description information includes at least one of the following information: attribute information, trigger event information, and execution method information.
  • the attribute information includes at least one of the following information: a product name, a product description, a data type of the product data, a value range of the product data, a product default value, a product read/write property, and whether the product can be automatically reported;
  • the trigger event information includes at least one of the following information: a name of the trigger event, an event description, a number of parameters carried when triggered, and a name, a data type, a value range, and a default value of each parameter;
  • the execution method information includes at least one of the following: an execution method name, an execution method description, a number of parameters to be delivered, a number of fields included in the return value, a name of each parameter and each field, type of data, Value range and default value.
  • the selecting a target program template corresponding to the product performance description information from the preset program template library includes:
  • the target program template matching the type to which the product belongs is selected from the preset program template library.
  • the communication module firmware and the plug-in are generated according to the product performance description information and the target program template, including:
  • the communication module firmware and the plug-in are generated by replacing the current parameter in the target parameter item with the target parameter.
  • the method further includes:
  • At least one program template is set to form a preset program template library.
  • a communication module firmware and a plug-in generating apparatus including:
  • a first receiving module configured to receive product performance description information input by the user
  • a selection module configured to select, from a preset program template library, a target program template corresponding to the product performance description information
  • a generating module configured to generate a communication module firmware and a plug-in according to the product performance description information and the target program template, where the communication module firmware can be built in a device on which the product is installed, and the plug-in can be installed in the terminal
  • the device and the terminal respectively implement the functions of the product by using the communication module firmware and the plug-in.
  • the product performance description information includes at least one of the following information: attribute information, trigger event information, and execution method information.
  • the attribute information includes at least one of the following information: a product name, a product description, a data type of the product data, a value range of the product data, a product default value, a product read/write property, and whether the product can be automatically reported;
  • the trigger event information includes at least one of the following information: a name of the trigger event, an event description, a number of parameters carried when triggered, and a name, a data type, a value range, and a default value of each parameter;
  • the execution method information includes at least one of the following: an execution method name, an execution method description, a number of parameters to be delivered, a number of fields included in the return value, a name of each parameter and each field, Data type, range of values, and default values.
  • the selecting module comprises:
  • Determining a submodule configured to determine, according to the product performance description information, a type to which the product belongs;
  • the template selection sub-module is configured to select, from the preset program template library, a target program template that matches a type to which the product belongs according to a type to which the product belongs.
  • the generating module comprises:
  • a first obtaining submodule configured to acquire a target parameter item in the target program template that needs to perform data replacement
  • a second obtaining submodule configured to obtain a corresponding target parameter from the product performance description information according to the target parameter item
  • a replacement submodule configured to replace the current parameter in the target parameter item with the target parameter to generate the communication module firmware and the plugin.
  • the apparatus further includes:
  • a second receiving module configured to receive an input program template setting command
  • a setting module configured to set at least one program template according to the program template setting command to form a preset program template library.
  • a communication module firmware and a plug-in generating apparatus including:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the product performance description information includes at least one of the following information: attribute information, trigger event information, and execution method information;
  • the communication module firmware being built into a device on which the product is installed, the plug-in being installable in a terminal; the device The terminal uses the communication module firmware and the plug-in to implement the functions of the product.
  • the above technical solution can automatically generate the communication module firmware and the plug-in according to the product performance description information and the target program template input by the user, so that the communication module firmware is built in the device, and the plug-in is installed in the terminal, and the terminal can be realized.
  • the communication module firmware and plug-in are automatically generated according to the product performance description input by the developer, and the developer does not need to understand the communication module architecture and details, and then manually writes the code to generate the communication module firmware and plug-in that can realize the product function, thereby reducing User operation has improved the user experience.
  • FIG. 1 is a flowchart of a communication module firmware and a plug-in generating method according to an exemplary embodiment.
  • FIG. 2 is a flowchart of a communication module firmware and a plug-in generating method according to an exemplary embodiment.
  • FIG. 3 is a flowchart of another communication module firmware and plug-in generating method according to an exemplary embodiment.
  • FIG. 4 is a flowchart of still another communication module firmware and plug-in generating method according to an exemplary embodiment.
  • FIG. 5 is a block diagram of a communication module firmware and plug-in generating apparatus, according to an exemplary embodiment.
  • FIG. 6 is a block diagram of a selection module of a communication module firmware and plug-in generation, according to an exemplary embodiment.
  • FIG. 7 is a block diagram of a communication module firmware and a plug-in generation generation module according to an exemplary embodiment.
  • FIG. 8 is a block diagram of another communication module firmware and plug-in generating apparatus according to an exemplary embodiment.
  • FIG. 9 is a block diagram of a communication module firmware and plug-in generating apparatus, according to an exemplary embodiment.
  • the embodiment of the present disclosure provides a communication module firmware and a plug-in generating method. As shown in FIG. 1, the method includes steps S101-S103:
  • step S101 the product performance description information input by the user is received, and the product performance description information includes at least one of the following information: attribute information, trigger event information, and execution method information;
  • the attribute information includes at least one of the following information: a product name, a product description, a data type of the product data, a range of values of the product data, a product default value, a product read/write property, and whether the product can be automatically reported. ;
  • the trigger event information includes at least one of the following information: a name of the trigger event, an event description, a number of parameters carried when triggered, and a name, a data type, a range of values, and a default value of each parameter;
  • the execution method information includes at least one of the following information: execution method name, execution method description, number of parameters to be delivered, number of fields included in the return value, name of each parameter and each field, data type , range of values, and default values.
  • step S102 the target program template corresponding to the product performance description information is selected from the preset program template library.
  • the user or the manufacturer can set a plurality of program templates according to individual needs, as shown in FIG. 2, and the setting steps include steps S201-S202:
  • step S201 receiving an input program template setting command
  • step S202 at least one program template is set according to the program template setting command to form a preset program template library.
  • the preset program template library is set.
  • step S103 the communication module firmware and the plug-in are generated according to the product performance description information and the target program template.
  • the communication module firmware can be built in the device with the product installed, and the plug-in can be installed in the terminal; the device and the terminal respectively use the communication module Firmware and plug-ins implement the functionality of the product.
  • the communication module firmware and the plug-in can be automatically generated according to the product performance description information and the target program template input by the user, so that the communication module firmware is built in the device, and the plug-in is installed in the terminal, so that Realize the interaction between the terminal and the device to realize the function of the product.
  • the communication module firmware and plug-in are automatically generated according to the product performance description input by the developer, and the developer does not need to understand the communication module architecture and details, and then manually writes the code to generate the communication module firmware and plug-in that can realize the product function, thereby reducing User operation has improved the user experience.
  • step S102 includes steps S301-S302:
  • step S301 determining a type to which the product belongs according to the product performance description information
  • step S302 according to the type of the product, the target program template matching the type to which the product belongs is selected from the preset program template library.
  • the type to which the product belongs can be determined, and for different types of products, corresponding to different program templates, so that the target program template corresponding to the current product can be determined, thereby
  • the program template generates corresponding communication module firmware and plug-ins for the current product to implement the functions of the current product.
  • the developer does not need to understand the communication module architecture and details, and then manually write code to generate communication module firmware and plug-ins that can realize product functions, thereby reducing user operations and improving the user experience.
  • step S103 includes steps S401-S403:
  • step S401 acquiring a target parameter item in the target program template that needs to be replaced by data
  • step S402 the corresponding target parameter is obtained from the product performance description information according to the target parameter item;
  • step S403 the current parameter in the target parameter item is replaced with the target parameter to generate the communication module firmware and the plug-in.
  • the target program template includes a plurality of target parameter items, such as a module name, a method name (ie, a function name), a method type, and a return value, etc., so that the target parameter items are in the product performance description information. Find the corresponding parameters and replace the current parameters in the target parameter items with these parameters.
  • the communication module firmware and plug-in corresponding to the product can be generated, so that the communication module firmware is built into the device, and the plug-in is installed in the terminal. In this way, the interaction between the terminal and the device can be realized, thereby realizing the function of the product.
  • a product defines a method called test, and defines the need to pass the parameter a (int type range 0-10) to accept the return value contains the field b (string type length range 0-10), define a method call protocol
  • a method call protocol When you want to call the method method of the device device, you need to get the corresponding target program template, such as ⁇ "did":”deviceId", “method”:”methodName", "params”:[...] ⁇ , then if you want To generate a code that calls this method, you only need to replace the values of the did, method and params in the target template, and the rest can reuse the general code logic.
  • FIG. 5 is a block diagram of a communication module firmware and plug-in generating apparatus according to an exemplary embodiment.
  • the device can be implemented as part or all of the electronic device by software, hardware or a combination of both.
  • the communication module firmware and plug-in generating apparatus includes:
  • the first receiving module 51 is configured to receive product performance description information input by the user, where the product performance description information includes at least one of the following information: attribute information, trigger event information, and execution method information;
  • the selecting module 52 is configured to select a target program template corresponding to the product performance description information from a preset program template library;
  • the generating module 53 is configured to generate a communication module firmware and a plug-in according to the product performance description information and the target program template, the communication module firmware being built into a device on which the product is installed, the plug-in being installable In the terminal, the device and the terminal respectively implement the functions of the product by using the communication module firmware and the plug-in.
  • the attribute information includes at least one of the following information: a product name, a product description, a data type of the product data, a range of values of the product data, a product default value, product readability, and whether the product is readable. Automatic reporting;
  • the trigger event information includes at least one of the following information: a name of the trigger event, an event description, a number of parameters carried when triggered, and a name, a data type, a value range, and a default value of each parameter;
  • the execution method information includes at least one of the following: an execution method name, an execution method description, a number of parameters to be delivered, a number of fields included in the return value, a name of each parameter and each field, Data type, range of values, and default values.
  • the selecting module 52 includes:
  • the determining submodule 61 is configured to determine a type to which the product belongs according to the product performance description information
  • the template selection sub-module 62 is configured to select, from the preset program template library, a target program template that matches the type to which the product belongs according to the type to which the product belongs.
  • the generating module 53 includes:
  • the first obtaining sub-module 71 is configured to acquire a target parameter item in the target program template that needs to be replaced by data;
  • the second obtaining sub-module 72 is configured to obtain a corresponding target parameter from the product performance description information according to the target parameter item;
  • the replacement sub-module 73 is configured to replace the current parameter in the target parameter item with the target parameter to generate the communication module firmware and plug-in.
  • the foregoing apparatus further includes:
  • the second receiving module 81 is configured to receive the input program template setting command
  • the setting module 82 is configured to set at least one program template according to the program template setting command to form a preset program template library.
  • a communication module firmware and a plug-in generating apparatus including:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the communication module firmware being built into a device on which the product is installed, the plug-in being installable in a terminal; the device The terminal uses the communication module firmware and the plug-in to implement the functions of the product.
  • the processor may be further configured to: the product performance description information includes at least one of the following information: attribute information, trigger event information, and execution method information.
  • the attribute information includes at least one of the following information: a product name, a product description, a data type of the product data, a value range of the product data, a product default value, a product read/write property, and whether the product can be automatically reported;
  • the trigger event information includes at least one of the following information: a name of the trigger event, an event description, a number of parameters carried when triggered, and a name, a data type, a value range, and a default value of each parameter;
  • the execution method information includes at least one of the following: an execution method name, an execution method description, a number of parameters to be delivered, a number of fields included in the return value, a name of each parameter and each field, Data type, range of values, and default values.
  • the above processor can also be configured to:
  • a target program template corresponding to the product performance description information including:
  • the target program template matching the type to which the product belongs is selected from the preset program template library.
  • the above processor can also be configured to:
  • Generating communication module firmware and plug-ins according to the product performance description information and the target program template including:
  • the communication module firmware and the plug-in are generated by replacing the current parameter in the target parameter item with the target parameter.
  • the above processor can also be configured to:
  • the method further includes:
  • At least one program template is set to form a preset program template library.
  • FIG. 9 is a block diagram of a communication module firmware and plug-in generating apparatus, which is suitable for an electronic device, according to an exemplary embodiment.
  • device 900 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • Apparatus 900 can include one or more of the following components: processing component 902, memory 904, power component 906, Multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
  • Processing component 902 typically controls the overall operation of device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 902 can include one or more processors 920 to execute instructions to perform all or part of the steps described above.
  • processing component 902 can include one or more modules to facilitate interaction between component 902 and other components.
  • processing component 902 can include a multimedia module to facilitate interaction between multimedia component 908 and processing component 902.
  • Memory 904 is configured to store various types of data to support operation at device 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 904 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • Power component 906 provides power to various components of device 900.
  • Power component 906 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 900.
  • the multimedia component 908 includes a screen between the device 900 and the user that provides an output interface.
  • the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 908 includes a front camera and/or a rear camera. When the device 900 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 910 is configured to output and/or input an audio signal.
  • audio component 910 includes a microphone (MIC) that is configured to receive an external audio signal when device 900 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 904 or transmitted via communication component 916.
  • the audio component 910 also includes a speaker for outputting an audio signal.
  • the I/O interface 912 provides an interface between the processing component 902 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 914 includes one or more sensors for providing device 900 with various aspects of status assessment.
  • sensor component 914 can detect an open/closed state of device 900, relative positioning of components, such as the display and keypad of device 900, and sensor component 914 can also detect a change in position of one component of device 900 or device 900. The presence or absence of user contact with device 900, device 900 orientation or acceleration/deceleration and The temperature of device 900 varies.
  • Sensor assembly 914 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 914 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 916 is configured to facilitate wired or wireless communication between device 900 and other devices.
  • the device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 916 also includes a near field communication (NFC) module to facilitate short range communication.
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • device 900 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • non-transitory computer readable storage medium comprising instructions, such as a memory 904 comprising instructions executable by processor 920 of apparatus 900 to perform the above method.
  • the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • a non-transitory computer readable storage medium when instructions in the storage medium are executed by a processor of the apparatus 900, to enable the apparatus 900 to perform the communication module firmware and plug-in generation method described above, the method comprising:
  • the communication module firmware being built into a device on which the product is installed, the plug-in being installable in a terminal; the device The terminal uses the communication module firmware and the plug-in to implement the functions of the product.
  • the product performance description information includes at least one of the following information: attribute information, trigger event information, and execution method information.
  • the attribute information includes at least one of the following information: a product name, a product description, a data type of the product data, a value range of the product data, a product default value, a product read/write property, and whether the product can be automatically reported;
  • the trigger event information includes at least one of the following information: a name of the trigger event, an event description, a number of parameters carried when triggered, and a name, a data type, a value range, and a default value of each parameter;
  • the execution method information includes at least one of the following: an execution method name, an execution method description, a number of parameters to be delivered, a number of fields included in the return value, a name of each parameter and each field, Data type, range of values, and default values.
  • Target program template including:
  • the target program template matching the type to which the product belongs is selected from the preset program template library.
  • the communication module firmware and the plug-in are generated according to the product performance description information and the target program template, including:
  • the communication module firmware and the plug-in are generated by replacing the current parameter in the target parameter item with the target parameter.
  • the method further includes:
  • At least one program template is set to form a preset program template library.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)

Abstract

本发明提供了一种通讯模组固件和插件生成方法及装置,其中,方法包括:接收用户输入的产品性能描述信息(S101);从预设的程序模板库中选取出与产品性能描述信息对应的目标程序模板(S102);根据产品性能描述信息和目标程序模板生成通讯模组固件和插件,通讯模组固件能够内置于安装有产品的设备,插件能够安装于终端中;设备、终端分别利用通讯模组固件、插件实现产品的功能(S103)。通过该技术方案,根据输入的产品性能描述自动生成通讯模组固件和插件,不需要开发者人工编写代码生成能实现产品功能的通讯模组固件和插件,减少了用户操作,提升了用户的使用体验。

Description

通讯模组固件和插件生成方法及装置
本申请基于申请号为201510729162.3、申请日为2015/10/30的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本公开涉及通讯模组技术领域,尤其涉及一种通讯模组固件和插件生成方法及装置。
背景技术
为了加快硬件设备的智能化进程,缩短产品研发周期,供应商可以基于智能Wi-Fi模组,为第三方合作厂商和开发者搭建一套包括设备连接和绑定、数据传输和存储、以及用户交互界面的开放平台。开发者在开发平台中填写自己的公司、产品介绍,通过后台的审核后,就可以拿到智能Wi-Fi模组、通讯模组固件的软件开发工具包和终端应用插件的软件开发工具包。由于模组中写入的是基础固件,开发者拿到模组后还要结合自己产品功能对固件的软件开发工具包和终端应用插件的软件开发工具包进行定制开发。但是由于开发者对能Wi-Fi模组、通讯模组固件的软件开发工具包和终端应用插件的软件开发工具包的模组结构体系和细节并不了解,因此,熟悉这些软件开发工具包仍需要花费大量的时间,费时费力。
发明内容
本公开实施例提供一种通讯模组固件和插件生成方法及装置,包括如下技术方案:
根据本公开实施例的第一方面,提供一种通讯模组固件和插件生成方法,包括:
接收用户输入的产品性能描述信息;
从预设的程序模板库中选取出与所述产品性能描述信息对应的目标程序模板;
根据所述产品性能描述信息和所述目标程序模板生成通讯模组固件和插件,所述通讯模组固件能够内置于安装有所述产品的设备,所述插件能够安装于终端中;所述设备、所述终端分别利用所述通讯模组固件、所述插件实现所述产品的功能。
在一个实施例中,所述产品性能描述信息包括以下信息中的至少一项:属性信息、触发事件信息、执行方法信息。
其中,所述属性信息包括以下信息中的至少一项:产品名称、产品说明、产品数据的数据类型、产品数据的取值范围、产品默认值、产品读写性、产品是否可自动上报;
所述触发事件信息包括以下信息中的至少一项:触发事件的名称、事件说明、触发时携带参数的个数以及每个参数的名称、数据类型、取值范围和默认值;
所述执行方法信息包括以下信息中的至少一项:执行方法名称、执行方法说明、需要传递的参数的个数、返回值中包含的字段的个数,每个参数和每个字段的名称、数据类型、 取值范围和默认值。
在一个实施例中,所述从预设的程序模板库中选取出与所述产品性能描述信息对应的目标程序模板,包括:
根据所述产品性能描述信息确定所述产品所属的类型;
根据所述产品所属的类型,从预设的程序模板库中选取出与所述产品所属的类型相匹配的目标程序模板。
在一个实施例中,根据所述产品性能描述信息和所述目标程序模板生成通讯模组固件和插件,包括:
获取所述目标程序模板中需要进行数据替换的目标参数项;
根据所述目标参数项,从所述产品性能描述信息中获取对应的目标参数;
使用所述目标参数替换所述目标参数项中的当前参数,生成所述通讯模组固件和插件。
在一个实施例中,所述方法还包括:
接收输入的程序模板设置命令;
根据所述程序模板设置命令,设置至少一个程序模板,形成预设的程序模板库。
根据本公开实施例的第二方面,提供一种通讯模组固件和插件生成装置,包括:
第一接收模块,用于接收用户输入的产品性能描述信息;
选取模块,用于从预设的程序模板库中选取出与所述产品性能描述信息对应的目标程序模板;
生成模块,用于根据所述产品性能描述信息和所述目标程序模板生成通讯模组固件和插件,所述通讯模组固件能够内置于安装有所述产品的设备,所述插件能够安装于终端中;所述设备、所述终端分别利用所述通讯模组固件、所述插件实现所述产品的功能。
在一个实施例中,所述产品性能描述信息包括以下信息中的至少一项:属性信息、触发事件信息、执行方法信息。
其中,所述属性信息包括以下信息中的至少一项:产品名称、产品说明、产品数据的数据类型、产品数据的取值范围、产品默认值、产品读写性、产品是否可自动上报;
所述触发事件信息包括以下信息中的至少一项:触发事件的名称、事件说明、触发时携带参数的个数以及每个参数的名称、数据类型、取值范围和默认值;
所述执行方法信息包括以下信息中的至少一项:执行方法名称、执行方法说明、需要传递的参数的个数、返回值中包含的字段的个数,每个参数和每个字段的名称、数据类型、取值范围和默认值。
在一个实施例中,所述选取模块包括:
确定子模块,用于根据所述产品性能描述信息确定所述产品所属的类型;
模板选取子模块,用于根据所述产品所属的类型,从预设的程序模板库中选取出与所述产品所属的类型相匹配的目标程序模板。
在一个实施例中,所述生成模块包括:
第一获取子模块,用于获取所述目标程序模板中需要进行数据替换的目标参数项;
第二获取子模块,用于根据所述目标参数项,从所述产品性能描述信息中获取对应的目标参数;
替换子模块,用于使用所述目标参数替换所述目标参数项中的当前参数,生成所述通讯模组固件和插件。
在一个实施例中,所述装置还包括:
第二接收模块,用于接收输入的程序模板设置命令;
设置模块,用于根据所述程序模板设置命令,设置至少一个程序模板,形成预设的程序模板库。
根据本公开实施例的第三方面,提供一种通讯模组固件和插件生成装置,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
接收用户输入的产品性能描述信息,所述产品性能描述信息包括以下信息中的至少一项:属性信息、触发事件信息、执行方法信息;
从预设的程序模板库中选取出与所述产品性能描述信息对应的目标程序模板;
根据所述产品性能描述信息和所述目标程序模板生成通讯模组固件和插件,所述通讯模组固件能够内置于安装有所述产品的设备,所述插件能够安装于终端中;所述设备、所述终端分别利用所述通讯模组固件、所述插件实现所述产品的功能。
本公开的实施例提供的技术方案可以包括以下有益效果:
上述技术方案,可以根据用户输入的产品性能描述信息和目标程序模板,自动生成通讯模组固件和插件,这样,将通讯模组固件内置于设备中,将插件安装于终端中,就可以实现终端和设备之间的交互,从而实现产品的功能。这样,根据开发者输入的产品性能描述自动生成通讯模组固件和插件,不需要开发者再了解通讯模组架构和细节,进而人工编写代码生成能实现产品功能的通讯模组固件和插件,减少了用户操作,提升了用户的使用体验。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
图1是根据一示例性实施例示出的通讯模组固件和插件生成方法的流程图。
图2是根据一示例性实施例示出的一种通讯模组固件和插件生成方法的流程图。
图3是根据一示例性实施例示出的另一种通讯模组固件和插件生成方法的流程图。
图4是根据一示例性实施例示出的再一种通讯模组固件和插件生成方法的流程图。
图5是根据一示例性实施例示出的通讯模组固件和插件生成装置的框图。
图6是根据一示例性实施例示出的通讯模组固件和插件生成中选取模块的框图。
图7是根据一示例性实施例示出的通讯模组固件和插件生成中生成模块的框图。
图8是根据一示例性实施例示出的另一种通讯模组固件和插件生成装置的框图。
图9是根据一示例性实施例示出的适用于通讯模组固件和插件生成装置的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
本公开实施例提供了一种通讯模组固件和插件生成方法,如图1所示,该方法包括步骤S101-S103:
在步骤S101中,接收用户输入的产品性能描述信息,产品性能描述信息包括以下信息中的至少一项:属性信息、触发事件信息、执行方法信息;
在一个实施例中,属性信息包括以下信息中的至少一项:产品名称、产品说明、产品数据的数据类型、产品数据的取值范围、产品默认值、产品读写性、产品是否可自动上报;
触发事件信息包括以下信息中的至少一项:触发事件的名称、事件说明、触发时携带参数的个数以及每个参数的名称、数据类型、取值范围和默认值;
执行方法信息包括以下信息中的至少一项:执行方法名称、执行方法说明、需要传递的参数的个数、返回值中包含的字段的个数,每个参数和每个字段的名称、数据类型、取值范围和默认值。
在步骤S102中,从预设的程序模板库中选取出与产品性能描述信息对应的目标程序模板。
其中,用户或厂商可以根据个人需要设置多个程序模板,如图2所示,其设置步骤包括步骤S201-S202:
在步骤S201中,接收输入的程序模板设置命令;
在步骤S202中,根据程序模板设置命令,设置至少一个程序模板,形成预设的程序模板库。这样,设置预设的程序模板库,当需要生成产品对应的通讯模组固件和插件时,只需要从预设的程序模板库中选取出与产品性能描述对应的目标程序模板即可。
在步骤S103中,根据产品性能描述信息和目标程序模板生成通讯模组固件和插件,通讯模组固件能够内置于安装有产品的设备,插件能够安装于终端中;设备、终端分别利用通讯模组固件、插件实现产品的功能。
在该实施例中,可以根据用户输入的产品性能描述信息和目标程序模板,自动生成通讯模组固件和插件,这样,将通讯模组固件内置于设备中,将插件安装于终端中,就可以实现终端和设备之间的交互,从而实现产品的功能。这样,根据开发者输入的产品性能描述自动生成通讯模组固件和插件,不需要开发者再了解通讯模组架构和细节,进而人工编写代码生成能实现产品功能的通讯模组固件和插件,减少了用户操作,提升了用户的使用体验。
如图3所示,在一个实施例中,上述步骤S102包括步骤S301-S302:
在步骤S301中,根据产品性能描述信息确定产品所属的类型;
在步骤S302中,根据产品所属的类型,从预设的程序模板库中选取出与产品所属的类型相匹配的目标程序模板。
在该实施例中,根据产品的性能描述,能确定产品所属的类型,而对于不同类型的产品,其对应不同的程序模板,这样,就能够确定出当前产品对应的目标程序模板,从而根据目标程序模板为当前产品生成对应的通讯模组固件和插件,以实现当前产品的功能。这样,不需要开发者再了解通讯模组架构和细节,进而人工编写代码生成能实现产品功能的通讯模组固件和插件,减少了用户操作,提升了用户的使用体验。
如图4所示,在一个实施例中,上述步骤S103包括步骤S401-S403:
在步骤S401中,获取目标程序模板中需要进行数据替换的目标参数项;
在步骤S402中,根据目标参数项,从产品性能描述信息中获取对应的目标参数;
在步骤S403中,使用目标参数替换目标参数项中的当前参数,生成通讯模组固件和插件。
在该实施例中,目标程序模板中包含多个目标参数项,如模组名称、方法名称(即函数名称)、方法类型和返回值等,这样,根据这些目标参数项在产品性能描述信息中找到对应的参数,并用这些参数替换掉目标参数项中的当前参数,这样,就可以生成与产品对应的通讯模组固件和插件,从而将通讯模组固件内置于设备中,将插件安装于终端中,就可以实现终端和设备之间的交互,从而实现产品的功能。
例如,某产品定义好了一个方法叫test,并且定义好了需要传递参数a(int类型范围0-10)接受的返回值包含字段b(string类型长度范围0-10),定义一个方法调用协议,当要调用设备device的方法method时,需要获取与其对应的目标程序模板,如{“did”:”deviceId”,”method”:”methodName”,”params”:[…]},那么如果要生成一个调用这个方法的代码,只需要替换这个目标程序模板中did,method和params的取值即可,其余部分均可以复用通用的代码逻辑。
下述为本公开装置实施例,可以用于执行本公开方法实施例。
图5是根据一示例性实施例示出的一种通讯模组固件和插件生成装置的框图。该装置可以通过软件、硬件或者两者的结合实现成为电子设备的部分或者全部。如图5所示,该通讯模组固件和插件生成装置包括:
第一接收模块51被配置为接收用户输入的产品性能描述信息,所述产品性能描述信息包括以下信息中的至少一项:属性信息、触发事件信息、执行方法信息;
选取模块52被配置为从预设的程序模板库中选取出与所述产品性能描述信息对应的目标程序模板;
生成模块53被配置为根据所述产品性能描述信息和所述目标程序模板生成通讯模组固件和插件,所述通讯模组固件能够内置于安装有所述产品的设备,所述插件能够安装于终端中;所述设备、所述终端分别利用所述通讯模组固件、所述插件实现所述产品的功能。
在一个实施例中,所述属性信息包括以下信息中的至少一项:产品名称、产品说明、产品数据的数据类型、产品数据的取值范围、产品默认值、产品读写性、产品是否可自动上报;
所述触发事件信息包括以下信息中的至少一项:触发事件的名称、事件说明、触发时携带参数的个数以及每个参数的名称、数据类型、取值范围和默认值;
所述执行方法信息包括以下信息中的至少一项:执行方法名称、执行方法说明、需要传递的参数的个数、返回值中包含的字段的个数,每个参数和每个字段的名称、数据类型、取值范围和默认值。
如图6所示,在一个实施例中,所述选取模块52包括:
确定子模块61被配置为根据所述产品性能描述信息确定所述产品所属的类型;
模板选取子模块62被配置为根据所述产品所属的类型,从预设的程序模板库中选取出与所述产品所属的类型相匹配的目标程序模板。
如图7所示,在一个实施例中,所述生成模块53包括:
第一获取子模块71被配置为获取所述目标程序模板中需要进行数据替换的目标参数项;
第二获取子模块72被配置为根据所述目标参数项,从所述产品性能描述信息中获取对应的目标参数;
替换子模块73被配置为使用所述目标参数替换所述目标参数项中的当前参数,生成所述通讯模组固件和插件。
如图8所示,在一个实施例中,上述装置还包括:
第二接收模块81被配置为接收输入的程序模板设置命令;
设置模块82被配置为根据所述程序模板设置命令,设置至少一个程序模板,形成预设的程序模板库。
根据本公开实施例的第三方面,提供一种通讯模组固件和插件生成装置,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,处理器被配置为:
接收用户输入的产品性能描述信息;
从预设的程序模板库中选取出与所述产品性能描述信息对应的目标程序模板;
根据所述产品性能描述信息和所述目标程序模板生成通讯模组固件和插件,所述通讯模组固件能够内置于安装有所述产品的设备,所述插件能够安装于终端中;所述设备、所述终端分别利用所述通讯模组固件、所述插件实现所述产品的功能。
上述处理器还可被配置为:所述产品性能描述信息包括以下信息中的至少一项:属性信息、触发事件信息、执行方法信息。
所述属性信息包括以下信息中的至少一项:产品名称、产品说明、产品数据的数据类型、产品数据的取值范围、产品默认值、产品读写性、产品是否可自动上报;
所述触发事件信息包括以下信息中的至少一项:触发事件的名称、事件说明、触发时携带参数的个数以及每个参数的名称、数据类型、取值范围和默认值;
所述执行方法信息包括以下信息中的至少一项:执行方法名称、执行方法说明、需要传递的参数的个数、返回值中包含的字段的个数,每个参数和每个字段的名称、数据类型、取值范围和默认值。
上述处理器还可被配置为:
所述从预设的程序模板库中选取出与所述产品性能描述信息对应的目标程序模板,包括:
根据所述产品性能描述信息确定所述产品所属的类型;
根据所述产品所属的类型,从预设的程序模板库中选取出与所述产品所属的类型相匹配的目标程序模板。
上述处理器还可被配置为:
根据所述产品性能描述信息和所述目标程序模板生成通讯模组固件和插件,包括:
获取所述目标程序模板中需要进行数据替换的目标参数项;
根据所述目标参数项,从所述产品性能描述信息中获取对应的目标参数;
使用所述目标参数替换所述目标参数项中的当前参数,生成所述通讯模组固件和插件。
上述处理器还可被配置为:
所述方法还包括:
接收输入的程序模板设置命令;
根据所述程序模板设置命令,设置至少一个程序模板,形成预设的程序模板库。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
图9是根据一示例性实施例示出的一种用于通讯模组固件和插件生成装置的框图,该装置适用于电子设备。例如,装置900可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。
装置900可以包括以下一个或多个组件:处理组件902,存储器904,电源组件906, 多媒体组件908,音频组件910,输入/输出(I/O)的接口912,传感器组件914,以及通信组件916。
处理组件902通常控制装置900的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件902可以包括一个或多个处理器920来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件902可以包括一个或多个模块,便于处理组件902和其他组件之间的交互。例如,处理部件902可以包括多媒体模块,以方便多媒体组件908和处理组件902之间的交互。
存储器904被配置为存储各种类型的数据以支持在设备900的操作。这些数据的示例包括用于在装置900上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器904可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电力组件906为装置900的各种组件提供电力。电力组件906可以包括电源管理系统,一个或多个电源,及其他与为装置900生成、管理和分配电力相关联的组件。
多媒体组件908包括在所述装置900和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件908包括一个前置摄像头和/或后置摄像头。当设备900处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件910被配置为输出和/或输入音频信号。例如,音频组件910包括一个麦克风(MIC),当装置900处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器904或经由通信组件916发送。在一些实施例中,音频组件910还包括一个扬声器,用于输出音频信号。
I/O接口912为处理组件902和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件914包括一个或多个传感器,用于为装置900提供各个方面的状态评估。例如,传感器组件914可以检测到设备900的打开/关闭状态,组件的相对定位,例如所述组件为装置900的显示器和小键盘,传感器组件914还可以检测装置900或装置900一个组件的位置改变,用户与装置900接触的存在或不存在,装置900方位或加速/减速和 装置900的温度变化。传感器组件914可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件914还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件914还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件916被配置为便于装置900和其他设备之间有线或无线方式的通信。装置900可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件916经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件916还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置900可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器904,上述指令可由装置900的处理器920执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置900的处理器执行时,使得装置900能够执行上述通讯模组固件和插件生成方法,所述方法包括:
接收用户输入的产品性能描述信息;
从预设的程序模板库中选取出与所述产品性能描述信息对应的目标程序模板;
根据所述产品性能描述信息和所述目标程序模板生成通讯模组固件和插件,所述通讯模组固件能够内置于安装有所述产品的设备,所述插件能够安装于终端中;所述设备、所述终端分别利用所述通讯模组固件、所述插件实现所述产品的功能。
在一个实施例中,所述产品性能描述信息包括以下信息中的至少一项:属性信息、触发事件信息、执行方法信息。
所述属性信息包括以下信息中的至少一项:产品名称、产品说明、产品数据的数据类型、产品数据的取值范围、产品默认值、产品读写性、产品是否可自动上报;
所述触发事件信息包括以下信息中的至少一项:触发事件的名称、事件说明、触发时携带参数的个数以及每个参数的名称、数据类型、取值范围和默认值;
所述执行方法信息包括以下信息中的至少一项:执行方法名称、执行方法说明、需要传递的参数的个数、返回值中包含的字段的个数,每个参数和每个字段的名称、数据类型、取值范围和默认值。
在一个实施例中,所述从预设的程序模板库中选取出与所述产品性能描述信息对应的 目标程序模板,包括:
根据所述产品性能描述信息确定所述产品所属的类型;
根据所述产品所属的类型,从预设的程序模板库中选取出与所述产品所属的类型相匹配的目标程序模板。
在一个实施例中,根据所述产品性能描述信息和所述目标程序模板生成通讯模组固件和插件,包括:
获取所述目标程序模板中需要进行数据替换的目标参数项;
根据所述目标参数项,从所述产品性能描述信息中获取对应的目标参数;
使用所述目标参数替换所述目标参数项中的当前参数,生成所述通讯模组固件和插件。
在一个实施例中,所述方法还包括:
接收输入的程序模板设置命令;
根据所述程序模板设置命令,设置至少一个程序模板,形成预设的程序模板库。
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (10)

  1. 一种通讯模组固件和插件生成方法,其特征在于,包括:
    接收用户输入的产品性能描述信息;
    从预设的程序模板库中选取出与所述产品性能描述信息对应的目标程序模板;
    根据所述产品性能描述信息和所述目标程序模板生成通讯模组固件和插件,所述通讯模组固件能够内置于安装有所述产品的设备,所述插件能够安装于终端中;所述设备、所述终端分别利用所述通讯模组固件、所述插件实现所述产品的功能。
  2. 根据权利要求1所述的方法,其特征在于,所述产品性能描述信息包括以下信息中的至少一项:属性信息、触发事件信息、执行方法信息。
  3. 根据权利要求1所述的方法,其特征在于,所述从预设的程序模板库中选取出与所述产品性能描述信息对应的目标程序模板,包括:
    根据所述产品性能描述信息确定所述产品所属的类型;
    根据所述产品所属的类型,从预设的程序模板库中选取出与所述产品所属的类型相匹配的目标程序模板。
  4. 根据权利要求1所述的方法,其特征在于,根据所述产品性能描述信息和所述目标程序模板生成通讯模组固件和插件,包括:
    获取所述目标程序模板中需要进行数据替换的目标参数项;
    根据所述目标参数项,从所述产品性能描述信息中获取对应的目标参数;
    使用所述目标参数替换所述目标参数项中的当前参数,生成所述通讯模组固件和插件。
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述方法还包括:
    接收输入的程序模板设置命令;
    根据所述程序模板设置命令,设置至少一个程序模板,形成预设的程序模板库。
  6. 一种通讯模组固件和插件生成装置,其特征在于,包括:
    第一接收模块,用于接收用户输入的产品性能描述信息;
    选取模块,用于从预设的程序模板库中选取出与所述产品性能描述信息对应的目标程序模板;
    生成模块,用于根据所述产品性能描述信息和所述目标程序模板生成通讯模组固件和插件,所述通讯模组固件能够内置于安装有所述产品的设备,所述插件能够安装于终端中;所述设备、所述终端分别利用所述通讯模组固件、所述插件实现所述产品的功能。
  7. 根据权利要求6所述的装置,其特征在于,所述选取模块包括:
    确定子模块,用于根据所述产品性能描述信息确定所述产品所属的类型;
    模板选取子模块,用于根据所述产品所属的类型,从预设的程序模板库中选取出与所述产品所属的类型相匹配的目标程序模板。
  8. 根据权利要求6所述的装置,其特征在于,所述生成模块包括:
    第一获取子模块,用于获取所述目标程序模板中需要进行数据替换的目标参数项;
    第二获取子模块,用于根据所述目标参数项,从所述产品性能描述信息中获取对应的目标参数;
    替换子模块,用于使用所述目标参数替换所述目标参数项中的当前参数,生成所述通讯模组固件和插件。
  9. 根据权利要求6至8中任一项所述的装置,其特征在于,所述装置还包括:
    第二接收模块,用于接收输入的程序模板设置命令;
    设置模块,用于根据所述程序模板设置命令,设置至少一个程序模板,形成预设的程序模板库。
  10. 一种通讯模组固件和插件生成装置,其特征在于,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    接收用户输入的产品性能描述信息;
    从预设的程序模板库中选取出与所述产品性能描述信息对应的目标程序模板;
    根据所述产品性能描述信息和所述目标程序模板生成通讯模组固件和插件,所述通讯模组固件能够内置于安装有所述产品的设备,所述插件能够安装于终端中;所述设备、所述终端分别利用所述通讯模组固件、所述插件实现所述产品的功能。
PCT/CN2015/099440 2015-10-30 2015-12-29 通讯模组固件和插件生成方法及装置 Ceased WO2017071078A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
MX2016004103A MX374563B (es) 2015-10-30 2015-12-29 Metodo y aparato para generar un firmware y complemento de modulo de comunicacion.
JP2017547059A JP6254751B2 (ja) 2015-10-30 2015-12-29 通信モジュールファームウェア及びプラグイン生成方法、装置、プログラム並びに記録媒体
KR1020167005172A KR101770931B1 (ko) 2015-10-30 2015-12-29 통신 모듈 펌웨어와 플러그인 생성 방법, 장치, 프로그램 및 컴퓨터 판독가능한 기록매체
RU2016124782A RU2653276C2 (ru) 2015-10-30 2015-12-29 Способ и прибор для формирования микропрограммного обеспечения модуля связи и программного расширения

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510729162.3A CN105426200B (zh) 2015-10-30 2015-10-30 通讯模组固件和插件生成方法及装置
CN201510729162.3 2015-10-30

Publications (1)

Publication Number Publication Date
WO2017071078A1 true WO2017071078A1 (zh) 2017-05-04

Family

ID=55504429

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/099440 Ceased WO2017071078A1 (zh) 2015-10-30 2015-12-29 通讯模组固件和插件生成方法及装置

Country Status (8)

Country Link
US (1) US10055204B2 (zh)
EP (1) EP3163439A1 (zh)
JP (1) JP6254751B2 (zh)
KR (1) KR101770931B1 (zh)
CN (1) CN105426200B (zh)
MX (1) MX374563B (zh)
RU (1) RU2653276C2 (zh)
WO (1) WO2017071078A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10055204B2 (en) 2015-10-30 2018-08-21 Xiaomi Inc. Generating communication firmware and a program plug-in based on product information and a program template
CN113852530A (zh) * 2021-09-02 2021-12-28 东风汽车集团股份有限公司 一种can通信模块的快速创建方法及系统

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11134295B2 (en) * 2017-10-27 2021-09-28 Nagrastar Llc External module comprising processing functionality
CN108345449A (zh) * 2017-12-25 2018-07-31 海尔优家智能科技(北京)有限公司 一种信息处理方法、装置、存储介质及计算机设备
CN108062224B (zh) * 2017-12-29 2021-04-23 北京奇虎科技有限公司 基于文件句柄的数据读写方法、装置及计算设备
CN108196831B (zh) * 2017-12-29 2021-03-30 广州斯沃德科技有限公司 业务系统的构建方法和装置
CN109032571A (zh) * 2018-08-28 2018-12-18 苏州艾利特机器人有限公司 一种机器人工艺程序生成方法
CN109800530A (zh) * 2019-01-30 2019-05-24 杭州涂鸦信息技术有限公司 一种产品开发方法、装置、设备及可读存储介质
CN110209391B (zh) * 2019-05-28 2023-06-20 北京金山安全软件有限公司 一种插件包生成方法、装置、电子设备及可读存储介质
CN110839062B (zh) * 2019-10-22 2022-11-22 深圳市信锐网科技术有限公司 一种传感器接入物联网的方法、电子设备及存储介质
CN113835612B (zh) * 2020-06-24 2025-05-27 北京小米移动软件有限公司 数据处理方法、装置及介质
CN112433724A (zh) * 2020-11-09 2021-03-02 北京达佳互联信息技术有限公司 目标组件的样式生成方法、装置、电子设备及存储介质
CN112835615B (zh) * 2021-02-08 2024-01-30 百度在线网络技术(北京)有限公司 软件开发工具包的插件化处理方法、装置及电子设备
CN115344296B (zh) * 2021-05-14 2026-02-03 北京达佳互联信息技术有限公司 信息调用方法、装置、电子设备及存储介质
CN115543263A (zh) * 2021-06-29 2022-12-30 北京字跳网络技术有限公司 脚本生成方法、装置、设备及介质
CN113741871A (zh) * 2021-08-23 2021-12-03 珠海格力电器股份有限公司 插件的生成方法、装置、电子设备和存储介质
CN114217873B (zh) * 2021-12-14 2026-01-20 北京字节跳动网络技术有限公司 一种插件的确定方法、装置、电子设备及存储介质
CN114610849A (zh) 2022-03-23 2022-06-10 苏州赛美特科技有限公司 一种产品制造程序的确定方法、装置、设备及存储介质
CN118069158A (zh) * 2022-11-23 2024-05-24 中国移动通信有限公司研究院 一种数据处理方法、装置及设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102461125A (zh) * 2009-06-11 2012-05-16 高通股份有限公司 用于发布基于结构化元数据的发现的插件模型的方法和装置
CN102760081A (zh) * 2011-04-29 2012-10-31 国际商业机器公司 虚拟机资源分配的方法和装置
CN103002548A (zh) * 2011-09-09 2013-03-27 联想(北京)有限公司 移动终端以及维持移动终端与应用服务器的连接的方法

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3536758B2 (ja) 2000-01-11 2004-06-14 松下電工株式会社 インターネットを用いた協調設計の方法およびそのためのシステム
KR20030006600A (ko) 2001-07-13 2003-01-23 다래정보통신 주식회사 프로그램 라이브러리 시스템
TWI231441B (en) * 2003-12-24 2005-04-21 Inst Information Industry Automated integration method of hardware/software interface for SIP development
US9690577B1 (en) * 2004-02-09 2017-06-27 Akana, Inc. Legacy applications as web services
WO2006113645A2 (en) * 2005-04-18 2006-10-26 University Of Pittsburgh-Of The Commonwealth System Of Higher Education Method and software tool for automatic generation of software for integrated circuit processors
KR100744886B1 (ko) 2005-06-28 2007-08-01 학교법인 포항공과대학교 아사달 : 휘처 기반 소프트웨어 제품라인 개발 환경을제공하는 시스템
US8908581B2 (en) * 2007-05-01 2014-12-09 Qualcomm Incorporated Extended microsleep for communications
KR101484680B1 (ko) * 2007-10-04 2015-01-21 삼성전자 주식회사 컴포넌트 기반 소프트웨어 제품 관리 시스템 및 방법
US8112771B2 (en) 2008-01-30 2012-02-07 Microsoft Corporation Managing component programs within a service application
KR101470319B1 (ko) * 2008-02-15 2014-12-08 삼성전자주식회사 컴포넌트 모델 기반의 가상 소프트웨어 플랫폼을 생성하는방법, 이를 이용하여 소프트웨어 플랫폼 아키텍처를검증하는 방법 및 그 장치
RU2456772C2 (ru) * 2008-09-23 2012-07-20 ЭлДжи ЭЛЕКТРОНИКС ИНК. Устройство и способ передачи и приема данных при мягкой передаче обслуживания в системе беспроводной связи
JP2010237895A (ja) * 2009-03-31 2010-10-21 Hitachi Automotive Systems Ltd 車載電子制御装置,制御ソフトウェアおよび制御ソフトウェアの開発ツール
US9176490B2 (en) * 2010-08-16 2015-11-03 Mitsubishi Electric Corporation Control program generation device, control program generation program, and control program generation method
US8261231B1 (en) * 2011-04-06 2012-09-04 Media Direct, Inc. Systems and methods for a mobile application development and development platform
US9032423B2 (en) * 2013-06-21 2015-05-12 Microsoft Technology Licensing, Llc Dependency based configuration package activation
US10929149B2 (en) * 2014-11-11 2021-02-23 Red Hat, Inc. Method and system for updating firmware
US9547482B2 (en) * 2015-06-02 2017-01-17 Sap Portals Israel Ltd. Declarative design-time experience platform for code generation
CN105426200B (zh) 2015-10-30 2018-11-09 小米科技有限责任公司 通讯模组固件和插件生成方法及装置
JP6193460B1 (ja) * 2016-09-30 2017-09-06 ネットエージェント株式会社 ソフトウェアの提供方法、情報処理装置およびプログラム

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102461125A (zh) * 2009-06-11 2012-05-16 高通股份有限公司 用于发布基于结构化元数据的发现的插件模型的方法和装置
CN102760081A (zh) * 2011-04-29 2012-10-31 国际商业机器公司 虚拟机资源分配的方法和装置
CN103002548A (zh) * 2011-09-09 2013-03-27 联想(北京)有限公司 移动终端以及维持移动终端与应用服务器的连接的方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10055204B2 (en) 2015-10-30 2018-08-21 Xiaomi Inc. Generating communication firmware and a program plug-in based on product information and a program template
CN113852530A (zh) * 2021-09-02 2021-12-28 东风汽车集团股份有限公司 一种can通信模块的快速创建方法及系统
CN113852530B (zh) * 2021-09-02 2022-11-08 东风汽车集团股份有限公司 一种can通信模块的快速创建方法及系统

Also Published As

Publication number Publication date
CN105426200B (zh) 2018-11-09
JP2017535906A (ja) 2017-11-30
EP3163439A1 (en) 2017-05-03
MX374563B (es) 2025-03-06
MX2016004103A (es) 2018-06-22
RU2653276C2 (ru) 2018-05-07
US10055204B2 (en) 2018-08-21
KR20170061626A (ko) 2017-06-05
US20170123767A1 (en) 2017-05-04
RU2016124782A (ru) 2017-12-27
CN105426200A (zh) 2016-03-23
JP6254751B2 (ja) 2017-12-27
KR101770931B1 (ko) 2017-08-23

Similar Documents

Publication Publication Date Title
WO2017071078A1 (zh) 通讯模组固件和插件生成方法及装置
EP3748547A1 (en) Super network training method and device
US20160187997A1 (en) Method and device for controlling application
WO2017113842A1 (zh) 控制智能设备的方法及装置
EP3176709A1 (en) Video categorization method and apparatus, computer program and recording medium
WO2016131303A1 (zh) 一种进行转账处理的方法和装置
EP2924552B1 (en) Method and mobile terminal for executing user instructions
WO2017113666A1 (zh) 应用界面切换方法及装置
WO2017035994A1 (zh) 外接设备的连接方法及装置
EP3147802B1 (en) Method and apparatus for processing information
WO2017008400A1 (zh) 控制智能设备的方法及装置
CN111371837A (zh) 功能提示方法、功能提示装置及存储介质
WO2016110146A1 (zh) 移动终端及虚拟按键的处理方法
WO2018000710A1 (zh) WiFi信号图标的展示方法、装置和移动终端
WO2017088371A1 (zh) 闹钟设置方法及装置
CN114741292A (zh) 测试脚本管理方法及装置、电子设备和存储介质
CN107463372B (zh) 一种数据驱动的页面更新方法和装置
EP3015949A1 (en) Method and device for displaying information
CN105242837A (zh) 应用页面获取方法及终端
CN105912202A (zh) 应用分享方法及装置
CN105786561B (zh) 进程调用的方法及装置
US11399359B2 (en) Method and device for extending PBCH
CN104793847B (zh) 图片展示方法及装置
CN108063806A (zh) 远程控制方法和远程控制装置
CN114020232A (zh) 交互元素显示方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 20167005172

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2017547059

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: MX/A/2016/004103

Country of ref document: MX

ENP Entry into the national phase

Ref document number: 2016124782

Country of ref document: RU

Kind code of ref document: A

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

Ref document number: 15907139

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: 15907139

Country of ref document: EP

Kind code of ref document: A1