Invention content
In view of this, the present invention provides a kind of sports apparatus for capturing and sharing exercise data, it can capture and share body-building
Without the exercise data of the sports apparatus of Bluetooth function in room, and shares exercise data for user and provide support.
To solve the above problems, the present invention provides a kind of sports apparatus for capturing and sharing exercise data, sports apparatus and clothes
Business device and user terminal, which are established, to be wirelessly connected, and sports apparatus includes:Positioning device, the locomotory apparatus used for identity user
Tool, and carry out identity binding with the user of sports apparatus is used;Exercise data acquisition equipment, connect with positioning device, for obtaining
Movement velocity and conveyer belt horizontal tilt angle of the family using sports apparatus when are taken, and is transmitted with server and user terminal
Movement velocity and conveyer belt horizontal tilt angle.
Wherein, the first mark point is provided on sports apparatus, exercise data acquisition equipment includes speed measuring module, speed measuring module
The below or above apart from conveyer belt in sports apparatus is set apart from the position of pre-determined distance, the setting of the first mark point is transmitting
It takes;The first microcontroller, tachogenerator and the first low energy consumption bluetooth module are integrated in speed measuring module, when conveyer belt is transported
When dynamic and the first mark point passes through tachogenerator normal position, tachogenerator incudes and exports an interrupt signal to the
One microcontroller, the first microcontroller are obtained by measuring the first mark point on conveyer belt by the time difference of tachogenerator
The movement velocity of user, and sent the movement velocity of user by bluetooth by low energy consumption bluetooth module.
Wherein, speed measuring module, which is arranged, is being attached to 1 to 3 centimetre below conveyer belt of position.
Wherein, first mark point is set on conveyer belt, and when conveyer belt movement and the first mark point is often by the biography that tests the speed
When sensor normal position, tachogenerator will incude and export an interrupt signal to the first microcontroller, the first micro-control
Device processed records the current time that the first mark point is passed through, and passes through tachogenerator by measuring the first mark point on conveyer belt
Time difference and time difference in conveyer belt move distance obtain user movement velocity.
Wherein, three the first mark points for being spaced the first pre-determined distance two-by-two are set on conveyer belt, and speed measuring module detection passes
Time difference when the first mark point passes through speed measuring module when sending with uniform motion calculates according to time difference and the first pre-determined distance
The movement velocity of user.
Wherein, two the first mark points of the second pre-determined distance of the upper surface of conveyer belt side setting interval, speed measuring module inspection
Survey conveyer belt uniform motion when two the first mark points respectively pass through speed measuring module when time difference, according to time difference and second
Pre-determined distance calculates the movement velocity of user.
Wherein, the black and white line sensor based on infrared principles is integrated in speed measuring module, the first mark point is arranged to passing
Send the white line taken, user uses sports apparatus, and when the first mark point is by black and white line sensor, black and white line sensor
An interrupt signal is transmitted to the first microcontroller.
Wherein, Hall switch or tongue tube based on magnetic force induction are integrated in speed measuring module, the first mark point is set as
It is placed in the magnet or magnetic stripe of conveyer belt upper edge, when the first mark point is by Hall switch or tongue tube, Hall switch or dry spring
Pipe senses and exports an interrupt signal to the first microcontroller.
Wherein, exercise data trapping module further includes Angle Measurement Module, and Angle Measurement Module is arranged in sports apparatus
The position of slope change occurs, is used for the conveyer belt horizontal tilt angle of capture movement instrument.
Wherein, Angle Measurement Module includes 3 axle acceleration sensors, is obtained by calculating the inverse cosine function in z-axis
The conveyer belt horizontal tilt angle of sports apparatus;Or Angle Measurement Module includes 6 axis or 9 axis microelectromechanicdevice system sensors, is led to
It crosses 3 d pose parsing and obtains Eulerian angles, to obtain the conveyer belt horizontal tilt angle of sports apparatus.
The sports apparatus of exercise data is shared in the capture of the present invention and server and user terminal establish wireless connection, fortune
Dynamic instrument includes:Positioning device carries out identity for the sports apparatus that identity user uses, and with the user of sports apparatus is used
Binding;Exercise data acquisition equipment, connect with positioning device, for obtain user using sports apparatus when movement velocity and
Conveyer belt horizontal tilt angle, and movement velocity and conveyer belt horizontal tilt angle are transmitted with server and user terminal, it can
The exercise data of the sports apparatus in gymnasium without Bluetooth function is captured and shared, and shares exercise data for user and provides
It supports.
Specific implementation mode
Description of the present invention uses general common term mostly, but with the meaning for being engaged in person skilled in art
Figure or legal precedent, the appearance etc. of new technology, term also will be different.Under special circumstances, term is used arbitrarily in applicant sometimes,
Meaning is described in detail in the content.Therefore, the not simple term title of the term that is used in description of the present invention, this
Definition term based on invention entire content.
In description when the certain structural factors of the certain part " comprising " of explanation, if without particularly recording,
Meaning does not control other structures factor, may include other structures factor again.The use such as " ... device " in addition, in description
Language means at least handle a function or action, can be realized by hardware or software or hardware and software combines
To realize.
Below with the content of present invention is described in detail with reference to the attached drawings, it is allowed to those skilled in the art in the technical field
It is easy to implement.But the present invention can be realized with various forms, be not limited to the case study on implementation.For correct description on attached drawing,
The content unrelated with explanation is omitted, similar symbol is imparted about similar part.Based on the embodiment in the present invention,
The every other embodiment that those of ordinary skill in the art are obtained under the premise of not making performing creative labour, belongs to
The scope of protection of the invention.
Referring to Fig. 1, the structure for the system that sports apparatus exercise data is shared in the capture that Fig. 1 is embodiment of the present invention is shown
It is intended to.The system of sports apparatus exercise data is shared in capture:Sports apparatus 1, user terminal 2 and server 3.Locomotory apparatus
Tool 1 is provided with positioning device 10 and exercise data capture device 100, and positioning device 10 is used for the sports apparatus that identity user uses
1, exercise data acquisition equipment 100 is used to obtain exercise data of the user using sports apparatus 1 when;User terminal 2 is for passing through
Positioning device 10 and sports apparatus 1 by being wirelessly connected by sports apparatus 1 and using the user identity binding of sports apparatus 1, and
Determine that exercise data acquisition equipment 100 transmits exercise data by wireless connection according to positioning device 10;Server 3 is whole with user
End 2 carries out network connection, for establishing the connection between sports apparatus 1 and user terminal 2 according to positioning device 10.Server 3
Database in prestore the relationship of 1 three of positioning device 10, exercise data acquisition equipment 100 and sports apparatus, pass through positioning
No. id of device 10 can inquire matched exercise data from database.Wherein, No. id of positioning device 10 is to move
The identification (identification, ID) number of instrument 1.
In embodiments of the present invention, user terminal 2 can be mobile phone, tablet computer (IPAD), laptop, bracelet
Equal mobile terminals, server 3 can be Cloud Server or local data base etc., be not limited thereto.Positioning device 10 is for marking
Know instrument, the effect of positioning device 10 is to try out the user that the sports apparatus 1 moves by sports apparatus 1 and this moment and match to tie up
Get up calmly.
In embodiments of the present invention, sports apparatus 1 is treadmill.Sports apparatus 1 and server 3 and user terminal 2
It establishes and is wirelessly connected.Referring to Fig. 2, sports apparatus 1 includes:Positioning device 10 and exercise data acquisition equipment 100.Positioning device 10
Identity binding is carried out for the sports apparatus 1 that identity user uses, and with the user of sports apparatus 1 is used.Exercise data captures
Device 100 is connect with positioning device 10, and the movement velocity and conveyer belt level when for obtaining user using sports apparatus 1 are inclined
Oblique angle, and transmit movement velocity and conveyer belt horizontal tilt angle with server 3 and user terminal 2.
In embodiments of the present invention, positioning device 10 can be realized by any one following scheme:
Positioning device 10 is Quick Response Code, and user terminal 2 obtains the identity recognition number of sports apparatus 1 by scanning the two-dimensional code
(ID number), and instrument title, gymnasium address and the corresponding body-building supported are inquired by server 3 according to ID number and acted.Tool
Body, the practical Quick Response Code is exactly a sports apparatus ID number.User terminal application (app) after two-dimensional code scanning by that can obtain
The corresponding sports apparatus ID number of the Quick Response Code, subsequent app is to Cloud Server or the local data base requesting query sports apparatus
Which gymnasium the corresponding sports apparatus title of ID number, the sports apparatus belong to, and support which body-building action.
Positioning device 10 is the equipment for being integrated with low energy consumption (Bluetooth Low Energy, BLE) bluetooth module, user
Terminal receives Bluetooth broadcast signal (the Bluetooth broadcast signal tool of the ID number including sports apparatus of the transmission of positioning device 10
Have corresponding signal strength, i.e. bluetooth RSSI signals), corresponding distance is obtained according to the bluetooth equipment RSSI signals received
Value, obtains the identity recognition number of the corresponding sports apparatus of lowest distance value 1, and passes through service according to acquired identity recognition number
Device inquires instrument title, gymnasium address and the corresponding body-building action supported.Further, more than one indigo plant that will be received
Tooth equipment RSSI signals switch to corresponding distance value respectively, and obtaining lowest distance value, (distance value is regarded as corresponding movement
The distance between instrument and user), the identity recognition number of the corresponding sports apparatus of the lowest distance value is obtained, then according to being obtained
The identity recognition number taken is inquired instrument title, gymnasium address and the corresponding body-building supported by server and is acted.Such as:It should
It is integrated with the equipment of BLE bluetooth modules and ceaselessly sends fixed broadcasted values with certain frequency, for example transmission is once taken per 500ms
The broadcast message of ID number with gymnasium address code and sports apparatus.When mobile phone app is very close to the positioning device, Ke Yigen
The Bluetooth broadcast signal strength (Received Signal Strength Indicator, RSSI) sent according to positioning device is corresponding
Distance value minimum when, then navigate to user terminal with the positioning device close to, then according to extraction Bluetooth broadcast letter
The ID number of gymnasium address and sports apparatus in breath, to the ID number pair of server or native data the library inquiry sports apparatus 1
Which gymnasium the sports apparatus title answered, the sports apparatus 1 belong to, and support which body-building action.
Positioning device 10 is the equipment for being integrated with near-field communication (Near Field Communication, NFC) module, fixed
The NFC label ID codings of the user terminal of the ID number of sports apparatus, gymnasium address and reading are bound and are uploaded by position device
Into server.Specifically, fixed when the bracelet of the mobile phone or carrying NFC label of supporting NFC label function is close to positioning device
Position device can read the NFC label ID encoded radios of mobile phone app or bracelet by NFC, and positioning device can will be self-contained
Gymnasium address code and sports apparatus ID number and the user's NFC label ID coding that reads pass through Bluetooth broadcast or other nothings
Line radio-frequency technique is sent to bluetooth routing device, and bluetooth routing here can be user mobile phone itself, can also be third party
A bluetooth turn wifi or bluetooth turns 3G/4G equipment.After bluetooth routing receives Bluetooth broadcast, gymnasium address is extracted
Code, user and gymnasium sports apparatus binding information can then be uploaded onto the server 3 by sports apparatus ID codes and User ID
In.
In embodiments of the present invention, the first mark point 12, exercise data acquisition equipment 100 are provided on sports apparatus 1
Including speed measuring module 11, the below or above apart from conveyer belt in sports apparatus 1 is arranged apart from pre-determined distance in speed measuring module 11
Position, the first mark point 12 be arranged on a moving belt.The first microcontroller is integrated in speed measuring module 11
(Microprogrammed Control Unit, MCU), tachogenerator and the first low energy consumption (Bluetooth Low
Energy, BLE) bluetooth module, when conveyer belt movement and the first mark point 12 by tachogenerator normal position when, test the speed
Sensor sensing simultaneously exports an interrupt signal to the first microcontroller, and the first microcontroller is by measuring first on conveyer belt
Mark point obtains the movement velocity of user by time difference of tachogenerator, and by low energy consumption bluetooth module by the fortune of user
Dynamic speed is sent by bluetooth.
In embodiments of the present invention, speed measuring module 11 attaches 1 to 3 centimetres of the below or above distance apart from conveyer belt
Position, it is preferable that speed measuring module 11, which is arranged, is being attached to 1 to 3 centimetre below conveyer belt of position, is touched when user being avoided to run
Bump against speed measuring module 11.
Speed measuring module 11 can be selected based on infrared black and white line sensor assembly or be based on according to the difference of measuring principle
The Hall switch or tongue tube of magnetic force, accordingly the selection of the first mark point 12 is also different:
When being tested the speed indirectly using the black and white line sensor based on infrared principles, it is integrated with based on infrared original in speed measuring module
The black and white line sensor of reason, the first mark point are arranged to a white line on a moving belt, at this time, it is only necessary to white paint or
White fluorescent pen and the raw material of other whites draw a very short white line on a moving belt, and certainly, the first mark point is set
Be set to other non-near black can, but white effect is best, for example the size of white line is long 2cm, wide 1cm.User uses
Sports apparatus, and when the first mark point 12 is by black and white line sensor, one interrupt signal of black and white line sensor transmissions is given to
One MCU processing.Low level is exported when black and white line sensor detects black, detects that white then exports high level.According to black
The inside comparison circuit of white line sensor is different, and black and white line sensor exports high level when may also detect that black, detection
Low level is then exported to white.
When using based on magnetic force induction Hall switch or tongue tube test the speed indirectly when, be integrated with based on magnetic in speed measuring module
The Hall switch or tongue tube of power induction, the first mark point is set as being placed in the magnet or magnetic stripe of conveyer belt upper edge, at this point, only
It needs the small magnet with 3M glue or magnetic stripe being attached to conveyer belt upper edge position as the first mark point 12.When magnet or magnetic
When the first mark point of item 12 is by Hall switch or tongue tube, then Hall switch or tongue tube, which sense and export one, interrupts letter
Number it is given to the first MCU processing.
The speed of sports apparatus 1 is actually the movement velocity of the conveyer belt on sports apparatus 1.Detailed schematic test the speed such as
Under:
One the first mark point is set on conveyer belt, and when conveyer belt movement and the first mark point is often hung down by tachogenerator
When right over straight, tachogenerator will incude and export an interrupt signal to the first microcontroller, the first microcontroller note
The time recorded the current time of the first mark point process, and pass through tachogenerator by measuring the first mark point on conveyer belt
The move distance of conveyer belt obtains the movement velocity of user in difference and time difference.
Conveyer belt need to only be arranged to upper first mark point 12 as shown in Figure 2, when conveyer belt moves, the first mark point 12
When often passing through indirect tachogenerator normal position, speed measuring module 11 will sense and export an interrupt signal to testing the speed
The first MCU in module 11, at this time the first MCU can record the first mark point 12 process current time.Therefore conveyer belt
Speed per hour can calculate use by measuring the first mark point 12 of fixing on conveyer belt by the time difference of speed measuring module 11
The movement velocity at family.
Specific Computational Method of Velocity Measurement is different according to the deployment of the first mark point 12 and slightly distinguishes, and has following several preferred sides
Case:
One the first mark point is set on conveyer belt, and when conveyer belt movement and the first mark point is often hung down by tachogenerator
When right over straight, tachogenerator will incude and export an interrupt signal to the first microcontroller, the first microcontroller note
The time recorded the current time of the first mark point process, and pass through tachogenerator by measuring the first mark point on conveyer belt
The move distance of conveyer belt obtains the movement velocity of user in difference and time difference.Specifically, it is assumed that the length of whole conveyor
It is known as s, is T when starting to measure, at the time of being recorded at this time when speed measuring module detects the first mark point 12 for the first time0,
Instantly it is T at the time of record at this time when one-time detection is to first mark point 121, when detecting first mark point again
It is T at the time of being recorded at this time when 122, then neglecting T0, then T2-T1As whole conveyor length runs a circulating cycle
The time is T used in the time of phase, i.e. the first mark point 12 movement regular length distance s2-T1, then the speed of the first mark point 12 be
V=s/ (T2-T1), and the speed of the first mark point 12 is exactly the movement velocity of conveyer belt.This scheme needs known to speed measuring module 11
Transmit strip length can calculating speed, but the length of 1 conveyer belt of sports apparatus of different manufacturers difference style is also all different,
Speed measuring module 11 is thought to obtain the practical more difficult operation of transmission strip length in advance, can be realized by the following method:Server storage one
The Bluetooth address or device id address mapping table of part speed measuring module 11, each Bluetooth address or device id address correspond to a movement
Instrument 1 transmits strip length.Mobile phone app then downloads a Bluetooth address from high in the clouds and sports apparatus 1 transmits strip length mapping table.It surveys
Fast module 11 exports T by bluetooth2-T1Time difference and equipment ID number, then mobile phone app parsings blue-teeth data, obtains Bluetooth address
Or equipment ID number and T2-T1Time difference, mobile phone app from local or are serviced according to the Bluetooth address or equipment ID number parsed
Device inquires corresponding sports apparatus 1 and transmits strip length acquisition s, then according to v=s/ (T2-T1) calculate sports apparatus 1 movement speed
Degree.
Three the first mark points for being spaced the first pre-determined distance two-by-two are set on conveyer belt, and it is even that speed measuring module detects conveyer belt
Time difference when the first mark point passes through speed measuring module when speed movement calculates user's according to time difference and the first pre-determined distance
Movement velocity.Specifically, three are disposed on a moving belt and be separated by the first mark point 12 that length is d two-by-two, for example d can be with value
For 10cm.When starting to measure, T is rememberedd=0, it is recorded at this time when speed measuring module 11 often detects first mark point 12
Moment is Ti(the 1st time is T0, the 2nd time is T1, n-th Tn-1).When often detecting first mark point 12, compare Ti-Ti-1
Whether T is equal todIf equal, then it is assumed that detect primary effective uniform motion, then line speed is v=d/ (T2-T1), and
D is also fixed known constant, can directly calculate speed;And at the same time update Td=Ti-Ti-1。
Two the first mark points of the second pre-determined distance of the upper surface of conveyer belt side setting interval, speed measuring module detection transmission
Time difference when two the first mark points pass through speed measuring module respectively when with uniform motion, according to time difference and second it is default away from
From the movement velocity for calculating user.Specifically, it is assumed that transmission strip length is s, is made of top and bottom and two sides, so upward
Towards day one side length certainly less than s/2, then it is two first of d labels that spacing distance is disposed in the one side in conveyer belt towards day
Point 12, for example d can be with value 100cm.Therefore, entire conveyer belt is divided into two segment length inconsistent by two the first mark points 12
Part, a portion length be d, another part length be s-d, and certainly exist d be less than s-d.When starting to measure every time,
It is T at the time of being recorded at this time when speed measuring module 11 often detects first mark point 12i(the 1st time is T0, is for the 2nd time
T1, the 3rd time is T2, n-th Tn-1).After measurement starts, compare T3-T2With T1-T0It is whether equal, two kinds of feelings are divided into according to result
Condition:
If T3-T2With T1-T0It is equal, then it is assumed that the speed of 1 upper conveyor belt of sports apparatus is at the uniform velocity, then to compare first at present
Time interval T between mark point 122-T1And T1-T0, the time span for selecting time interval small is as by the first mark point
12 are spaced the time of d, then line speed v=d/Min ((T2-T1),(T1-T0)).Wherein d is fixed known constant, Ke Yizhi
It connects and calculates speed.
If T3-T2With T1-T0It is unequal, then it is assumed that sports apparatus 1 is in speed governing speed change state at present, then can have two
A Scheme Choice:
1. speed measuring module 11 continues to record the first mark point 12 at the time of pass through, until Ti-Ti-1With Ti-2-Ti-3Equal (i
More than or equal to 4), thinking that sports apparatus 1 has been at the uniform velocity state at this time, T can be taken according to front x stepsi-Ti-1With Ti-1-Ti-2
The small time span of middle time interval calculates speed as the time by 12 spacing distance d of the first mark point;
2. speed measuring module 11 is abandoned this time measuring, suspend mode for a period of time, restarts a new round and tests the speed, until meeting x steps
The at the uniform velocity situation of description occurs, and calculates the speed of 1 conveyer belt of sports apparatus.
In embodiments of the present invention, exercise data acquisition equipment 100 further includes Angle Measurement Module 13, angle measurement mould
Block is arranged in the position of the generation slope change of sports apparatus, is used for the conveyer belt horizontal tilt angle of capture movement instrument.
In embodiments of the present invention, the 2nd MCU, MEMS (Micro- are integrated in Angle Measurement Module 13
Electro-Mechanical System, MEMS) inertial sensor, the 2nd BLE bluetooth modules.The Angle Measurement Module 13 is pasted
It is attached to as sports apparatus 1 can occur slope change and be not easy the place stepped on by people in Fig. 2.It is needed when Angle Measurement Module 13 attaches
By the z-axis of the MEMS inertial sensor chip in module towards sky.MEMS inertial sensor can be 3 axis, 6 axis, 9 axis biography
Sensor, i.e. Angle Measurement Module include 3 axle acceleration sensors, and locomotory apparatus is obtained by calculating the inverse cosine function in z-axis
The conveyer belt horizontal tilt angle of tool;Or Angle Measurement Module includes 6 axis or 9 axis microelectromechanicdevice system sensors, passes through three-dimensional
Posture parsing obtains Eulerian angles, to obtain the conveyer belt horizontal tilt angle of sports apparatus.Specific angle acquisition algorithm is as follows:
When using 3 axle acceleration sensor, then angle of inclination can be obtained by calculating the inverse cosine function in z-axis,
Specific angle formula is 57.6*acos (accZ), and the angular unit calculated is degree, and wherein accZ surveys for acceleration transducer
Initial data in the z-axis of amount;
When using 6 axis or 9 axis MEMS sensor, according to Inertial Measurement Unit (Inertial measurement
Unit, IMU) blending algorithm progress 3D posture parsings, Eulerian angles can be got, including three angles, respectively pitch angle
Pitch, roll angle Roll, yaw angle Yaw, wherein pitch angle Pitch are 1 gradient of sports apparatus.
After speed measuring module 11 measures line speed, line speed is sent by the form of Bluetooth broadcast.
In conclusion the sports apparatus of exercise data is shared in present invention capture and server and user terminal are established wirelessly
Connection, sports apparatus include:Positioning device, for the sports apparatus that identity user uses, and with the user that uses sports apparatus
Carry out identity binding;Exercise data acquisition equipment, connect with positioning device, for obtaining movement of the user using sports apparatus when
Speed and conveyer belt horizontal tilt angle, and transmit movement velocity and conveyer belt horizontal tilt with server and user terminal
Angle can capture and share the exercise data of the sports apparatus in gymnasium without Bluetooth function, and share movement number for user
It is supported according to providing.
Content described above is a kind of case study on implementation that the system of sports apparatus exercise data is shared in present invention capture;This
Invention is not limited to the case, and the technology of the present invention spirit includes belonging to the acquainted people in the field to be likely in a variety of forms more
Change the range for implementing the content of present invention.
Mode the above is only the implementation of the present invention is not intended to limit the scope of the invention, every to utilize this
Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it is relevant to be applied directly or indirectly in other
Technical field is included within the scope of the present invention.