Summary of the invention
Embodiment of the present invention is designed to provide a kind of ground cushion management method and terminal, enables the terminal to obtain automatically
Ground cushion distributed intelligence is taken, every piece of ground cushion can be accurately managed for user and provide the foundation.
In order to solve the above technical problems, embodiments of the present invention provide a kind of ground cushion management method, including:
The broadcast message for receiving N number of ground cushion obtains the ground cushion mark in each broadcast message;Wherein, N is the nature greater than 1
Number;
According to the receiving time of each broadcast message, each ground cushion mark is ranked up, walking path is generated;
M walking path of the walking path of generation and history trendline is spliced, ground cushion distributed intelligence is obtained;Its
In, M is the natural number greater than 0;
Wherein, broadcast message is generated when the pressing force that ground cushion is born is greater than preset threshold.
Embodiments of the present invention additionally provide a kind of terminal, including:At least one processor;And
The memory being connect at least one processor communication;Wherein,
Memory is stored with the instruction that can be executed by least one processor, and instruction is executed by least one processor, with
At least one processor is set to be able to carry out above-mentioned ground cushion management method.
Embodiments of the present invention additionally provide a kind of computer readable storage medium, are stored with computer program, the meter
Calculation machine program realizes above-mentioned ground cushion management method when being executed by processor.
In terms of existing technologies, each ground cushion is when the pressing force of receiving is greater than preset threshold to embodiment of the present invention
Broadcast message can be generated, and outwardly broadcasts the broadcast message.In this way, the ground that user when walking on ground cushion, is stepped on by user's foot
Pad will outwardly send broadcast message, and terminal just can receive the wide of N number of ground cushion corresponding with the walking path of user
Broadcast information.Then, terminal just can be identified according to the ground cushion in each broadcast message, and when according to the reception of each broadcast message
Between, each ground cushion mark is ranked up, to obtain walking path.In this way, terminal can obtain user's walking
Each paths pass through the side for splicing one or more walking path of the walking path currently obtained and history trendline
Formula realizes in the case where not needing the artificial pro-active intervention of user to obtain ground cushion distributed intelligence, generates ground to Machine self-learning
Distributed intelligence is padded, intelligence degree is higher, and can accurately manage every piece of ground cushion for subsequent user and provide the foundation.
In addition, further including after obtaining ground cushion distributed intelligence:It is identified for each ground cushion and corresponding ground cushion icon is set, and according to
Ground cushion distributed intelligence generates ground cushion distribution map;Show that ground cushion distribution map enables user that can recognize so that user checks
More effective informations.
In addition, further including after display ground cushion distribution map:It detects selected with the presence or absence of a certain ground cushion icon in ground cushion distribution map
It is fixed;It is chosen if there is a certain ground cushion icon, then obtain the gesture information of user;According to gesture information, ground cushion icon is moved
It is shown to specified position.In this way, can carry out corrigendum to ground cushion distribution map for user provides interface, can be obtained for terminal
Relatively accurately ground cushion distribution map provides the foundation.
In addition, according to gesture information, ground cushion icon is moved to after specified position shows, further includes:Judge whether to receive
It is instructed to saving;If receiving preservation instruction, according to the ground cushion distribution map currently shown, ground cushion distributed intelligence is updated, is had
Improve to effect the accuracy of ground cushion distributed intelligence.
In addition, further including after display ground cushion distribution map:It detects selected with the presence or absence of a certain ground cushion icon in ground cushion distribution map
It is fixed;It is chosen if there is a certain ground cushion icon, then obtain the character string information of user's input;Using character string information as ground cushion
The voice of icon wakes up word.In this way, user can be in such a way that dictated voice wakes up word, controlling terminal shows corresponding ground cushion
Icon, to realize that close, the long-range control for being directed to ground cushion corresponding to the ground cushion icon provides the foundation.
In addition, character string information is sent to the pointed ground cushion of the corresponding ground cushion mark of ground cushion icon, so that ground cushion will
Character string information wakes up word as voice.In this way, user can realize in such a way that dictated voice wakes up word for a certainly
The control of pad operates, and it is more convenient to operate.In this way, user can realize in such a way that dictated voice wakes up word for a certain
The control of ground cushion operates, and it is more convenient to operate.
Specific embodiment
To keep the purposes, technical schemes and advantages of embodiment of the present invention clearer, below in conjunction with attached drawing to this hair
Bright each embodiment is explained in detail.However, it will be understood by those skilled in the art that in each implementation of the invention
In mode, in order to make the reader understand this application better, many technical details are proposed.But it is even if thin without these technologies
Section and various changes and modifications based on the following respective embodiments, also may be implemented the application technical solution claimed.
The first embodiment of the present invention is related to a kind of ground cushion management method, detailed process is as shown in Figure 1.Present embodiment
In ground cushion management method implemented at the terminal, terminal can be the portable electronics such as mobile phone, computer, tablet computer and set
It is standby.The ground cushion management method in present embodiment is specifically described below:
Step 101, the broadcast message for receiving N number of ground cushion obtains the ground cushion mark in each broadcast message.
Specifically, ground cushion is equipped with wireless communication module, ground cushion establishes channel radio by the wireless communication module and terminal
Letter connection.Such as, which can be bluetooth communication, Wireless Fidelity wifi communication module, mobile cellular network
Communication module etc..More specifically, each ground cushion and terminal are in together in a local area network, and ground cushion passes through LAN subscriber datagram
The broadcast packet and multicast packet protocol of UDP (User Datagram Protocol, referred to as " UDP "), sends broadcast message.Terminal is logical
The mode for monitoring TCP port and udp port is crossed, the broadcast message of ground cushion is received, to avoid the omission of broadcast message.
In present embodiment, ground cushion is equipped with pressure detector, which can be pressure sensor or include
The control circuit of varistor.Wherein, the quantity of pressure detector can be designed according to ground cushion size, e.g., 20 centimetre * 20
Centimetre rectangular ground cushion can be equipped with 1 pressure detector, 60 centimetres * 60 centimetres of rectangular ground cushion and can be equipped with the inspection of 4 pressure
Device is surveyed, 80 centimetres * 80 centimetres of rectangular ground cushion can be equipped with 9 pressure detectors.Also, the ground cushion in present embodiment is being held
The pressing force received generates broadcast message when being greater than preset threshold, and broadcasts the broadcast message outward.Wherein, preset threshold can be by
User or technical staff pre-enter and save in a floor mat, and e.g., preset threshold can be 50 newton.It is carried in broadcast message
Unique ground cushion of ground cushion identifies, and ground cushion mark can be the unique identifier of ground cushion.Such as, ground cushion mark can for device number,
Pad title etc..In this way, after all ground cushions are completed to be laid with, for user when walking on ground cushion, the ground cushion stepped on by user's foot will be to
The external world sends broadcast message, and terminal just can receive the broadcast message of N number of ground cushion corresponding with the walking path of user.
Such as, each ground cushion distribution being laid is as shown in Fig. 2, when user is by ground cushion A, ground cushion B, ground cushion F, ground cushion J, ground cushion N, ground cushion O
And when ground cushion P, terminal receives ground cushion A, ground cushion B, ground cushion F, ground cushion J, ground cushion N, ground cushion O and ground cushion P, this 7 ground cushions
Broadcast message.Wherein, A, B, C, D, E, F, J, H, I, J, K, L, M, N, O, P are ground cushion mark.
Step 102, according to the receiving time of each broadcast message, each ground cushion mark is ranked up, walking path is generated.
Specifically, broadcasting broadcast message outward due to ground cushion is the passive triggering in the case where user's foot is stepped on,
When user walks on ground cushion, the broadcast message of N number of ground cushion received by terminal will have temporal sequencing.
Such as, when user successively passes through ground cushion A, ground cushion B, ground cushion F, ground cushion J, ground cushion N, ground cushion O and ground cushion P, then terminal successively receives
To broadcast message be ground cushion A, ground cushion B, ground cushion F, ground cushion J, ground cushion N, ground cushion O and ground cushion P broadcast message.Terminal root
According to the receiving time according to each broadcast message, each ground cushion mark is ranked up, walking path is generated:Ground cushion A- ground cushion B- ground cushion
F- ground cushion J- ground cushion N- ground cushion O- ground cushion P.
Step 103, M walking path of the walking path of generation and history trendline is spliced, obtains ground cushion distribution
Information.
Specifically, user walks every time, it can trigger ground cushion and broadcast broadcast message outward, thus terminal is able to record and obtains
The walking path of multiple user's walking is taken, in order to obtain ground cushion distributed intelligence according to acquired a plurality of walking path.More
It says to body, terminal can obtain ground cushion distributed intelligence, it is right that ground cushion distributed intelligence can pad mark for various regions according to the only algorithm of number
The peripheral information for the ground cushion answered.Such as, the walking path of generation is:Ground cushion A- ground cushion B- ground cushion F- ground cushion J- ground cushion N- ground cushion O-
Pad P.1 walking path of history trendline is:Ground cushion A- ground cushion E- ground cushion F- ground cushion J- ground cushion K- ground cushion O- ground cushion P.Then terminal
M walking path of the walking path of generation and history trendline is spliced, can know ground cushion distributed intelligence:Ground cushion A
Around:Ground cushion B, ground cushion E;Around ground cushion B:Ground cushion A, ground cushion F;Around ground cushion E:Ground cushion A, ground cushion F;Around ground cushion F:Ground cushion E,
Ground cushion J;Around ground cushion J:Ground cushion F, ground cushion N, ground cushion K;Around ground cushion K:Ground cushion J, ground cushion O;Around ground cushion N:Ground cushion J, ground cushion
O;Around ground cushion O:Ground cushion N, ground cushion K, ground cushion P;Around ground cushion P:Ground cushion O.In this way, terminal is obtaining enough walking paths
In the case of sample, more comprehensive ground cushion distributed intelligence can be obtained.Also, since each user walks, terminal can be obtained
Walking path is taken, therefore terminal can get enough walking paths.
In terms of existing technologies, each ground cushion is greater than preset threshold in the pressing force of receiving to embodiments of the present invention
When can generate broadcast message, and outwardly broadcast the broadcast message.In this way, user when walking on ground cushion, is stepped on by user's foot
Ground cushion will outwardly send broadcast message, and terminal just can receive N number of ground cushion corresponding with the walking path of user
Broadcast message.Then, terminal just can be identified according to the ground cushion in each broadcast message, and when according to the reception of each broadcast message
Between, each ground cushion mark is ranked up, to obtain walking path.In this way, terminal can obtain user's walking
Each paths pass through the side for splicing one or more walking path of the walking path currently obtained and history trendline
Formula realizes in the case where not needing the artificial pro-active intervention of user to obtain ground cushion distributed intelligence, generates ground to Machine self-learning
Distributed intelligence is padded, intelligence degree is higher, and can accurately manage every piece of ground cushion for subsequent user and provide the foundation.
Second embodiment of the present invention is related to a kind of ground cushion management method, and detailed process is as shown in Figure 3.Second embodiment party
Formula is improved on the basis of first embodiment, is mainly theed improvement is that:In second embodiment of the invention, terminal
Also according to ground cushion distributed intelligence, generates ground cushion distribution map and shown, enable user that can recognize more effective informations.Below
Ground cushion management method in present embodiment is specifically described:
The step 101 of step 201 in present embodiment into step 203 and first embodiment to step 103 substantially
It is identical, it is repeated to reduce, details are not described herein, is only illustrated below to different piece:
Step 204, corresponding ground cushion icon is set for each ground cushion mark, and according to ground cushion distributed intelligence, generates ground cushion point
Butut.
Specifically, terminal is identified according to ground cushion, ground cushion icon corresponding with ground cushion mark, e.g., terminal are automatically generated
Initial ground cushion icon is obtained, ground cushion mark is added in initial ground cushion icon.More specifically, terminal is distributed according to ground cushion and believes
Breath identifies corresponding ground cushion icon to each ground cushion and carries out typesetting, to generate ground cushion distribution map.
Step 205, ground cushion distribution map is shown.
Specifically, terminal shows ground cushion distribution map by display screen.More specifically, terminal is in display ground cushion distribution map
When, terminal can also provide spin button, can check that ground cushion distribution map provides the foundation from multiple angles for user.Such as.Eventually
End detects that spin button is pressed, then terminal rotates the ground cushion distribution map currently shown with predetermined angle.Wherein, predetermined angle
It is preset by technical staff and is saved in the terminal.
Third embodiment of the invention is related to a kind of ground cushion management method, and detailed process is as shown in Figure 3.Third embodiment
It is improved on the basis of second embodiment, is mainly theed improvement is that:It is user in third embodiment of the invention
Corrigendum can be carried out to ground cushion distribution map and provides interface, can be obtained relatively accurately ground cushion distribution map for terminal and be provided base
Plinth.The ground cushion management method in present embodiment is specifically described below:
The step 201 of step 301 in present embodiment into step 305 and second embodiment to step 205 substantially
It is identical, it is repeated to reduce, details are not described herein, is only illustrated below to different piece:
Step 306, it detects in ground cushion distribution map and whether is selected with the presence or absence of a certain ground cushion icon.If so, executing step
Rapid 307, it is no to then follow the steps 305.
Specifically, terminal is when detecting that user presses a certain ground cushion icon with larger pressing force, it is believed that the ground cushion figure
Mark is chosen.In practical operation, terminal can also be when detecting a certain ground cushion icon of user's long-pressing, it is believed that the ground cushion icon
It is chosen.
Step 307, the gesture information of user is obtained.
Specifically, terminal obtains the gesture information of user, gesture information can be dragging information, or click letter
Breath.
Step 308, according to gesture information, ground cushion icon is moved into designated position and is shown.
Specifically, user can by way of dragging ground cushion icon, by the drag and drop of ground cushion icon to the practical paving of ground cushion
If the corresponding placement position in position, it is distributed so as to be generated convenient for terminal with the one-to-one ground cushion of the practical laying condition of ground cushion
Figure.In practical operation, user can also enable terminal that ground cushion icon is moved to click by way of clicking terminal display screen
Position, present embodiment do not do any restriction to the gesture information of user.
It is noted that terminal further determines whether to receive preservation instruction, if receiving preservation in present embodiment
Instruction, then terminal updates ground cushion distributed intelligence, effectively improves ground cushion distributed intelligence according to the ground cushion distribution map currently shown
Accuracy.
4th embodiment of the invention is related to a kind of ground cushion management method, and detailed process is as shown in Figure 4.4th embodiment party
Formula is improved on the basis of second embodiment, is mainly theed improvement is that:In four embodiment of the invention, user
Can be in such a way that dictated voice wake up word, controlling terminal shows corresponding ground cushion icon, is directed to the ground cushion figure to realize
Close, the long-range control of the corresponding ground cushion of mark provides the foundation.Have below to the ground cushion management method in present embodiment
Body explanation:
The step 201 of step 401 in present embodiment into step 405 and second embodiment to step 205 substantially
It is identical, it is repeated to reduce, details are not described herein, is only illustrated below to different piece:
Step 406, it detects chosen with the presence or absence of a certain ground cushion icon in ground cushion distribution map.If so, thening follow the steps
407, it is no to then follow the steps 405.
Specifically, terminal is when detecting that user presses a certain ground cushion icon with larger pressing force, it is believed that the ground cushion figure
Mark is chosen.In practical operation, terminal can also be when detecting a certain ground cushion icon of user's long-pressing, it is believed that the ground cushion icon
It is chosen.More specifically, user can also enable terminal identification drag after a certain ground cushion icon of long-pressing by way of dilatory
Draw multiple ground cushion icons in region chosen.
Step 407, the character string information of user's input is obtained.
Specifically, character string information can be the verbal description of ground cushion position, e.g., character string information can be " parlor
Centre ", " balcony ", " bedroom ".
Step 408, word is waken up using character string information as the voice of ground cushion icon.
Specifically, character string information is added in ground cushion list by terminal, character string information is generated in ground cushion list
With the corresponding relationship of ground cushion icon.
Hereafter, when user needs to manipulate the temperature of a certain ground cushion, so that it may in such a way that dictated voice wakes up word, enable
Terminal obtains voice and wakes up the corresponding character string information of word, and the corresponding ground cushion icon of character string information is shown in display screen,
In order to which terminal receives the control instruction that user is directed to the corresponding ground cushion of ground cushion icon currently shown.Wherein, since user is logical
Cross terminal switching control instruction, thus user both may be implemented the short distance control for ground cushion (terminal and ground cushion be in one together
In local area network), but may be implemented for ground cushion far distance control (terminal by mobile cellular data network send control instruction
To ground cushion), to realize being precisely controlled for single ground cushion or local ground cushion, it is more convenient not only to operate, but also intelligent journey
It spends higher.
It is noted that terminal is after the character string information for obtaining user's input, also by character string in present embodiment
Information is sent to the pointed ground cushion of the corresponding ground cushion mark of ground cushion icon, so that ground cushion wakes up character string information as voice
Word directly can carry out voice control to ground cushion thus when user being enabled to be in, avoid terminal not user at one's side, Yong Huwu
Method controls the case where ground cushion.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or
Certain steps are split, multiple steps are decomposed into, as long as including identical logical relation, all in the protection scope of this patent
It is interior;To adding inessential modification in algorithm or in process or introducing inessential design, but its algorithm is not changed
Core design with process is all in the protection scope of the patent.
Fifth embodiment of the invention is related to a kind of terminal, as shown in figure 5, including:At least one processor 501;And
With the memory 502 of at least one processor 501 communication connection;Wherein, be stored with can be by least one processor for memory 502
501 instructions executed, which is executed by least one processor 501 so that at least one processor 501 be able to carry out it is above-mentioned
Ground cushion management method in each embodiment.
Wherein, memory 502 is connected with processor 501 using bus mode, and bus may include any number of interconnection
Bus and bridge, bus is by one or more processors 501 together with the various circuit connections of memory 502.Bus may be used also
With by such as peripheral equipment, voltage-stablizer, together with various other circuit connections of management circuit or the like, these are all
It is known in the art, therefore, it will not be further described herein.Bus interface provides between bus and transceiver
Interface.Transceiver can be an element, be also possible to multiple element, such as multiple receivers and transmitter, provide for
The unit communicated on transmission medium with various other devices.The data handled through processor 501 pass through antenna on the radio medium
It is transmitted, further, antenna also receives data and transfers data to processor 501.
Processor 501 is responsible for management bus and common processing, can also provide various functions, including timing, periphery connects
Mouthful, voltage adjusting, power management and other control functions.And memory 502 can be used for storage processor 501 and execute
Used data when operation.
In terms of existing technologies, terminal can obtain each paths of user's walking to embodiments of the present invention,
By way of being spliced one or more walking path of the walking path currently obtained and history trendline, to obtain ground
Distributed intelligence is padded, realizes in the case where not needing the artificial pro-active intervention of user, generates to Machine self-learning ground cushion distributed intelligence,
Intelligence degree is higher, and can accurately manage every piece of ground cushion for subsequent user and provide the foundation.
Sixth embodiment of the invention is related to a kind of computer readable storage medium, is stored with computer program.Computer
Above method embodiment is realized when program is executed by processor.
In terms of existing technologies, terminal can obtain each paths of user's walking to embodiments of the present invention,
By way of being spliced one or more walking path of the walking path currently obtained and history trendline, to obtain ground
Distributed intelligence is padded, realizes in the case where not needing the artificial pro-active intervention of user, generates to Machine self-learning ground cushion distributed intelligence,
Intelligence degree is higher, and can accurately manage every piece of ground cushion for subsequent user and provide the foundation.
That is, it will be understood by those skilled in the art that all or part of the steps in realization above embodiment method is can
Completed with instructing relevant hardware by program, which is stored in a storage medium, including some instructions to
So that an equipment (can be single-chip microcontroller, chip etc.) or processor (processor) execute each embodiment institute of the application
State all or part of the steps of method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-
Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with
Store the medium of program code.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiment party of the invention
Formula, and in practical applications, can to it, various changes can be made in the form and details, without departing from spirit and model of the invention
It encloses.