CN109276895B - Building block system, and method, device and system for identifying topological structure - Google Patents

Building block system, and method, device and system for identifying topological structure Download PDF

Info

Publication number
CN109276895B
CN109276895B CN201811327500.0A CN201811327500A CN109276895B CN 109276895 B CN109276895 B CN 109276895B CN 201811327500 A CN201811327500 A CN 201811327500A CN 109276895 B CN109276895 B CN 109276895B
Authority
CN
China
Prior art keywords
building block
building
level
splicing
contact
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811327500.0A
Other languages
Chinese (zh)
Other versions
CN109276895A (en
Inventor
柯富茗
路涛
罗雯
汤晓庆
李芳�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201811327500.0A priority Critical patent/CN109276895B/en
Publication of CN109276895A publication Critical patent/CN109276895A/en
Application granted granted Critical
Publication of CN109276895B publication Critical patent/CN109276895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63HTOYS, e.g. TOPS, DOLLS, HOOPS OR BUILDING BLOCKS
    • A63H33/00Other toys
    • A63H33/04Building blocks, strips, or similar building parts
    • A63H33/042Mechanical, electrical, optical, pneumatic or hydraulic arrangements; Motors
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63HTOYS, e.g. TOPS, DOLLS, HOOPS OR BUILDING BLOCKS
    • A63H33/00Other toys
    • A63H33/04Building blocks, strips, or similar building parts
    • A63H33/06Building blocks, strips, or similar building parts to be assembled without the use of additional elements
    • A63H33/08Building blocks, strips, or similar building parts to be assembled without the use of additional elements provided with complementary holes, grooves, or protuberances, e.g. dovetails
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63HTOYS, e.g. TOPS, DOLLS, HOOPS OR BUILDING BLOCKS
    • A63H33/00Other toys
    • A63H33/26Magnetic or electric toys

Landscapes

  • Toys (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a building block system, a method, a device and a system for identifying a topological structure, and relates to the technical field of electronics. The building block system is characterized in that k uplink contacts are arranged on the uplink splicing surface through the arrangement mode of contacts on the uplink splicing surface and the downlink splicing surface, the k uplink contacts are respectively positioned on each vertex of a first rotational symmetry figure, the rotation angle of the first rotational symmetry figure is 360/k, and k is a divisor of 360; set up 1 down contact down on the concatenation face down, down the contact is located 1 summit of first rotational symmetry figure, has realized that the building block can splice the scheme in k orientation, not only can solve the problem that the concatenation direction of building block among the correlation technique received the restriction, can also utilize up the contact and down the contact realization to carry out the effect of accurate discernment to the concatenation topology of each building block among the building block system.

Description

Building block system, and method, device and system for identifying topological structure
Technical Field
The embodiment of the application relates to the technical field of electronics, in particular to a building block system, a topological structure identification method, a device and a system.
Background
The spliced building blocks are toys which simulate real objects by splicing the geometric building blocks of the same type or different types.
In the related art, a joggled building block usually uses a joggled joint mode to splice two building blocks together, for example, some joggled building blocks on the market are provided with a plurality of joggled points on a splicing surface, so that the two building blocks are more fixed during splicing.
However, the splicing of two building blocks in the splicing type building block is influenced by the number of the joggles and the arrangement mode, and the splicing direction of the building blocks is correspondingly limited.
Disclosure of Invention
The embodiment of the application provides a building block system, a topological structure identification method, a topological structure identification device and a building block system, and can solve the problem that the splicing direction of building blocks in the related technology is limited. The technical scheme is as follows:
according to one aspect of the present application, a building block system is provided, the building block system comprising a plurality of building blocks;
the building block comprises m splicing surfaces, wherein the m splicing surfaces comprise i uplink splicing surfaces and m-i downlink splicing surfaces;
the upper splicing surface comprises k upper contacts which are respectively positioned on each vertex of the first rotational symmetry figure, the rotation angle of the first rotational symmetry figure is 360/k degrees, and k is a divisor of 360;
the downlink splicing surface comprises 1 downlink contact point, and the downlink contact points are positioned on 1 vertex of the first rotationally symmetrical graph;
the building block is also provided with a control chip which is electrically connected with the contact on each splicing surface;
the control system comprises a plurality of building blocks, a control chip and a plurality of control modules, wherein the building blocks are provided with a plurality of communication modules;
wherein m is a positive integer, and i is an integer less than or equal to m.
According to another aspect of the present application, there is provided a method for identifying a topology structure, which is applied to a building block system including a plurality of building blocks, each building block including a master building block, the method including:
the upper building block sends a data request to the building block; the upper building block is the building block at the upper level of the building blocks or the master control building block;
the building blocks receive the data request and send building block information of the building blocks per se and the building blocks of the next level to the building blocks of the previous level;
the master control building block receives the building block information of the building block at the next level and the building block information of the building block at the next level; restoring the splicing topology of the building block system according to the building block information of the next-level building block and the building block information of the next-level building block;
wherein, the building block information includes: the identification of the building block, the identification of the splicing surface where the uplink contact is connected to, the identification of the splicing surface where the downlink contact is connected to, the identification of the uplink contact with the connection relation and the hierarchy information of the building block.
According to another aspect of the present application, there is provided a method of topology identification for use in an electronic device connected to a building block system, the building block system comprising a building block system as described above, the method comprising:
the electronic equipment receives the splicing topology of the building block system sent by the master control building block;
and the electronic equipment restores the building block system in the virtual environment according to the splicing topology.
According to another aspect of the present application, there is provided a device for topology identification, for use in an electronic device connected to a building block system, the building block system comprising a building block system as described above, the device comprising:
the first receiving module is used for receiving the splicing topology of the building block system sent by the main control building block;
and the first restoration module is used for restoring the building block system in the virtual environment according to the splicing topology.
In some optional embodiments, there is at least one building block in which the controlled electronic device is disposed; the controlled electronic device comprises at least one of a buzzer, a motor, a sensor, a colored lamp, a microphone and a gyroscope;
the beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
setting k uplink contacts on the uplink splicing surface by the arrangement mode of the contacts on the uplink splicing surface and the downlink splicing surface, wherein the k uplink contacts are respectively positioned on each vertex of the first rotational symmetry figure, the rotation angle of the first rotational symmetry figure is 360/k, and k is a divisor of 360; set up 1 down contact down on the concatenation face down, down the contact is located 1 summit of first rotational symmetry figure, has realized that the building block can splice the scheme in k orientation, not only can solve the problem that the concatenation direction of building block among the correlation technique received the restriction, can also utilize up the contact and down the contact realization to carry out the effect of accurate discernment to the concatenation topology of each building block among the building block system.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a block diagram of a construction of a building block system provided in an exemplary embodiment of the present application;
FIG. 2 is a block diagram of a construction of a building block system provided in another exemplary embodiment of the present application;
FIG. 3 is a schematic structural diagram of an upper stitching surface of a block according to an exemplary embodiment of the present application;
FIG. 4 is a schematic view of a lower stitching surface of a block according to an exemplary embodiment of the present application;
FIG. 5 is a schematic structural diagram of an upper stitching surface of a block according to another exemplary embodiment of the present application;
FIG. 6 is a schematic view of a lower stitching surface of a block according to another exemplary embodiment of the present application;
FIG. 7 is a schematic structural diagram of an upper stitching surface of a block according to another exemplary embodiment of the present application;
FIG. 8 is a schematic view of a lower stitching surface of a block according to another exemplary embodiment of the present application;
FIG. 9 is a schematic view of an upper row of stitching surfaces of a block according to another exemplary embodiment of the present application;
FIG. 10 is a schematic illustration of a construction of a block joint provided by an exemplary embodiment of the present application;
FIG. 11 is a schematic illustration of a construction of a block joint provided in another exemplary embodiment of the present application;
FIG. 12 is a schematic diagram of an ASIC chip provided in an exemplary embodiment of the present application;
FIG. 13 is a flowchart of a method of topology identification provided by an exemplary embodiment of the present application;
FIG. 14 is a flowchart of a method of topology identification provided by another exemplary embodiment of the present application;
FIG. 15 is a schematic illustration of the connection of a building block system provided by an exemplary embodiment of the present application;
FIG. 16 is a flowchart of a method of topology identification provided by another exemplary embodiment of the present application;
FIG. 17 is a schematic illustration of a communication process between building blocks provided by an exemplary embodiment of the present application;
FIG. 18 is a flowchart of a method of topology identification provided by another exemplary embodiment of the present application;
FIG. 19 is a schematic diagram of a data frame provided by an exemplary embodiment of the present application;
FIG. 20 is a schematic diagram of a data structure provided by an exemplary embodiment of the present application;
FIG. 21 is an interface schematic of an electronic device provided by an exemplary embodiment of the present application;
FIG. 22 is a block diagram of an apparatus for topology identification provided by another exemplary embodiment of the present application;
fig. 23 is a block diagram of a terminal according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, several terms related to the embodiments of the present application are explained:
virtual environment: is a virtual environment that is displayed (or provided) when an application is run on the terminal. The virtual environment may be a simulation environment of a real world, a semi-simulation semi-fictional three-dimensional environment, or a pure fictional three-dimensional environment. The virtual environment may be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment, and the following embodiments illustrate the virtual environment as a three-dimensional virtual environment, but are not limited thereto. Optionally, the virtual environment is further configured to provide a battle environment between at least two virtual objects.
Virtual object: refers to a movable object in a virtual environment. The movable object may be at least one of a virtual tank model, a vehicle model, an airplane model, a robot model, or an animal model. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual object is a three-dimensional stereo model created based on a topological structure of the building block system and attributes of building blocks in the building block system. Each virtual object has its own shape and volume in the three-dimensional virtual environment, occupying a portion of the space in the three-dimensional virtual environment.
Referring to fig. 1, a schematic structural diagram of a topology identification system provided in an exemplary embodiment of the present application is shown, where the topology identification system includes: a building block system 100 and an electronic device 200.
The building block system 100 is a user-defined building block system obtained by splicing a plurality of building blocks. Optionally, the building block system 100 is a building block system that has already been assembled, or may be a building block system that has not been assembled to form a set for use. The building block system 100 includes at least one of a tank model, a vehicle model, an airplane model, a robot model, or an animal model. The present embodiment exemplifies the building block system as a tank model.
Optionally, the building block system includes a plurality of building blocks, and the plurality of building blocks includes a master building block 110 and building blocks 120 other than the master building block 110.
The main control building block 110 and the building block 120 are also respectively provided with a control chip, and the chips of the two building blocks spliced with each other can be communicated with each other. The main control building block 110 is further provided with a communication component electrically connected to the control chip, and the building block system 100 communicates with the electronic device 200 through the communication component.
Optionally, the control chip may be at least one of a Micro Controller Unit (MCU) chip, a Complex Programmable Logic Device (CPLD) chip, and an Application Specific Integrated Circuit (ASIC) chip; the control chip may also be other custom chips. This embodiment is not limited thereto.
Optionally, the communication component includes at least one of a bluetooth component, a Wireless Fidelity (WiFi) component, a Universal Serial Bus (USB) component, and a Universal asynchronous Receiver/Transmitter (UART) component.
It should be noted that the level of each building block 120 is set according to the splicing distance of the current building block 120 from the master building block 110. That is, the closer the splicing distance from the master control block 110, the higher the level of the unit block 120; the further the splice distance from the master building block 110, the lower the level at which the building block 120 is located. For example, FIG. 1 includes level 5 blocks, master block 110 is a first level block, and blocks 120 include second through sixth level blocks.
The electronic device 200 may be an electronic device with a data transmission function, such as a laptop computer, a mobile phone, a tablet computer, a smart tv, an e-book reader, an MP4(Moving Picture Experts Group Audio Layer IV) player, and the like. An application program is run in the electronic device 200, and the application program can restore the topology of the building block system 100, so as to create a virtual object corresponding to the building block system 100 in a virtual scene. Illustratively, the application is an AR game or a VR game in which a virtual object exists.
The virtual object has a virtual building block and a topological structure corresponding to the building block system 100, the attribute of the virtual building block is the same as that of the building block in the building block system 100, and the attribute comprises at least one of the shape, size, color, material and performance of the building block; as shown in fig. 1, the virtual object is a virtual tank model having virtual building blocks and topology corresponding to the tank model.
It should be noted that the properties of the master control block 110 and each block 120 in the block system 100 may be the same; or one part of the building blocks can be the same and the other part of the building blocks can be different; it is also possible to vary from building block to building block. The present embodiment does not limit the attributes of the master control block 110 and each block 120 in the block system 100.
Referring to FIG. 2, a block system 100 according to an exemplary embodiment of the present application is shown, wherein the block system 100 includes a master block 110 and a block 120 other than the master block 110.
Optionally, the building block system 100 includes a master block 110 and at least one block 120.
The main control building block 110 comprises m splicing surfaces, wherein the m splicing surfaces are downlink splicing surfaces, and m is a positive integer. Illustratively, m of the building block 110 is 4, that is, the building block 110 includes 4 downward splicing surfaces.
The main control building block 110 further includes a control chip and a communication component, and the control chip is electrically connected to the communication component, for example, the main control building block includes a control chip 0 and a communication component 0, and the control chip 0 is electrically connected to the communication component 0.
The building block 120 comprises m splicing surfaces, wherein the m splicing surfaces comprise i uplink splicing surfaces and m-i downlink splicing surfaces, m is a positive integer, i is an integer, and m is larger than or equal to i. Schematically, FIG. 2 shows a master building block 110, a building block 121, and a building block 122. The m value of the building block 121 is 5, and the i value is 2; the building block 121 comprises 5 splicing surfaces, wherein each of the 5 splicing surfaces comprises 2 uplink splicing surfaces and 3 downlink splicing surfaces, the splicing surface 1 and the splicing surface 2 of the building block 121 are uplink splicing surfaces, and the splicing surface 3, the splicing surface 4 and the splicing surface 5 of the building block 121 are downlink splicing surfaces. m and i take any value within the range of the threshold value, and the value of m and/or the value of i between at least two building blocks are different. For example, m of the building block 122 is 6, i is 1; the building block 122 comprises 6 splicing surfaces, wherein the 6 splicing surfaces comprise 1 uplink splicing surface and 5 downlink splicing surfaces; the building block 122 has a value of m and i different from those of the building block 121. Or the values of i and m of different building blocks can be different.
Building block 120 also includes a control chip, for example, building block 121 includes control chip 1 and building block 122 includes control chip 2.
It should be noted that the uplink splicing surface includes k uplink contacts, the k uplink contacts are respectively located at each vertex of the first rotationally symmetric graph, the rotation angle of the first rotationally symmetric graph is 360/k degrees, and k is a divisor of 360; the downlink splicing surface comprises 1 downlink contact point, and the downlink contact points are positioned on 1 vertex of the first rotational symmetry graph. Wherein the rotation angle of the first rotationally symmetric pattern is 360/k degrees, k being a divisor of 360. Schematically, the value of k is 4, and the first rotationally symmetric figure is a square 1; referring to fig. 3, the upper splicing surface includes 4 upper contacts, p respectively1、p2、p3、p4Two adjacent points of 4 uplink contacts are connected to form a square 1, p1、p2、p3、p4Respectively located at the 4 vertexes of the square 1; referring to fig. 4, the downstream splicing surface includes 1 downstream contact p0,p0At any one of the vertices of the square 1.
In some embodiments, the upper contacts are upper convex contacts, and the upper splicing surface further comprises 1 power supply convex contact and p ground convex contacts; the power source convex contacts are located on the rotational symmetry center of the rotational symmetry pattern of the first rotational symmetry pattern, and the p ground convex contacts are located on each vertex of the second rotational symmetry pattern. The downlink contact is a downlink concave contact, and the downlink splicing surface also comprises a power supply concave contact and p grounding concave contacts; the power female contacts are located on the rotational symmetry center of the first rotationally symmetric pattern and the p ground female contacts are located on each vertex of the second rotationally symmetric pattern. Wherein the first and second rotationally symmetric patterns have the same rotational symmetry center, the rotation angle of the second rotationally symmetric pattern is 360/p degrees, and p is a divisor of 360.
Schematically, the value of p is 4, the first rotationally symmetric graph is a square 1, and the second rotationally symmetric graph is a square 2; referring to fig. 3, the upper splicing surface includes 1 power source convex contact1,power1Is positioned on the rotational symmetry center of the square 1; the upper splicing surface also comprises 4 grounding convex contacts which are respectively GND1、GND2、GND3And GND4,GND1、GND2、GND3And GND4Respectively located at the 4 vertices of square 2. Referring to FIG. 4, the power of 1 concave power contact of the lower splicing surface0,power0On the center of rotational symmetry of square 2; the down splicing surface also comprises 4 grounding concave contacts which are respectively GND5、GND6、GND7And GND8,GND5、GND6、GND7And GND8Respectively located at the 4 vertices of square 2. Where square 1 and square 2 have the same rotational symmetry center.
The building block system 100 comprises at least two building blocks, wherein at least one upward splicing surface of at least one building block is the same as a first rotational symmetry figure of at least one downward splicing surface of another building block, and a second rotational symmetry figure is also the same.
It should be noted that k and p have the same value, as shown in fig. 3 and 4; or the values of k and p are different, as shown in fig. 5 and 6, the value of k is 4, the value of p is 8, the uplink splicing surface includes uplink convex contacts located at 4 vertexes of the square, 1 power source convex contact located at the rotational symmetry center of the square, and ground convex contacts located at 8 vertexes of the regular octagon, and the downlink splicing surface includes downlink concave contacts located at any vertex of the square, 1 power source concave contact located at the rotational symmetry center of the square, and ground concave contacts located at 8 vertexes of the regular octagon; wherein the square and the regular octagon have the same rotational symmetry center. Optionally, the first and second rotationally symmetric patterns have at least one same axis of symmetry.
Optionally, a magnet is arranged on at least one of the upward convex contact, the power supply convex contact and the grounding convex contact; at least one of the lower concave contact, the power supply concave contact and the grounding concave contact is provided with a ferromagnetic substance. Schematically, as shown in fig. 7, a magnet is disposed on the grounding convex contact; as shown in fig. 8, a ferromagnetic substance is provided on the ground female contact. Alternatively, the ferromagnetic substance may be, but is not limited to, an iron sheet.
In some embodiments, the first rotationally symmetric pattern is a first square and the second rotationally symmetric pattern is a second square, the first square having a side length less than a side length of the second square, and the vertex of the first square being located on a diagonal of the second square. Schematically, as shown in fig. 9, it is apparent that the side length of the square 3 is smaller than that of the square 4, and the vertex of the square 3 is located on the diagonal line of the square 4.
Optionally, the vertex of the first square is located on the symmetry axis of the second square. Schematically, as shown in fig. 5, it can be clearly seen that the apex of the square 1 is located on the axis of symmetry of the square 4.
In some embodiments, the contacts on each splice face are spring connectors. Schematically, the convex contact on the uplink splicing surface is elastic and can stretch up and down; the concave contact on the down splicing surface has no elasticity; referring to fig. 10, the wire frame shows the engagement of the upper row of male contacts with the lower row of female contacts, and the protruding contacts 31 of the male contacts are inserted into the grooves 32 of the female contacts, so that the male contacts and the female contacts are connected. In other embodiments, the grounding male contact and the grounding female contact achieve grounding between the two building blocks through attractive contact between the magnet and the ferromagnetic substance. Schematically, in the wire frame of fig. 11, a magnet is disposed on the contact 33, a ferromagnetic material is disposed on the groove 34, and the contact 33 and the groove 34 are fixed together by magnetic force.
In some embodiments, the building block system 100 includes a plurality of building blocks having n faces including m splicing faces, where n is a positive integer and n ≧ m. For example, there are 5 faces in total for one block, only 2 of the 5 faces are splicing faces, and the other 3 faces do not include any splicing points for realizing the connection between two blocks.
In summary, in the building block system provided in this embodiment, through the arrangement manner of the contacts on the uplink splicing surface and the downlink splicing surface, that is, k uplink contacts are arranged on the uplink splicing surface, the k uplink contacts are respectively located on each vertex of the first rotationally symmetric graph, the rotation angle of the first rotationally symmetric graph is 360/k, and k is a divisor of 360; set up 1 down contact down on the concatenation face down, down the contact is located 1 summit of first rotational symmetry figure, has realized that the building block can splice the scheme in k orientation, not only can solve the problem that the concatenation direction of building block among the correlation technique received the restriction, can also utilize up the contact and down the contact realization to carry out the effect of accurate discernment to the concatenation topology of each building block among the building block system.
It should be noted that the building block system 100 includes a plurality of building blocks, and a control chip is disposed in the building blocks, and in this embodiment, the control chip is exemplified as an ASIC chip. Referring to fig. 12, a schematic structural diagram of a control chip according to an exemplary embodiment of the present application is shown.
In fig. 12, the control chip is an ASIC chip, and the ASIC chip includes a low dropout regulator (LDO) 310, a One Time Programmable (OTP) single chip 320, a bus expander (GPIO) 330, an Oscillator (OSC) 340, a data transceiver 350, and a central processing unit 360.
The LDO 310 is electrically connected to the OTP single-chip 320, the GPIO 330, the OSC 340, the data transceiver 350, and the central processing unit 360, directly or indirectly, respectively. The LDO 310 is also connected to a power interface VCC for outputting a stable voltage to supply to the building blocks.
The OTP single-chip 320 is a storage unit in the ASIC chip, and provides a storage function, and a program is stored in the OTP single-chip 320, and the program is used to transmit data between building blocks and analyze the data.
At least one extended function interface, such as an extended function interface IO, is connected to the GPIO 3301、IO2、IO3The extended function interface is used for connecting external equipment; the external equipment comprises at least one of a buzzer, a motor, a sensor, a colored lamp, a microphone, a gyroscope and wheels. The GPIO 330 is also connected to a ground interface GND.
The OSC 340 is used to provide a clock signal to the building blocks, and the building blocks implement data transceiving through the clock signal.
The data transceiver 350 has a number of data interfaces, such as Q, connected to building blocks1、Q2、Q3And the data interface is electrically connected with the uplink contact and the downlink contact respectively to realize data transmission. The connection of the up and down contacts to the data interface on the ASIC chip may be any combination, and one data interface connects one up or down contact, for example, referring to table 1, the matching connection of the up and down contacts of building blocks 1 and 2 to the data interface is shown. 4 ascending contacts p of building block 11、p2、p3And data interface Q1、Q2、Q3、Q4Respectively correspondingly connected with 1 downlink contact p0And data interface Q5Correspondingly connecting; and 4 up-going contacts p of building block 211、p12、p13、p14Respectively connected with data interface Q2、Q5、Q6、Q8Corresponding connection, 1 downstream contact p10And data interface Q10Connecting; the matching connection between the up contact and the down contact between different building blocks and the data interface can be the same or different.
TABLE 1
Figure BDA0001859117070000091
Figure BDA0001859117070000101
The central processing unit 360 is connected to the LDO 310, the OTP single chip 320, the GPIO 330, the OSC 340, and the data transceiver 350, respectively, and is configured to control data transmission between the building blocks and data analysis.
Referring to fig. 13, a flowchart of a topology identification method provided by an exemplary embodiment is shown, in which the topology identification method is applied to the building block system 100 shown in fig. 2 for example, the method includes:
step 401, the upper building block sends a data request to the building block.
In some embodiments, the superior building block is a building block that is superior to the building block or the master building block.
The building blocks include a control unit. When the building blocks are the (i + 1) th layer building blocks, determining that the upper building block is the (i) th layer building block; and the control unit in the building block of the ith layer sends a data request to the building block of the (i + 1) th layer through the downlink contact.
The data request is used for requesting building block information of the building block and the lower building block from the building block by the upper building block, namely the data request is used for requesting building block information of the building block at the (i + 1) th layer and the building block information of the building block at the (i + 1) th layer from the building block at the (i + 1) th layer.
Wherein, the building block information includes: the identification of the building block, the identification of the splicing surface where the uplink contact is connected to, the identification of the splicing surface where the downlink contact is connected to, the identification of the uplink contact with the connection relation and the hierarchy information of the building block.
In step 402, the building block receives a data request and sends building block information for itself and lower building blocks to an upper building block.
The control unit in the (i + 1) th layer of building block receives the data request through the uplink contact; and then, the control unit in the (i + 1) th layer of building block sends the building block information of the building block and the building block information of the next-level building block to the control unit in the (i) th layer of building block through the uplink contact.
When the building block at the i-th layer is the building block at the previous level of the building block, the steps 401 to 402 are executed in a loop, so that the building block information of the building block is continuously transmitted to the building block at the previous level.
In step 403, the master building block receives the building block information of the building block at the next level and the building block information of the building block at the next level.
When the building block at the i-th layer is the master control building block, the master control building block sends a data request to the next building block, and then receives the building block information of the building block at the next level and the building block information of the building block at the next level.
And step 404, the master control building block restores the splicing topology of the building block system according to the building block information of the next-level building block and the building block information of the next-level building block.
The master control building block is according to the self of the building block of the next level and the building block information of the building block of the subordinate level: building block identification, the identification of the splicing surface where the uplink contact is connected, the identification of the splicing surface where the downlink contact is connected, the identification of the uplink contact with the connection relation and the hierarchy information of the building blocks restore the splicing topology of the building block system.
The building block identification is an identification representing the type of building blocks, building blocks of different types have different building block identifications, and the building block identification of the building block of the same type is unique; the mark of the splicing surface where the connected uplink contact is located is the mark of the splicing surface where the downlink contact of the superior building block used for connection is located in the building block, and each splicing surface of the building block has respective marks; the mark of the splicing surface where the connected downlink contact is located is the mark of the splicing surface in the building block for connecting the uplink contact of the superior building block; the uplink splicing surface comprises a plurality of uplink contacts, each uplink contact is provided with a respective identification, different identifications are used for indicating different splicing directions of the splicing surface, and the identification of the uplink contact with the connection relation is the identification for indicating the splicing direction of the splicing surface connected with a higher building block; the hierarchy information of the building blocks is the hierarchy determined by the building blocks in the building block system.
In summary, in the method for identifying a topological structure provided in this embodiment, a data request is sent to a building block at a higher level, and building block information of the building block itself and building blocks at a lower level is obtained; enabling the building block system to identify the topological structure of the building block system according to the building block information; the splicing topology is restored through the building block information, and the stable and accurate identification of the topological structure can be ensured.
It should be noted that, the hierarchy of building blocks is continuously increased in the process of transferring building block information to an upper building block, based on fig. 13, step 402 is replaced with steps 4021 to 4024, and a method for counting the hierarchy of building blocks is described, as shown in fig. 14, as follows:
step 4021, the building block receives a data request.
And the control unit of the (i + 1) th layer of building block receives the data request sent by the (i) th layer of building block through the uplink contact.
Step 4022, the building blocks determine the level of the building blocks as the level 1, and the levels of the lower building blocks are added by one to determine the level information of the lower building blocks.
The control unit of the (i + 1) th layer building block determines the level of the control unit as the 1 st level, and adds one to the levels in the level information of the i layer building block sent by the (i + 2) th layer building block to determine the level information of the i layer building block.
Illustratively, in the building block information sent by the building block of the 2 nd layer received by the building block of the 1 st layer, the level of the building block of the 2 nd layer is the 1 st level, the level of the building block of the 3 rd layer is the 2 nd level, and the level of the building block of the 4 th layer is the 3 rd level; and so on. In the building block of the 1 st layer, the control unit of the building block of the 1 st layer determines the level of the control unit as the 1 st level, adds one to the level accumulation of the building block of the 2 nd layer, determines the level of the building block of the 2 nd layer as the 2 nd level, adds one to the level accumulation of the building block of the 3 rd layer, determines the level of the building block of the 2 nd layer as the 3 rd level, adds one to the level accumulation of the building block of the 4 th layer, and determines the level of the building block of the 4 th layer as the 2 nd level; and so on. It should be noted that the level information of the master control building block is preset to the 0 th level.
Step 4023, the building block generates self building block information including the hierarchy of the building block and building block information of a lower building block including the hierarchy information of the lower building block.
The control unit of the (i + 1) th layer of building blocks generates self building block information, and the building block information comprises identification of the (i + 1) th layer of building blocks, identification of a splicing surface where an uplink contact connected to the (i + 1) th layer of building blocks is located, identification of a splicing surface where a downlink contact connected to the (i + 1) th layer of building blocks is located, identification of an uplink contact where the (i + 1) th layer of building blocks have a connection relation, and level information of the (i + 1) th layer of building blocks.
The control unit of the (i + 1) th layer building block also changes the level in the building block information of the (i) th layer building block sent by the (i + 2) th layer building block into the level determined by the control unit of the (i + 1) th layer building block.
Step 4024, the building block information sends the building block information of the previous building block and the building block information of the next building block.
And the control unit of the (i + 1) th layer of building block sends the building block information of the building block and the building block information of the next-level building block to the control unit of the i-th layer of building block.
Illustratively, as shown in FIG. 15, the blocks may be connected in a ring-like manner, wherein the splicing of two blocks in the closed loop is broken, thereby determining the level of the block, e.g., breaking the splicing between block 53 and block 54, determining the level of the master block 50 as level 0, block 51 as level 1, block 52 and block 56 as level 2, block 53 and block 55 as level 3, and block 54 as level 4.
In summary, in the method for identifying a topological structure provided in this embodiment, a data request is sent to a building block at a higher level, and building block information of the building block itself and building blocks at a lower level is obtained; enabling the building block system to identify the topological structure of the building block system according to the building block information; the splicing topology is restored through the building block information, and the stable and accurate identification of the topological structure can be ensured.
In addition, the embodiment enables the topological structure to be more hierarchical by determining the hierarchy, so that the identification of the topological structure can be more accurate.
Referring to fig. 16, a flowchart of a topology identification method provided by another exemplary embodiment is shown, and the topology identification method is exemplified by being applied to the building block system 100 shown in fig. 2, it should be noted that, based on fig. 13, the master building block further sends a topology to the electronic device, and the method includes:
step 501, when a building block at a higher level monitors that a building block is connected at a lower level, sending a data request to the building block.
When the upper building block is the building block at the i-th layer, the building block is the building block at the i + 1-th layer. A control unit in the building block of the i-th layer sets a downlink contact as a high level; when the control unit in the (i + 1) th layer of building block monitors the high level on the upper contact, the high level is pulled down to be the low level; and when the high level of the control unit in the ith layer of building block is changed into the low level, determining that the (i + 1) th layer of building block is connected to the downlink splicing surface of the control unit, and sending a data request to the (i + 1) th layer of building block.
Step 502, the building block receives a data request.
The control unit in the (i + 1) th floor building block receives the data request through the uplink contact.
Step 503, the building blocks determine the level of the building blocks to be the 1 st level, and the levels of the lower building blocks are added by one to determine the level information of the lower building blocks.
The control unit of the (i + 1) th layer building block determines the level of the control unit as the 1 st level, and adds one to the levels in the level information of the i layer building block sent by the (i + 2) th layer building block to determine the level information of the i layer building block.
In step 504, the building block generates self building block information including the hierarchy of the building block itself and building block information of a lower building block including the hierarchy information of the lower building block.
The control unit of the (i + 1) th layer of building blocks generates self building block information, and the building block information comprises identification of the (i + 1) th layer of building blocks, identification of a splicing surface where an uplink contact connected to the (i + 1) th layer of building blocks is located, identification of a splicing surface where a downlink contact connected to the (i + 1) th layer of building blocks is located, identification of an uplink contact where the (i + 1) th layer of building blocks have a connection relation, and level information of the (i + 1) th layer of building blocks.
The control unit of the (i + 1) th layer building block also changes the level in the building block information of the (i) th layer building block sent by the (i + 2) th layer building block into the level determined by the control unit of the (i + 1) th layer building block.
Step 505, the building block information sends the building block information of the lower level and the building block information of the upper level building block.
And the control unit of the (i + 1) th layer of building block sends the building block information of the building block and the building block information of the next-level building block to the control unit of the i-th layer of building block.
In step 506, the master building block receives the building block information of the next building block and the building block information of the next building block.
When the building block at the i-th layer is the master control building block, the master control building block sends a data request to the next building block, and then receives the building block information of the building block at the next level and the building block information of the building block at the next level.
Schematically, please refer to fig. 17, which shows a schematic diagram of a communication process between building blocks in a building block system, when a building block is in an initialization state, a voltage of a downlink contact is a low level, as shown by a node 1, the voltage is a low level, the building block monitors whether a lower building block is connected, the level of the downlink contact is pulled high at a node 2, and the lower building block is waited to pull the level low; when a lower building block exists, the lower building block can pull down the level on the uplink contact, for example, the lower building block pulls down the level on the uplink contact at the position of the node 3; when monitoring that the level is pulled down at the node 3, the building blocks determine the existence of a next building block, complete the handshake with the next building block, and send data requests to the next building block at the node 4; the lower building block sends information of the lower building block and the lower building block to the building block on the node 5; the building blocks receive the information of the building blocks of the subordinate building blocks and the information of the building blocks of the subordinate building blocks, and the communication process is completed.
And 507, restoring the splicing topology of the building block system by the master control building block according to the self of the next-level building block and the building block information of the next-level building block.
Step 508, the master control building block sends the mosaic topology to the electronic device.
The master control building block sends the splicing topology to the electronic equipment through the communication assembly, and the electronic equipment is used for restoring the building block system in the virtual environment according to the splicing topology.
In summary, in the method for identifying a topological structure provided in this embodiment, a data request is sent to a building block at a higher level, and building block information of the building block itself and building blocks at a lower level is obtained; enabling the building block system to identify the topological structure of the building block system according to the building block information; the splicing topology is restored through the building block information, and the stable and accurate identification of the topological structure can be ensured.
The embodiment also enables the identification of the topological structure to be more accurate by determining that the hierarchy is the topological structure with more hierarchy.
In addition, this embodiment ensures that the building block information can be transmitted in time through monitoring the access of the lower building blocks, and improves the identification efficiency of the topological structure.
Referring to fig. 18, a flowchart of a topology identification method according to another exemplary embodiment is shown, where it is to be noted that uploading of a topology and control of a building block system can be implemented between a master control block and an electronic device through a communication component, and the steps are as follows:
step 601, the master control building block sends the splicing topology to the electronic equipment.
The splicing topology comprises the building block information of the building block, wherein the building block information comprises building block identification, splicing surface identification where the uplink contact connected to the building block is located, splicing surface identification where the downlink contact connected to the building block is located, identification of the uplink contact with a connection relation and hierarchy information of the building block.
In some embodiments, building block information is passed between building blocks in the form of data frames, schematically, as in FIG. 19, showing the structure of a data frame, including: the method comprises the following steps of a header Head of a data frame, a joint surface identification motherreportwhere a connected downlink contact point is located, a joint surface identification child port where a connected uplink contact point is located, identification direction of the uplink contact point with a connection relation, level information grade of a building block, identification id of the building block and attribute of the building block.
FIG. 20 shows a data structure of the building block system of FIG. 15 after the building block information is gathered, wherein the building block has an up-line splicing surface including 4 up-line contacts and a down-line splicing surface including 1 down-line contact, and black filled circles indicate that the up-line contacts are connected with the down-line contacts. The building blocks corresponding to the sequence of the data blocks in FIG. 20 are sequentially: the building block comprises a master control building block 50, a building block 51, a building block 52, a building block 53, a building block 56, a building block 55, a building block 54 and a building block 57, wherein the level 1 is behind the level 0 data block, the level 2 is spliced at the level 1, the level 2 is behind the level 1 data block, for example, the level 52 data block is behind the level 51 data block, and the level 53 data block is behind the level 52 data block; each data block of a building block spliced with a next level building block is inserted into the data block of the next level building block, so that the data block of the building block 56 at level 2 is positioned behind the data block of the building block 53.
Referring to the data block of the building block 55, grade is 3, heat _ port is 6, child _ part is 2, direction is 1, which means that the building block 55 is located at the 3 rd level, the splicing surface 2 is connected with the splicing surface 6 of the building block at the 2 nd level, the uplink contact 1 is connected with the downlink contact of the building block at the 2 nd level, and the splicing direction of the building block 55 is indicated.
Step 602, the electronic device receives the splicing topology of the building block system sent by the master control building block.
And 603, restoring the building block system in the virtual environment by the electronic equipment according to the splicing topology.
Illustratively, referring to fig. 21, the physical model of the building block system after splicing is a physical tank model 2001, the user clicks a "toy connect" button control on the electronic device, the electronic device restores the topological structure of the building block system according to the building block information, the attribute information of the building blocks enables the electronic device to restore the shape, size and color of the building blocks, and the model of the building block system with a three-dimensional structure is restored by combining the topological structure, such as a virtual tank model 2002 in the figure, and the tank model is displayed in a virtual environment displayed by the electronic device. The user can click the 'vehicle test' button control to perform performance test on the entity tank model 2001, or the 'vehicle fight' button control is used for fighting with virtual models of other building block systems in a virtual environment, and the virtual models of the other building block systems are obtained by the electronic equipment from a server.
In step 604, the electronic device receives a control operation of a user.
A user controls and operates the building block system on the electronic equipment through a handle or a touch screen. For example, control the building block system to give an alarm, move, etc.
And step 605, the electronic equipment generates a control instruction according to the control operation.
And the electronic equipment generates a corresponding control instruction according to the control operation. The control instruction is used for controlling a controlled electronic device to execute preset operation, and the controlled electronic device comprises at least one of a buzzer, a motor, a sensor, a colored lamp, a microphone and a gyroscope;
and 606, the electronic equipment sends a control instruction to the main control building block.
Step 607, the master control building block receives the control instruction sent by the electronic device.
And step 608, the main control building block controls the controlled electronic device to execute preset operation according to the control instruction.
The main control building block controls the controlled electronic device to execute commands according to the control instructions, and further controls the building block system to move forward, move backward, rotate, give out an alarm, emit light rays and the like.
For example, the control command received by the main control building block is to control the motor to rotate, so as to drive the wheel connected to the motor to rotate, and realize the movement of the building block system.
In summary, according to the method for identifying the topological structure provided in this embodiment, the communication between the building block system and the electronic device is realized through the communication component in the main control building block, so that the electronic device can control the building block system to perform an action, such as controlling the building block system to move forward, backward, and rotate, or controlling the building block system to send a voice prompt and emit light, and can also fight against other building block systems through the control of the electronic device, so that the interest of the building block system is increased, and the user experience is enhanced.
In an exemplary embodiment, the building block system may have the following play:
firstly, a user can change the form of the building block system by increasing, decreasing or moving building blocks of the building block system;
secondly, a user can send a control instruction to the building block system through the electronic terminal to control the building block system to execute simple actions, such as controlling the building block system to move forward, move backward and rotate, or controlling the building block system to send voice prompts, emit light rays and the like;
thirdly, the user can control the building block system to fight with other building block systems through the electronic equipment, namely simple collision;
fourthly, the user can restore the building block system on the electronic equipment, and can design and store the appearance of the virtual building block system on the electronic equipment;
fifthly, a user can create a virtual battlefield on the electronic equipment and restore the building block system to obtain a virtual building block system; then, another virtual of the battle is obtained through the server, and the playing method of the battle is realized on the electronic equipment;
sixthly, the user can realize the synchronous operation of the virtual building block system and the building block system on the electronic equipment; for example, the building block system is a tank model, and when a cannonball is installed on a tank under a subscriber line, a virtual tank model restored on the electronic equipment is also synchronously provided with the cannonball; and can also fight with another virtual tank model at the same time.
Referring to fig. 22, a device for identifying a topology structure provided in another exemplary embodiment of the present application is shown, and the device is applied to an electronic device connected to a building block system, where the building block system is the building block system provided in the above embodiment, and the device includes:
the receiving module 801 is used for receiving the splicing topology of the building block system sent by the main control building block;
and a restoring module 802, configured to restore the building block system in the virtual environment according to the splicing topology.
In some optional embodiments, there is at least one building block in which the controlled electronic device is disposed; the controlled electronic device comprises at least one of a buzzer, a motor, a sensor, a colored lamp, a microphone and a gyroscope;
the device also includes:
a receiving module 801, configured to receive a control operation of a user;
a generating module 803, configured to generate a control instruction according to the control operation;
a sending module 804, configured to send a control instruction to the master control building block; the control instruction is used for controlling the controlled electronic device to execute preset operation.
In summary, the device for identifying the topological structure provided in this embodiment realizes the mutual communication between the building block system and the electronic device through the communication component in the main control building block, so that the electronic device can control the building block system to execute the action, the interest of the building block system is increased, and the user experience is enhanced.
Referring to fig. 23, a block diagram of a terminal 900 according to an exemplary embodiment of the present application is shown. The terminal 900 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group audio Layer III, motion Picture Experts compression standard audio Layer 3), an MP4 player (Moving Picture Experts Group audio Layer IV, motion Picture Experts compression standard audio Layer 4), a notebook computer, or a desktop computer. Terminal 900 may also be referred to by other names such as user equipment, portable terminals, laptop terminals, desktop terminals, and the like.
In general, terminal 900 includes: a processor 901 and a memory 902.
Processor 901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 901 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 901 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 901 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 902 is used to store at least one instruction for execution by processor 901 to implement the method of topology identification provided by the above-described method embodiments in the present application.
In some embodiments, terminal 900 can also optionally include: a peripheral interface 903 and at least one peripheral. The processor 901, memory 902, and peripheral interface 903 may be connected by buses or signal lines. Various peripheral devices may be connected to the peripheral interface 903 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 904, a touch display screen 905, a camera 906, an audio circuit 907, a positioning component 908, and a power supply 909.
The peripheral interface 903 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 901 and the memory 902. In some embodiments, the processor 901, memory 902, and peripheral interface 903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 901, the memory 902 and the peripheral interface 903 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The Radio Frequency circuit 904 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 904 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 904 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 904 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 904 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 904 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 905 is used to display a UI (user interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 905 is a touch display screen, the display screen 905 also has the ability to capture touch signals on or over the surface of the display screen 905. The touch signal may be input to the processor 901 as a control signal for processing. At this point, the display 905 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 905 may be one, providing the front panel of the terminal 900; in other embodiments, the number of the display panels 905 may be at least two, and each of the display panels is disposed on a different surface of the terminal 900 or is in a foldable design; in still other embodiments, the display 905 may be a flexible display disposed on a curved surface or a folded surface of the terminal 900. Even more, the display screen 905 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display panel 905 can be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 906 is used to capture images or video. Optionally, camera assembly 906 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 906 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuit 907 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 901 for processing, or inputting the electric signals to the radio frequency circuit 904 for realizing voice communication. For stereo sound acquisition or noise reduction purposes, the microphones may be multiple and disposed at different locations of the terminal 900. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 901 or the radio frequency circuit 904 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuit 907 may also include a headphone jack.
The positioning component 908 is used to locate the current geographic location of the terminal 900 to implement navigation or LBS (location based Service). The positioning component 908 may be a positioning component based on the GPS (global positioning System) in the united states, the beidou System in china, or the galileo System in russia.
Power supply 909 is used to provide power to the various components in terminal 900. The power source 909 may be alternating current, direct current, disposable or rechargeable. When the power source 909 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 900 can also include one or more sensors 910. The one or more sensors 910 include, but are not limited to: acceleration sensor 911, gyro sensor 912, pressure sensor 913, fingerprint sensor 914, optical sensor 915, and proximity sensor 916.
The acceleration sensor 911 can detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 900. For example, the acceleration sensor 911 may be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 901 can control the touch display 905 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 911. The acceleration sensor 911 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 912 may detect a body direction and a rotation angle of the terminal 900, and the gyro sensor 912 may cooperate with the acceleration sensor 911 to acquire a 3D motion of the user on the terminal 900. The processor 901 can implement the following functions according to the data collected by the gyro sensor 912: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 913 may be disposed on the side bezel of terminal 900 and/or underneath touch display 905. When the pressure sensor 913 is disposed on the side frame of the terminal 900, the user's holding signal of the terminal 900 may be detected, and the processor 901 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 913. When the pressure sensor 913 is disposed at a lower layer of the touch display 905, the processor 901 controls the operability control on the UI interface according to the pressure operation of the user on the touch display 905. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 914 is used for collecting a fingerprint of the user, and the processor 901 identifies the user according to the fingerprint collected by the fingerprint sensor 914, or the fingerprint sensor 914 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 901 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 914 may be disposed on the front, back, or side of the terminal 900. When a physical key or vendor Logo is provided on the terminal 900, the fingerprint sensor 914 may be integrated with the physical key or vendor Logo.
The optical sensor 915 is used to collect ambient light intensity. In one embodiment, the processor 901 may control the display brightness of the touch display 905 based on the ambient light intensity collected by the optical sensor 915. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 905 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 905 is turned down. In another embodiment, the processor 901 can also dynamically adjust the shooting parameters of the camera assembly 906 according to the ambient light intensity collected by the optical sensor 915.
Proximity sensor 916, also known as a distance sensor, is typically disposed on the front panel of terminal 900. The proximity sensor 916 is used to collect the distance between the user and the front face of the terminal 900. In one embodiment, when the proximity sensor 916 detects that the distance between the user and the front face of the terminal 900 gradually decreases, the processor 901 controls the touch display 905 to switch from the bright screen state to the dark screen state; when the proximity sensor 916 detects that the distance between the user and the front surface of the terminal 900 gradually becomes larger, the processor 901 controls the touch display 905 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 23 is not intended to be limiting of terminal 900 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, which may be a computer readable storage medium contained in a memory of the above embodiments; or it may be a separate computer-readable storage medium not incorporated in the terminal. The computer readable storage medium has stored therein at least one instruction, at least one program, a set of codes, or a set of instructions that is loaded and executed by the processor to implement the method of topology identification as described in any of fig. 13-18.
Optionally, the computer-readable storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a Solid State Drive (SSD), or an optical disc. The Random Access Memory may include a resistive Random Access Memory (ReRAM) and a Dynamic Random Access Memory (DRAM). The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (18)

1. A building block system, characterized in that the building block system comprises a number of building blocks;
the building block comprises m splicing surfaces, wherein the m splicing surfaces comprise i uplink splicing surfaces and m-i downlink splicing surfaces;
the uplink splicing surface comprises k uplink contacts which are uplink convex contacts, and the uplink splicing surface also comprises 1 power supply convex contact and p grounding convex contacts; the k uplink contacts are respectively positioned on each vertex of a first rotationally symmetric graph, the power supply convex contact is positioned on the rotationally symmetric center of the first rotationally symmetric graph, and the p grounding convex contacts are positioned on each vertex of a second rotationally symmetric graph; the first rotationally symmetric figure and the second rotationally symmetric figure have the same rotational symmetry center, the first rotationally symmetric figure and the second rotationally symmetric figure have at least one same symmetry axis, the rotation angle of the first rotationally symmetric figure is 360/k degrees, the rotation angle of the second rotationally symmetric figure is 360/P degrees, and k and P are both submultiples of 360; at least one of the upward convex contact, the power supply convex contact and the grounding convex contact is provided with a magnet; each uplink contact has a unique identifier, and the identifiers are used for indicating different splicing directions of the splicing surfaces;
the downlink splicing surface comprises 1 downlink contact which is a downlink concave contact, and the downlink splicing surface also comprises 1 power supply concave contact and p grounding concave contacts; the downlink contacts are positioned on 1 vertex of the first rotationally symmetric figure, the power supply concave contact is positioned on the rotationally symmetric center of the first rotationally symmetric figure, and the p grounding concave contacts are positioned on each vertex of the second rotationally symmetric figure; at least one of the downward concave contact, the power supply concave contact and the grounding concave contact is provided with a ferromagnetic substance;
the building block is also provided with a control chip which is electrically connected with the contact on each splicing surface;
the control system comprises a plurality of building blocks, a control chip and a plurality of control modules, wherein the building blocks also comprise m downlink splicing surfaces, and the control modules are also provided with communication components electrically connected with the control chip; wherein m is a positive integer, and i is an integer less than or equal to m.
2. The building block system of claim 1,
the first rotationally symmetrical graph is a first square, the second rotationally symmetrical graph is a second square, the side length of the first square is smaller than that of the second square, and the vertex of the first square is located on the diagonal line of the second square.
3. A construction system according to claim 1 or 2, wherein the contacts on each splicing face are resilient connectors.
4. The building block system according to claim 1 or 2,
the building block also comprises an extended function interface which is used for connecting external equipment;
the external equipment comprises at least one of a buzzer, a motor, a sensor, a colored lamp, a microphone, a gyroscope and wheels.
5. The building block system as claimed in claim 1 or 2, wherein the building blocks include an i-th layer building block and an i + 1-th layer building block in a spliced state, i being an integer;
the control unit in the building block of the i-th layer is used for sending a data request to the building block of the i + 1-th layer through the downlink contact;
the control unit in the (i + 1) th layer building block is also used for receiving the data request through the uplink contact and sending the building block information of the control unit and the lower level building block to the control unit in the (i) th layer building block through the uplink contact;
wherein the building block information includes: the identification of the building block, the identification of the splicing surface where the uplink contact is connected to, the identification of the splicing surface where the downlink contact is connected to, the identification of the uplink contact with the connection relation and the hierarchy information of the building block.
6. The building block system of claim 5,
the control unit in the building block at the ith layer is further used for determining the level of the control unit as the level 1, adding one to each level in the level information of the building block at the (i + 1) th layer and the building block at the next layer sent by the building block at the (i + 1) th layer, and determining the level information of the building block at the (i + 1) th layer and the building block at the next layer.
7. The building block system of claim 5,
the control unit in the building block of the i-th layer is also used for setting the downlink contact to be a high level;
the control unit in the (i + 1) th layer of building block is also used for reducing the high level to be a low level when the high level is monitored on the uplink contact;
and the control unit in the ith layer of building block is also used for sending the data request to the (i + 1) th layer of building block when the high level is changed into the low level.
8. The building block system of claim 7,
and the control unit in the master control building block is used for restoring the splicing topology of the building block system according to the building block information and sending the splicing topology to the electronic equipment, and the electronic equipment is used for restoring the building block system in a virtual environment according to the splicing topology.
9. The building block system of claim 7 wherein there is at least one block having controlled electronics disposed therein;
the control unit in the master control building block is used for sending a control instruction to the controlled electronic device, and the control instruction is used for controlling the controlled electronic device to execute preset operation;
the controlled electronic device comprises at least one of a buzzer, a motor, a sensor, a colored lamp, a microphone and a gyroscope.
10. A method of topology identification, for use in a building block system comprising a plurality of blocks, the building block system being a building block system as claimed in any one of claims 1 to 9, the blocks comprising a master block, the method comprising:
the superior building block sends a data request to the building block; the upper building block is a building block at the upper level of the building blocks or the master control building block;
the building blocks receive the data request and send building block information of the building blocks per se and lower building blocks to the upper building block;
the master control building block receives the building block information of the building block at the next level and the building block information of the building block at the next level; restoring the splicing topology of the building block system according to the building block information of the next-level building block and the building block information of the next-level building block;
wherein the building block information includes: the identification of the building block, the identification of the splicing surface where the uplink contact is connected, the identification of the splicing surface where the downlink contact is connected, the identification of the uplink contact with the connection relation and the level information of the building block; each uplink contact has a unique identifier, and the identifier of the uplink contact with the connection relation is an identifier indicating the splicing direction of the splicing surface connected with the superior building block.
11. The method of claim 10, wherein the sending building block information of itself and lower building blocks to the upper building block comprises:
the building blocks determine the level of the building blocks to be the 1 st level, and the level of the lower-level building blocks is added by one in an accumulated manner to determine the level information of the lower-level building blocks;
the building block generates the self building block information including the self hierarchy and the building block information of the lower level building block including the hierarchy information of the lower level building block;
and the building blocks send the building block information of the building blocks per se and the building blocks at a lower level to the building blocks at a higher level.
12. The method of claim 10 or 11, wherein the superordinate building block sends a data request to the building block, comprising:
the higher-level building block monitors that the next level is connected with the building block;
and the superior building block sends the data request to the building block.
13. The method according to claim 10 or 11, characterized in that the method further comprises:
and the master control building block sends the splicing topology to the electronic equipment, and the electronic equipment is used for restoring the building block system in a virtual environment according to the splicing topology.
14. The method of claim 13, wherein there is a controlled electronic device disposed in the at least one building block; the controlled electronic device comprises at least one of a buzzer, a motor, a sensor, a colored lamp, a microphone and a gyroscope;
the method further comprises the following steps:
the main control building block receives a control instruction sent by the electronic equipment;
and the master control building block controls the controlled electronic device to execute preset operation according to the control instruction.
15. A method of topology identification, for use in an electronic device connected to a building block system, the building block system being a building block system as claimed in any one of claims 1 to 9, the building block system comprising a plurality of blocks, the blocks comprising a master block, the method comprising:
the electronic equipment receives the splicing topology of the building block system sent by the master control building block; restoring the building block system in a virtual environment according to the splicing topology;
wherein the stitching topology is generated according to the following steps:
the superior building block sends a data request to the building block; the upper building block is a building block at the upper level of the building blocks or the master control building block;
the building blocks receive the data request and send building block information of the building blocks per se and lower building blocks to the upper building block;
the master control building block receives the building block information of the building block at the next level and the building block information of the building block at the next level, and the splicing topology is restored according to the building block information of the building block at the next level and the building block information of the building block at the next level; the building block information includes: the identification of the building block, the identification of the splicing surface where the uplink contact is connected, the identification of the splicing surface where the downlink contact is connected, the identification of the uplink contact with the connection relation and the level information of the building block; each uplink contact has a unique identifier, and the identifier of the uplink contact with the connection relation is an identifier indicating the splicing direction of the splicing surface connected with the superior building block.
16. The method of claim 15, wherein there is at least one building block having controlled electronics disposed therein; the controlled electronic device comprises at least one of a buzzer, a motor, a sensor, a colored lamp, a microphone and a gyroscope;
the method further comprises the following steps:
the electronic equipment receives control operation of a user;
the electronic equipment generates a control instruction according to the control operation;
the electronic equipment sends the control instruction to the main control building block; the control instruction is used for controlling the controlled electronic device to execute preset operation.
17. A device for topology identification, for use in an electronic device connected to a building block system, said building block system being a building block system according to any of claims 1 to 9, said building block system comprising a plurality of blocks, said blocks comprising a master block, said device comprising:
the receiving module is used for receiving the splicing topology of the building block system sent by the master control building block;
the restoration module is used for restoring the building block system in a virtual environment according to the splicing topology;
wherein the stitching topology is generated according to the following steps:
the superior building block sends a data request to the building block; the upper building block is a building block at the upper level of the building blocks or the master control building block;
the building blocks receive the data request and send building block information of the building blocks per se and lower building blocks to the upper building block;
the master control building block receives the building block information of the building block at the next level and the building block information of the building block at the next level, and the splicing topology is restored according to the building block information of the building block at the next level and the building block information of the building block at the next level; the building block information includes: the identification of the building block, the identification of the splicing surface where the uplink contact is connected, the identification of the splicing surface where the downlink contact is connected, the identification of the uplink contact with the connection relation and the level information of the building block; each uplink contact has a unique identifier, and the identifier of the uplink contact with the connection relation is an identifier indicating the splicing direction of the splicing surface connected with the superior building block.
18. A topology identification system, characterized in that it comprises:
a building block system as claimed in any one of claims 1 to 9, and a topology identification apparatus as claimed in claim 17.
CN201811327500.0A 2018-11-08 2018-11-08 Building block system, and method, device and system for identifying topological structure Active CN109276895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811327500.0A CN109276895B (en) 2018-11-08 2018-11-08 Building block system, and method, device and system for identifying topological structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811327500.0A CN109276895B (en) 2018-11-08 2018-11-08 Building block system, and method, device and system for identifying topological structure

Publications (2)

Publication Number Publication Date
CN109276895A CN109276895A (en) 2019-01-29
CN109276895B true CN109276895B (en) 2020-04-21

Family

ID=65175777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811327500.0A Active CN109276895B (en) 2018-11-08 2018-11-08 Building block system, and method, device and system for identifying topological structure

Country Status (1)

Country Link
CN (1) CN109276895B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110706556A (en) * 2019-11-14 2020-01-17 深圳少年创客科技有限公司 Intelligent hardware programmer for infant robot programming education, circuit and control system
CN111054085A (en) * 2019-12-10 2020-04-24 上海布鲁可科技有限公司 Triggering pairing method and system for spliced building blocks and spliced building blocks suitable for triggering pairing
CN111147747B (en) * 2019-12-30 2021-07-27 深圳市优必选科技股份有限公司 Method for identifying complementary component and image processing equipment
CN113554718B (en) * 2020-04-24 2023-04-28 Oppo(重庆)智能科技有限公司 Image encoding method, storage medium, and electronic apparatus
CN112153253A (en) * 2020-08-27 2020-12-29 深圳市优必选科技股份有限公司 Visual recognition device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104096366A (en) * 2014-07-31 2014-10-15 深圳市智慧郎数码科技有限公司 Intelligent toy block system and control method for intelligent toy blocks
CN104107554A (en) * 2014-07-31 2014-10-22 深圳市智慧郎数码科技有限公司 Intelligent building block system and control method
WO2017014530A1 (en) * 2015-07-20 2017-01-26 이준희 Block toy having topology recognition function and content providing system using same
CN106924977A (en) * 2017-02-28 2017-07-07 腾讯科技(深圳)有限公司 Modular system, topology identification method, apparatus and system
CN207266769U (en) * 2017-08-31 2018-04-24 深圳市帕拉卡科技有限公司 Intelligent modular system and its interactive system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104096366A (en) * 2014-07-31 2014-10-15 深圳市智慧郎数码科技有限公司 Intelligent toy block system and control method for intelligent toy blocks
CN104107554A (en) * 2014-07-31 2014-10-22 深圳市智慧郎数码科技有限公司 Intelligent building block system and control method
WO2017014530A1 (en) * 2015-07-20 2017-01-26 이준희 Block toy having topology recognition function and content providing system using same
CN106924977A (en) * 2017-02-28 2017-07-07 腾讯科技(深圳)有限公司 Modular system, topology identification method, apparatus and system
CN207266769U (en) * 2017-08-31 2018-04-24 深圳市帕拉卡科技有限公司 Intelligent modular system and its interactive system

Also Published As

Publication number Publication date
CN109276895A (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN109276895B (en) Building block system, and method, device and system for identifying topological structure
CN108245893B (en) Method, device and medium for determining posture of virtual object in three-dimensional virtual environment
CN110992493B (en) Image processing method, device, electronic equipment and storage medium
CN108401124B (en) Video recording method and device
CN108694073B (en) Control method, device and equipment of virtual scene and storage medium
JP2022537614A (en) Multi-virtual character control method, device, and computer program
CN112907725B (en) Image generation, training of image processing model and image processing method and device
US20220164159A1 (en) Method for playing audio, terminal and computer-readable storage medium
CN110920631B (en) Method and device for controlling vehicle, electronic equipment and readable storage medium
CN110401898B (en) Method, apparatus, device and storage medium for outputting audio data
CN110853128B (en) Virtual object display method and device, computer equipment and storage medium
CN111028144A (en) Video face changing method and device and storage medium
CN112565806B (en) Virtual gift giving method, device, computer equipment and medium
CN110662105A (en) Animation file generation method and device and storage medium
CN111290896A (en) Server pressure testing method, device, equipment and medium
CN111028566A (en) Live broadcast teaching method, device, terminal and storage medium
CN110705614A (en) Model training method and device, electronic equipment and storage medium
CN112130945A (en) Gift presenting method, device, equipment and storage medium
CN110837300B (en) Virtual interaction method and device, electronic equipment and storage medium
CN113384880A (en) Virtual scene display method and device, computer equipment and storage medium
CN110349527B (en) Virtual reality display method, device and system and storage medium
WO2022199102A1 (en) Image processing method and device
CN110891181B (en) Live broadcast picture display method and device, storage medium and terminal
CN110933454A (en) Method, device, equipment and storage medium for processing live broadcast budding gift
CN112967261B (en) Image fusion method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant