WO2021017983A1 - Wireless data transceiving module and communication method - Google Patents

Wireless data transceiving module and communication method Download PDF

Info

Publication number
WO2021017983A1
WO2021017983A1 PCT/CN2020/103588 CN2020103588W WO2021017983A1 WO 2021017983 A1 WO2021017983 A1 WO 2021017983A1 CN 2020103588 W CN2020103588 W CN 2020103588W WO 2021017983 A1 WO2021017983 A1 WO 2021017983A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
wireless data
information
transceiver module
wireless
Prior art date
Application number
PCT/CN2020/103588
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Publication of WO2021017983A1 publication Critical patent/WO2021017983A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Definitions

  • the embodiments of the present application relate to the field of communication technologies, and in particular, to a wireless data transceiver module and a communication method.
  • the realization of the wireless connection between the terminal and the fitness equipment is convenient for users to obtain through the terminal the values of various indicators on the fitness equipment that characterize the exercise status of the athletes on the fitness equipment, and record, store and count them to become the realization of intelligent sports health Necessary requirements.
  • the fitness equipment in commercial gyms is a heavy asset, and the replacement cycle is long, and the stock fitness equipment that does not support wireless connection with the terminal will exist in large numbers for a long time. Therefore, how to transform these stock fitness equipment or connect external equipment to make them have the ability to connect with the terminal wirelessly and obtain and analyze the exercise data generated by the terminal is a topic worthy of research.
  • C-SAFE port for short
  • C-SAFE Communications Specification for Fitness Equipment
  • the party must have multiple sets of data request and analysis procedures, and they need to be selected and implemented according to the equipment brand and model, so that they can request it with a request instruction whose content and request timing meet the requirements of different brands and models of fitness equipment Movement data, and correctly analyze the movement data from it.
  • the manufacturer and model information of the fitness equipment cannot be obtained through the C-SAFE port, which brings new problems to the selection and adaptation of the data request and analysis program, resulting in the terminal being unable to obtain and correctly analyze the data generated by the fitness equipment .
  • the embodiments of the present application provide a wireless data transceiver module and a communication method to solve the problem that the original data on a large amount of fitness equipment in stock cannot be instantly transferred to the terminal through wireless communication.
  • a wireless data transceiver module includes a serial communication interface, a wireless communication unit, a processor, and a memory; the serial communication interface is used to communicate with the first device of the first device.
  • the ports are connected by cables; the wireless data transceiver module cannot obtain information that can be used to identify the model and/or brand of the first device from the first port of the first device through the serial communication interface; the wireless communication unit is used to communicate with the terminal wirelessly Connection; memory, used to store information that can be used to identify the model and/or brand of the first device; when the wireless communication unit is connected to the terminal wirelessly, the processor is used to read the model and/or brand of the first device from the memory / Or brand, and through the wireless communication unit, send to the terminal for identifying the model and/or brand of the first device; the processor is also used to obtain from the first device from the first port of the first device through the serial communication interface And send the data from the first device to the terminal through the wireless communication unit.
  • a wireless data transceiver module is designed. One end of the wireless data transceiver module is wiredly connected to the port of the first device, and the other end is wirelessly connected to the terminal.
  • the wireless data transceiver module is used to transparently transmit the terminal to be sent to Before the request instruction of the first device and the data from the first device to be transmitted to the terminal, the information that can be used to identify the model and/or brand of the first device is written into the wireless data transceiver module, and subsequently, when the wireless data After the transceiver module establishes a wireless connection with the terminal, the wireless data transceiver module sends the stored information that can be used to identify the model and/or brand of the first device to the terminal, so that the terminal can identify the model and/or brand of the first device according to The information selects a data request and analysis program adapted to the first device, and sends a request instruction requesting data to the first device through the wireless data transceiver module according to the selected data request and analysis program, and
  • the first device is a fitness equipment
  • the first port is a C-SAFE port on the first device.
  • the C-SAFE port on the fitness equipment can be connected with the serial communication interface of the wireless data transceiver module through a cable, which not only realizes the use of the wireless data transceiver module to transfer the data on the fitness equipment through wireless communication to On the terminal, the intelligence of the sports and health scene is realized, and there is no need to modify the fitness equipment, which is simple, easy and low-cost.
  • the processor is also used to: obtain data from the first device from the first port of the first device through the serial communication interface, and Before sending data from the first device to the terminal through the wireless communication unit, the wireless communication unit receives the data sent by the terminal for requesting the first device, or the request instruction for changing the state of the first device, and will receive The received request instruction is sent to the first port of the first device through the serial communication interface.
  • the wireless data transceiver module transparently transmits data from the first device to the terminal or notifies the first device to change the state of the first device under the control of the terminal, which is simple and easy.
  • a first channel and a second channel are established between the wireless communication unit and the terminal;
  • One channel is used for the terminal to read the information that can be used to identify the model and/or brand of the first device in the memory of the wireless data transceiver module;
  • the second channel is used for receiving the request instruction sent by the terminal and sending the information from the first device to the terminal.
  • data is used for two independent logical channels.
  • two independent logical channels can be established between the wireless data transceiver module and the terminal, and the two independent logical channels can be used to respectively transmit information that can be used to identify the model and/or brand of the first device, as well as information from the first device.
  • the data of a device makes the information that can be used to identify the model and/or brand of the first device and the transmission of data from the first device do not interfere with each other, thereby improving the transmission accuracy.
  • the processor is specifically used to obtain information that can be used to identify the model and/or brand of the first device from a terminal or a computer device, and to obtain The obtained information that can be used to identify the model and/or brand of the first device is stored in the memory. Based on this possible design, the information that can be used to identify the model and/or brand of the first device can be written into the memory of the wireless data transceiver module in a wireless or wired manner.
  • the storage unit is used to store information that can be used to identify the model and/or brand of the first device
  • the processing unit is used to read from the storage unit information that can be used to identify the model and/or brand of the first device, and send to the terminal through the second communication unit the information that can be used to identify the first device Information about the model and/or brand of a device;
  • the processing unit is further configured to obtain data from the first device from the first port of the first device through the first communication unit, and send the data from the first device to the terminal through the second communication unit.
  • the communication device For the specific implementation of the communication device, reference may be made to the behavior and function of each component in the wireless data transceiver module provided by the first aspect or any possible design of the first aspect, which will not be repeated here. Therefore, the provided communication device can achieve the same beneficial effects as the first aspect or any possible design of the first aspect.
  • a chip system in a third aspect, includes a processor, a memory, a first communication interface, and a second communication interface, and is used to support the chip system to perform the functions related to the wireless data transceiver module, such as the first
  • the communication interface is used to connect with the first port of the first device through a cable; the chip system cannot obtain information that can be used to identify the model and/or brand of the first device from the first port of the first device through the first communication interface;
  • the second communication interface is used to connect to the terminal wirelessly;
  • the memory is used to store information that can be used to identify the model and/or brand of the first device; when the second communication interface is wirelessly connected to the terminal, the processor communicates via the second Interface, to send information that can be used to identify the model and/or brand of the first device to the terminal; the processor also obtains data from the first device from the first port of the first device through the first communication interface, and uses the second communication The interface sends data from the first device to the terminal.
  • the memory is used to connect
  • the technical effects brought by the third aspect can be referred to the technical effects brought about by the first aspect or any one of the possible designs of the first aspect, and will not be repeated here.
  • an embodiment of the present application provides a communication method.
  • the communication method includes: a wireless data transceiving module stores information that can be used to identify the model and/or brand of the first device;
  • the first port is connected by a cable; the wireless data transceiver module cannot obtain the information that can be used to identify the model and/or brand of the first device from the first port of the first device; the information that can be used to identify the model and/or brand of the first device
  • the information is information that can be used to identify the model and/or brand of the first device; when the other end of the wireless data transceiver module is connected to the terminal wirelessly, the wireless data transceiver module reads the information that can be used to identify the model and/or brand of the first device Brand information, sending information that can be used to identify the model and/or brand of the first device to the terminal; the terminal selects the data request and analysis applicable to the first device based on the information that can be used to identify the model and/or brand of the first device Program: The terminal receives and analyze
  • one end of the wireless data transceiver module is wiredly connected to the port of the first device, and the other end is wirelessly connected to the terminal.
  • the wireless data transceiver module is used to transparently transmit the terminal to be sent to the first device. Before the request instruction and the data from the first device to be transmitted to the terminal, write the information that can be used to identify the model and/or brand of the first device into the wireless data transceiver module.
  • the wireless data transceiver module sends the stored information that can be used to identify the model and/or brand of the first device to the terminal, and the terminal selects the first device based on the information that can be used to identify the model and/or brand of the first device.
  • a device-adapted data request and analysis program according to the selected data request and analysis program, sends a request instruction to the first device through the wireless data transceiver module to request the data of the first device, receives the data from the first device and analyzes it. In this way, the pain point that the data of the first device cannot be instantly transferred to the terminal through wireless communication is solved.
  • the first device is fitness equipment
  • the first port is the fitness equipment communication specification C-SAFE port on the first device.
  • the C-SAFE port of the fitness equipment can be connected to the serial communication interface of the wireless data transceiver module through a cable, which not only realizes the use of the wireless data transceiver module to transfer the data on the fitness equipment to the terminal through wireless communication
  • it realizes the intelligence of sports and health scenes, and there is no need to modify the fitness equipment, which is simple, easy and low-cost.
  • the method further includes: The wireless data transceiver module sends a request instruction for requesting data of the first device or for requesting to change the state of the first device, and the wireless data transceiver module sends the request instruction to the first port of the first device.
  • the wireless data transceiver module transparently transmits data from the first device to the terminal or notifies the first device to change the state of the first device under the control of the terminal, which is simple and easy.
  • a first channel and a second channel are established between the wireless data transceiver module and the terminal; the first channel is used for the terminal Read the information in the wireless data transceiver module that can be used to identify the model and/or brand of the first device; the second channel is used to receive request instructions sent by the terminal and send data from the first device to the terminal.
  • two independent logical channels can be established between the wireless data transceiver module and the terminal, and the two independent logical channels can be used to respectively transmit information that can be used to identify the model and/or brand of the first device, as well as information from the first device.
  • the data of a device makes the information that can be used to identify the model and/or brand of the first device and the transmission of data from the first device do not interfere with each other, thereby improving the transmission accuracy.
  • a third channel is established between the wireless data transceiver module and the terminal; the third channel is used for the terminal to read wireless
  • the information in the data transceiver module that can be used to identify the model and/or brand of the first device, and is used to receive request instructions sent by the terminal, and send data from the first device to the terminal.
  • a logical channel is established between the wireless data transceiver module and the terminal, and the logical channel is used to transmit information that can be used to identify the model and/or brand of the first device and data from the first device, thereby increasing transmission resources Utilization rate.
  • the wireless data transceiving module storing information that can be used to identify the model and/or brand of the first device includes: the wireless data transceiving module obtains from a terminal or a computer device that can be used to identify the first device The model and/or brand information of a device is stored, and the acquired information that can be used to identify the model and/or brand of the first device is stored in the wireless data transceiver module. Based on this possible design, the information that can be used to identify the model and/or brand of the first device can be written into the memory of the wireless data transceiving module in a wireless or wired manner.
  • a communication system may include the wireless data transceiving module, the first device, and the terminal as described in any one of the first to third aspects.
  • FIG. 1 is a schematic diagram of an application architecture provided by an embodiment of the application
  • FIG. 2 is a schematic diagram of the composition of a wireless data transceiving module 100 provided by an embodiment of the application;
  • FIG. 3 is a schematic diagram of the composition of a terminal 101 provided by an embodiment of the application.
  • FIG. 4 is a flowchart of a communication method provided by an embodiment of this application.
  • FIG. 5a is a schematic diagram of a method for writing information that can be used to identify the model and/or brand of a treadmill provided by an embodiment of the application;
  • FIG. 5b is a schematic diagram of another method for writing information that can be used to identify the model and/or brand of the treadmill provided by an embodiment of the application;
  • FIG. 5c is a schematic diagram of a connection relationship provided by an embodiment of this application.
  • FIG. 6 is a schematic diagram of another connection relationship provided by an embodiment of this application.
  • FIG. 7 is a schematic diagram of yet another connection relationship provided by an embodiment of the application.
  • FIG. 8 is a schematic diagram of yet another connection relationship provided by an embodiment of this application.
  • FIG. 9 is a schematic diagram of the composition of a communication device 90 provided by an embodiment of this application.
  • FIG. 10 is a schematic diagram of the composition of a communication system provided by an embodiment of this application.
  • the basic principle of the embodiments of this application is: to connect fitness equipment with a fitness equipment communication specification (communications specification for fitness equipment, C-SAFE) port, such as: the fitness equipment C-SAFE port and wireless data transceiver module Connect, so that the terminal device establishes a wireless connection with the fitness equipment through the wireless data transceiver module, obtains the data on the fitness equipment, and parses the specific values of the indicators that characterize the exercise status of the athletes on the fitness equipment, and solves the large inventory of fitness
  • C-SAFE communication specification for fitness equipment
  • the method provided in the embodiments of the present application stores information that can be used to identify the model and/or brand of the fitness equipment connected to it, so that the terminal device can read the information that can be used to identify the model and/or brand of the fitness equipment from the wireless data transceiver module.
  • Information according to the fitness equipment model and/or brand, select the data request and analysis program adapted to the fitness equipment, and obtain the data of the fitness equipment according to the selected data request and analysis program, which solves the problem of the procedures and procedures for requesting data from different fitness equipment.
  • the selection and adaptation of the analysis program for data from different fitness equipment is highly versatile and simple in construction.
  • the information that can be used to identify the model and/or brand of the first device may refer to the device manufacturer and model or similar information that can be used to identify the device manufacturer and model.
  • the information that can be used to identify the model and/or brand of the first device may include, but is not limited to, the brand, model, serial number, code, and barcode of the first device. The encoding of the information and the way it is stored in the memory are not allowed. limit.
  • FIG. 1 is a schematic diagram of an application architecture provided by an embodiment of the application.
  • the architecture may include: a wireless data transceiver module 100, a terminal 101, and a first device 102.
  • one end of the wireless data transceiving module 100 can be connected to the C-SAFE port of the first device 102 through a cable in a serial communication mode, and the other end of the wireless data transceiving module 100 can be connected to the terminal 101 in a wireless manner.
  • a wireless data transceiving module 100 can be connected to the C-SAFE port of the first device 102 through a cable in a serial communication mode
  • the other end of the wireless data transceiving module 100 can be connected to the terminal 101 in a wireless manner.
  • WIFI wireless-fidelity
  • two channels can be established between the wireless data transceiver module 100 and the terminal 101, one of which is used to read from the wireless data transceiver module 100/write to the wireless data transceiver module 100 It can be used to identify the information of the model and/or brand of the first device 102, and the other channel is used to transparently transmit the request command of the C-SAFE port of the first device 102 to which the terminal 101 is to be sent, and transparently transmit from the first device 102
  • the module 100 writes information that can be used to identify the model and/or brand of the first device 102, and can also be used to transparently transmit the request command of the C-SAFE port of the first device 102 to which the terminal 101 is to be sent,
  • the wireless data transceiver module 100 can be used to store information that can be used to identify the model and/or brand of the first device 102, and can also be used to transparently transmit the request instruction of the C-SAFE port of the first device 102 to which the terminal 101 is to be sent , And transparently transmit the data to be transmitted to the terminal 101 from the C-SAFE port of the first device 102.
  • the terminal 101 may be called a terminal equipment (terminal equipment) or a user equipment (UE), a mobile station (MS) or a mobile terminal (mobile terminal, MT), etc.
  • the terminal 101 may be a mobile phone, a tablet computer, Desktops, laptops, handheld computers, notebook computers, personal computers (PC), netbooks, cellular phones, personal digital assistants (PDAs), wearable devices (such as smart watches), etc., This embodiment does not impose special restrictions on the specific form of the terminal 101.
  • the first device 102 may be used to collect data generated by the user's movement.
  • the first device 102 may be a fitness equipment, and the first device 102 has a C-SAFE port.
  • the first device 102 can be any device among treadmills, spinning machines, rowing machines, fitness bikes, and waist beauty machines, and can also be any other device that can be used for the user's fitness and entertainment and can collect data generated by the user's fitness and entertainment. Equipment, no restrictions.
  • FIG. 1 is only an exemplary architecture diagram.
  • the first device 102 is described by taking a treadmill as an example.
  • the first device 102 can also be other C-SAFE-compliant
  • fitness equipment or equipment at the port There are no restrictions on fitness equipment or equipment at the port.
  • the names of each device in FIG. 1 are not limited.
  • each device can also be named other devices with the same or similar functions.
  • the wireless data transceiver module 100 can also be named as One module or other name is not restricted.
  • the wireless data transceiver module 100 in order to transfer data from the first device 102 to the terminal 101, the wireless data transceiver module 100 is used to transparently transmit the C-SAFE port of the first device 102 to which the terminal 101 is to be sent. Before requesting instructions and data from the C-SAFE port of the first device 102 to be transmitted to the terminal 101, the staff will be able to identify the brand and/or model of the first device 102 (such as the model and model of the first device 102). / Or the brand of the first device 102) is stored in the storage area of the wireless data transceiving module 100.
  • the terminal 101 held by the user can establish a wireless connection with the wireless data transceiver module 100, and the terminal 101 can read the wireless data transceiver module 100 through the wireless connection that can be used to identify the first device 102.
  • Brand and/or model information and select a data request and analysis program matching the first device 102 based on the information that can be used to identify the brand and/or model of the first device 102, and the terminal 101 follows the selected data request and analysis program, Send a data request instruction to the C-SAFE port of the first device 102 through the wireless data transceiving module 100, and receive data from the C-SAFE port of the first device 102 through the wireless data transceiving module 100, and then parse the data to obtain Specific numerical values of various indicators that characterize the exercise conditions of the athletes who exercise on the first device 102 or using the first device 102, and then record, store, and count these values.
  • FIG. 4 for the implementation manner, reference may be made to the embodiment corresponding to FIG. 4 below.
  • the data from the first device 102 may refer to all data that can be obtained through the C-SAFE port of the first device 102, and may include sports data.
  • the exercise data from the first device 102 can parse out the specific numerical values of multiple indicators that characterize the exercise conditions of the athletes who exercise on the first device 102 or using the first device 102.
  • the indicators of the exercise condition of the athlete who exercises on the first device 102 include, but are not limited to, the length of time the athlete has exercised, the distance exercised, the number of steps exercised, the exercise rate, the cadence during exercise, and the heart rate during exercise. And consumed calories, etc.
  • the embodiments of the present application are not limited to sending exercise data from the first device 102 to the terminal through the wireless data transceiver module, and other data from the first device 102 may also be sent to the terminal through the wireless data transceiver module, such as:
  • the state of the first device 102 is sent to the terminal through the wireless data transceiver module.
  • the state of the first device 102 may include, but is not limited to, a hardware state and/or a software state, such as the opening and closing of a physical device on the first device 102, and the logical stage of the software running on the first device 102.
  • a and/or B include the following three situations: A, or, B, or A and B.
  • the wireless data transceiver module 100 shown in FIG. 1 may have the components shown in FIG. 2.
  • 2 is a schematic diagram of the composition of a wireless data transceiver module 100 provided by an embodiment of the application.
  • the wireless data transceiver module 100 may include a processor 1001, a serial communication interface 1002, a wireless communication unit 1003, Storage 1004.
  • the wireless data transceiver module 100 may also include a button 1005, a charging management module 1007, a power management module 1006, a battery 1008, and the like.
  • the components included in the wireless data transceiving module 100 are connected to each other through communication lines.
  • the processor 1001 may be a central processing unit (CPU), a general-purpose processor network processor (NP), a digital signal processing (DSP), a microprocessor, a microcontroller, Programmable logic device (PLD) or any combination of them.
  • the processor 1001 may also be any other device with processing functions, such as a circuit, a device, or a software module, without limitation.
  • the serial communication interface 1002 can refer to an interface that uses a communication mode that transmits one bit of data at a time and continuously performs the above single process on the channel.
  • the physical form, modulation mode, and level protocol of the interface are not limited, and it can be RS- 232 standard, TTL standard, etc.
  • the interface may have the ability to supply power to the wireless data transceiver module 100 at the same time.
  • the wireless communication unit 1003 can provide wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and wireless local area networks used in the wireless data transceiver module 100. And other wireless communication solutions.
  • the wireless communication unit 1003 may be one or more devices integrating at least one communication processing module.
  • the wireless communication unit 1003 receives electromagnetic waves via an antenna, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 1001.
  • the wireless communication unit 1003 may also receive the signal to be sent from the processor 1001, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna.
  • the memory 1004 can be used to store the computer executable program and various data generated/needed during its execution in a file format that can be read, written or executed by the processor 1001, and can be used to identify the model and type of the first device 102 /Or brand information, the executable program includes instructions.
  • the processor 1001 implements various functional applications and data processing of the wireless data transceiver module 100 by executing programs stored in the memory 1004.
  • the memory 1004 may include a program storage area and a data storage area. Among them, the storage program area can store the operating system. The storage data area may store information that can be used to identify the brand and/or model of the first device 102.
  • the memory 1004 may be composed of at least one readable and writable memory, for example; the memory 1004 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM) or other types of dynamic storage devices that can store information and instructions, and can also be readable by various media such as electrically erasable programmable read-only memory (EEPROM) Writing to storage devices is not restricted. It should be noted that the memory 1004 may exist independently of the processor 1001, or may be integrated with the processor 1001. The memory 1004 may be used to store instructions or program codes or some data. The memory 1004 may be located in the wireless data transceiver module 100 or outside the wireless data transceiver module 100 without limitation. The processor 1001 is configured to execute a program stored in the memory 1004 to implement the communication method provided in the following embodiments of the present application.
  • ROM read-only memory
  • RAM random access memory
  • EEPROM electrically erasable programmable read-only memory
  • the button 1005 may be a mechanical button. It can also be a touch button.
  • the wireless data transceiving module 100 can receive key input, and generate key signal inputs related to user settings and function control of the wireless data transceiving module 100.
  • the charging management module 1007 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 1007 may receive the charging input through the serial communication interface 1002, and may also receive the charging input through other power supply interfaces.
  • the charging management module 1007 may receive wireless charging input through the wireless charging coil of the wireless data transceiver module 100. While the charging management module 1007 charges the battery 1008, it can also supply power to the electronic device through the power management module 1006.
  • the power management module 1006 is used to connect the battery 1008, the charging management module 1007, and the processor 1001.
  • the power management module 1006 receives input from the battery 1008 and/or the charging management module 1007, and supplies power to the components of the wireless data transceiver module 100.
  • the power management module 1006 can be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 1006 may be provided in the processor 1001.
  • the power management module 1006 and the charging management module 1007 may be provided in the same device.
  • the wireless data transceiver module 100 may be an embedded device, a chip system, or a device with a similar structure in FIG. 2.
  • the structure shown in FIG. 2 does not constitute a limitation on the wireless data transceiving module 100.
  • the wireless data transceiving module 100 may include more or less components than shown in the figure. , Or combining some components, or different component arrangements.
  • FIG. 3 is a schematic diagram of the composition of a terminal 101 provided by an embodiment of the application.
  • the terminal 101 may be a terminal or a chip or a system on a chip inside the terminal. As shown in FIG.
  • the terminal 101 may include a processor 110, a sensor module 120, an antenna 1, an antenna 2, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, The battery 142, the mobile communication module 150, the wireless communication unit 160, the audio module 170, the speaker 1701, the receiver 1702, the microphone 1703, the earphone interface 1704, the external memory interface 180, the internal memory 181, the buttons 190, and the subscriber identification module (subscriber identification module, SIM) card interface 191 and so on.
  • the sensor module 120 may include a variety of sensors, for example, it may include a gyroscope sensor 1201, a magnetometer sensor 1202, an acceleration sensor 1203, a gravimeter sensor 1204, and so on.
  • the processor 110 in FIG. 3 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, and a graphics processing unit (GPU). ), image signal processor (image signal processor, ISP), controller, memory, video codec, DSP, baseband processor, and/or neural-network processing unit (NPU), etc.
  • the different processing units may be independent devices or integrated in one or more processors.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory to avoid repeated access, reduce the waiting time of the processor 110, and improve system efficiency.
  • the processor 110 may include one or more interfaces, for example, may include an integrated circuit (I2C) interface, an integrated circuit audio (inter-integrated circuit sound, I2S) interface, pulse coding Modulation (pulse code modulation, PCM) interface, universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (general-purpose input/output) , GPIO) interface, subscriber identity module (SIM) interface, and/or USB interface 130, etc.
  • I2C integrated circuit
  • I2S integrated circuit sound
  • PCM pulse coding Modulation
  • UART universal asynchronous receiver/transmitter
  • MIPI mobile industry processor interface
  • general-purpose input/output general-purpose input/output
  • SIM subscriber identity module
  • the gyro sensor 1201 may be used to determine the movement posture of the terminal 101.
  • the angular velocity of the terminal 101 around three axes ie, x, y, and z axes
  • the gyro sensor 1201 can be used for image stabilization.
  • the gyro sensor 1201 detects the shake angle of the terminal 101, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the terminal 101 through a reverse movement to achieve anti-shake.
  • the gyroscope sensor 1201 can also be used for navigation and somatosensory game scenes.
  • the magnetometer sensor 1202 includes a Hall sensor.
  • the terminal 101 can use the magnetometer sensor 1202 to detect the opening and closing of the flip holster.
  • the terminal 101 can detect the opening and closing of the flip according to the magnetometer sensor 1202.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 1203 can detect the magnitude of the acceleration of the terminal 101 in various directions (generally three axes). When the terminal 101 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and used in applications such as horizontal and vertical screen switching, pedometers and so on.
  • the gravimeter sensor 1204 adopts elastic sensitive elements to make a cantilever type displacement device, and adopts an energy storage spring made of elastic sensitive elements to drive electrical contacts to complete the conversion from gravity changes to electrical signals. By measuring the acceleration due to gravity by the gravity sensor, the tilt angle of the device relative to the horizontal can be calculated. For example, a mobile phone with gravity sensor can sense the screen status and automatically adjust the screen to keep it level.
  • the USB interface 130 may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the terminal 101, and can also be used to transfer data between the terminal 101 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. It can also be used to connect to other terminals.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the terminal 101. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to various components of the terminal 101.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the terminal 101 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication unit 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the terminal 101 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the terminal 101.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
  • the application processor outputs sound signals through audio equipment (not limited to the speaker 1701, the receiver 1702, etc.).
  • the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication unit 160 can provide applications on the terminal 101 including WLAN (such as Wi-Fi network), BT, global navigation satellite system (GNSS), frequency modulation (FM), and short-range wireless communication technologies. (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication unit 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication unit 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication unit 160 may also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
  • the antenna 1 of the terminal 101 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication unit 160, so that the terminal 101 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system ( Quasi-zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the external memory interface 180 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal 101.
  • the external memory card communicates with the processor 110 through the external memory interface 180 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 181 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the terminal 101 by running instructions stored in the internal memory 181.
  • the internal memory 181 may include a program storage area and a data storage area.
  • the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the terminal 101.
  • the internal memory 181 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • UFS universal flash storage
  • the terminal 101 can implement audio functions through the audio module 170, the speaker 1701, the receiver 1702, the microphone 1703, the earphone interface 1704, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 1701 also called a “speaker” is used to convert audio electrical signals into sound signals.
  • the terminal 101 can listen to music through the speaker 1701, or listen to a hands-free call.
  • the receiver 1702 also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the terminal 101 answers a call or voice message, it can receive the voice by bringing the receiver 1702 close to the human ear.
  • Microphone 1703 also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can approach the microphone 1703 through the mouth to make a sound, and input a sound signal into the microphone 1703.
  • the terminal 101 may be provided with at least one microphone 1703.
  • the terminal 101 may be provided with two microphones 1703, which can implement noise reduction functions in addition to collecting sound signals.
  • the terminal 101 may also be provided with three, four or more microphones 1703 to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 1704 is used to connect wired earphones.
  • the earphone interface 1704 may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA, CTIA
  • the button 190 includes a power button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the terminal 101 can receive the input of the key 190, and generate key signal input related to the user settings and function control of the terminal 101.
  • the SIM card interface 191 is used to connect to a SIM card.
  • the SIM card can be inserted into the SIM card interface 191 or pulled out from the SIM card interface 191 to achieve contact and separation with the terminal 101.
  • the terminal 101 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 191 may support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 191 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 191 can also be compatible with different types of SIM cards.
  • the SIM card interface 191 can also be compatible with external memory cards.
  • the terminal 101 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the terminal 101 uses an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the terminal 101 and cannot be separated from the terminal 101.
  • the software system of the terminal 101 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • an Android system with a layered architecture is taken as an example to illustrate the software structure of the terminal 101 by way of example.
  • the structure illustrated in this embodiment does not constitute a specific limitation on the terminal 101.
  • the terminal 101 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the components shown in Figure 3 can be implemented in hardware, software or a combination of software and hardware.
  • the first device is the treadmill shown in Figure 1
  • the data of the first device is the data of the treadmill.
  • the data of the treadmill can include the exercise data of the treadmill and the state of the treadmill (such as running The hardware status and/or software status of the treadmill), etc.
  • the memory used to store information that can be used to identify the model and/or brand of the treadmill in the wireless data transceiver module is flash memory as an example.
  • the communication method provided in this embodiment of the application Describe.
  • the wireless data transceiving module in the following method may include the components shown in FIG. 2, and the terminal in the following method embodiment may include the components shown in FIG. 3, which will not be repeated.
  • the first device is other fitness equipment
  • the data from the fitness equipment can be instantly transferred to the terminal through wireless communication with reference to the method shown in the following embodiments.
  • Fig. 4 is a communication method provided by an embodiment of the application, which is used to transmit data generated by a user using a treadmill to a terminal held by the user. As shown in Figure 4, the method may include:
  • Step 401 Connect the C-SAFE port of the treadmill and the serial communication interface of the wireless data transceiver module.
  • the treadmill may be the first device 102 in FIG. 1.
  • the treadmill can be a treadmill in a gym or a home treadmill, without limitation.
  • the wireless data transceiving module may be the wireless data transceiving module 100 in FIG. 1.
  • the flash memory can be used to store information that can be used to identify the model and/or brand of the treadmill, such as : Store the model and/or brand of the treadmill.
  • the content in the flash memory can be erased as required.
  • the staff removes the wireless data transceiver module connected to treadmill A, and when connected to treadmill B, the staff can erase the flash memory of the wireless data transceiver module Information that can be used to identify the model and/or brand of treadmill A, and the information that can be used to identify the model and/or brand of treadmill B is written into the flash memory of the wireless data transceiver module.
  • the worker can connect the serial communication interface of the wireless data transceiver module to the C-SAFE port of the treadmill through a cable.
  • Step 402 Write information that can be used to identify the model and/or brand of the treadmill into the wireless data transceiver module.
  • the information that can be used to identify the brand and/or model of the treadmill can be written into the flash memory of the wireless data transceiver module by the staff through a terminal or other means, without limitation.
  • FIG. 5a is a schematic diagram of a manner of writing information that can be used to identify the model and/or brand of a treadmill into a wireless data transceiver module provided by an embodiment of the application.
  • the wireless data transceiver module The staff in the gym promote the wireless data transceiver module, after connecting the wireless data transceiver module to the C-SAFE port of the treadmill, the staff can establish a wireless connection between their handheld terminal and the wireless data transceiver module, which will be used for identification
  • the model and/or brand information of the treadmill is input to the terminal held by the staff, and the terminal held by the staff is triggered to send the information that can be used to identify the brand and/or model of the treadmill to the wireless data transceiver module through the wireless channel.
  • the transceiver module receives information that can be used to identify the model and/or brand of the treadmill, and saves the received information that can be used to identify the model and/or brand of the treadmill to the flash memory of the wireless data transceiver module.
  • the staff can input the information that can be used to identify the model and/or brand of the treadmill into the terminal held by the staff through the human-computer interaction interface.
  • FIG. 5b is a schematic diagram of another manner of writing information that can be used to identify the model and/or brand of a treadmill into the wireless data transceiver module provided by an embodiment of the application, as shown in FIG.
  • the staff can connect the serial communication interface of the wireless data transceiver module with the serial communication interface of the PC.
  • the communication interface is connected by a cable, and the PC carries the information that can be used to identify the brand and/or model of the treadmill in a data frame with a special logo that can be clearly distinguished from the data from the C-SAFE port of the treadmill , Send to the wireless data transceiving module through the cable, after receiving the data frame, the wireless data transceiving module parses the data frame to obtain information that can be used to identify the brand and/or model of the treadmill, which can be used to identify the running machine
  • the brand and/or model information of the device is written into the flash memory of the wireless data transceiver module.
  • the PC can also be replaced with other computer devices or devices that have a serial communication interface and can write information that can be used to identify the brand and/or model of the treadmill to the wireless data transceiver module, without limitation.
  • the wireless data transceiver module when the wireless data transceiver module successfully writes the information that can be used to identify the model and/or brand of the treadmill into the flash memory, the wireless data transceiver module can report to the staff The handheld terminal returns a successful write response, so that the staff can learn that the information that can be used to identify the model and/or brand of the treadmill has been successfully written into the wireless data transceiver module based on the received response.
  • the wireless data transceiving module saves the received information that can be used to identify the brand and/or model of the treadmill to the flash memory of the wireless data transceiving module, it is found that other fitness equipment is stored in the flash memory.
  • Information that can identify its brand and/or model will erase the information of other fitness equipment that can identify its brand and/or model, and only store information that can be used to identify the brand and/or model of the treadmill. In this way, it can be ensured that the brand and/or model of the fitness equipment to which the current wireless data transceiver module is connected can be accurately identified through the information that can identify the brand and/or model of the fitness equipment stored in the current wireless data transceiver module.
  • step 402 can be performed after step 401 or before step 401, which is not limited. That is, it is not necessary to write information that can be used to identify the brand and/or model of the treadmill to the wireless data transceiver module after the wireless data transceiver module is connected to the treadmill. In actual applications, as long as the wireless data transceiver module is powered normally, Then, information that can be used to identify the brand and/or model of the first device can be written into the wireless data transceiver module.
  • Step 403 The terminal establishes a wireless connection with the wireless data transceiver module.
  • the terminal in step 403 may be a smart phone held by a user who uses the treadmill and prepares to run on the treadmill. It should be noted that the embodiment of the application does not limit the user who uses the treadmill.
  • the user can be the staff member described in step 402.
  • the smart phone held by the user can read from the wireless data transceiver module and can be used to identify the treadmill. According to the information of the brand and/or model of the treadmill, the data request and analysis program that matches the treadmill is selected, and the request instruction is sent to the treadmill according to the selected data request and analysis program to request the data of the treadmill, and the data from the treadmill is analyzed data.
  • the smart phone held by the user is not used to write information that can be used to identify the model and/or brand of the treadmill to the terminal of the wireless data transceiver module as described in step 402, and may not be equipped to write to the wireless data transceiver module.
  • the authority can be used to identify the model and/or brand of the treadmill.
  • the terminal may establish a wireless connection with the wireless data transceiver module according to user requirements, such as a Bluetooth connection.
  • user requirements such as a Bluetooth connection.
  • the user can establish a connection between the terminal and the wireless data transceiver module through Bluetooth.
  • connection relationship shown in Figure 5c is established between the treadmill, the wireless data transceiver module and the terminal.
  • the first channel may be Characteristic A in Bluetooth communication
  • the second channel may be Characteristic B in Bluetooth communication.
  • the manufacturer of the wireless data transceiving module can develop two characteristics of Characteristic A and Characteristic B under one service of Bluetooth communication. Characteristic can also be named channel, channel or communication channel.
  • Characteristic A includes read attributes and write attributes.
  • the read attribute can be used to read the content in the flash memory of the wireless data transceiver module, and the write attribute is used to write content to the flash memory of the wireless data transceiver module. .
  • Characteristic B includes the write attribute and notify attribute.
  • the wireless data transceiver module conveniently uses the notify attribute of Characteristic B to keep these data intact Send it to the terminal without moving.
  • the terminal can first send the request command to the wireless data transceiver module via the write attribute of Characteristic B, and the wireless data transceiver module transparently transmits the data to its serial communication interface, and then These data are transmitted to the C-SAFE port of the treadmill through the cable.
  • the wireless data transceiver module itself does not have the ability to parse the specific values of various indicators that characterize the exercise status of the athletes exercising on the treadmill from the data on the C-SAFE port of the treadmill.
  • Step 404 The terminal reads the information that can be used to identify the model and/or brand of the treadmill in the flash memory of the wireless data transceiver module.
  • the terminal can read the information that can be used to identify the model and/or brand of the treadmill in the flash memory of the wireless data transceiver module through the first channel. For example, after the wireless data transceiver module is powered on, the information in the flash memory that can be used to identify the brand and/or model of the treadmill is placed in the read attribute of Characteristic A. The terminal can be used to read through the read attribute of Characteristic A. Information that identifies the brand and/or model of the treadmill.
  • step 402 can be performed before step 403 or after step 404, which is not limited.
  • the flash memory of the wireless data transceiving module may not contain information that can be used to identify the model and/or brand of the treadmill.
  • the terminal reads through the first channel and can be used to identify the running machine.
  • the information about the model and/or brand of the treadmill fails, and the staff executes step 402 to write the information that can be used to identify the model and/or brand of the treadmill into the wireless data transceiver module.
  • the terminal can read from the wireless data transceiver module Information that can be used to identify the brand and/or model of the treadmill.
  • the terminal when the staff and the user who is going to run on the treadmill are the same person, and the terminal that reads the information that can be used to identify the model and/or brand of the treadmill through the first channel and the terminal that can be used to identify the model and/or treadmill Or when the brand information is written into the same terminal as the terminal of the wireless data transceiver module, the terminal can be used to identify the treadmill after failing to read the information that can be used to identify the treadmill model and/or brand through the first channel.
  • the model and/or brand information is written into the wireless data transceiver module.
  • Step 405 The terminal selects a data request and analysis program suitable for the treadmill according to the information that can be used to identify the model and/or brand of the treadmill.
  • the terminal may have multiple sets of different data request and analysis procedures, and the data request and analysis procedures have a corresponding relationship with the information that can be used to identify the model and/or brand of fitness equipment.
  • the data request and analysis procedures have a corresponding relationship with the information that can be used to identify the model and/or brand of fitness equipment.
  • each brand And/or models of fitness equipment have a unique set of corresponding data request and analysis procedures.
  • the corresponding relationship between the data request and analysis program and the information that can be used to identify the brand and/or model of the fitness equipment can be maintained by the terminal.
  • the terminal can continuously add new data request and analysis programs suitable for new fitness equipment through means such as software upgrades, and refresh the corresponding relationship to ensure the terminal as much as possible It has data request and analysis programs corresponding to the types of fitness equipment on the market.
  • the terminal selecting the data request and analysis program suitable for the treadmill according to the information that can be used to identify the model and/or brand of the treadmill may include: the terminal uses the information that can be used to identify the model and/or brand of the treadmill as Index, query the correspondence between information that can be used to identify the model and/or brand of fitness equipment and the data request and analysis program, and find the data request and analysis program corresponding to the information that can be used to identify the model and/or brand of the treadmill, The data request and analysis program found is regarded as the data request and analysis program suitable for the treadmill.
  • Table 1 below shows the correspondence between the data request and analysis program and the information that can be used to identify the model and/or brand of fitness equipment.
  • the treadmill s370 corresponds to the data request and analysis program 1.
  • Dynamic The bicycle TH-9620 corresponds to data request and analysis program 2
  • the treadmill t900 corresponds to data request and analysis program 3.
  • the C-SAFE port of the treadmill s370 is connected to the serial communication interface of the wireless data transceiver module, and the wireless data transceiver module stores information that can be used to identify the brand and/or model of the treadmill s370 Information
  • the user connects his mobile phone to the wireless data transceiver module through Bluetooth, and the mobile phone can read the information that can be used to identify the brand and/or model of the treadmill s370 from the wireless data transceiver module.
  • Step 406 The terminal sends a request instruction to the treadmill through the wireless data transceiver module according to the selected data request and analysis program, receives the data from the treadmill, and analyzes it.
  • the terminal sends a request instruction to the wireless data transceiver module according to the selected data request and analysis program.
  • the request instruction is used to request data from the treadmill or to request to change the status of the treadmill (such as the hardware status of the treadmill and / Or software status, etc.);
  • the wireless data transceiver module receives the request instruction and sends the request instruction to the C-SAFE port of the treadmill;
  • the treadmill receives the request instruction through the C-SAFE port, and according to the request instruction, sends the treadmill data to the wireless data transceiver module through the C-SAFE port;
  • the wireless data transceiver module receives the data from the treadmill and sends the data from the treadmill to the terminal;
  • the terminal analyzes the received data from the treadmill according to the selected data request and analysis program.
  • the terminal may send a request instruction to the wireless data transceiver module through the second channel, and send data from the treadmill to the terminal through the second channel.
  • the terminal can parse out the specific values of multiple indicators that characterize the exercise status of the athletes exercising on the treadmill from the data from the treadmill, and record, store and count these values.
  • a wireless data transceiver module can be designed.
  • One end of the wireless data transceiver module is wiredly connected to the C-SAFE port of the treadmill, and the other end is wirelessly connected to the terminal.
  • the wireless data transceiver module is used for transparent Before transmitting the request instruction to be sent from the terminal to the treadmill and the data from the treadmill to be transmitted to the terminal, write the information that can be used to identify the model and/or brand of the treadmill into the wireless data transceiver module, and subsequently, when After the wireless data transceiver module establishes a wireless connection with the terminal, the terminal reads the information that can be used to identify the model and/or brand of the treadmill from the wireless data transceiver module, and selects and runs based on the information that can be used to identify the model and/or brand of the treadmill.
  • the machine-adapted data request and analysis program according to the selected data request and analysis program, sends request instructions to the treadmill through the wireless data transceiver module to request the data of the treadmill, receives
  • the manner in which the terminal establishes a Bluetooth connection with the wireless data transceiver module can refer to the prior art, and will not be repeated.
  • the user turns on the Bluetooth switch on the terminal and the wireless data transceiver module at the same time, triggers the terminal and the wireless data transceiver module to turn on the Bluetooth function, automatically searches for each other, and establishes a Bluetooth connection.
  • a radio frequency card is provided on the panel of the treadmill, and the radio frequency card carries information of the wireless data transceiver module.
  • the information of the wireless data transceiver module may include, but is not limited to, the Bluetooth address of the wireless data transceiver module or the wireless data transceiver Bluetooth broadcast name information of the module. Establishing a Bluetooth connection between the terminal and the wireless data transceiver module may include:
  • the user triggers the terminal to read the content of the radio frequency card, so that the terminal learns the information of the wireless data transceiver module, and the terminal sends a Bluetooth connection request to the wireless data transceiver module according to the information of the wireless data transceiver module, requesting to establish a Bluetooth connection with the wireless data transceiver module ;
  • the terminal can establish a Bluetooth connection with the wireless data receiving module with reference to the prior art, or it can learn about the wireless data receiving module by reading the radio frequency card corresponding to the wireless data receiving module After the information, it is simple and easy to establish a Bluetooth connection with the wireless data transceiver module, and the implementation methods are flexible and diverse.
  • the embodiment of the present application does not limit the form of the channel established between the terminal and the wireless data transceiver module, except that the first channel and the second channel are established between the terminal and the wireless data transceiver module.
  • the channel alternatively, as shown in Figure 6, only one channel can be established between the terminal and the wireless data transceiver module. This channel can be used for the terminal to read the flash memory that can be used to identify the treadmill model and/ Or brand information can be used to forward data from the C-SAFE port of the treadmill to the terminal or forward request instructions from the terminal to the C-SAFE port of the treadmill.
  • the channel established between the terminal and the wireless data transceiver module may be referred to as the third channel.
  • a Characteristic can be developed under the service of Bluetooth communication.
  • the Characteristic has read attributes, write attributes and notify attributes.
  • the read attribute can be used to read the content in the flash memory of the wireless data transceiver module.
  • the wireless data transceiver module conveniently uses the Characteristic notify attribute to send the data to the terminal intact.
  • the terminal can first send the request command to the wireless data transceiver module via the Write attribute of Characteristic, and the wireless data transceiver module transparently transmits these data to its serial communication interface, and then through The cable transmits these data to the C-SAFE port of the treadmill.
  • the Write attribute of the Characteristic is also Used to write information that can be used to identify the model and/or brand of the treadmill to the wireless data transceiver module, that is, the Characteristic write attribute has the ability to write information that can be used to identify the model and/or brand of the treadmill to the wireless data transceiver module and The function of sending request instructions to the wireless data transceiver module.
  • the Write attribute of Characteristic can be used to identify the model and/or brand of the treadmill or the request instruction used to request the data of the treadmill, in one example, it will carry The format of the data frame for identifying the model and/or brand of the treadmill is designed to be different from the format of the data frame carrying the request instruction.
  • the information that can be used to identify the model and/or brand of the treadmill is carried in a data frame with the mark X
  • the request command is carried in the data frame with the mark Y.
  • the wireless data transceiver module receives When marking the data frame of X, analyze the data frame and write the information that can be used to identify the model and/or brand of the treadmill in the data frame into the flash memory.
  • the wireless data transceiver module receives the data with the mark Y During the frame, the wireless data transceiver module sends the request command in the data frame to the C-SAFE port of the treadmill through its serial communication interface.
  • the length of the data frame that carries information that can be used to identify the model and/or brand of the treadmill is different from the length of the data frame that carries the request instruction, such as: data that carries information that can be used to identify the model and/or brand of the treadmill
  • the frame occupies m bytes, and the length of the data frame carrying the request command occupies n bytes.
  • the wireless data transceiver module receives a data frame occupying m bytes through the Characteristic write attribute, the data frame is parsed and the data The information in the frame that can be used to identify the model and/or brand of the treadmill is written to the flash memory.
  • the wireless data transceiver module receives a data frame occupying n bytes through the Characteristic write attribute, the wireless data transceiver module will The request command in the data frame is sent to the C-SAFE port of the treadmill through its serial communication interface.
  • the terminal and the wireless data transceiver module can also be established in other ways Wireless connection, as shown in Figure 7, the terminal can also establish a wifi connection with the wireless data transceiver module.
  • the terminal after the terminal is connected to the wireless data transceiver module wifi, there can be two channels between the terminal and the wireless data transceiver module.
  • One channel is similar to the first channel mentioned above and is used for fast terminal reading.
  • the flash memory can be used to identify the model and/or brand information of the treadmill, or the information that can be used to identify the treadmill model and/or brand is written into the flash memory; the other channel is similar to the second channel mentioned above, It is used to forward data from the C-SAFE port of the treadmill to the terminal or forward the request command from the terminal to the C-SAFE port of the treadmill.
  • two logical ports can be opened under the service port (server socket) of the Wi-Fi connection as two channels between the terminal and the wireless data transceiver module.
  • the two channels between the terminal and the wireless data transceiver module may be logical port A and logical port B.
  • Logic port A is used for the terminal to read information in the flash memory that can be used to identify the model and/or brand of the treadmill, or to write information that can be used to identify the model and/or brand of the treadmill into the flash memory;
  • logic Port B is used to forward the data from the C-SAFE port of the treadmill to the terminal or forward the request command from the terminal to the C-SAFE port of the treadmill.
  • the terminal when the terminal establishes a wifi connection with the wireless data transceiver module, it can be replaced, as shown in Figure 8, Only one channel can be established between the terminal and the wireless data transceiver module.
  • This channel can be used for the terminal to read the information in the flash memory that can be used to identify the model and/or brand of the treadmill, or it can be used to identify the model and/or brand of the treadmill. /Or the brand information is written into the flash memory, which can be used to forward the data from the C-SAFE port of the treadmill to the terminal or forward the request command from the terminal to the C-SAFE port of the treadmill.
  • the wireless data transceiver module On the logical port shown in Figure 8, similar to the second scenario of the method shown in Figure 4, in order to distinguish that what is written to the wireless data transceiver module through the logical port is information that can be used to identify the model and/or brand of the treadmill It is also a request instruction used to request the data of the treadmill, and to distinguish whether the wireless data transceiver module sends the information in the flash memory that can be used to identify the brand and/or model of the treadmill to the terminal through the logical port or comes from the treadmill C-SAFE
  • the format of the data frame carrying the information from the terminal that can be used to identify the treadmill model and/or brand and the format of the data frame carrying the request command from the terminal are designed to be different.
  • the information from the flash memory of the wireless data transceiver module that can be used to identify the brand and/or model of the treadmill, and the data from the C-SAFE port of the treadmill to be sent to the terminal through the wireless data transceiver module It is sent to the terminal in sequence.
  • the information that can be used to identify the brand and/or model of the treadmill from the flash memory of the wireless data transceiver module is carried in the first frame of data, and the information from the C-SAFE port of the treadmill is to be sent through the wireless data transceiver module
  • the data of the terminal is carried in other data frames after the first frame.
  • the terminal When the terminal receives the first frame of data from the wireless data transceiver module, it parses the data frame to obtain information that can be used to identify the brand and/or model of the treadmill. When the terminal receives other data frames after the first frame from the wireless data transceiver module, it parses these data frames to obtain data from the treadmill C-SAFE port and to be sent to the terminal through the wireless data transceiver module. Specifically, these two examples can be referred to as described in the second scenario shown in FIG. 4, and will not be repeated.
  • the wireless data transceiver module and the terminal include hardware structures and/or software modules corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
  • the embodiments of the application can divide the wireless data transceiver module and the terminal into functional modules according to the above method examples.
  • each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • FIG. 9 is a schematic diagram of the composition of a communication device 90 provided by an embodiment of the application.
  • the communication device 90 may be a wireless data transceiver module or a chip or a system on a chip in a wireless data transceiver module.
  • the communication device 90 may include: a first communication unit 901, a second communication unit 902, a processing unit 903, and a storage unit 904;
  • the first communication unit 901 is configured to connect to the first port of the first device through a cable; the first communication unit 901 cannot obtain information that can be used to identify the model and/or brand of the first device from the first port of the first device.
  • the second communication unit 902 is used to connect with the terminal in a wireless manner.
  • the processing unit 903 is further configured to obtain data from the first device from the first port of the first device through the first communication unit 901, and send the data from the first device to the terminal through the second communication unit 902.
  • the processing unit 903 may support the communication device 90 to perform step 406.
  • the communication device 90 described in this possible design is used to perform the function of the wireless data transceiver module in the communication method shown in FIG. 4, and therefore can achieve the same effect as the above-mentioned communication method.
  • the communication device 90 shown in FIG. 9 may include: a processing module and a communication module.
  • the communication module can integrate the functions of the first communication unit 901 and the second communication unit 902.
  • the processing module can integrate the functions of the processing unit 903 and is used to control and manage the actions of the communication device 90.
  • the processing module is used to support the communication device 90 to perform steps 402, 404, and 406 as well as other technologies described herein. process.
  • the communication device 90 shown in FIG. 9 may also include a storage module for storing program codes and data of the communication device 90.
  • the processing module may be a processor or a controller. It can implement various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of this application, or implement various exemplary logical blocks described in conjunction with the disclosure of this application.
  • the processor may also be a combination of computing functions, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on.
  • the communication module can be a transceiver circuit or a communication interface.
  • the storage module may be a memory. When the processing module is a processor, the communication module integrates a serial communication interface and a wireless communication unit, and the storage module is a memory, the communication device 90 shown in FIG. 9 may be the communication device shown in FIG. 2.
  • FIG. 10 is a schematic diagram of the composition of a communication system provided by an embodiment of the application.
  • the communication system may include a wireless data transceiver module 100, a terminal 101, and a first device 102.
  • the wireless data transceiver module 100 and the communication device 90 have the same functions.
  • the wireless data transceiving module 100 stores information that can be used to identify the model and/or brand of the first device 102; one end of the wireless data transceiving module 100 is connected to the first port of the first device 102 through a cable; the wireless data transceiving module 100 The information that can be used to identify the model and/or brand of the first device 102 cannot be obtained from the first port of the first device 102;
  • the wireless data transceiving module 100 When the other end of the wireless data transceiving module 100 is connected to the terminal 101 in a wireless manner, the wireless data transceiving module 100 sends the stored information that can be used to identify the model and/or brand of the first device 102 to the terminal 101;
  • the terminal 101 is configured to select a data request and analysis program suitable for the first device 102 according to the information that can be used to identify the model and/or brand of the first device 102, and to transmit and receive data through wireless data according to the selected data request and analysis program
  • the module 100 receives the data from the first device 102 and parses it.
  • one end of the wireless data transceiving module 100 is wiredly connected to the port of the first device 102, and the other end is wirelessly connected to the terminal 101.
  • the wireless data transceiving module 100 is used to transparently transmit the terminal 101 to be sent to the first device.
  • the wireless data transceiving module 100 Before the request instruction of a device 102 and the data from the first device 102 to be transmitted to the terminal 101, information that can be used to identify the model and/or brand of the first device 102 is written into the wireless data transceiver module 100, and subsequently After the wireless data transceiving module 100 establishes a wireless connection with the terminal 101, the wireless data transceiving module 100 sends the stored information that can be used to identify the model and/or brand of the first device 102 to the terminal 101, and the terminal 101 can be used to identify The model and/or brand information of the first device 102 selects a data request and analysis program adapted to the first device 102, and sends a request instruction request to the first device 102 through the wireless data transceiver module 100 according to the selected data request and analysis program The data of the first device 102 receives and parses the data from the first device 102. In this way, the problem that the data of the first device 102 cannot be instantly transferred to the terminal 101 through wireless communication is solved,
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be It can be combined or integrated into another device, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate parts may or may not be physically separate.
  • the parts displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. . Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • each unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application are essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium , Including several instructions to make a device (may be a single-chip microcomputer, chip, etc.) or a processor (processor) execute all or part of the steps of the method described in each embodiment of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present application discloses a wireless data transceiving module and a communication method, which relate to the technical field of communications and solve the problem that original data of fitness equipment cannot be instantly transferred to a terminal in a wireless communication manner. Said method comprises: designing the wireless data transceiving module, one end of the wireless data transceiving module being connected to a first device by means of a cable; before the wireless data transceiving module passes through a request instruction to be sent to the first device by a terminal and data to be transmitted to the terminal by the first device, the wireless data transceiving module saving therein first device information (for example, information for identifying the model and/or brand of the first device), and when being in a wireless connection with the terminal, the wireless data transceiving module sending the first device information to the terminal, the terminal selecting, according to the first device information, a data request and a parse program corresponding to the first device, and acquiring and parsing the data from the first device by means of the wireless data transceiving module according to the selected data request and parse program.

Description

一种无线数据收发模块以及通信方法Wireless data transceiver module and communication method
本申请要求于2019年7月31日提交国家知识产权局、申请号为201910704674.2、申请名称为“一种无线数据收发模块以及通信方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office on July 31, 2019, the application number is 201910704674.2, and the application name is "a wireless data transceiver module and communication method", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请实施例涉及通信技术领域,尤其涉及一种无线数据收发模块以及通信方法。The embodiments of the present application relate to the field of communication technologies, and in particular, to a wireless data transceiver module and a communication method.
背景技术Background technique
目前,实现终端与健身器材的无线连接,便于用户通过终端获取健身器材上的各项表征健身器材上的运动者的运动情况的指标的数值并进行记录、存储和统计成为实现运动健康智慧化的必要要求。而商业健身房中的健身器材都属于重型资产,更新换代周期长,不支持与终端无线连接的存量健身器材将长期大量存在。因此,如何对这些存量健身器材进行改造或外接设备,使之具备与终端无线连接、并能将自身生成的运动数据被终端获取、解析的能力,是一个值得研究的课题。At present, the realization of the wireless connection between the terminal and the fitness equipment is convenient for users to obtain through the terminal the values of various indicators on the fitness equipment that characterize the exercise status of the athletes on the fitness equipment, and record, store and count them to become the realization of intelligent sports health Necessary requirements. The fitness equipment in commercial gyms is a heavy asset, and the replacement cycle is long, and the stock fitness equipment that does not support wireless connection with the terminal will exist in large numbers for a long time. Therefore, how to transform these stock fitness equipment or connect external equipment to make them have the ability to connect with the terminal wirelessly and obtain and analyze the exercise data generated by the terminal is a topic worthy of research.
目前有很大一部分健身器材具备符合健身器材通信规范(Communications Specification for Fitness Equipment,C-SAFE)的有线通信端口(简称C-SAFE端口)。但是,由于C-SAFE非行业强制标准,且规范制定并不尽具体,各大健身器材厂商因自身产品的运行逻辑不同、需求不同、软硬件能力不同、以及对该标准理解不同等,其对于规范的落实,尤其是交互逻辑、流程、响应速度等方面,还存在一定差异。这些差异,给通过C-SAFE端口向健身器材发送请求指令的时序与指令内容的把控,以及对通过C-SAFE端口传来的数据的解析工作带来难题,这就要求负责数据请求与解析的一方要具备多套数据请求与解析程序,且需根据器材品牌和型号选择执行,以便能根据不同品牌与型号的健身器材的要求,以内容与请求时机均符合其要求的请求指令向其请求运动数据,并正确解析出来自其的运动数据。At present, a large part of fitness equipment is equipped with a wired communication port (C-SAFE port for short) that complies with the Communications Specification for Fitness Equipment (C-SAFE). However, because C-SAFE is not an industry-compulsory standard, and the formulation of specifications is not very specific, major fitness equipment manufacturers have different operating logics of their products, different requirements, different software and hardware capabilities, and different understanding of the standard. There are still some differences in the implementation of regulations, especially in terms of interaction logic, process, and response speed. These differences bring difficulties to the control of the timing and content of the request instructions sent to the fitness equipment through the C-SAFE port, as well as the analysis of the data transmitted through the C-SAFE port, which requires responsibility for data request and analysis. The party must have multiple sets of data request and analysis procedures, and they need to be selected and implemented according to the equipment brand and model, so that they can request it with a request instruction whose content and request timing meet the requirements of different brands and models of fitness equipment Movement data, and correctly analyze the movement data from it.
然而,通过C-SAFE端口并不能够获知健身器材的厂商与型号信息,这又给数据请求与解析程序的选择与适配带来新的问题,导致终端无法获取并正确解析健身器材产生的数据。However, the manufacturer and model information of the fitness equipment cannot be obtained through the C-SAFE port, which brings new problems to the selection and adaptation of the data request and analysis program, resulting in the terminal being unable to obtain and correctly analyze the data generated by the fitness equipment .
发明内容Summary of the invention
本申请实施例提供一种无线数据收发模块以及通信方法,以解决大量存量健身器材上的原始数据无法通过无线通信方式即时向终端转移的问题。The embodiments of the present application provide a wireless data transceiver module and a communication method to solve the problem that the original data on a large amount of fitness equipment in stock cannot be instantly transferred to the terminal through wireless communication.
为达到上述目的,本申请实施例采用如下技术方案:In order to achieve the foregoing objectives, the following technical solutions are adopted in the embodiments of this application:
本申请实施例的第一方面,提供一种无线数据收发模块,该无线数据收发模块包括串行通信接口、无线通信单元、处理器以及存储器;串行通信接口用于与第一设备的第一端口通过线缆连接;无线数据收发模块无法通过串行通信接口从第一设备的第一端口获取可用于辨识第一设备的型号和/或品牌的信息;无线通信单元用于与终端通过无线方式连接;存储器,用于保存可用于辨识第一设备的型号和/或品牌的信息;当无线通信单元与终端无线连接时,处理器,用于从存储器读取用于辨识第一设备的型号和/或品牌,并通过无线通 信单元,向终端发送用于辨识第一设备的型号和/或品牌;处理器,还用于通过串行通信接口从第一设备的第一端口获取来自第一设备的数据,并通过无线通信单元向终端发送来自第一设备的数据。In a first aspect of the embodiments of the present application, a wireless data transceiver module is provided. The wireless data transceiver module includes a serial communication interface, a wireless communication unit, a processor, and a memory; the serial communication interface is used to communicate with the first device of the first device. The ports are connected by cables; the wireless data transceiver module cannot obtain information that can be used to identify the model and/or brand of the first device from the first port of the first device through the serial communication interface; the wireless communication unit is used to communicate with the terminal wirelessly Connection; memory, used to store information that can be used to identify the model and/or brand of the first device; when the wireless communication unit is connected to the terminal wirelessly, the processor is used to read the model and/or brand of the first device from the memory / Or brand, and through the wireless communication unit, send to the terminal for identifying the model and/or brand of the first device; the processor is also used to obtain from the first device from the first port of the first device through the serial communication interface And send the data from the first device to the terminal through the wireless communication unit.
基于第一方面,设计一无线数据收发模块,该无线数据收发模块的一端与第一设备的端口有线连接,另一端与终端无线连接,在无线数据收发模块在被用于透传终端待发送至第一设备的请求指令和来自第一设备的待被传送至终端的数据之前,将可用于辨识第一设备的型号和/或品牌的信息写入到无线数据收发模块中,后续,当无线数据收发模块与终端建立无线连接后,无线数据收发模块将其保存的可用于辨识第一设备的型号和/或品牌的信息发送给终端,以便终端根据可用于辨识第一设备的型号和/或品牌的信息选择与第一设备适配的数据请求与解析程序,根据选择的数据请求与解析程序通过无线数据收发模块向第一设备发送请求指令请求数据、接收来自第一设备的数据并解析。如此,解决第一设备的数据无法通过无线通信方式即时向终端转移的痛点。Based on the first aspect, a wireless data transceiver module is designed. One end of the wireless data transceiver module is wiredly connected to the port of the first device, and the other end is wirelessly connected to the terminal. The wireless data transceiver module is used to transparently transmit the terminal to be sent to Before the request instruction of the first device and the data from the first device to be transmitted to the terminal, the information that can be used to identify the model and/or brand of the first device is written into the wireless data transceiver module, and subsequently, when the wireless data After the transceiver module establishes a wireless connection with the terminal, the wireless data transceiver module sends the stored information that can be used to identify the model and/or brand of the first device to the terminal, so that the terminal can identify the model and/or brand of the first device according to The information selects a data request and analysis program adapted to the first device, and sends a request instruction requesting data to the first device through the wireless data transceiver module according to the selected data request and analysis program, and receives and analyzes the data from the first device. In this way, the pain point that the data of the first device cannot be instantly transferred to the terminal through wireless communication is solved.
一种可能的设计中,结合第一方面,第一设备是健身器材,第一端口是第一设备上的C-SAFE端口。基于该可能的设计,可以将健身器材上的C-SAFE端口与无线数据收发模块的串行通信接口通过线缆连接,不仅实现利用无线数据收发模块将健身器材上的数据通过无线通信方式转移到终端上,实现运动健康场景的智慧化,而且无需对健身器材进行改造,简单易行且成本低廉。In a possible design, in combination with the first aspect, the first device is a fitness equipment, and the first port is a C-SAFE port on the first device. Based on this possible design, the C-SAFE port on the fitness equipment can be connected with the serial communication interface of the wireless data transceiver module through a cable, which not only realizes the use of the wireless data transceiver module to transfer the data on the fitness equipment through wireless communication to On the terminal, the intelligence of the sports and health scene is realized, and there is no need to modify the fitness equipment, which is simple, easy and low-cost.
一种可能的设计中,结合第一方面或第一方面的可能的设计,处理器,还用于:在通过串行通信接口从第一设备的第一端口获取来自第一设备的数据,并通过无线通信单元向终端发送来自第一设备的数据之前,通过无线通信单元,接收终端发送的用于请求第一设备的数据,或者用于请求更改第一设备的状态的请求指令,并将接收到的请求指令通过串行通信接口发送至第一设备的第一端口。基于该可能的设计,无线数据收发模块在终端的控制下将来自第一设备的数据透传给终端或通知第一设备改变第一设备的状态,简单易行。In a possible design, in combination with the first aspect or the possible design of the first aspect, the processor is also used to: obtain data from the first device from the first port of the first device through the serial communication interface, and Before sending data from the first device to the terminal through the wireless communication unit, the wireless communication unit receives the data sent by the terminal for requesting the first device, or the request instruction for changing the state of the first device, and will receive The received request instruction is sent to the first port of the first device through the serial communication interface. Based on this possible design, the wireless data transceiver module transparently transmits data from the first device to the terminal or notifies the first device to change the state of the first device under the control of the terminal, which is simple and easy.
一种可能的设计中,结合第一方面或者第一方面的任一可能的设计,当无线通信单元与终端无线连接时,无线通信单元与终端之间建立有第一通道和第二通道;第一通道用于终端读取无线数据收发模块的存储器中的可用于辨识第一设备的型号和/或品牌的信息;第二通道用于接收终端发送的请求指令、向终端发送来自第一设备的数据。基于该可能的设计,可以在无线数据收发模块与终端之间建立两个独立的逻辑通道,利用两个独立的逻辑信道分别传输可用于辨识第一设备的型号和/或品牌的信息、来自第一设备的数据,使可用于辨识第一设备的型号和/或品牌的信息及来自第一设备的数据的传输互不干扰,提高传输准确性。In a possible design, in combination with the first aspect or any possible design of the first aspect, when the wireless communication unit is wirelessly connected to the terminal, a first channel and a second channel are established between the wireless communication unit and the terminal; One channel is used for the terminal to read the information that can be used to identify the model and/or brand of the first device in the memory of the wireless data transceiver module; the second channel is used for receiving the request instruction sent by the terminal and sending the information from the first device to the terminal. data. Based on this possible design, two independent logical channels can be established between the wireless data transceiver module and the terminal, and the two independent logical channels can be used to respectively transmit information that can be used to identify the model and/or brand of the first device, as well as information from the first device. The data of a device makes the information that can be used to identify the model and/or brand of the first device and the transmission of data from the first device do not interfere with each other, thereby improving the transmission accuracy.
一种可能的设计中,结合第一方面或者第一方面的任一可能的设计,当无线通信单元与终端无线连接时,无线通信单元与终端之间仅建立有第三通道;第三通道,用于终端读取无线数据收发模块的存储器中的可用于辨识第一设备的型号和/或品牌的信息;以及用于接收终端发送的请求指令、向终端发送来自第一设备的数据。基于该可能的设计,可以在无线数据收发模块与终端之间建立一个逻辑通道,利用该逻辑信道传输可用于辨识第一设备的型号和/或品牌的信息以及来自第一设备的数据,提高传输资源利用率。In a possible design, in combination with the first aspect or any possible design of the first aspect, when the wireless communication unit is wirelessly connected to the terminal, only a third channel is established between the wireless communication unit and the terminal; the third channel, It is used for the terminal to read the information in the memory of the wireless data transceiving module that can be used to identify the model and/or brand of the first device; and for receiving the request instruction sent by the terminal and sending the data from the first device to the terminal. Based on this possible design, a logical channel can be established between the wireless data transceiver module and the terminal, and the logical channel can be used to transmit information that can be used to identify the model and/or brand of the first device and data from the first device to improve transmission Resource utilization.
一种可能的设计中,结合第一方面或者第一方面的可能的设计,处理器,具体用于从终端或者计算机设备获取可用于辨识第一设备的型号和/或品牌的信息,并将获取到的可用 于辨识第一设备的型号和/或品牌的信息保存到存储器中。基于该可能的设计,可以通过无线方式或者有线方式将可用于辨识第一设备的型号和/或品牌的信息写入到无线数据收发模块的存储器中。In a possible design, in combination with the first aspect or the possible design of the first aspect, the processor is specifically used to obtain information that can be used to identify the model and/or brand of the first device from a terminal or a computer device, and to obtain The obtained information that can be used to identify the model and/or brand of the first device is stored in the memory. Based on this possible design, the information that can be used to identify the model and/or brand of the first device can be written into the memory of the wireless data transceiver module in a wireless or wired manner.
第二方面,本申请提供一种通信装置,该通信装置可以为无线数据收发模块或者无线数据收发模块中的芯片或者片上系统。该通信装置可以实现上述各方面或者各可能的设计中通信装置所执行的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个上述功能相应的模块。如:该通信装置可以包括第一通信单元、第二通信单元、处理单元以及存储单元;In a second aspect, the present application provides a communication device, which may be a wireless data transceiver module or a chip or a system on a chip in a wireless data transceiver module. The communication device can implement the functions performed by the communication device in the above-mentioned aspects or various possible designs, and the functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the aforementioned functions. For example, the communication device may include a first communication unit, a second communication unit, a processing unit, and a storage unit;
第一通信单元用于与第一设备的第一端口通过线缆连接;无线数据收发模块无法通过第一通信单元从第一设备的第一端口获取可用于辨识第一设备的型号和/或品牌的信息;第二通信单元用于与终端通过无线方式连接;The first communication unit is used to connect with the first port of the first device through a cable; the wireless data transceiver module cannot obtain the model and/or brand of the first device from the first port of the first device through the first communication unit的信息; The second communication unit is used to connect with the terminal wirelessly;
存储单元,用于保存可用于辨识第一设备的型号和/或品牌的信息;The storage unit is used to store information that can be used to identify the model and/or brand of the first device;
当第二通信单元与终端无线连接时,处理单元,用于从存储单元读取可用于辨识第一设备的型号和/或品牌的信息,并通过第二通信单元,向终端发送可用于辨识第一设备的型号和/或品牌的信息;When the second communication unit is wirelessly connected to the terminal, the processing unit is used to read from the storage unit information that can be used to identify the model and/or brand of the first device, and send to the terminal through the second communication unit the information that can be used to identify the first device Information about the model and/or brand of a device;
处理单元,还用于通过第一通信单元从第一设备的第一端口获取来自第一设备的数据,并通过第二通信单元向终端发送来自第一设备的数据。The processing unit is further configured to obtain data from the first device from the first port of the first device through the first communication unit, and send the data from the first device to the terminal through the second communication unit.
其中,该通信装置的具体实现方式可以参考第一方面或第一方面的任一种可能的设计提供的无线数据收发模块中各个部件的行为功能,在此不再重复赘述。因此,该提供的通信装置可以达到与第一方面或者第一方面的任一种可能的设计相同的有益效果。For the specific implementation of the communication device, reference may be made to the behavior and function of each component in the wireless data transceiver module provided by the first aspect or any possible design of the first aspect, which will not be repeated here. Therefore, the provided communication device can achieve the same beneficial effects as the first aspect or any possible design of the first aspect.
第三方面,提供了一种芯片系统,该芯片系统包括处理器、存储器、第一通信接口、第二通信接口,用于支持该芯片系统执行上述无线数据收发模块所涉及的功能,例如第一通信接口用于与第一设备的第一端口通过线缆连接;该芯片系统无法通过第一通信接口从第一设备的第一端口获取可用于辨识第一设备的型号和/或品牌的信息;第二通信接口用于与终端通过无线方式连接;存储器,用于保存可用于辨识第一设备的型号和/或品牌的信息;当第二通信接口与终端无线连接时,处理器通过第二通信接口,向终端发送可用于辨识第一设备的型号和/或品牌的信息;处理器,还通过第一通信接口从第一设备的第一端口获取来自第一设备的数据,并通过第二通信接口向终端发送来自第一设备的数据。在一种可能的设计中,所述存储器,还用于保存通信装置必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。In a third aspect, a chip system is provided. The chip system includes a processor, a memory, a first communication interface, and a second communication interface, and is used to support the chip system to perform the functions related to the wireless data transceiver module, such as the first The communication interface is used to connect with the first port of the first device through a cable; the chip system cannot obtain information that can be used to identify the model and/or brand of the first device from the first port of the first device through the first communication interface; The second communication interface is used to connect to the terminal wirelessly; the memory is used to store information that can be used to identify the model and/or brand of the first device; when the second communication interface is wirelessly connected to the terminal, the processor communicates via the second Interface, to send information that can be used to identify the model and/or brand of the first device to the terminal; the processor also obtains data from the first device from the first port of the first device through the first communication interface, and uses the second communication The interface sends data from the first device to the terminal. In a possible design, the memory is also used to store necessary program instructions and data for the communication device. The chip system can be composed of chips, or include chips and other discrete devices.
其中,第三方面带来的技术效果可参见上述第一方面或者第一方面的任一种可能的设计所带来的技术效果,不再赘述。Among them, the technical effects brought by the third aspect can be referred to the technical effects brought about by the first aspect or any one of the possible designs of the first aspect, and will not be repeated here.
第四方面,本申请实施例提供一种通信方法,该通信方法包括:无线数据收发模块保存可用于辨识第一设备的型号和/或品牌的信息;无线数据收发模块的一端与第一设备的第一端口通过线缆连接;无线数据收发模块无法从第一设备的第一端口获取可用于辨识第一设备的型号和/或品牌的信息;可用于辨识第一设备的型号和/或品牌的信息为可用于辨识第一设备的型号和/或品牌的信息;当无线数据收发模块的另一端与终端通过无线方式连接时,无线数据收发模块读取可用于辨识第一设备的型号和/或品牌的信息,向终端发送可用于辨识第一设备的型号和/或品牌的信息;终端根据可用于辨识第一设备的型号和/或品牌 的信息,选择适用于第一设备的数据请求与解析程序;终端根据选择的数据请求与解析程序,通过无线数据收发模块接收来自第一设备的数据并解析。In a fourth aspect, an embodiment of the present application provides a communication method. The communication method includes: a wireless data transceiving module stores information that can be used to identify the model and/or brand of the first device; The first port is connected by a cable; the wireless data transceiver module cannot obtain the information that can be used to identify the model and/or brand of the first device from the first port of the first device; the information that can be used to identify the model and/or brand of the first device The information is information that can be used to identify the model and/or brand of the first device; when the other end of the wireless data transceiver module is connected to the terminal wirelessly, the wireless data transceiver module reads the information that can be used to identify the model and/or brand of the first device Brand information, sending information that can be used to identify the model and/or brand of the first device to the terminal; the terminal selects the data request and analysis applicable to the first device based on the information that can be used to identify the model and/or brand of the first device Program: The terminal receives and analyzes the data from the first device through the wireless data transceiver module according to the selected data request and analysis program.
基于第四方面提供的方法,该无线数据收发模块的一端与第一设备的端口有线连接,另一端与终端无线连接,在无线数据收发模块在被用于透传终端待发送至第一设备的请求指令和来自第一设备的待被传送至终端的数据之前,将可用于辨识第一设备的型号和/或品牌的信息写入到无线数据收发模块中,后续,当无线数据收发模块与终端建立无线连接后,无线数据收发模块将其保存的可用于辨识第一设备的型号和/或品牌的信息发送给终端,终端根据可用于辨识第一设备的型号和/或品牌的信息选择与第一设备适配的数据请求与解析程序,根据选择的数据请求与解析程序通过无线数据收发模块向第一设备发送请求指令请求第一设备的数据、接收来自第一设备的数据并解析。如此,解决第一设备的数据无法通过无线通信方式即时向终端转移的痛点。Based on the method provided in the fourth aspect, one end of the wireless data transceiver module is wiredly connected to the port of the first device, and the other end is wirelessly connected to the terminal. The wireless data transceiver module is used to transparently transmit the terminal to be sent to the first device. Before the request instruction and the data from the first device to be transmitted to the terminal, write the information that can be used to identify the model and/or brand of the first device into the wireless data transceiver module. Subsequently, when the wireless data transceiver module and the terminal After the wireless connection is established, the wireless data transceiver module sends the stored information that can be used to identify the model and/or brand of the first device to the terminal, and the terminal selects the first device based on the information that can be used to identify the model and/or brand of the first device. A device-adapted data request and analysis program, according to the selected data request and analysis program, sends a request instruction to the first device through the wireless data transceiver module to request the data of the first device, receives the data from the first device and analyzes it. In this way, the pain point that the data of the first device cannot be instantly transferred to the terminal through wireless communication is solved.
结合第四方面,第一设备是健身器材,第一端口是第一设备上的健身器材通信规范C-SAFE端口。基于该可能的设计,可以将健身器材的C-SAFE端口与无线数据收发模块的串行通信接口通过线缆连接,不仅实现利用无线数据收发模块将健身器材上的数据通过无线通信方式转移到终端上,实现运动健康场景的智慧化,而且无需对健身器材进行改造,简单易行且成本低廉。With reference to the fourth aspect, the first device is fitness equipment, and the first port is the fitness equipment communication specification C-SAFE port on the first device. Based on this possible design, the C-SAFE port of the fitness equipment can be connected to the serial communication interface of the wireless data transceiver module through a cable, which not only realizes the use of the wireless data transceiver module to transfer the data on the fitness equipment to the terminal through wireless communication On the other hand, it realizes the intelligence of sports and health scenes, and there is no need to modify the fitness equipment, which is simple, easy and low-cost.
结合第四方面或者第四方面的任一可能的设计,在终端根据选择的数据请求与解析程序,通过无线数据收发模块接收来自第一设备的数据并解析之前,所述方法还包括:终端向无线数据收发模块发送用于请求第一设备的数据或者用于请求更改第一设备的状态的请求指令,无线数据收发模块将该请求指令发送至第一设备的第一端口。基于该可能的设计,无线数据收发模块在终端的控制下将来自第一设备的数据透传给终端或通知第一设备改变第一设备的状态,简单易行。With reference to the fourth aspect or any possible design of the fourth aspect, before the terminal receives and analyzes the data from the first device through the wireless data transceiver module according to the selected data request and analysis program, the method further includes: The wireless data transceiver module sends a request instruction for requesting data of the first device or for requesting to change the state of the first device, and the wireless data transceiver module sends the request instruction to the first port of the first device. Based on this possible design, the wireless data transceiver module transparently transmits data from the first device to the terminal or notifies the first device to change the state of the first device under the control of the terminal, which is simple and easy.
结合第四方面或者第四方面的任一可能的设计,当无线数据收发模块与终端无线连接时,无线数据收发模块与终端之间建立有第一通道和第二通道;第一通道用于终端读取无线数据收发模块中的可用于辨识第一设备的型号和/或品牌的信息;第二通道用于接收终端发送的请求指令以及向终端发送来自第一设备的数据。基于该可能的设计,可以在无线数据收发模块与终端之间建立两个独立的逻辑通道,利用两个独立的逻辑信道分别传输可用于辨识第一设备的型号和/或品牌的信息、来自第一设备的数据,使可用于辨识第一设备的型号和/或品牌的信息及来自第一设备的数据的传输互不干扰,提高传输准确性。With reference to the fourth aspect or any possible design of the fourth aspect, when the wireless data transceiver module is connected to the terminal wirelessly, a first channel and a second channel are established between the wireless data transceiver module and the terminal; the first channel is used for the terminal Read the information in the wireless data transceiver module that can be used to identify the model and/or brand of the first device; the second channel is used to receive request instructions sent by the terminal and send data from the first device to the terminal. Based on this possible design, two independent logical channels can be established between the wireless data transceiver module and the terminal, and the two independent logical channels can be used to respectively transmit information that can be used to identify the model and/or brand of the first device, as well as information from the first device. The data of a device makes the information that can be used to identify the model and/or brand of the first device and the transmission of data from the first device do not interfere with each other, thereby improving the transmission accuracy.
结合第四方面或者第四方面的任一可能的设计,当无线数据收发模块与终端无线连接时,无线数据收发模块与终端之间仅建立有第三通道;第三通道用于终端读取无线数据收发模块中的可用于辨识第一设备的型号和/或品牌的信息,以及用于接收终端发送的请求指令、向终端发送来自第一设备的数据。基于该可能的设计,在无线数据收发模块与终端之间建立一个逻辑通道,利用该逻辑信道传输可用于辨识第一设备的型号和/或品牌的信息以及来自第一设备的数据,提高传输资源利用率。In combination with the fourth aspect or any possible design of the fourth aspect, when the wireless data transceiver module is wirelessly connected to the terminal, only a third channel is established between the wireless data transceiver module and the terminal; the third channel is used for the terminal to read wireless The information in the data transceiver module that can be used to identify the model and/or brand of the first device, and is used to receive request instructions sent by the terminal, and send data from the first device to the terminal. Based on this possible design, a logical channel is established between the wireless data transceiver module and the terminal, and the logical channel is used to transmit information that can be used to identify the model and/or brand of the first device and data from the first device, thereby increasing transmission resources Utilization rate.
结合第四方面或者第四方面的任一可能的设计,无线数据收发模块保存可用于辨识第一设备的型号和/或品牌的信息包括:无线数据收发模块从终端或者计算机设备获取可用于辨识第一设备的型号和/或品牌的信息,并将获取到的可用于辨识第一设备的型号和/或品牌的信息保存到无线数据收发模块中。基于该可能的设计,可以通过无线方式或者有线方 式将可用于辨识第一设备的型号和/或品牌的信息写入到无线数据收发模块的存储器中。In combination with the fourth aspect or any possible design of the fourth aspect, the wireless data transceiving module storing information that can be used to identify the model and/or brand of the first device includes: the wireless data transceiving module obtains from a terminal or a computer device that can be used to identify the first device The model and/or brand information of a device is stored, and the acquired information that can be used to identify the model and/or brand of the first device is stored in the wireless data transceiver module. Based on this possible design, the information that can be used to identify the model and/or brand of the first device can be written into the memory of the wireless data transceiving module in a wireless or wired manner.
第五方面,提供一种通信系统,该通信系统可以包括如第一方面至第三方面任一方面所述的无线数据收发模块、第一设备以及终端。In a fifth aspect, a communication system is provided. The communication system may include the wireless data transceiving module, the first device, and the terminal as described in any one of the first to third aspects.
附图说明Description of the drawings
图1为本申请实施例提供的一种应用架构示意图;FIG. 1 is a schematic diagram of an application architecture provided by an embodiment of the application;
图2为本申请实施例提供的一种无线数据收发模块100的组成示意图;2 is a schematic diagram of the composition of a wireless data transceiving module 100 provided by an embodiment of the application;
图3为本申请实施例提供的一种终端101的组成示意图;FIG. 3 is a schematic diagram of the composition of a terminal 101 provided by an embodiment of the application;
图4为本申请实施例提供的一种通信方法的流程图;FIG. 4 is a flowchart of a communication method provided by an embodiment of this application;
图5a为本申请实施例提供的一种写入可用于辨识跑步机的型号和/或品牌的信息的方式的示意图;FIG. 5a is a schematic diagram of a method for writing information that can be used to identify the model and/or brand of a treadmill provided by an embodiment of the application;
图5b为本申请实施例提供的又一种写入可用于辨识跑步机的型号和/或品牌的信息的方式的示意图;FIG. 5b is a schematic diagram of another method for writing information that can be used to identify the model and/or brand of the treadmill provided by an embodiment of the application;
图5c为本申请实施例提供的一种连接关系示意图;FIG. 5c is a schematic diagram of a connection relationship provided by an embodiment of this application;
图6为本申请实施例提供的又一种连接关系示意图;FIG. 6 is a schematic diagram of another connection relationship provided by an embodiment of this application;
图7为本申请实施例提供的又一种连接关系示意图;FIG. 7 is a schematic diagram of yet another connection relationship provided by an embodiment of the application;
图8为本申请实施例提供的再一种连接关系示意图;FIG. 8 is a schematic diagram of yet another connection relationship provided by an embodiment of this application;
图9为本申请实施例提供的一种通信装置90的组成示意图;FIG. 9 is a schematic diagram of the composition of a communication device 90 provided by an embodiment of this application;
图10为本申请实施例提供的一种通信系统的组成示意图。FIG. 10 is a schematic diagram of the composition of a communication system provided by an embodiment of this application.
具体实施方式Detailed ways
本申请实施例的基本原理是:对带有健身器材通信规范(communications specification for fitness equipment,C-SAFE)端口的健身器材外接设备,如:将健身器材的C-SAFE端口与无线数据收发模块进行连接,使终端设备通过该无线数据收发模块与健身器材建立无线连接,获取健身器材上的数据并从中解析出各项表征健身器材上的运动者的运动情况的指标的具体数值,解决大量存量健身器材的数据无法通过无线通信方式即时向终端转移的痛点,实现运动健康场景的智慧化。同时,本申请实施例提供的方法存储可用于辨识与其连接的健身器材的型号和/或品牌的信息,使得终端设备可以从无线数据收发模块读取可用于辨识健身器材的型号和/或品牌的信息,依据健身器材的型号和/或品牌选择与健身器材适配的数据请求与解析程序,根据选择的数据请求与解析程序获取健身器材的数据,解决了对向不同健身器材请求数据的程序和来自不同健身器材的数据的解析程序的选择与适配的问题,通用性强,且施工简单。The basic principle of the embodiments of this application is: to connect fitness equipment with a fitness equipment communication specification (communications specification for fitness equipment, C-SAFE) port, such as: the fitness equipment C-SAFE port and wireless data transceiver module Connect, so that the terminal device establishes a wireless connection with the fitness equipment through the wireless data transceiver module, obtains the data on the fitness equipment, and parses the specific values of the indicators that characterize the exercise status of the athletes on the fitness equipment, and solves the large inventory of fitness The pain point that equipment data cannot be instantly transferred to the terminal through wireless communication, realizes the wisdom of sports and health scenarios. At the same time, the method provided in the embodiments of the present application stores information that can be used to identify the model and/or brand of the fitness equipment connected to it, so that the terminal device can read the information that can be used to identify the model and/or brand of the fitness equipment from the wireless data transceiver module. Information, according to the fitness equipment model and/or brand, select the data request and analysis program adapted to the fitness equipment, and obtain the data of the fitness equipment according to the selected data request and analysis program, which solves the problem of the procedures and procedures for requesting data from different fitness equipment. The selection and adaptation of the analysis program for data from different fitness equipment is highly versatile and simple in construction.
下面基于上述原理,结合说明书附图,对本申请实施例的实施方式进行详细描述。其中,下述实施例中,可用于辨识第一设备的型号和/或品牌的信息可以指设备厂商与型号或类似可用于辨别设备厂商、型号的信息。具体的,可用于辨识第一设备的型号和/或品牌的信息可以包括但不限于第一设备的品牌、型号、编号、编码以及条形码等信息,信息的编码和在存储器中存储的方式不予限制。The following describes the implementation of the embodiments of the present application in detail based on the foregoing principles and the accompanying drawings in the specification. Among them, in the following embodiments, the information that can be used to identify the model and/or brand of the first device may refer to the device manufacturer and model or similar information that can be used to identify the device manufacturer and model. Specifically, the information that can be used to identify the model and/or brand of the first device may include, but is not limited to, the brand, model, serial number, code, and barcode of the first device. The encoding of the information and the way it is stored in the memory are not allowed. limit.
图1为本申请实施例提供的一种应用架构示意图,如图1所示,该架构可以包括:无线数据收发模块100、终端101、第一设备102。其中,无线数据收发模块100的一端可以按串行通信方式通过线缆与第一设备102的C-SAFE端口连接,无线数据收发模块100的另一端可以通过无线方式与终端101连接,无线方式可以包括但不限于蓝牙连接方式、无 线保真(wireless-fidelity,WIFI)连接方式、共享热点等方式。无线数据收发模块100与终端101无线连接后,无线数据收发模块100与终端101之间可以建立两个通道,其中一个通道用于从无线数据收发模块100读取/往无线数据收发模块100写入可用于辨识第一设备102的型号和/或品牌的信息,另一个通道用于透传终端101待发送至的第一设备102的C-SAFE端口的请求指令,以及透传来自第一设备102的C-SAFE端口待被传送至终端101的数据;或者,无线数据收发模块100与终端101之间可以建立一个通道,该通道既可以用于从无线数据收发模块100读取/往无线数据收发模块100写入可用于辨识第一设备102的型号和/或品牌的信息,又可以用于透传终端101待发送至的第一设备102的C-SAFE端口的请求指令,以及透传来自第一设备102的C-SAFE端口待被传送至终端101的数据。FIG. 1 is a schematic diagram of an application architecture provided by an embodiment of the application. As shown in FIG. 1, the architecture may include: a wireless data transceiver module 100, a terminal 101, and a first device 102. Among them, one end of the wireless data transceiving module 100 can be connected to the C-SAFE port of the first device 102 through a cable in a serial communication mode, and the other end of the wireless data transceiving module 100 can be connected to the terminal 101 in a wireless manner. Including but not limited to Bluetooth connection, wireless-fidelity (WIFI) connection, shared hotspot, etc. After the wireless data transceiver module 100 is wirelessly connected to the terminal 101, two channels can be established between the wireless data transceiver module 100 and the terminal 101, one of which is used to read from the wireless data transceiver module 100/write to the wireless data transceiver module 100 It can be used to identify the information of the model and/or brand of the first device 102, and the other channel is used to transparently transmit the request command of the C-SAFE port of the first device 102 to which the terminal 101 is to be sent, and transparently transmit from the first device 102 The C-SAFE port of the data to be transmitted to the terminal 101; or, a channel can be established between the wireless data transceiver module 100 and the terminal 101, and the channel can be used to read from/to the wireless data transceiver module 100 The module 100 writes information that can be used to identify the model and/or brand of the first device 102, and can also be used to transparently transmit the request command of the C-SAFE port of the first device 102 to which the terminal 101 is to be sent, and transparently transmit the request command from the first device 102. The C-SAFE port of a device 102 is data to be transmitted to the terminal 101.
无线数据收发模块100,可以用于存储可用于辨识第一设备102的型号和/或品牌的信息,还可以用于透传终端101待发送至的第一设备102的C-SAFE端口的请求指令,以及透传来自第一设备102的C-SAFE端口待被传送至终端101的数据。The wireless data transceiver module 100 can be used to store information that can be used to identify the model and/or brand of the first device 102, and can also be used to transparently transmit the request instruction of the C-SAFE port of the first device 102 to which the terminal 101 is to be sent , And transparently transmit the data to be transmitted to the terminal 101 from the C-SAFE port of the first device 102.
终端101,可以称为终端设备(terminal equipment)或者用户设备(user equipment,UE)或者移动台(mobile station,MS)或者移动终端(mobile terminal,MT)等,终端101可以为手机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、个人计算机(personal computer,PC)、上网本、蜂窝电话、以及个人数字助理(personal digital assistant,PDA)、可穿戴式设备(如智能手表)等,本实施例对终端101的具体形式不做特殊限制。The terminal 101 may be called a terminal equipment (terminal equipment) or a user equipment (UE), a mobile station (MS) or a mobile terminal (mobile terminal, MT), etc. The terminal 101 may be a mobile phone, a tablet computer, Desktops, laptops, handheld computers, notebook computers, personal computers (PC), netbooks, cellular phones, personal digital assistants (PDAs), wearable devices (such as smart watches), etc., This embodiment does not impose special restrictions on the specific form of the terminal 101.
第一设备102,可以用于收集用户运动所产生的数据。第一设备102可以为健身器材,第一设备102具有C-SAFE端口。例如,第一设备102可以为跑步机、动感单车、划船器、健美车、美腰机中任一设备,还可以为其他可供用户健身娱乐且可收集用户健身娱乐所产生的数据的任一设备,不予限制。The first device 102 may be used to collect data generated by the user's movement. The first device 102 may be a fitness equipment, and the first device 102 has a C-SAFE port. For example, the first device 102 can be any device among treadmills, spinning machines, rowing machines, fitness bikes, and waist beauty machines, and can also be any other device that can be used for the user's fitness and entertainment and can collect data generated by the user's fitness and entertainment. Equipment, no restrictions.
需要说明的是,图1仅为示例性的架构图,在图1中第一设备102以跑步机为例进行描述,除跑步机外,第一设备102还可以为其他具有符合C-SAFE的端口的健身器材或者设备,不予限制。此外,图1中各个设备的名称不受限制,除图1所示名称之外,各个设备还可以命名为其他具备相同或相似功能的设备名称,如:无线数据收发模块100还可以命名为第一模块或者其他名称,不予限制。It should be noted that FIG. 1 is only an exemplary architecture diagram. In FIG. 1, the first device 102 is described by taking a treadmill as an example. In addition to the treadmill, the first device 102 can also be other C-SAFE-compliant There are no restrictions on fitness equipment or equipment at the port. In addition, the names of each device in FIG. 1 are not limited. In addition to the names shown in FIG. 1, each device can also be named other devices with the same or similar functions. For example, the wireless data transceiver module 100 can also be named as One module or other name is not restricted.
在图1所示架构中,为了将来自第一设备102的数据转移到终端101上,在无线数据收发模块100被用于透传终端101待发送至的第一设备102的C-SAFE端口的请求指令和来自第一设备102的C-SAFE端口待被传送至终端101的数据之前,工作人员将可用于辨识第一设备102的品牌和/或型号的信息(如第一设备102的型号和/或第一设备102的品牌)保存到无线数据收发模块100的存储区域。后续,当某个用户使用第一设备102时,用户手持的终端101可以与无线数据收发模块100建立无线连接,终端101通过无线连接读取无线数据收发模块100中可用于辨识第一设备102的品牌和/或型号的信息,并根据可用于辨识第一设备102的品牌和/或型号的信息选择与第一设备102匹配的数据请求与解析程序,终端101按照选择的数据请求与解析程序,通过无线数据收发模块100向第一设备102的C-SAFE端口发送数据请求指令,并通过无线数据收发模块100接收来自第一设备102的C-SAFE端口的数据,再对这些数据进行解析,得到各项表征在第一设备102上或利用第一设备102进行运动的运动者的运动情况的指标的具体数值,进而对这些数值进行记录、存储和统计。具体的,该实现方式可参照下述图4对应的实施例中所述。In the architecture shown in Figure 1, in order to transfer data from the first device 102 to the terminal 101, the wireless data transceiver module 100 is used to transparently transmit the C-SAFE port of the first device 102 to which the terminal 101 is to be sent. Before requesting instructions and data from the C-SAFE port of the first device 102 to be transmitted to the terminal 101, the staff will be able to identify the brand and/or model of the first device 102 (such as the model and model of the first device 102). / Or the brand of the first device 102) is stored in the storage area of the wireless data transceiving module 100. Later, when a user uses the first device 102, the terminal 101 held by the user can establish a wireless connection with the wireless data transceiver module 100, and the terminal 101 can read the wireless data transceiver module 100 through the wireless connection that can be used to identify the first device 102. Brand and/or model information, and select a data request and analysis program matching the first device 102 based on the information that can be used to identify the brand and/or model of the first device 102, and the terminal 101 follows the selected data request and analysis program, Send a data request instruction to the C-SAFE port of the first device 102 through the wireless data transceiving module 100, and receive data from the C-SAFE port of the first device 102 through the wireless data transceiving module 100, and then parse the data to obtain Specific numerical values of various indicators that characterize the exercise conditions of the athletes who exercise on the first device 102 or using the first device 102, and then record, store, and count these values. Specifically, for the implementation manner, reference may be made to the embodiment corresponding to FIG. 4 below.
本申请实施例中,来自第一设备102的数据可以指可以通过第一设备102的C-SAFE端口获取到的所有数据,可以包括运动数据。来自第一设备102的运动数据可以解析出多项表征在第一设备102上或利用第一设备102进行运动的运动者的运动情况的指标的具体数值,这些表征在第一设备102上或利用第一设备102进行运动的运动者的运动情况的指标包括但不限于运动者的已运动的时长、已运动的里程、已运动的步数、运动速率、运动时的步频、运动时的心率和已消耗的热量等。此外,本申请实施例不限于将来自第一设备102的运动数据通过无线数据收发模块发送给终端,还可以将来自第一设备102的其他数据通过无线数据收发模块发送给终端,如:还可以将第一设备102的状态通过无线数据收发模块发送给终端。第一设备102的状态可以包括但不限于硬件状态和/或软件状态,如第一设备102上物理器件的开启与关闭、第一设备102上运行的软件所处的逻辑阶段等状态。需要说明的是,本申请实施例中,A和/或B包括下述三种情况:A,或者,B或者,A和B。In the embodiment of the present application, the data from the first device 102 may refer to all data that can be obtained through the C-SAFE port of the first device 102, and may include sports data. The exercise data from the first device 102 can parse out the specific numerical values of multiple indicators that characterize the exercise conditions of the athletes who exercise on the first device 102 or using the first device 102. The indicators of the exercise condition of the athlete who exercises on the first device 102 include, but are not limited to, the length of time the athlete has exercised, the distance exercised, the number of steps exercised, the exercise rate, the cadence during exercise, and the heart rate during exercise. And consumed calories, etc. In addition, the embodiments of the present application are not limited to sending exercise data from the first device 102 to the terminal through the wireless data transceiver module, and other data from the first device 102 may also be sent to the terminal through the wireless data transceiver module, such as: The state of the first device 102 is sent to the terminal through the wireless data transceiver module. The state of the first device 102 may include, but is not limited to, a hardware state and/or a software state, such as the opening and closing of a physical device on the first device 102, and the logical stage of the software running on the first device 102. It should be noted that, in the embodiments of the present application, A and/or B include the following three situations: A, or, B, or A and B.
在具体实现时,图1所示无线数据收发模块100可以具有图2所示部件。图2为本申请实施例提供的一种无线数据收发模块100的组成示意图,如图2所示,该无线数据收发模块100包括可以包括处理器1001、串行通信接口1002、无线通信单元1003、存储器1004。进一步的,无线数据收发模块100还可以包括按键1005、充电管理模块1007、电源管理模块1006、电池1008等。无线数据收发模块100包括的各个部件之间通过通信线路相互连接。In specific implementation, the wireless data transceiver module 100 shown in FIG. 1 may have the components shown in FIG. 2. 2 is a schematic diagram of the composition of a wireless data transceiver module 100 provided by an embodiment of the application. As shown in FIG. 2, the wireless data transceiver module 100 may include a processor 1001, a serial communication interface 1002, a wireless communication unit 1003, Storage 1004. Further, the wireless data transceiver module 100 may also include a button 1005, a charging management module 1007, a power management module 1006, a battery 1008, and the like. The components included in the wireless data transceiving module 100 are connected to each other through communication lines.
处理器1001,可以是中央处理器(central processing unit,CPU)、通用处理器网络处理器(network processor,NP)、数字信号处理器(digital signal processing,DSP)、微处理器、微控制器、可编程逻辑器件(programmable logic device,PLD)或它们的任意组合。处理器1001还可以是其它任意具有处理功能的装置,如电路、器件或软件模块,不予限制。The processor 1001 may be a central processing unit (CPU), a general-purpose processor network processor (NP), a digital signal processing (DSP), a microprocessor, a microcontroller, Programmable logic device (PLD) or any combination of them. The processor 1001 may also be any other device with processing functions, such as a circuit, a device, or a software module, without limitation.
串行通信接口1002,可以指信道上采用每次传输一个比特数据,并连续进行以上单次过程的通信方式的接口,其接口的物理形式、调制方式、电平协议不限,可以是RS-232标准、TTL标准等。其接口可以同时具备为无线数据收发模块100供电的能力。The serial communication interface 1002 can refer to an interface that uses a communication mode that transmits one bit of data at a time and continuously performs the above single process on the channel. The physical form, modulation mode, and level protocol of the interface are not limited, and it can be RS- 232 standard, TTL standard, etc. The interface may have the ability to supply power to the wireless data transceiver module 100 at the same time.
无线通信单元1003,可以提供应用在无线数据收发模块100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(blue tooth,BT)等无线通信的解决方案。无线通信单元1003可以是集成至少一个通信处理模块的一个或多个器件。无线通信单元1003经由天线接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器1001。无线通信单元1003还可以从处理器1001接收待发送的信号,对其进行调频,放大,经天线转为电磁波辐射出去。The wireless communication unit 1003 can provide wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and wireless local area networks used in the wireless data transceiver module 100. And other wireless communication solutions. The wireless communication unit 1003 may be one or more devices integrating at least one communication processing module. The wireless communication unit 1003 receives electromagnetic waves via an antenna, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 1001. The wireless communication unit 1003 may also receive the signal to be sent from the processor 1001, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna.
存储器1004,可以用于以处理器1001可读取、写入或执行的文件格式存储计算机可执行程序及其执行过程中产生/所需要的各种数据以及可用于辨识第一设备102的型号和/或者品牌的信息,所述可执行程序包括指令。处理器1001通过执行存储在存储器1004的程序,从而实现无线数据收发模块100的各种功能应用以及数据处理。存储器1004可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统。存储数据区可存储可用于辨识第一设备102的品牌和/或型号的信息等。The memory 1004 can be used to store the computer executable program and various data generated/needed during its execution in a file format that can be read, written or executed by the processor 1001, and can be used to identify the model and type of the first device 102 /Or brand information, the executable program includes instructions. The processor 1001 implements various functional applications and data processing of the wireless data transceiver module 100 by executing programs stored in the memory 1004. The memory 1004 may include a program storage area and a data storage area. Among them, the storage program area can store the operating system. The storage data area may store information that can be used to identify the brand and/or model of the first device 102.
存储器1004可以由至少一个可读写的存储器组成,如;存储器1004可以是可读写存 储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)等各种介质的可读写存储设备,不予限制。需要说明的是,存储器1004可以独立于处理器1001存在,也可以和处理器1001集成在一起。存储器1004可以用于存储指令或者程序代码或者一些数据等。存储器1004可以位于无线数据收发模块100内,也可以位于无线数据收发模块100外,不予限制。处理器1001,用于执行存储器1004中存储的程序,以实现本申请下述实施例提供的通信方法。The memory 1004 may be composed of at least one readable and writable memory, for example; the memory 1004 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM) or other types of dynamic storage devices that can store information and instructions, and can also be readable by various media such as electrically erasable programmable read-only memory (EEPROM) Writing to storage devices is not restricted. It should be noted that the memory 1004 may exist independently of the processor 1001, or may be integrated with the processor 1001. The memory 1004 may be used to store instructions or program codes or some data. The memory 1004 may be located in the wireless data transceiver module 100 or outside the wireless data transceiver module 100 without limitation. The processor 1001 is configured to execute a program stored in the memory 1004 to implement the communication method provided in the following embodiments of the present application.
按键1005,包括开机键等。按键1005可以是机械按键。也可以是触摸式按键。无线数据收发模块100可以接收按键输入,产生与无线数据收发模块100的用户设置以及功能控制有关的键信号输入。Button 1005, including power-on button, etc. The button 1005 may be a mechanical button. It can also be a touch button. The wireless data transceiving module 100 can receive key input, and generate key signal inputs related to user settings and function control of the wireless data transceiving module 100.
充电管理模块1007,用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块1007可以通过串行通信接口1002接收充电输入,也可以通过其他可供电接口接受充电输入。在一些无线充电的实施例中,充电管理模块1007可以通过无线数据收发模块100的无线充电线圈接收无线充电输入。充电管理模块1007为电池1008充电的同时,还可以通过电源管理模块1006为电子设备供电。The charging management module 1007 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 1007 may receive the charging input through the serial communication interface 1002, and may also receive the charging input through other power supply interfaces. In some embodiments of wireless charging, the charging management module 1007 may receive wireless charging input through the wireless charging coil of the wireless data transceiver module 100. While the charging management module 1007 charges the battery 1008, it can also supply power to the electronic device through the power management module 1006.
电源管理模块1006,用于连接电池1008、充电管理模块1007、处理器1001。电源管理模块1006接收电池1008和/或充电管理模块1007的输入,为无线数据收发模块100的各个部件供电。电源管理模块1006可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块1006可以设置于处理器1001中。在另一些实施例中,电源管理模块1006和充电管理模块1007可以设置于同一个器件中。The power management module 1006 is used to connect the battery 1008, the charging management module 1007, and the processor 1001. The power management module 1006 receives input from the battery 1008 and/or the charging management module 1007, and supplies power to the components of the wireless data transceiver module 100. The power management module 1006 can be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 1006 may be provided in the processor 1001. In other embodiments, the power management module 1006 and the charging management module 1007 may be provided in the same device.
需要说明的是,无线数据收发模块100可以是嵌入式设备、芯片系统或有图2中类似结构的设备。此外,图2中示出的组成结构并不构成对该无线数据收发模块100的限定,除图2所示部件之外,该无线数据收发模块100可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It should be noted that the wireless data transceiver module 100 may be an embedded device, a chip system, or a device with a similar structure in FIG. 2. In addition, the structure shown in FIG. 2 does not constitute a limitation on the wireless data transceiving module 100. In addition to the components shown in FIG. 2, the wireless data transceiving module 100 may include more or less components than shown in the figure. , Or combining some components, or different component arrangements.
在具体实现时,图1所示终端101可以具有图3所示部件。图3为本申请实施例提供的一种终端101的组成示意图,该终端101可以为终端或者终端内部的芯片或者片上系统。如图3所示,该终端101包括可以包括处理器110,传感器模块120、天线1、天线2、通用串行总线(universal serial bus,USB)接口130、充电管理模块140、电源管理模块141、电池142、移动通信模块150、无线通信单元160、音频模块170、扬声器1701、受话器1702、麦克风1703、耳机接口1704、外部存储器接口180、内部存储器181、按键190以及用户标识模块(subscriber identification module,SIM)卡接口191等。其中传感器模块120可以包括多种传感器,如:可以包括陀螺仪传感器1201、磁力计传感器1202、加速度传感器1203、重力计传感器1204等。In specific implementation, the terminal 101 shown in FIG. 1 may have the components shown in FIG. 3. FIG. 3 is a schematic diagram of the composition of a terminal 101 provided by an embodiment of the application. The terminal 101 may be a terminal or a chip or a system on a chip inside the terminal. As shown in FIG. 3, the terminal 101 may include a processor 110, a sensor module 120, an antenna 1, an antenna 2, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, The battery 142, the mobile communication module 150, the wireless communication unit 160, the audio module 170, the speaker 1701, the receiver 1702, the microphone 1703, the earphone interface 1704, the external memory interface 180, the internal memory 181, the buttons 190, and the subscriber identification module (subscriber identification module, SIM) card interface 191 and so on. The sensor module 120 may include a variety of sensors, for example, it may include a gyroscope sensor 1201, a magnetometer sensor 1202, an acceleration sensor 1203, a gravimeter sensor 1204, and so on.
其中,图3中的处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编 解码器,DSP,基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。Among them, the processor 110 in FIG. 3 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, and a graphics processing unit (GPU). ), image signal processor (image signal processor, ISP), controller, memory, video codec, DSP, baseband processor, and/or neural-network processing unit (NPU), etc. Among them, the different processing units may be independent devices or integrated in one or more processors.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用,避免重复存取,减少处理器110的等待时间,提高系统效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory to avoid repeated access, reduce the waiting time of the processor 110, and improve system efficiency.
在一些实施例中,处理器110可以包括一个或多个接口,如:可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或USB接口130等。In some embodiments, the processor 110 may include one or more interfaces, for example, may include an integrated circuit (I2C) interface, an integrated circuit audio (inter-integrated circuit sound, I2S) interface, pulse coding Modulation (pulse code modulation, PCM) interface, universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (general-purpose input/output) , GPIO) interface, subscriber identity module (SIM) interface, and/or USB interface 130, etc.
陀螺仪传感器1201可以用于确定终端101的运动姿态。在一些实施例中,可以通过陀螺仪传感器1201确定终端101围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器1201可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器1201检测终端101抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消终端101的抖动,实现防抖。陀螺仪传感器1201还可以用于导航,体感游戏场景。The gyro sensor 1201 may be used to determine the movement posture of the terminal 101. In some embodiments, the angular velocity of the terminal 101 around three axes (ie, x, y, and z axes) can be determined by the gyro sensor 1201. The gyro sensor 1201 can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 1201 detects the shake angle of the terminal 101, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the terminal 101 through a reverse movement to achieve anti-shake. The gyroscope sensor 1201 can also be used for navigation and somatosensory game scenes.
磁力计传感器1202包括霍尔传感器。终端101可以利用磁力计传感器1202检测翻盖皮套的开合。在一些实施例中,当终端101是翻盖机时,终端101可以根据磁力计传感器1202检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetometer sensor 1202 includes a Hall sensor. The terminal 101 can use the magnetometer sensor 1202 to detect the opening and closing of the flip holster. In some embodiments, when the terminal 101 is a flip machine, the terminal 101 can detect the opening and closing of the flip according to the magnetometer sensor 1202. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器1203可检测终端101在各个方向上(一般为三轴)加速度的大小。当终端101静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 1203 can detect the magnitude of the acceleration of the terminal 101 in various directions (generally three axes). When the terminal 101 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and used in applications such as horizontal and vertical screen switching, pedometers and so on.
重力计传感器1204采用弹性敏感元件制成悬臂式位移器,与采用弹性敏感元件制成的储能弹簧来驱动电触点,完成从重力变化到电信号的转换。通过重力传感器测量由于重力引起的加速度,可以计算出设备相对于水平面的倾斜角度,如:有重力感应的手机可以感知屏幕状态,并自动调节屏幕使其保持水平。The gravimeter sensor 1204 adopts elastic sensitive elements to make a cantilever type displacement device, and adopts an energy storage spring made of elastic sensitive elements to drive electrical contacts to complete the conversion from gravity changes to electrical signals. By measuring the acceleration due to gravity by the gravity sensor, the tilt angle of the device relative to the horizontal can be calculated. For example, a mobile phone with gravity sensor can sense the screen status and automatically adjust the screen to keep it level.
USB接口130可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为终端101充电,也可以用于终端101与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。还可以用于连接其他终端等。The USB interface 130 may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 130 can be used to connect a charger to charge the terminal 101, and can also be used to transfer data between the terminal 101 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. It can also be used to connect to other terminals.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过终端101的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive the wireless charging input through the wireless charging coil of the terminal 101. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为终端101的各个部件供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参 数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to various components of the terminal 101. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
终端101的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信单元160,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal 101 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication unit 160, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。终端101中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal 101 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在终端101上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the terminal 101. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器1701,受话器1702等)输出声音信号。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then passed to the application processor. The application processor outputs sound signals through audio equipment (not limited to the speaker 1701, the receiver 1702, etc.). In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信单元160可以提供应用在终端101上的包括WLAN(如Wi-Fi网络),BT,全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信单元160可以是集成至少一个通信处理模块的一个或多个器件。无线通信单元160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信单元160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication unit 160 can provide applications on the terminal 101 including WLAN (such as Wi-Fi network), BT, global navigation satellite system (GNSS), frequency modulation (FM), and short-range wireless communication technologies. (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication unit 160 may be one or more devices integrating at least one communication processing module. The wireless communication unit 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication unit 160 may also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
在一些实施例中,终端101的天线1和移动通信模块150耦合,天线2和无线通信单元160耦合,使得终端101可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(bei dou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系 统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the terminal 101 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication unit 160, so that the terminal 101 can communicate with the network and other devices through wireless communication technology. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system ( Quasi-zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
外部存储器接口180可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端101的存储能力。外部存储卡通过外部存储器接口180与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 180 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal 101. The external memory card communicates with the processor 110 through the external memory interface 180 to realize the data storage function. For example, save music, video and other files in an external memory card.
内部存储器181可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器181的指令,从而执行终端101的各种功能应用以及数据处理。内部存储器181可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端101使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器181可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 181 may be used to store computer executable program code, where the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the terminal 101 by running instructions stored in the internal memory 181. The internal memory 181 may include a program storage area and a data storage area. Among them, the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function. The data storage area can store data (such as audio data, phone book, etc.) created during the use of the terminal 101. In addition, the internal memory 181 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
终端101可以通过音频模块170,扬声器1701,受话器1702,麦克风1703,耳机接口1704以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal 101 can implement audio functions through the audio module 170, the speaker 1701, the receiver 1702, the microphone 1703, the earphone interface 1704, and the application processor. For example, music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
扬声器1701,也称“喇叭”,用于将音频电信号转换为声音信号。终端101可以通过扬声器1701收听音乐,或收听免提通话。The speaker 1701, also called a "speaker", is used to convert audio electrical signals into sound signals. The terminal 101 can listen to music through the speaker 1701, or listen to a hands-free call.
受话器1702,也称“听筒”,用于将音频电信号转换成声音信号。当终端101接听电话或语音信息时,可以通过将受话器1702靠近人耳接听语音。The receiver 1702, also called "earpiece", is used to convert audio electrical signals into sound signals. When the terminal 101 answers a call or voice message, it can receive the voice by bringing the receiver 1702 close to the human ear.
麦克风1703,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息或需要通过语音助手触发终端101执行某些功能时,用户可以通过人嘴靠近麦克风1703发声,将声音信号输入到麦克风1703。终端101可以设置至少一个麦克风1703。在另一些实施例中,终端101可以设置两个麦克风1703,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端101还可以设置三个,四个或更多麦克风1703,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。 Microphone 1703, also called "microphone", "microphone", is used to convert sound signals into electrical signals. When making a call or sending voice information or when the terminal 101 needs to be triggered to perform certain functions through a voice assistant, the user can approach the microphone 1703 through the mouth to make a sound, and input a sound signal into the microphone 1703. The terminal 101 may be provided with at least one microphone 1703. In other embodiments, the terminal 101 may be provided with two microphones 1703, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the terminal 101 may also be provided with three, four or more microphones 1703 to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
耳机接口1704用于连接有线耳机。耳机接口1704可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 1704 is used to connect wired earphones. The earphone interface 1704 may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端101可以接收按键190的输入,产生与终端101的用户设置以及功能控制有关的键信号输入。The button 190 includes a power button, a volume button, and so on. The button 190 may be a mechanical button. It can also be a touch button. The terminal 101 can receive the input of the key 190, and generate key signal input related to the user settings and function control of the terminal 101.
SIM卡接口191用于连接SIM卡。SIM卡可以通过插入SIM卡接口191,或从SIM卡接口191拔出,实现和终端101的接触和分离。终端101可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口191可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口191可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口191也可以兼容不同类型的SIM卡。SIM卡接口191也可以兼容外部存 储卡。终端101通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,终端101采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端101中,不能和终端101分离。The SIM card interface 191 is used to connect to a SIM card. The SIM card can be inserted into the SIM card interface 191 or pulled out from the SIM card interface 191 to achieve contact and separation with the terminal 101. The terminal 101 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 191 may support Nano SIM cards, Micro SIM cards, SIM cards, etc. The same SIM card interface 191 can insert multiple cards at the same time. The types of the multiple cards can be the same or different. The SIM card interface 191 can also be compatible with different types of SIM cards. The SIM card interface 191 can also be compatible with external memory cards. The terminal 101 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the terminal 101 uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the terminal 101 and cannot be separated from the terminal 101.
可以理解的是,终端101的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本实施例以分层架构的Android系统为例,示例性说明终端101的软件结构。此外,本实施例示意的结构并不构成对终端101的具体限定。在另一些实施例中,终端101可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图3示的部件可以以硬件,软件或软件和硬件的组合实现。It is understandable that the software system of the terminal 101 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In this embodiment, an Android system with a layered architecture is taken as an example to illustrate the software structure of the terminal 101 by way of example. In addition, the structure illustrated in this embodiment does not constitute a specific limitation on the terminal 101. In other embodiments, the terminal 101 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components. The components shown in Figure 3 can be implemented in hardware, software or a combination of software and hardware.
下面结合图1所示架构,以第一设备为图1所示跑步机,第一设备的数据为跑步机的数据,跑步机的数据可以包括跑步机的运动数据、跑步机的状态(如跑步机的硬件状态和/或软件状态)等,无线数据收发模块中用于存储可用于辨识跑步机的型号和/或品牌的信息的存储器为快闪存储器为例,对本申请实施例提供的通信方法进行描述。其中,下述方法中的无线数据收发模块可以具备图2所示部件,下述方法实施例的终端可以具备图3所示部件,不再赘述。此外,第一设备为其他健身器材时,可参照下述实施例所示方法将来自健身器材的数据通过无线通信方式即时转移到终端上。In the following, in conjunction with the architecture shown in Figure 1, the first device is the treadmill shown in Figure 1, and the data of the first device is the data of the treadmill. The data of the treadmill can include the exercise data of the treadmill and the state of the treadmill (such as running The hardware status and/or software status of the treadmill), etc., the memory used to store information that can be used to identify the model and/or brand of the treadmill in the wireless data transceiver module is flash memory as an example. The communication method provided in this embodiment of the application Describe. Wherein, the wireless data transceiving module in the following method may include the components shown in FIG. 2, and the terminal in the following method embodiment may include the components shown in FIG. 3, which will not be repeated. In addition, when the first device is other fitness equipment, the data from the fitness equipment can be instantly transferred to the terminal through wireless communication with reference to the method shown in the following embodiments.
图4为本申请实施例提供的一种通信方法,用于将用户使用跑步机所产生的数据传输到用户手持的终端上。如图4所示,该方法可以包括:Fig. 4 is a communication method provided by an embodiment of the application, which is used to transmit data generated by a user using a treadmill to a terminal held by the user. As shown in Figure 4, the method may include:
步骤401:将跑步机的C-SAFE端口与无线数据收发模块的串行通信接口连接起来。Step 401: Connect the C-SAFE port of the treadmill and the serial communication interface of the wireless data transceiver module.
其中,跑步机可以为图1中的第一设备102。该跑步机可以为健身房中的跑步机,也可以为家用跑步机,不予限制。The treadmill may be the first device 102 in FIG. 1. The treadmill can be a treadmill in a gym or a home treadmill, without limitation.
其中,无线数据收发模块可以为图1中的无线数据收发模块100。The wireless data transceiving module may be the wireless data transceiving module 100 in FIG. 1.
无线数据收发模块中有一块可擦写的快闪(flash)存储器(或者称为快闪存储空间),该快闪存储器可以用于存储可用于辨识跑步机的型号和/或品牌的信息,如:存储跑步机的型号和/或者品牌等。快闪存储器中的内容可以根据需求擦除,如:工作人员将与跑步机A连接的无线数据收发模块拆除,连接到跑步机B时,工作人员可以擦除无线数据收发模块的快闪存储器中可用于辨识跑步机A的型号和/或品牌的信息,将可用于辨识跑步机B的型号和/或品牌的信息写入到无线数据收发模块的快闪存储器中。There is a rewritable flash memory (or called flash storage space) in the wireless data transceiver module. The flash memory can be used to store information that can be used to identify the model and/or brand of the treadmill, such as : Store the model and/or brand of the treadmill. The content in the flash memory can be erased as required. For example, the staff removes the wireless data transceiver module connected to treadmill A, and when connected to treadmill B, the staff can erase the flash memory of the wireless data transceiver module Information that can be used to identify the model and/or brand of treadmill A, and the information that can be used to identify the model and/or brand of treadmill B is written into the flash memory of the wireless data transceiver module.
示例性的,工作人员可以将无线数据收发模块的串行通信接口通过线缆与跑步机的C-SAFE端口连接。Exemplarily, the worker can connect the serial communication interface of the wireless data transceiver module to the C-SAFE port of the treadmill through a cable.
步骤402:将可用于辨识跑步机的型号和/或品牌的信息写入到无线数据收发模块中。Step 402: Write information that can be used to identify the model and/or brand of the treadmill into the wireless data transceiver module.
示例性的,可以由工作人员通过终端或者其他方式将可用于辨识跑步机的品牌和/或型号的信息写入到无线数据收发模块的快闪存储器中,不予限制。Exemplarily, the information that can be used to identify the brand and/or model of the treadmill can be written into the flash memory of the wireless data transceiver module by the staff through a terminal or other means, without limitation.
例如,图5a为本申请实施例提供的一种将可用于辨识跑步机的型号和/或品牌的信息写入到无线数据收发模块中的方式的示意图,如图5a所示,无线数据收发模块的工作人员在向健身房推广该无线数据收发模块,将无线数据收发模块与跑步机的C-SAFE端口连接后,工作人员可以将自身手持的终端与无线数据收发模块建立无线连接,将可用于辨识跑步机的型号和/或品牌的信息输入到工作人员手持的终端,触发工作人员手持的终端通过无线信道将可用于辨识跑步机的品牌和/或型号的信息发送至无线数据收发模块,无线数据收发模块接收到可用于辨识跑步机的型号和/或品牌的信息,将接收到的可用于辨识跑步机的 型号和/或品牌的信息保存到无线数据收发模块的快闪存储器中。其中,工作人员可以通过人机交互界面将可用于辨识跑步机的型号和/或品牌的信息输入到工作人员手持的终端。For example, FIG. 5a is a schematic diagram of a manner of writing information that can be used to identify the model and/or brand of a treadmill into a wireless data transceiver module provided by an embodiment of the application. As shown in FIG. 5a, the wireless data transceiver module The staff in the gym promote the wireless data transceiver module, after connecting the wireless data transceiver module to the C-SAFE port of the treadmill, the staff can establish a wireless connection between their handheld terminal and the wireless data transceiver module, which will be used for identification The model and/or brand information of the treadmill is input to the terminal held by the staff, and the terminal held by the staff is triggered to send the information that can be used to identify the brand and/or model of the treadmill to the wireless data transceiver module through the wireless channel. The transceiver module receives information that can be used to identify the model and/or brand of the treadmill, and saves the received information that can be used to identify the model and/or brand of the treadmill to the flash memory of the wireless data transceiver module. Among them, the staff can input the information that can be used to identify the model and/or brand of the treadmill into the terminal held by the staff through the human-computer interaction interface.
又例如,图5b为本申请实施例提供的又一种将可用于辨识跑步机的型号和/或品牌的信息写入到无线数据收发模块中的方式的示意图,如图5b所示,在无线数据收发模块被用于透传终端待发送至跑步机的请求指令和来自跑步机的待被传送至终端的数据之前,工作人员可以将无线数据收发模块的串行通信接口与PC机的串行通信接口通过线缆连接起来,PC机把可用于识别跑步机的品牌和/或型号的信息携带在带有特殊的可明显区别于来自跑步机的C-SAFE端口的数据的标志的数据帧中,通过所述线缆发送至无线数据收发模块,无线数据收发模块接收到该数据帧后,解析该数据帧,获得可用于识别跑步机的品牌和/或型号的信息,并将可用于识别跑步机的品牌和/或型号的信息写入无线数据收发模块的快闪存储器中。其中,PC机还可以替换为其他计算机设备或者具有串行通信接口、且可以向无线数据收发模块写入可用于辨识跑步机的品牌和/或型号的信息的设备,不予限制。For another example, FIG. 5b is a schematic diagram of another manner of writing information that can be used to identify the model and/or brand of a treadmill into the wireless data transceiver module provided by an embodiment of the application, as shown in FIG. Before the data transceiver module is used to transparently transmit the request instructions from the terminal to the treadmill and the data from the treadmill to be transmitted to the terminal, the staff can connect the serial communication interface of the wireless data transceiver module with the serial communication interface of the PC. The communication interface is connected by a cable, and the PC carries the information that can be used to identify the brand and/or model of the treadmill in a data frame with a special logo that can be clearly distinguished from the data from the C-SAFE port of the treadmill , Send to the wireless data transceiving module through the cable, after receiving the data frame, the wireless data transceiving module parses the data frame to obtain information that can be used to identify the brand and/or model of the treadmill, which can be used to identify the running machine The brand and/or model information of the device is written into the flash memory of the wireless data transceiver module. Among them, the PC can also be replaced with other computer devices or devices that have a serial communication interface and can write information that can be used to identify the brand and/or model of the treadmill to the wireless data transceiver module, without limitation.
进一步的,以图5a所示方式为例,当无线数据收发模块将接收到可用于辨识跑步机的型号和/或品牌的信息成功写入到快闪存储器后,无线数据收发模块可以向工作人员手持的终端返回写入成功的响应,以便工作人员根据接收到的响应,获知可用于辨识跑步机的型号和/或品牌的信息已成功写入到无线数据收发模块中。Further, taking the method shown in Figure 5a as an example, when the wireless data transceiver module successfully writes the information that can be used to identify the model and/or brand of the treadmill into the flash memory, the wireless data transceiver module can report to the staff The handheld terminal returns a successful write response, so that the staff can learn that the information that can be used to identify the model and/or brand of the treadmill has been successfully written into the wireless data transceiver module based on the received response.
需要说明的是,若无线数据收发模块将接收到的可用于辨识跑步机的品牌和/或型号的信息保存到无线数据收发模块的快闪存储器时,发现快闪存储器中存储有其他健身器材的可识别其品牌和/或型号的信息,则擦除其他健身器材的可识别其品牌和/或型号的信息,仅存储可用于辨识跑步机的品牌和/或型号的信息。如此,可以保证通过当前无线数据收发模块中存储的可识别健身器材的品牌和/或型号的信息可以准确识别出当前无线数据收发模块所连接的健身器材的品牌和/或型号。It should be noted that if the wireless data transceiving module saves the received information that can be used to identify the brand and/or model of the treadmill to the flash memory of the wireless data transceiving module, it is found that other fitness equipment is stored in the flash memory. Information that can identify its brand and/or model will erase the information of other fitness equipment that can identify its brand and/or model, and only store information that can be used to identify the brand and/or model of the treadmill. In this way, it can be ensured that the brand and/or model of the fitness equipment to which the current wireless data transceiver module is connected can be accurately identified through the information that can identify the brand and/or model of the fitness equipment stored in the current wireless data transceiver module.
需要说明的是,步骤402可以在步骤401之后执行,也可以在步骤401之前执行,不予限制。即没有必要一定要在无线数据收发模块与跑步机连接之后才可以给无线数据收发模块写入可用于辨识跑步机的品牌和/或型号的信息,实际应用中,只要无线数据收发模块供电正常,就可以往无线数据收发模块中写入可用于辨识第一设备的品牌和/或型号的信息。It should be noted that step 402 can be performed after step 401 or before step 401, which is not limited. That is, it is not necessary to write information that can be used to identify the brand and/or model of the treadmill to the wireless data transceiver module after the wireless data transceiver module is connected to the treadmill. In actual applications, as long as the wireless data transceiver module is powered normally, Then, information that can be used to identify the brand and/or model of the first device can be written into the wireless data transceiver module.
步骤403:终端与无线数据收发模块建立无线连接。Step 403: The terminal establishes a wireless connection with the wireless data transceiver module.
其中,步骤403中的终端可以为使用该跑步机、准备在跑步机上跑步的用户手持的智能手机。需要说明的是,本申请实施例不限制使用该跑步机的用户,该用户可以为步骤402中所述的工作人员,该用户手持的智能手机可以从无线数据收发模块读取可用于辨识跑步机的品牌和/或型号的信息,根据该信息选择与跑步机匹配的数据请求与解析程序,根据选择的数据请求与解析程序向跑步机发送请求指令请求跑步机的数据,并解析来自跑步机的数据。该用户手持的智能手机如非步骤402中所述的用来将可用于辨识跑步机的型号和/或品牌的信息写入到无线数据收发模块的终端,可以不具备向无线数据收发模块写入可用于辨识跑步机的型号和/或品牌的信息的权限。Wherein, the terminal in step 403 may be a smart phone held by a user who uses the treadmill and prepares to run on the treadmill. It should be noted that the embodiment of the application does not limit the user who uses the treadmill. The user can be the staff member described in step 402. The smart phone held by the user can read from the wireless data transceiver module and can be used to identify the treadmill. According to the information of the brand and/or model of the treadmill, the data request and analysis program that matches the treadmill is selected, and the request instruction is sent to the treadmill according to the selected data request and analysis program to request the data of the treadmill, and the data from the treadmill is analyzed data. The smart phone held by the user is not used to write information that can be used to identify the model and/or brand of the treadmill to the terminal of the wireless data transceiver module as described in step 402, and may not be equipped to write to the wireless data transceiver module. The authority can be used to identify the model and/or brand of the treadmill.
示例性的,终端可以根据用户需求与无线数据收发模块建立无线连接,如:蓝牙连接。如:当用户需要获知跑步机上的跑步数据时,用户可以通过蓝牙将终端与无线数据收发模块建立连接。Exemplarily, the terminal may establish a wireless connection with the wireless data transceiver module according to user requirements, such as a Bluetooth connection. For example, when the user needs to know the running data on the treadmill, the user can establish a connection between the terminal and the wireless data transceiver module through Bluetooth.
至此,跑步机、无线数据收发模块以及终端之间建立如图5c所示的连接关系。So far, the connection relationship shown in Figure 5c is established between the treadmill, the wireless data transceiver module and the terminal.
如图5c所示,终端与无线数据收发模块建立蓝牙连接后,无线数据收发模块与终端之间存在第一通道和第二通道两个通道。第一通道可以为蓝牙通信中的特征(Characteristic)A,第二通道可以为蓝牙通信中的Characteristic B。示例性的,无线数据收发模块的生产制造商可以在蓝牙通信的一个服务(service)下开辟Characteristic A和Characteristic B两个Characteristic。Characteristic还可以命名为通道、信道或者通信通道。As shown in Figure 5c, after a Bluetooth connection is established between the terminal and the wireless data transceiver module, there are two channels, the first channel and the second channel, between the wireless data transceiver module and the terminal. The first channel may be Characteristic A in Bluetooth communication, and the second channel may be Characteristic B in Bluetooth communication. Exemplarily, the manufacturer of the wireless data transceiving module can develop two characteristics of Characteristic A and Characteristic B under one service of Bluetooth communication. Characteristic can also be named channel, channel or communication channel.
Characteristic A包括读(read)属性和写(write)属性,read属性可用于读取无线数据收发模块的快闪存储器中的内容,write属性则用于向无线数据收发模块的快闪存储器写入内容。Characteristic A includes read attributes and write attributes. The read attribute can be used to read the content in the flash memory of the wireless data transceiver module, and the write attribute is used to write content to the flash memory of the wireless data transceiver module. .
Characteristic B包括write属性和通知(notify)属性,当跑步机通过其C-SAFE端口向无线数据收发模块的串行通信接口发送数据时,无线数据收发模块便利用Characteristic B的notify属性将这些数据原封不动地发送给终端。当终端有请求指令需要发送给跑步机时,终端可先将请求指令经由Characteristic B的write属性发送给无线数据收发模块,无线数据收发模块再将这些数据透传至其串行通信接口上,进而通过线缆将这些数据传送至跑步机的C-SAFE端口。该无线数据收发模块本身不具备从来自跑步机的C-SAFE端口上的数据中解析出各项表征在跑步机上运动的运动者的运动情况的指标的具体数值的能力。Characteristic B includes the write attribute and notify attribute. When the treadmill sends data to the serial communication interface of the wireless data transceiver module through its C-SAFE port, the wireless data transceiver module conveniently uses the notify attribute of Characteristic B to keep these data intact Send it to the terminal without moving. When the terminal has a request command to be sent to the treadmill, the terminal can first send the request command to the wireless data transceiver module via the write attribute of Characteristic B, and the wireless data transceiver module transparently transmits the data to its serial communication interface, and then These data are transmitted to the C-SAFE port of the treadmill through the cable. The wireless data transceiver module itself does not have the ability to parse the specific values of various indicators that characterize the exercise status of the athletes exercising on the treadmill from the data on the C-SAFE port of the treadmill.
步骤404:终端读取无线数据收发模块的快闪存储器中可用于辨识跑步机的型号和/或品牌的信息。Step 404: The terminal reads the information that can be used to identify the model and/or brand of the treadmill in the flash memory of the wireless data transceiver module.
示例性的,终端可以通过第一通道读取无线数据收发模块的快闪存储器中可用于辨识跑步机的型号和/或品牌的信息。如:无线数据收发模块在上电后将快闪存储器中的可用于辨识跑步机的品牌和/或型号的信息放置于Characteristic A的read属性内,终端可以通过Characteristic A的read属性读取可用于辨识跑步机的品牌和/或型号的信息。Exemplarily, the terminal can read the information that can be used to identify the model and/or brand of the treadmill in the flash memory of the wireless data transceiver module through the first channel. For example, after the wireless data transceiver module is powered on, the information in the flash memory that can be used to identify the brand and/or model of the treadmill is placed in the read attribute of Characteristic A. The terminal can be used to read through the read attribute of Characteristic A. Information that identifies the brand and/or model of the treadmill.
需要说明的是,步骤402可以在步骤403之前执行,也可以在步骤404之后执行,不予限制。当步骤402在步骤404之后执行时,无线数据收发模块的快闪存储器中可能不存在可用于辨识跑步机的型号和/或品牌的信息,此时,终端通过第一通道读取可用于辨识跑步机的型号和/或品牌的信息失败,工作人员执行步骤402,将可用于辨识跑步机的型号和/或品牌的信息写入无线数据收发模块,之后,终端即可从无线数据收发模块读取可用于辨识跑步机的品牌和/或型号的信息。其中,当工作人员与准备在跑步机跑步的用户为同一人,且通过第一通道读取可用于辨识跑步机的型号和/或品牌的信息的终端与将可用于辨识跑步机的型号和/或品牌的信息写入无线数据收发模块的终端为同一终端时,该终端可以在通过第一通道读取可用于辨识跑步机的型号和/或品牌的信息失败后,将可用于辨识跑步机的型号和/或品牌的信息写入无线数据收发模块。It should be noted that step 402 can be performed before step 403 or after step 404, which is not limited. When step 402 is executed after step 404, the flash memory of the wireless data transceiving module may not contain information that can be used to identify the model and/or brand of the treadmill. At this time, the terminal reads through the first channel and can be used to identify the running machine. The information about the model and/or brand of the treadmill fails, and the staff executes step 402 to write the information that can be used to identify the model and/or brand of the treadmill into the wireless data transceiver module. After that, the terminal can read from the wireless data transceiver module Information that can be used to identify the brand and/or model of the treadmill. Among them, when the staff and the user who is going to run on the treadmill are the same person, and the terminal that reads the information that can be used to identify the model and/or brand of the treadmill through the first channel and the terminal that can be used to identify the model and/or treadmill Or when the brand information is written into the same terminal as the terminal of the wireless data transceiver module, the terminal can be used to identify the treadmill after failing to read the information that can be used to identify the treadmill model and/or brand through the first channel. The model and/or brand information is written into the wireless data transceiver module.
步骤405:终端根据可用于辨识跑步机的型号和/或品牌的信息,选择适用于该跑步机的数据请求与解析程序。Step 405: The terminal selects a data request and analysis program suitable for the treadmill according to the information that can be used to identify the model and/or brand of the treadmill.
其中,终端可以具备多套不同的数据请求与解析程序,且数据请求与解析程序与可用于辨识健身器材的型号和/或品牌的信息间具有对应关系,在可供选择的范围内,各品牌和/或型号的健身器材均有唯一一套与之对应的数据请求与解析程序。Among them, the terminal may have multiple sets of different data request and analysis procedures, and the data request and analysis procedures have a corresponding relationship with the information that can be used to identify the model and/or brand of fitness equipment. Within the range of options, each brand And/or models of fitness equipment have a unique set of corresponding data request and analysis procedures.
其中,数据请求与解析程序与可用于辨识健身器材的品牌和/或型号的信息间具有的对应关系可以由终端维护。后续,随着市面上健身器材的品类的不断更新,终端可通过如软件升级等手段,不断添加新的适用于新型健身器材的数据请求与解析程序,并刷新所述对 应关系,尽可能保证终端具有与市面上出现的类型的健身器材对应的数据请求与解析程序。The corresponding relationship between the data request and analysis program and the information that can be used to identify the brand and/or model of the fitness equipment can be maintained by the terminal. In the future, as the categories of fitness equipment on the market continue to be updated, the terminal can continuously add new data request and analysis programs suitable for new fitness equipment through means such as software upgrades, and refresh the corresponding relationship to ensure the terminal as much as possible It has data request and analysis programs corresponding to the types of fitness equipment on the market.
示例性,终端根据可用于辨识跑步机的型号和/或品牌的信息,选择适用于该跑步机的数据请求与解析程序可以包括:终端以可用于辨识跑步机的型号和/或品牌的信息为索引,查询可用于辨识健身器材的型号和/或品牌的信息与数据请求与解析程序间的对应关系,找到与可用于辨识跑步机的型号和/或品牌的信息对应的数据请求与解析程序,将查找到的数据请求与解析程序作为适用于该跑步机的数据请求与解析程序。Exemplarily, the terminal selecting the data request and analysis program suitable for the treadmill according to the information that can be used to identify the model and/or brand of the treadmill may include: the terminal uses the information that can be used to identify the model and/or brand of the treadmill as Index, query the correspondence between information that can be used to identify the model and/or brand of fitness equipment and the data request and analysis program, and find the data request and analysis program corresponding to the information that can be used to identify the model and/or brand of the treadmill, The data request and analysis program found is regarded as the data request and analysis program suitable for the treadmill.
例如,下表一示出了数据请求与解析程序与可用于辨识健身器材的型号和/或品牌的信息间的对应关系,如表一所示,跑步机s370对应数据请求与解析程序1,动感单车TH-9620对应数据请求与解析程序2,跑步机t900对应数据请求与解析程序3。假设用户使用跑步机s370进行跑步,跑步机s370的C-SAFE端口与无线数据收发模块的串行通信接口连接,且无线数据收发模块中存储有可用于辨识跑步机s370的品牌和/或型号的信息,当用户需要获取跑步机上的数据时,用户将自身手机与无线数据收发模块通过蓝牙连接,手机可从无线数据收发模块中读取可用于辨识跑步机s370的品牌和/或型号的信息,以该信息为索引查询表一,找到与该信息对应的数据请求与解析程序1,根据数据请求与解析程序1经由无线数据收发模块向跑步机发送请求指令请求跑步机的数据、接收来自跑步机的数据并解析。For example, Table 1 below shows the correspondence between the data request and analysis program and the information that can be used to identify the model and/or brand of fitness equipment. As shown in Table 1, the treadmill s370 corresponds to the data request and analysis program 1. Dynamic The bicycle TH-9620 corresponds to data request and analysis program 2, and the treadmill t900 corresponds to data request and analysis program 3. Suppose that the user uses the treadmill s370 for running, the C-SAFE port of the treadmill s370 is connected to the serial communication interface of the wireless data transceiver module, and the wireless data transceiver module stores information that can be used to identify the brand and/or model of the treadmill s370 Information, when the user needs to obtain the data on the treadmill, the user connects his mobile phone to the wireless data transceiver module through Bluetooth, and the mobile phone can read the information that can be used to identify the brand and/or model of the treadmill s370 from the wireless data transceiver module. Use this information as an index to look up table 1, find the data request and analysis program 1 corresponding to the information, and send request instructions to the treadmill via the wireless data transceiver module according to the data request and analysis program 1 to request data from the treadmill and receive data from the treadmill And parse the data.
表一Table I
健身器材Fitness Equipment 数据请求与解析程序Data request and analysis program
跑步机s370Treadmill s370 数据请求与解析程序1Data request and analysis program 1
动感单车TH-9620Spinning bike TH-9620 数据请求与解析程序2Data request and analysis program 2
跑步机t900Treadmill t900 数据请求与解析程序3Data request and analysis program 3
步骤406:终端根据选择的数据请求与解析程序,通过无线数据收发模块向跑步机发送请求指令,接收来自跑步机的数据并解析。Step 406: The terminal sends a request instruction to the treadmill through the wireless data transceiver module according to the selected data request and analysis program, receives the data from the treadmill, and analyzes it.
示例性的,终端根据选择的数据请求与解析程序,向无线数据收发模块发送请求指令,该请求指令用于请求跑步机的数据或者用于请求更改跑步机的状态(如跑步机的硬件状态和/或软件状态等);Exemplarily, the terminal sends a request instruction to the wireless data transceiver module according to the selected data request and analysis program. The request instruction is used to request data from the treadmill or to request to change the status of the treadmill (such as the hardware status of the treadmill and / Or software status, etc.);
无线数据收发模块接收请求指令,向跑步机的C-SAFE端口发送请求指令;The wireless data transceiver module receives the request instruction and sends the request instruction to the C-SAFE port of the treadmill;
跑步机通过C-SAFE端口接收请求指令,根据请求指令,通过C-SAFE端口向无线数据收发模块发送跑步机的数据;The treadmill receives the request instruction through the C-SAFE port, and according to the request instruction, sends the treadmill data to the wireless data transceiver module through the C-SAFE port;
无线数据收发模块接收来自跑步机的数据,向终端发送来自跑步机的数据;The wireless data transceiver module receives the data from the treadmill and sends the data from the treadmill to the terminal;
终端根据选择的数据请求与解析程序,解析接收到的来自跑步机的数据。The terminal analyzes the received data from the treadmill according to the selected data request and analysis program.
其中,终端可以通过第二通道向无线数据收发模块发送请求指令,并通过第二通道向终端发送来自跑步机的数据。Wherein, the terminal may send a request instruction to the wireless data transceiver module through the second channel, and send data from the treadmill to the terminal through the second channel.
进一步的,终端可以从来自跑步机的数据中解析出多项表征在跑步机上运动的运动者的运动情况的指标的具体数值,并对这些数值进行记录、存储和统计。Further, the terminal can parse out the specific values of multiple indicators that characterize the exercise status of the athletes exercising on the treadmill from the data from the treadmill, and record, store and count these values.
基于图4所示方法,可以设计一无线数据收发模块,该无线数据收发模块的一端与跑步机的C-SAFE端口有线连接,另一端与终端无线连接,在无线数据收发模块在被用于透传终端待发送至跑步机的请求指令和来自跑步机的待被传送至终端的数据之前,将可用于辨识跑步机的型号和/或品牌的信息写入到无线数据收发模块中,后续,当无线数据收发模 块与终端建立无线连接后,终端从无线数据收发模块读取可用于辨识跑步机的型号和/或品牌的信息,依据可用于辨识跑步机的型号和/或品牌的信息选择与跑步机适配的数据请求与解析程序,根据选择的数据请求与解析程序通过无线数据收发模块向跑步机发送请求指令请求跑步机的数据、接收来自跑步机的数据并解析。如此,解决跑步机的数据无法通过无线通信方式即时向终端转移的痛点,实现运动健康场景的智慧化。Based on the method shown in Figure 4, a wireless data transceiver module can be designed. One end of the wireless data transceiver module is wiredly connected to the C-SAFE port of the treadmill, and the other end is wirelessly connected to the terminal. The wireless data transceiver module is used for transparent Before transmitting the request instruction to be sent from the terminal to the treadmill and the data from the treadmill to be transmitted to the terminal, write the information that can be used to identify the model and/or brand of the treadmill into the wireless data transceiver module, and subsequently, when After the wireless data transceiver module establishes a wireless connection with the terminal, the terminal reads the information that can be used to identify the model and/or brand of the treadmill from the wireless data transceiver module, and selects and runs based on the information that can be used to identify the model and/or brand of the treadmill The machine-adapted data request and analysis program, according to the selected data request and analysis program, sends request instructions to the treadmill through the wireless data transceiver module to request the data of the treadmill, receives the data from the treadmill, and analyzes it. In this way, the pain point that the data of the treadmill cannot be instantly transferred to the terminal through wireless communication is solved, and the intelligence of the sports health scene is realized.
在图4所示方法的第一个场景中,一种示例中,终端与无线数据收发模块建立蓝牙连接的方式可参照现有技术,不予赘述。如:用户同时打开终端上以及无线数据收发模块的蓝牙开关,触发终端、无线数据收发模块开启蓝牙功能,自动搜索对方,建立蓝牙连接。In the first scenario of the method shown in FIG. 4, in an example, the manner in which the terminal establishes a Bluetooth connection with the wireless data transceiver module can refer to the prior art, and will not be repeated. For example, the user turns on the Bluetooth switch on the terminal and the wireless data transceiver module at the same time, triggers the terminal and the wireless data transceiver module to turn on the Bluetooth function, automatically searches for each other, and establishes a Bluetooth connection.
又一种示例中,跑步机的面板上设置一射频卡,该射频卡载有无线数据收发模块的信息,无线数据收发模块的信息可以包括但不限于无线数据收发模块的蓝牙地址或无线数据收发模块的蓝牙广播名信息。终端与无线数据收发模块建立蓝牙连接可以包括:In another example, a radio frequency card is provided on the panel of the treadmill, and the radio frequency card carries information of the wireless data transceiver module. The information of the wireless data transceiver module may include, but is not limited to, the Bluetooth address of the wireless data transceiver module or the wireless data transceiver Bluetooth broadcast name information of the module. Establishing a Bluetooth connection between the terminal and the wireless data transceiver module may include:
用户触发终端读取该射频卡中的内容,进而使终端获知无线数据收发模块的信息,终端根据无线数据收发模块的信息向无线数据收发模块发送蓝牙连接请求,请求与无线数据收发模块建立蓝牙连接;The user triggers the terminal to read the content of the radio frequency card, so that the terminal learns the information of the wireless data transceiver module, and the terminal sends a Bluetooth connection request to the wireless data transceiver module according to the information of the wireless data transceiver module, requesting to establish a Bluetooth connection with the wireless data transceiver module ;
无线数据收发模块接收到蓝牙连接请求,与终端建立蓝牙连接。The wireless data transceiver module receives the Bluetooth connection request and establishes a Bluetooth connection with the terminal.
如此,基于图4所示方法的第一个场景,终端可以与参照现有技术与无线数据接收模块建立蓝牙连接,也可以通过读取与无线数据收发模块对应的射频卡,获知无线数据收发模块的信息后,与无线数据收发模块建立蓝牙连接,简单易行,且实现方式灵活多样。In this way, based on the first scenario of the method shown in Figure 4, the terminal can establish a Bluetooth connection with the wireless data receiving module with reference to the prior art, or it can learn about the wireless data receiving module by reading the radio frequency card corresponding to the wireless data receiving module After the information, it is simple and easy to establish a Bluetooth connection with the wireless data transceiver module, and the implementation methods are flexible and diverse.
在图4所示方法的第二个场景中,本申请实施例不限定终端与无线数据收发模块之间建立的通道的形式,除上述终端与无线数据收发模块之间建立第一通道与第二通道之外,可替换的,如图6所示,终端可以与无线数据收发模块之间仅建立一个通道,该通道既可以用于终端读取快闪存储器中可用于辨识跑步机的型号和/或品牌的信息,又可以用于将来自跑步机C-SAFE端口上的数据转发给终端或者将来自终端的请求指令转发至跑步机的C-SAFE端口。In the second scenario of the method shown in FIG. 4, the embodiment of the present application does not limit the form of the channel established between the terminal and the wireless data transceiver module, except that the first channel and the second channel are established between the terminal and the wireless data transceiver module. In addition to the channel, alternatively, as shown in Figure 6, only one channel can be established between the terminal and the wireless data transceiver module. This channel can be used for the terminal to read the flash memory that can be used to identify the treadmill model and/ Or brand information can be used to forward data from the C-SAFE port of the treadmill to the terminal or forward request instructions from the terminal to the C-SAFE port of the treadmill.
其中,终端与无线数据收发模块之间建立的该通道可以称为第三通道。Among them, the channel established between the terminal and the wireless data transceiver module may be referred to as the third channel.
示例性的,可以在蓝牙通信的service下开辟一个Characteristic。该Characteristic具备read属性、write属性以及notify属性。read属性可用于读取无线数据收发模块的快闪存储器中的内容。当跑步机通过其C-SAFE端口向无线数据收发模块的串行通信接口发送数据时,无线数据收发模块便利用Characteristic的notify属性将这些数据原封不动地发送给终端。当终端有请求指令需要发送给跑步机时,终端可先将请求指令经由Characteristic的write属性发送给无线数据收发模块,无线数据收发模块再将这些数据透传至其串行通信接口上,进而通过线缆将这些数据传送至跑步机的C-SAFE端口。Exemplarily, a Characteristic can be developed under the service of Bluetooth communication. The Characteristic has read attributes, write attributes and notify attributes. The read attribute can be used to read the content in the flash memory of the wireless data transceiver module. When the treadmill sends data to the serial communication interface of the wireless data transceiver module through its C-SAFE port, the wireless data transceiver module conveniently uses the Characteristic notify attribute to send the data to the terminal intact. When the terminal has a request command that needs to be sent to the treadmill, the terminal can first send the request command to the wireless data transceiver module via the Write attribute of Characteristic, and the wireless data transceiver module transparently transmits these data to its serial communication interface, and then through The cable transmits these data to the C-SAFE port of the treadmill.
具体的,当用户通过同一终端向无线数据收发模块写入可用于辨识跑步机的品牌和/或型号的信息以及经由无线数据收发模块从跑步机获取跑步机的数据时,上述Characteristic的write属性还用于向无线数据收发模块写入可用于辨识跑步机的型号和/或品牌的信息,即Characteristic的write属性具有向无线数据收发模块写入可用于辨识跑步机的型号和/或品牌的信息以及向无线数据收发模块发送请求指令的功能。Specifically, when the user writes information that can be used to identify the brand and/or model of the treadmill to the wireless data transceiver module through the same terminal, and obtains the treadmill data from the treadmill via the wireless data transceiver module, the Write attribute of the Characteristic is also Used to write information that can be used to identify the model and/or brand of the treadmill to the wireless data transceiver module, that is, the Characteristic write attribute has the ability to write information that can be used to identify the model and/or brand of the treadmill to the wireless data transceiver module and The function of sending request instructions to the wireless data transceiver module.
为了区分通过Characteristic的write属性向无线数据收发模块写入的是可用于辨识跑步机的型号和/或品牌的信息还是用于请求跑步机的数据的请求指令,一种示例中,将携带 可用于辨识跑步机的型号和/或品牌的信息的数据帧的格式与携带请求指令的数据帧的格式设计为不同格式。In order to distinguish whether the information written to the wireless data transceiver module through the Write attribute of Characteristic can be used to identify the model and/or brand of the treadmill or the request instruction used to request the data of the treadmill, in one example, it will carry The format of the data frame for identifying the model and/or brand of the treadmill is designed to be different from the format of the data frame carrying the request instruction.
例如,将可用于辨识跑步机的型号和/或品牌的信息携带在带有标志X的数据帧中,将请求指令携带在带有标志Y的数据帧中,当无线数据收发模块接收到带有标志X的数据帧时,解析该数据帧,将数据帧中可用于辨识跑步机的型号和/或品牌的信息写入到快闪存储器中,当无线数据收发模块接收到带有标志Y的数据帧时,无线数据收发模块将数据帧中的请求指令通过其串行通信接口发送至跑步机的C-SAFE端口。For example, the information that can be used to identify the model and/or brand of the treadmill is carried in a data frame with the mark X, and the request command is carried in the data frame with the mark Y. When the wireless data transceiver module receives When marking the data frame of X, analyze the data frame and write the information that can be used to identify the model and/or brand of the treadmill in the data frame into the flash memory. When the wireless data transceiver module receives the data with the mark Y During the frame, the wireless data transceiver module sends the request command in the data frame to the C-SAFE port of the treadmill through its serial communication interface.
又例如,携带可用于辨识跑步机的型号和/或品牌的信息的数据帧长度与携带请求指令的数据帧的长度不同,如:携带可用于辨识跑步机的型号和/或品牌的信息的数据帧占用m个字节,携带请求指令的数据帧的长度占用n个字节,当无线数据收发模块通过Characteristic的write属性接收到占用m个字节的数据帧时,解析该数据帧,将数据帧中可用于辨识跑步机的型号和/或品牌的信息写入到快闪存储器中,当无线数据收发模块通过Characteristic的write属性接收到占用n个字节的数据帧时,无线数据收发模块将数据帧中的请求指令通过其串行通信接口发送至跑步机的C-SAFE端口。For another example, the length of the data frame that carries information that can be used to identify the model and/or brand of the treadmill is different from the length of the data frame that carries the request instruction, such as: data that carries information that can be used to identify the model and/or brand of the treadmill The frame occupies m bytes, and the length of the data frame carrying the request command occupies n bytes. When the wireless data transceiver module receives a data frame occupying m bytes through the Characteristic write attribute, the data frame is parsed and the data The information in the frame that can be used to identify the model and/or brand of the treadmill is written to the flash memory. When the wireless data transceiver module receives a data frame occupying n bytes through the Characteristic write attribute, the wireless data transceiver module will The request command in the data frame is sent to the C-SAFE port of the treadmill through its serial communication interface.
上述仅以终端与无线数据收发模块之间建立蓝牙连接为例进行描述,在图4所示方法的第三个场景中,除蓝牙连接之外,终端与无线数据收发模块还可以通过其他方式建立无线连接,如图7所示,终端还可以与无线数据收发模块建立wifi连接。The above description only takes the establishment of a Bluetooth connection between the terminal and the wireless data transceiver module as an example. In the third scenario of the method shown in Figure 4, in addition to the Bluetooth connection, the terminal and the wireless data transceiver module can also be established in other ways Wireless connection, as shown in Figure 7, the terminal can also establish a wifi connection with the wireless data transceiver module.
其中,终端与无线数据收发模块建立wifi连接的方式可参照现有技术,不予赘述。Among them, the manner of establishing a wifi connection between the terminal and the wireless data transceiving module can refer to the prior art, and will not be repeated.
在图7所示的连接关系图中,终端与无线数据收发模块wifi连接后,终端与无线数据收发模块之间可以存在两个通道,一个通道如上述第一通道类似,用于终端读取快闪存储器中可用于辨识跑步机的型号和/或品牌的信息,或者,将可用于辨识跑步机的型号和/或品牌的信息写入快闪存储器中;另一个通道与上述第二通道类似,用于将来自跑步机C-SAFE端口上的数据转发给终端或者将来自终端的请求指令转发至跑步机的C-SAFE端口。In the connection diagram shown in Figure 7, after the terminal is connected to the wireless data transceiver module wifi, there can be two channels between the terminal and the wireless data transceiver module. One channel is similar to the first channel mentioned above and is used for fast terminal reading. The flash memory can be used to identify the model and/or brand information of the treadmill, or the information that can be used to identify the treadmill model and/or brand is written into the flash memory; the other channel is similar to the second channel mentioned above, It is used to forward data from the C-SAFE port of the treadmill to the terminal or forward the request command from the terminal to the C-SAFE port of the treadmill.
示例性的,可以在wifi连接的服务端口(server socket)下开辟两个逻辑端口作为终端与无线数据收发模块之间的两个通道。例如,如图7所示,终端与无线数据收发模块之间的两个通道可以为逻辑端口A和逻辑端口B。逻辑端口A用于终端读取快闪存储器中可用于辨识跑步机的型号和/或品牌的信息,或者,将可用于辨识跑步机的型号和/或品牌的信息写入快闪存储器中;逻辑端口B用于将来自跑步机C-SAFE端口上的数据转发给终端或者将来自终端的请求指令转发至跑步机的C-SAFE端口。Exemplarily, two logical ports can be opened under the service port (server socket) of the Wi-Fi connection as two channels between the terminal and the wireless data transceiver module. For example, as shown in Figure 7, the two channels between the terminal and the wireless data transceiver module may be logical port A and logical port B. Logic port A is used for the terminal to read information in the flash memory that can be used to identify the model and/or brand of the treadmill, or to write information that can be used to identify the model and/or brand of the treadmill into the flash memory; logic Port B is used to forward the data from the C-SAFE port of the treadmill to the terminal or forward the request command from the terminal to the C-SAFE port of the treadmill.
与图4所示方法的第二个场景类似,在图4所示方法的第三个场景中,在终端与无线数据收发模块建立wifi连接的情况下,可替换的,如图8所示,终端可以与无线数据收发模块之间仅建立一个通道,该通道既可以用于终端读取快闪存储器中可用于辨识跑步机的型号和/或品牌的信息或者将可用于辨识跑步机的型号和/或品牌的信息写入快闪存储器中,又可以用于将来自跑步机C-SAFE端口上的数据转发给终端或者将来自终端的请求指令转发至跑步机的C-SAFE端口。Similar to the second scenario of the method shown in Figure 4, in the third scenario of the method shown in Figure 4, when the terminal establishes a wifi connection with the wireless data transceiver module, it can be replaced, as shown in Figure 8, Only one channel can be established between the terminal and the wireless data transceiver module. This channel can be used for the terminal to read the information in the flash memory that can be used to identify the model and/or brand of the treadmill, or it can be used to identify the model and/or brand of the treadmill. /Or the brand information is written into the flash memory, which can be used to forward the data from the C-SAFE port of the treadmill to the terminal or forward the request command from the terminal to the C-SAFE port of the treadmill.
例如,如图8所示,可以在wifi连接的server socket下开辟一个逻辑端口,将该逻辑端口作为终端与无线数据收发模块之间仅存的一个通道,该逻辑端口既可以用于终端读取快闪存储器中可用于辨识跑步机的型号和/或品牌的信息,或者,将可用于辨识跑步机的型 号和/或品牌的信息写入快闪存储器中,又可以用于将来自跑步机C-SAFE端口上的数据转发给终端或者将来自终端的请求指令转发至跑步机的C-SAFE端口。For example, as shown in Figure 8, a logical port can be opened under the server socket of the Wi-Fi connection, and the logical port can be used as the only channel between the terminal and the wireless data transceiver module. The logical port can be used for terminal reading The flash memory can be used to identify the model and/or brand information of the treadmill, or the information that can be used to identify the treadmill model and/or brand is written into the flash memory, which can also be used to transfer information from the treadmill C -The data on the SAFE port is forwarded to the terminal or the request command from the terminal is forwarded to the C-SAFE port of the treadmill.
在图8所示的逻辑端口上,与图4所示方法的第二个场景类似,为了区分通过逻辑端口向无线数据收发模块写入的是可用于辨识跑步机的型号和/或品牌的信息还是用于请求跑步机的数据的请求指令,以及区分无线数据收发模块通过逻辑端口向终端发送的是快闪存储器中可用于辨识跑步机的品牌和/或型号的信息还是来自跑步机C-SAFE端口上的数据,一种示例中,将携带来自终端的可用于辨识跑步机的型号和/或品牌的信息的数据帧的格式与携带来自终端的请求指令的数据帧的格式设计为不同格式,以及将携带来自无线数据收发模块的快闪存储器中可用于辨识跑步机的品牌和/或型号的信息的数据帧的格式与携带来自跑步机C-SAFE端口并待通过无线数据收发模块发往终端的数据的数据帧的格式设计为不同格式。这种示例可以参照图4所示的第二个场景中所述,不再赘述。On the logical port shown in Figure 8, similar to the second scenario of the method shown in Figure 4, in order to distinguish that what is written to the wireless data transceiver module through the logical port is information that can be used to identify the model and/or brand of the treadmill It is also a request instruction used to request the data of the treadmill, and to distinguish whether the wireless data transceiver module sends the information in the flash memory that can be used to identify the brand and/or model of the treadmill to the terminal through the logical port or comes from the treadmill C-SAFE For the data on the port, in an example, the format of the data frame carrying the information from the terminal that can be used to identify the treadmill model and/or brand and the format of the data frame carrying the request command from the terminal are designed to be different. And the format of the data frame carrying the information that can be used to identify the brand and/or model of the treadmill from the flash memory of the wireless data transceiver module and the C-SAFE port of the treadmill to be sent to the terminal through the wireless data transceiver module The format of the data frame of the data is designed into different formats. For this example, refer to the second scenario shown in FIG. 4, and will not be repeated.
又一种示例中,将来自无线数据收发模块的快闪存储器中可用于辨识跑步机的品牌和/或型号的信息、来自跑步机C-SAFE端口并待通过无线数据收发模块发往终端的数据按照时序先后发送给终端。如:将来自无线数据收发模块的快闪存储器中可用于辨识跑步机的品牌和/或型号的信息携带在首帧数据中,将来自跑步机C-SAFE端口并待通过无线数据收发模块发往终端的数据携带在首帧之后的其他数据帧中,当终端收到来自无线数据收发模块的首帧数据时,解析该数据帧,获得可用于辨识跑步机的品牌和/或型号的信息,当终端收到来自无线数据收发模块的首帧之后的其他数据帧时,解析这些数据帧,获得来自跑步机C-SAFE端口并待通过无线数据收发模块发往终端的数据。具体的,这两种示例可以参照图4所示的第二个场景中所述,不再赘述。In another example, the information from the flash memory of the wireless data transceiver module that can be used to identify the brand and/or model of the treadmill, and the data from the C-SAFE port of the treadmill to be sent to the terminal through the wireless data transceiver module It is sent to the terminal in sequence. For example, the information that can be used to identify the brand and/or model of the treadmill from the flash memory of the wireless data transceiver module is carried in the first frame of data, and the information from the C-SAFE port of the treadmill is to be sent through the wireless data transceiver module The data of the terminal is carried in other data frames after the first frame. When the terminal receives the first frame of data from the wireless data transceiver module, it parses the data frame to obtain information that can be used to identify the brand and/or model of the treadmill. When the terminal receives other data frames after the first frame from the wireless data transceiver module, it parses these data frames to obtain data from the treadmill C-SAFE port and to be sent to the terminal through the wireless data transceiver module. Specifically, these two examples can be referred to as described in the second scenario shown in FIG. 4, and will not be repeated.
上述主要以无线数据收发模块、终端交互的角度对本申请实施例提供的方案进行了介绍。可以理解的是,无线数据收发模块、终端为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solution provided by the embodiment of the present application from the perspective of the interaction between the wireless data transceiver module and the terminal. It can be understood that, in order to implement the above-mentioned functions, the wireless data transceiver module and the terminal include hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that in combination with the algorithm steps of the examples described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法示例对无线数据收发模块、终端进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiments of the application can divide the wireless data transceiver module and the terminal into functional modules according to the above method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. . The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
图9为本申请实施例提供的一种通信装置90的组成示意图,该通信装置90可以为无线数据收发模块或者无线数据收发模块中的芯片或者片上系统。如图9所示,该通信装置90可以包括:第一通信单元901、第二通信单元902、处理单元903以及存储单元904;FIG. 9 is a schematic diagram of the composition of a communication device 90 provided by an embodiment of the application. The communication device 90 may be a wireless data transceiver module or a chip or a system on a chip in a wireless data transceiver module. As shown in FIG. 9, the communication device 90 may include: a first communication unit 901, a second communication unit 902, a processing unit 903, and a storage unit 904;
第一通信单元901用于与第一设备的第一端口通过线缆连接;第一通信单元901无法从第一设备的第一端口获取可用于辨识第一设备的型号和/或品牌的信息。第二通信单元902用于与终端通过无线方式连接。The first communication unit 901 is configured to connect to the first port of the first device through a cable; the first communication unit 901 cannot obtain information that can be used to identify the model and/or brand of the first device from the first port of the first device. The second communication unit 902 is used to connect with the terminal in a wireless manner.
存储单元904,用于保存可用于辨识第一设备的型号和/或品牌的信息。例如,存储单 元904可以支持通信装置90执行步骤402。The storage unit 904 is configured to store information that can be used to identify the model and/or brand of the first device. For example, the storage unit 904 may support the communication device 90 to perform step 402.
当第二通信单元902与终端无线连接时,处理单元903,用于从存储单元904读取可用于辨识第一设备的型号和/或品牌的信息,并通过第二通信单元902,向终端发送可用于辨识第一设备的型号和/或品牌的信息。例如,处理单元903可以支持通信装置90执行步骤404。When the second communication unit 902 is wirelessly connected to the terminal, the processing unit 903 is configured to read the information that can be used to identify the model and/or brand of the first device from the storage unit 904, and send it to the terminal through the second communication unit 902 Information that can be used to identify the model and/or brand of the first device. For example, the processing unit 903 may support the communication device 90 to perform step 404.
处理单元903,还用于通过第一通信单元901从第一设备的第一端口获取来自第一设备的数据,并通过第二通信单元902向终端发送来自第一设备的数据。例如,处理单元903可以支持通信装置90执行步骤406。The processing unit 903 is further configured to obtain data from the first device from the first port of the first device through the first communication unit 901, and send the data from the first device to the terminal through the second communication unit 902. For example, the processing unit 903 may support the communication device 90 to perform step 406.
具体的,上述图4所示方法实施例中涉及无线数据收发模块的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。该可能的设计中所述的通信装置90用于执行图4所示通信方法中无线数据收发模块的功能,因此可以达到与上述通信方法相同的效果。Specifically, all relevant content related to each step of the wireless data transceiver module in the method embodiment shown in FIG. 4 can be cited in the functional description of the corresponding functional module, and will not be repeated here. The communication device 90 described in this possible design is used to perform the function of the wireless data transceiver module in the communication method shown in FIG. 4, and therefore can achieve the same effect as the above-mentioned communication method.
需要说明的是,作为再一种可实现方式,图9所示通信装置90可以包括:处理模块和通信模块。通信模块可以集成第一通信单元901、第二通信单元902的功能。处理模块可以集成处理单元903的功能,用于对通信装置90的动作进行控制管理,例如,处理模块用于支持该通信装置90执行步骤402、步骤404、步骤406以及本文所描述的技术的其它过程。进一步的,图9所示通信装置90还可以包括存储模块,用于存储通信装置90的程序代码和数据。It should be noted that, as yet another achievable manner, the communication device 90 shown in FIG. 9 may include: a processing module and a communication module. The communication module can integrate the functions of the first communication unit 901 and the second communication unit 902. The processing module can integrate the functions of the processing unit 903 and is used to control and manage the actions of the communication device 90. For example, the processing module is used to support the communication device 90 to perform steps 402, 404, and 406 as well as other technologies described herein. process. Further, the communication device 90 shown in FIG. 9 may also include a storage module for storing program codes and data of the communication device 90.
其中,处理模块可以是处理器或控制器。其可以实现结合本申请公开内容所描述的各种示例性的逻辑方框、模块和电路,或执行结合本申请公开内容所描述的各种示例性的逻辑方框。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块可以是收发电路或通信接口等。存储模块可以是存储器。当处理模块为处理器,通信模块集成有串行通信接口和无线通信单元,存储模块为存储器时,图9所示通信装置90可以为图2所示通信装置。Among them, the processing module may be a processor or a controller. It can implement various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of this application, or implement various exemplary logical blocks described in conjunction with the disclosure of this application. The processor may also be a combination of computing functions, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on. The communication module can be a transceiver circuit or a communication interface. The storage module may be a memory. When the processing module is a processor, the communication module integrates a serial communication interface and a wireless communication unit, and the storage module is a memory, the communication device 90 shown in FIG. 9 may be the communication device shown in FIG. 2.
图10为本申请实施例提供的一种通信系统的组成示意图,如图10所示,该通信系统可以包括无线数据收发模块100、终端101以及第一设备102。FIG. 10 is a schematic diagram of the composition of a communication system provided by an embodiment of the application. As shown in FIG. 10, the communication system may include a wireless data transceiver module 100, a terminal 101, and a first device 102.
其中,无线数据收发模块100与通信装置90的功能相同。例如:无线数据收发模块100保存可用于辨识第一设备102的型号和/或品牌的信息;无线数据收发模块100的一端与第一设备102的第一端口通过线缆连接;无线数据收发模块100无法从第一设备102的第一端口获取可用于辨识第一设备102的型号和/或品牌的信息;Among them, the wireless data transceiver module 100 and the communication device 90 have the same functions. For example: the wireless data transceiving module 100 stores information that can be used to identify the model and/or brand of the first device 102; one end of the wireless data transceiving module 100 is connected to the first port of the first device 102 through a cable; the wireless data transceiving module 100 The information that can be used to identify the model and/or brand of the first device 102 cannot be obtained from the first port of the first device 102;
当无线数据收发模块100的另一端与终端101通过无线方式连接时,无线数据收发模块100将其保存的可用于辨识第一设备102的型号和/或品牌的信息发送至终端101;When the other end of the wireless data transceiving module 100 is connected to the terminal 101 in a wireless manner, the wireless data transceiving module 100 sends the stored information that can be used to identify the model and/or brand of the first device 102 to the terminal 101;
终端101,用于根据可用于辨识第一设备102的型号和/或品牌的信息,选择适用于第一设备102的数据请求与解析程序,以及根据选择的数据请求与解析程序,通过无线数据收发模块100接收来自第一设备102的数据并解析。The terminal 101 is configured to select a data request and analysis program suitable for the first device 102 according to the information that can be used to identify the model and/or brand of the first device 102, and to transmit and receive data through wireless data according to the selected data request and analysis program The module 100 receives the data from the first device 102 and parses it.
具体的,图10中各个设备的执行过程可参照上述图4所示方法中相应设备的执行步骤,不予赘述。Specifically, for the execution process of each device in FIG. 10, reference may be made to the execution steps of the corresponding device in the method shown in FIG. 4, which will not be repeated.
基于图10所示系统,该无线数据收发模块100的一端与第一设备102的端口有线连接,另一端与终端101无线连接,在无线数据收发模块100被用于透传终端101待发送至 第一设备102的请求指令和来自第一设备102的待被传送至终端101的数据之前,将可用于辨识第一设备102的型号和/或品牌的信息写入到无线数据收发模块100中,后续,当无线数据收发模块100与终端101建立无线连接后,无线数据收发模块100将其保存的可用于辨识第一设备102的型号和/或品牌的信息发送给终端101,终端101根据可用于辨识第一设备102的型号和/或品牌的信息选择与第一设备102适配的数据请求与解析程序,根据选择的数据请求与解析程序通过无线数据收发模块100向第一设备102发送请求指令请求第一设备102的数据、接收来自第一设备102的数据并解析。如此,解决第一设备102的数据无法通过无线通信方式即时向终端101转移的问题,实现运动健康的智能化。Based on the system shown in FIG. 10, one end of the wireless data transceiving module 100 is wiredly connected to the port of the first device 102, and the other end is wirelessly connected to the terminal 101. The wireless data transceiving module 100 is used to transparently transmit the terminal 101 to be sent to the first device. Before the request instruction of a device 102 and the data from the first device 102 to be transmitted to the terminal 101, information that can be used to identify the model and/or brand of the first device 102 is written into the wireless data transceiver module 100, and subsequently After the wireless data transceiving module 100 establishes a wireless connection with the terminal 101, the wireless data transceiving module 100 sends the stored information that can be used to identify the model and/or brand of the first device 102 to the terminal 101, and the terminal 101 can be used to identify The model and/or brand information of the first device 102 selects a data request and analysis program adapted to the first device 102, and sends a request instruction request to the first device 102 through the wireless data transceiver module 100 according to the selected data request and analysis program The data of the first device 102 receives and parses the data from the first device 102. In this way, the problem that the data of the first device 102 cannot be instantly transferred to the terminal 101 through wireless communication is solved, and the intelligence of sports health is realized.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated as needed. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be It can be combined or integrated into another device, or some features can be omitted or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate parts may or may not be physically separate. The parts displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. . Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application are essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium , Including several instructions to make a device (may be a single-chip microcomputer, chip, etc.) or a processor (processor) execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage media include: U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Any change or replacement within the technical scope disclosed in this application shall be covered by the protection scope of this application . Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (12)

  1. 一种无线数据收发模块,其特征在于,所述无线数据收发模块包括串行通信接口、无线通信单元、处理器以及存储器;A wireless data transceiver module, characterized in that, the wireless data transceiver module includes a serial communication interface, a wireless communication unit, a processor, and a memory;
    所述串行通信接口,用于与第一设备的第一端口通过线缆连接;所述无线数据收发模块无法通过所述串行通信接口从所述第一设备的所述第一端口获取可用于辨识所述第一设备的型号和/或品牌的信息;The serial communication interface is used to connect with the first port of the first device through a cable; the wireless data transceiving module cannot obtain the availability from the first port of the first device through the serial communication interface Information for identifying the model and/or brand of the first device;
    所述无线通信单元,用于与终端通过无线方式连接;The wireless communication unit is used to connect with the terminal in a wireless manner;
    所述存储器,用于保存所述第一设备的信息;所述第一设备的信息可用于辨识所述第一设备的型号和/或品牌;The memory is used to store information of the first device; the information of the first device can be used to identify the model and/or brand of the first device;
    当所述无线通信单元与所述终端无线连接时,所述处理器,用于从所述存储器读取所述第一设备的信息,并通过所述无线通信单元,向所述终端发送所述第一设备的信息;When the wireless communication unit is wirelessly connected to the terminal, the processor is configured to read the information of the first device from the memory, and send the information to the terminal through the wireless communication unit Information of the first device;
    所述处理器,还用于通过所述串行通信接口从所述第一设备的所述第一端口获取来自所述第一设备的数据,并通过所述无线通信单元向所述终端发送来自所述第一设备的数据。The processor is further configured to obtain data from the first device from the first port of the first device through the serial communication interface, and send data from the terminal to the terminal through the wireless communication unit Data of the first device.
  2. 根据权利要求1所述的无线数据收发模块,其特征在于,所述第一设备是健身器材,所述第一端口是所述第一设备上的健身器材通信规范C-SAFE端口。The wireless data transceiver module according to claim 1, wherein the first device is a fitness equipment, and the first port is a fitness equipment communication specification C-SAFE port on the first device.
  3. 根据权利要求1或2所述的无线数据收发模块,其特征在于,所述处理器,还用于:The wireless data transceiver module according to claim 1 or 2, wherein the processor is further configured to:
    在通过所述串行通信接口从所述第一设备的所述第一端口获取来自所述第一设备的数据,并通过所述无线通信单元向所述终端发送来自所述第一设备的数据之前,通过所述无线通信单元,接收所述终端发送的请求指令,并将所述请求指令通过所述串行通信接口发送至所述第一设备的所述第一端口;其中,所述请求指令用于请求所述第一设备的数据或用于请求更改所述第一设备的状态。After acquiring the data from the first device from the first port of the first device through the serial communication interface, and sending the data from the first device to the terminal through the wireless communication unit Previously, the request instruction sent by the terminal was received through the wireless communication unit, and the request instruction was sent to the first port of the first device through the serial communication interface; wherein, the request The instruction is used to request data of the first device or used to request to change the state of the first device.
  4. 根据权利要求1-3任一项所述的无线数据收发模块,其特征在于,所述无线通信单元与所述终端之间建立有第一通道和第二通道;The wireless data transceiver module according to any one of claims 1 to 3, wherein a first channel and a second channel are established between the wireless communication unit and the terminal;
    所述第一通道用于所述终端读取所述无线数据收发模块的存储器中的所述第一设备的信息;所述第二通道用于接收所述终端发送的请求指令、向所述终端发送来自所述第一设备的数据。The first channel is used for the terminal to read the information of the first device in the memory of the wireless data transceiving module; the second channel is used for receiving the request instruction sent by the terminal and sending it to the terminal Send data from the first device.
  5. 根据权利要求1-3任一项所述的无线数据收发模块,其特征在于,所述无线通信单元与所述终端之间仅建立有第三通道;The wireless data transceiver module according to any one of claims 1-3, wherein only a third channel is established between the wireless communication unit and the terminal;
    所述第三通道,用于所述终端读取所述无线数据收发模块的存储器中所述第一设备的信息;以及用于接收所述终端发送的请求指令、向所述终端发送来自所述第一设备的数据。The third channel is used for the terminal to read the information of the first device in the memory of the wireless data transceiving module; and for receiving the request instruction sent by the terminal and sending to the terminal from the The data of the first device.
  6. 根据权利要求1-5任一项所述的无线数据收发模块,其特征在于,The wireless data transceiver module according to any one of claims 1-5, wherein:
    所述处理器,具体用于从终端或者计算机设备获取所述第一设备的信息,并将获取到的所述第一设备的信息保存到所述存储器中。The processor is specifically configured to obtain the information of the first device from a terminal or a computer device, and save the obtained information of the first device in the memory.
  7. 一种通信方法,其特征在于,所述通信方法包括:A communication method, characterized in that the communication method includes:
    无线数据收发模块保存第一设备的信息;所述无线数据收发模块的一端与所述第一设备的第一端口通过线缆连接;所述第一设备的信息可用于辨识所述第一设备的型号和/或品牌,所述无线数据收发模块无法从所述第一设备的所述第一端口获取可用于辨识所述第一设备的型号和/或品牌的信息;The wireless data transceiving module saves the information of the first device; one end of the wireless data transceiving module is connected to the first port of the first device through a cable; the information of the first device can be used to identify the information of the first device Model and/or brand, the wireless data transceiving module cannot obtain information that can be used to identify the model and/or brand of the first device from the first port of the first device;
    当所述无线数据收发模块的另一端与终端通过无线方式连接时,所述无线数据收发模 块读取所述第一设备的信息,向所述终端发送所述第一设备的信息;When the other end of the wireless data transceiving module is connected to the terminal in a wireless manner, the wireless data transceiving module reads the information of the first device and sends the information of the first device to the terminal;
    所述终端根据所述第一设备的信息,选择适用于所述第一设备的数据请求与解析程序;The terminal selects a data request and analysis program suitable for the first device according to the information of the first device;
    所述终端根据选择的数据请求与解析程序,通过所述无线数据收发模块接收来自所述第一设备的数据并解析。According to the selected data request and analysis program, the terminal receives and analyzes the data from the first device through the wireless data transceiver module.
  8. 根据权利要求7所述的方法,其特征在于,所述第一设备是健身器材,所述第一端口是所述第一设备上的健身器材通信规范C-SAFE端口。The method according to claim 7, wherein the first device is a fitness equipment, and the first port is a fitness equipment communication specification C-SAFE port on the first device.
  9. 根据权利要求7或8所述的方法,其特征在于,在所述终端根据选择的数据请求与解析程序,通过所述无线数据收发模块接收来自所述第一设备的数据并解析之前,所述方法还包括:The method according to claim 7 or 8, characterized in that, before the terminal receives and parses the data from the first device through the wireless data transceiver module according to the selected data request and analysis program, the Methods also include:
    所述终端向所述无线数据收发模块发送请求指令其中,所述请求指令用于请求所述第一设备的数据或用于请求更改所述第一设备的状态;The terminal sends a request instruction to the wireless data transceiver module, where the request instruction is used to request data of the first device or used to request to change the state of the first device;
    所述无线数据收发模块接收所述请求指令,将所述请求指令发送至所述第一设备的所述第一端口。The wireless data transceiver module receives the request instruction, and sends the request instruction to the first port of the first device.
  10. 根据权利要求7-9任一项所述的方法,其特征在于,所述无线数据收发模块与所述终端之间建立有第一通道和第二通道;The method according to any one of claims 7-9, wherein a first channel and a second channel are established between the wireless data transceiver module and the terminal;
    所述第一通道用于所述终端读取所述无线数据收发模块中的所述第一设备的信息;所述第二通道用于接收所述终端发送的请求指令以及向所述终端发送来自所述第一设备的数据。The first channel is used for the terminal to read the information of the first device in the wireless data transceiving module; the second channel is used for receiving the request instruction sent by the terminal and sending the information from the terminal to the terminal Data of the first device.
  11. 根据权利要求7-9任一项所述的方法,其特征在于,所述无线数据收发模块与所述终端之间仅建立有第三通道;The method according to any one of claims 7-9, wherein only a third channel is established between the wireless data transceiver module and the terminal;
    所述第三通道用于所述终端读取所述无线数据收发模块中的所述第一设备的信息;以及用于接收所述终端发送的请求指令、向所述终端发送来自所述第一设备的数据。The third channel is used by the terminal to read the information of the first device in the wireless data transceiving module; and used to receive the request instruction sent by the terminal, and send to the terminal from the first device Device data.
  12. 根据权利要求7-11任一项所述的方法,其特征在于,所述无线数据收发模块保存所述第一设备的信息包括:The method according to any one of claims 7-11, wherein the wireless data transceiver module storing information of the first device comprises:
    所述无线数据收发模块从终端或者计算机设备获取所述第一设备的信息,并将获取到的所述第一设备的信息保存到所述无线数据收发模块中。The wireless data transceiving module acquires the information of the first device from a terminal or a computer device, and saves the acquired information of the first device in the wireless data transceiving module.
PCT/CN2020/103588 2019-07-31 2020-07-22 Wireless data transceiving module and communication method WO2021017983A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910704674.2 2019-07-31
CN201910704674.2A CN112333676B (en) 2019-07-31 2019-07-31 Wireless data transceiver module and communication method

Publications (1)

Publication Number Publication Date
WO2021017983A1 true WO2021017983A1 (en) 2021-02-04

Family

ID=74229203

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/103588 WO2021017983A1 (en) 2019-07-31 2020-07-22 Wireless data transceiving module and communication method

Country Status (2)

Country Link
CN (1) CN112333676B (en)
WO (1) WO2021017983A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484538A (en) * 2001-02-02 2004-03-24 Ip Method and systems for controlling exercise apparatus using portable remote device
CN1596142A (en) * 2001-09-05 2005-03-16 艾肯Ip有限公司 Systems and methods for enabling two-way communication between one or more exercise devices and computer devices and for enabling users of the one or more exercise devices to competitively exercise
CN102469165A (en) * 2010-10-29 2012-05-23 (株)拜斯倍斯 Multiprotocol Adapter System and Data Conversion Method in Multiprotocol Adapter System
US20140140356A1 (en) * 2012-11-21 2014-05-22 Signove Tecnologia S/A Transcoding of communication with personal health devices
CN104181875A (en) * 2014-07-09 2014-12-03 浙江大学城市学院 Excise and fitness system based on mode of Internet of Things

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484538A (en) * 2001-02-02 2004-03-24 Ip Method and systems for controlling exercise apparatus using portable remote device
CN1596142A (en) * 2001-09-05 2005-03-16 艾肯Ip有限公司 Systems and methods for enabling two-way communication between one or more exercise devices and computer devices and for enabling users of the one or more exercise devices to competitively exercise
CN102469165A (en) * 2010-10-29 2012-05-23 (株)拜斯倍斯 Multiprotocol Adapter System and Data Conversion Method in Multiprotocol Adapter System
US20140140356A1 (en) * 2012-11-21 2014-05-22 Signove Tecnologia S/A Transcoding of communication with personal health devices
CN104181875A (en) * 2014-07-09 2014-12-03 浙江大学城市学院 Excise and fitness system based on mode of Internet of Things

Also Published As

Publication number Publication date
CN112333676B (en) 2022-09-23
CN112333676A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
WO2021213120A1 (en) Screen projection method and apparatus, and electronic device
WO2021000807A1 (en) Processing method and apparatus for waiting scenario in application
CN110347269B (en) Empty mouse mode realization method and related equipment
JP2022541207A (en) Voice activated method and electronic device
CN111601199A (en) Wireless earphone box and system
WO2021017909A1 (en) Method, electronic device and system for realizing functions through nfc tag
KR102527178B1 (en) Voice control command generation method and terminal
WO2021068926A1 (en) Model updating method, working node, and model updating system
CN113938720B (en) Multi-device cooperation method, electronic device and multi-device cooperation system
WO2022262492A1 (en) Data downloading method and apparatus, and terminal device
CN110955452B (en) Non-invasive interaction method and electronic equipment
CN113438643B (en) Terminal capability reporting system, method, electronic equipment and storage medium
WO2022042637A1 (en) Bluetooth-based data transmission method and related apparatus
CN113596919B (en) Data downloading method and device and terminal equipment
CN112099741B (en) Display screen position identification method, electronic device and computer readable storage medium
WO2021017983A1 (en) Wireless data transceiving module and communication method
CN113126948A (en) Audio playing method and related equipment
WO2023179123A1 (en) Bluetooth audio playback method, electronic device, and storage medium
WO2021197115A1 (en) Antenna tuning method and apparatus, and electronic device and network device
WO2020088318A1 (en) Automatic activation method for nfc application, and terminal
CN114844542A (en) Antenna selection method and device, electronic equipment and readable storage medium
CN115226185A (en) Transmission power control method and related equipment
CN114071777A (en) Random access enhancement method, network equipment and terminal
CN113678481A (en) Wireless audio system, audio communication method and equipment
CN114268689B (en) Electric quantity display method of Bluetooth device, terminal and storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1