Data transmission method and device, electronic equipment and storage medium

By sending the coordinates of the endpoints of the dividing lines on the target map and the preset information of the target points in the work area, the problem of excessive data volume in robot data transmission is solved, and the transmission efficiency is improved.

CN121645343APending Publication Date: 2026-03-10JIANGSU DONGCHENG M&E TOOLS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

The problem of excessive data volume and long transmission time when electronic devices send edited target maps to robots.

Method used

By sending the endpoint coordinates of the dividing lines in the edited target map and the preset information of the target points in the work area, the amount of data sent to the robot is reduced.

Benefits of technology

This greatly reduces the amount of data transmission and improves data transmission efficiency, enabling the robot to edit and create a target map based on the preset information of the endpoint coordinates and the target point.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121645343A_ABST
    Figure CN121645343A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission method and device, electronic equipment and a storage medium, and the method comprises the steps: determining the position of a segmentation line in a target map, and enabling the target map to be displayed in a display screen of the electronic equipment; determining an operation area based on the determined segmentation line; determining a target point in the operation area; end point coordinates of the segmentation line and preset information corresponding to the target point are obtained, and the preset information comprises coordinates corresponding to the target point; and sending the end point coordinate and the coordinate corresponding to the target point to the robot. Through the data transmission method provided by the invention, the data transmission quantity can be reduced, and the transmission time can be shortened.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of robots, and in particular to a data transmission method and device, an electronic device, and a storage medium. BACKGROUND

[0002] With the development of science and technology, automated equipment has penetrated into human life and production. More and more intelligent robots are applied in people's daily work and life. Common intelligent robots include lawn mowers, sweeping robots, snow sweepers, etc.

[0003] Robots (for example, lawn mowing robots) usually work outdoors, and their working environment is often complex. After the robot enters an unfamiliar environment, a target map is created for the unfamiliar environment, and the target map is synchronized to an electronic device. If a user needs to use the robot to work on a target area in the target map, the user can edit the target map in the electronic device and send the edited target map to the robot, so that the robot can work according to the user's needs. However, in the process of sending the edited target map from the electronic device to the robot, there is a problem of too large data volume and too long transmission time. SUMMARY

[0004] Embodiments of the present application disclose a data transmission method and device, an electronic device, and a storage medium, which solve the technical problems of too large data volume and long transmission time when an electronic device sends an edited target map.

[0005] In a first aspect, the present application provides a data transmission method applied to an electronic device, wherein the electronic device is in communication connection with a robot, and the method comprises: determining a position of a split line in a target map, wherein the target map is displayed on a display screen of the electronic device; determining a work area based on the determined split line; determining a target point in the work area; obtaining endpoint coordinates of the split line and preset information corresponding to the target point, wherein the preset information comprises coordinates corresponding to the target point; and sending the endpoint coordinates and the preset information corresponding to the target point to the robot.

[0006] In a possible implementation manner, the preset information further comprises a serial number corresponding to the target point.

[0007] In a possible implementation, before the position of the split line in the target map is determined, the method comprises: establishing a map processing area based on the working area of the robot to obtain an initial map; performing rasterization processing on the initial map to obtain grid points; establishing a first coordinate system based on the initial map and determining coordinate points corresponding to the grid points; generating the target map according to the coordinate points corresponding to the grid points; and receiving the target map sent by the robot, wherein the target map comprises the grid points and the coordinate points corresponding to the grid points.

[0008] In a possible implementation, the determination of the position of the split line in the target map comprises: in response to a first operation, generating the split line in the target map; and in response to a second operation, determining the position of the split line in the target map.

[0009] In a possible implementation, before the end point coordinates of the split line and the preset information corresponding to the target point are obtained, the method further comprises: establishing a second coordinate system in the display screen based on the target map; and establishing a correspondence between each coordinate point of the target map in the second coordinate system and each coordinate point of the target map in the first coordinate system.

[0010] In a possible implementation, the method further comprises: in response to a third operation of touching the working area, sending a serial number corresponding to the working area to the robot.

[0011] In a possible implementation, the method further comprises: in response to a fourth operation of selecting at least two working areas to be merged, merging the at least two working areas to be merged to obtain a merged working area; determining a target point in the merged working area; obtaining end point coordinates of the remaining split line in the target map; and sending the end point coordinates of the remaining split line, preset information corresponding to the target point in the remaining working area, and preset information corresponding to the target point in the merged working area to the robot.

[0012] In a second aspect, the present application provides a data transmission device, comprising: a determination module configured to determine the position of a split line in a target map, wherein the target map is displayed in a display screen of an electronic device; the determination module is further configured to determine a working area based on the determined split line; the determination module is further configured to determine a target point in the working area; an obtaining module configured to obtain end point coordinates of the split line and preset information corresponding to the target point, wherein the preset information comprises coordinates corresponding to the target point; and a sending module configured to send the end point coordinates and the preset information corresponding to the target point to a robot in communication connection with the electronic device.

[0013] In a third aspect, the present application provides an electronic device, comprising a processor and a memory, wherein the processor implements the data transmission method as described above when executing the computer program stored in the memory.

[0014] In a fourth aspect, the present application provides a computer readable storage medium, which stores at least one instruction, wherein the at least one instruction is executed by a processor to implement the data transmission method as described above.

[0015] In the data transmission method provided by the present application, by sending the endpoint coordinates of the segmentation line in the edited target map and the preset information of the target point in the work area segmented by the segmentation line, the robot can edit the target map established according to the endpoint coordinates and the preset information of the target point, thereby greatly reducing the amount of data sent to the robot when the electronic device edits the target map. BRIEF DESCRIPTION OF DRAWINGS

[0016] Figure 1 FIG. 1 is a schematic diagram of an application scenario of the data transmission method provided by the embodiments of the present application.

[0017] Figure 2 FIG. 4 is a structural diagram of the electronic device provided by the embodiments of the present application.

[0018] Figure 3 FIG. 5 is a flowchart of the data transmission method provided by the embodiments of the present application.

[0019] Figure 4 FIG. 6 is a schematic diagram of the target map in the embodiments of the present application.

[0020] Figure 5 FIG. 7 is a schematic diagram of the segmented target map provided by the embodiments of the present application.

[0021] Figure 6 FIG. 8 is a schematic diagram of the segmented target map provided by another embodiment of the present application.

[0022] Figure 7 FIG. 9 is a structural diagram of the data transmission device provided by the embodiments of the present application. DETAILED DESCRIPTION

[0023] For the convenience of understanding, exemplary descriptions of some concepts related to the embodiments of the present application are given for reference.

[0024] It should be noted that "at least one" in the present application means one or more, and "multiple" means two or more than two. The "and / or" describes the association relationship of the associated objects, which means that there can be three kinds of relationships, for example, A and / or B can represent: A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth" and the like (if any) in the specification and claims of the present application and the drawings are used to distinguish similar objects, and are not used to describe a specific order or sequence.

[0025] In order to better understand the data transmission method, device, electronic equipment and storage medium provided by the embodiments of the present application, the application scenario of the data transmission method provided by the present application will be described first.

[0026] Figure 1 is the application scenario diagram of the data transmission method provided by the embodiments of the present application. As Figure 1 shown, in some embodiments of the present application, the data transmission method can be applied in an electronic equipment 1, and the electronic equipment 1 is in communication connection with a robot 2. For example, the electronic equipment 1 can be in communication connection with the robot 2 through a wireless communication module 101 and / or other communication modules.

[0027] In the embodiments of the present application, the electronic equipment 1 can be a smart screen, a mobile phone, a tablet computer, a smart wearable device, an augmented reality (AR) / virtual reality (VR) device, a notebook computer, a netbook, a power storage device, a power distribution device, a vehicle-mounted device, a self-moving device, etc. The specific type of the electronic equipment is not limited in the embodiments of the present application.

[0028] In order to better understand the data transmission method provided by the embodiments of the present application, the specific structure of the electronic equipment will be described first. Referring to Figure 2 shown, is a structure diagram of the electronic equipment 1 provided by an embodiment of the present application. The electronic equipment 1 includes, but is not limited to, as Figure 2 shown, the electronic equipment 1 can include a wireless communication module 101, a memory 102, a processor 103, an input / output (I / O) interface 104 and a bus 105. The processor 103 is coupled to the second wireless module 102, the memory 102 and the I / O interface 104 through the bus 105.

[0029] In some embodiments of the present application, the electronic device 1 can further include a display screen 100 connected with the bus 105. The display screen 100 can be a touch screen, which is an inductive touchable liquid crystal display device. Alternatively, the display screen 100 can also be a non-touch screen. The display screen 100 is used to play videos, music, games, etc.

[0030] In some embodiments of the present application, the wireless communication module 101 can provide one or more of the following wireless communication solutions: Wireless Fidelity (Wi-Fi), Bluetooth (BT), mobile communication network, Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR) technology, etc.

[0031] The memory 102 can include one or more Random Access Memory (RAM) and one or more Non-Volatile Memory (NVM). The Random Access Memory can be directly read and written by the processor 103, and can be used to store executable programs (e.g. machine instructions) of operating systems or other programs running in the background, and can also be used to store data of users and applications, etc.

[0032] The Random Access Memory can include Static Random-Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDR SDRAM), etc.

[0033] The Non-Volatile Memory can also store executable programs and store data of users and applications, etc., which can be loaded in advance into the Random Access Memory for direct reading and writing by the processor 103. The Non-Volatile Memory can include disk storage devices, Flash Memory.

[0034] The memory 102 is configured to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 103. The one or more computer programs include a plurality of instructions, which, when executed by the processor 103, implement the data processing method performed on the electronic device 1.

[0035] In other embodiments, the electronic device 1 further includes an external memory interface configured to connect an external memory, so as to extend the storage capability of the electronic device 1.

[0036] The processor 103 can include one or more processing units, for example: the processor 103 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices, or can be integrated into one or more processors.

[0037] The processor 103 provides computing and control capabilities, for example, the processor 103 is configured to execute the computer program stored in the memory 102, so as to implement the data transmission method described above.

[0038] The I / O interface 104 is configured to provide a channel for user input or output, for example, the I / O interface 104 can be used to connect various input and output devices, such as a mouse, a keyboard, a touch screen, etc., so that the user can input information, or make the information visualized.

[0039] The bus 105 is at least configured to provide a communication channel between the display screen 100, the wireless communication module 101, the memory 102, the processor 103, and the I / O interface 104 in the electronic device 1.

[0040] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the electronic device 1. In other embodiments of the present application, the electronic device 1 can include more or fewer components than shown, or combine certain components, or split certain components, or different component arrangements. The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0041] In some embodiments of this application, robot 2 may include robots with walking functions such as intelligent lawnmowers, robotic vacuum cleaners, and automatic snowplows. In this application, a lawnmower is used as an example for illustration.

[0042] Robots (e.g., lawnmowers) typically work outdoors in complex environments. When a robot enters an unfamiliar environment, it creates a target map and synchronizes it to electronic device 1. If a user needs the robot to work on a target area within the target map, they can edit the map on electronic device 1 and send the edited map to the robot, allowing the robot to perform tasks according to the user's needs. However, sending the edited target map to the robot from electronic device 1 results in excessive data volume and long transmission times.

[0043] Based on the aforementioned technical issues, this application can significantly reduce the amount of data sent to the robot by sending the endpoint coordinates of the dividing lines in the edited target map and the preset information corresponding to the target points to the robot, thereby improving data transmission efficiency.

[0044] The technical solutions of this application will be described in detail below with specific embodiments. The specific embodiments described below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0045] Figure 3 This is a flowchart illustrating a data transmission method provided in an embodiment of this application, applied in an electronic device. Figure 3 As shown, the method in this embodiment may include:

[0046] S301: Determine the position of the dividing line in the target map, where the target map is displayed on the screen.

[0047] In this embodiment, after the electronic device and the robot establish a communication connection, the user can control the robot to perform tasks through an application installed on the electronic device. For example, after the lawnmower enters the lawn, it can autonomously move within the lawn, create and store a target map, and send the target map to the electronic device. After receiving the target map, the electronic device displays the target map on the screen through the application. When the user needs to divide the target map into areas and control the lawnmower to mow the divided areas, this can be achieved by operating the controls in the application.

[0048] In this embodiment of the application, before determining the position of the dividing line in the target map, the data transmission method further includes: receiving the target map sent by the robot, wherein the target map includes grid points and the coordinate points corresponding to the grid points.

[0049] In this embodiment, after the robot enters the target area, it can walk around the boundary of the target area at the front edge of the working area to obtain the boundary of the target area. The interior of the target area is the robot's working area. A map processing area is established based on this working area to obtain an initial map. In this embodiment, the map processing area can be rectangular; in other embodiments, the map processing area can be other shapes, as long as it can completely display the data of the initial map. For example, it can extend from any point in the working area as the center point in a first direction, a second direction, a third direction, and a fourth direction. The first direction is horizontal to the left, the second direction is horizontal to the right, the third direction is perpendicular to the first direction and upward, and the fourth direction is perpendicular to the first direction and downward. The first direction and the second direction are on the same horizontal line, and the third direction and the fourth direction are on the same horizontal line. From the center point in the working area, it extends along the first direction to the leftmost point, along the second direction to the rightmost point, along the third direction to the top point, and along the fourth direction to the bottom point. The first line is obtained by extending the leftmost point along the third or fourth direction; the second line is obtained by extending the rightmost point along the third or fourth direction; the third line is obtained by extending the top point along the first or second direction; the fourth line is obtained by extending the bottom point along the first or second direction; the rectangle obtained by the intersection of the first, second, and third lines is used as the initial map.

[0050] In this embodiment, to reduce the amount of data in the target map synchronized to the electronic device, the initial map can be rasterized first. Specifically, a first coordinate system is established based on the initial map, where the origin of the first coordinate system is the point corresponding to the lower left corner of the initial map, with the fourth line as the horizontal axis and the first line as the vertical axis. Multiple grid points are obtained by dividing the width of the initial map along the horizontal axis and the height of the initial map along the vertical axis by a preset grid width and rounding them down. The coordinates of each grid point in the first coordinate system are determined. The target map is generated based on the coordinates of the grid points. In some embodiments, the coordinate information of a grid block can also be determined based on the coordinates of each grid point. The grid block is composed of a preset number of adjacent grid points in the same row or column. The target map is generated based on the coordinates of the grid points and the coordinate information of the grid blocks.

[0051] In this embodiment, the grid width can be preset to 0.05m. Of course, in other embodiments, the grid width can be other values, and different grid widths can be set to obtain different precise values.

[0052] In this embodiment, the grid points can also be identified. Specifically, if the coordinates of a grid point are on the boundary of the working area in the initial map, the grid point is marked as a first type of grid point; if the coordinates of a grid point are inside the working area in the initial map, i.e., inside the boundary, the grid point is marked as a second type of grid point; if the coordinates of a grid point are outside the working area in the initial map, i.e., outside the boundary, the grid point is marked as a third type of grid point; and if the coordinates of a grid point are on the boundary of an obstacle in the initial map, the grid point is marked as a fourth type of grid point.

[0053] In some implementations, grid point colors can be set to distinguish between first-type, second-type, and third-type grid points. For example, first-type grid points might be red, second-type grid points blue, third-type grid points green, and fourth-type grid points yellow. Alternatively, numbers can be used to distinguish between first-type, second-type, and third-type grid points. For example, ... Figure 4 As shown, the first type of grid point is set to a value of 1, the second type of grid point is set to a value of 2, the third type of grid point is set to a value of 0, and the fourth type of grid point is set to a value of 3. The value settings are not unique.

[0054] In this embodiment, determining the position of the dividing line in the target map includes: generating a dividing line in the target map in response to a first operation; and determining the position of the dividing line in the target map in response to a second operation. In this embodiment, in response to the first operation, the dividing line is determined in the target map displayed by the application. The dividing line can divide the target map into regions. In one embodiment, the application interface can display a first control used to generate the dividing line. In response to a first operation by the user operating the first control, the dividing line is generated in the target map displayed by the application. For example, in response to a first operation by the user clicking the first control, a dividing line can be generated in the application interface. After the dividing line is generated, the user can freely drag the dividing line to divide the target map into regions. In response to a second operation by the user moving the dividing line, the position of the dividing line is determined in the target map displayed by the application.

[0055] In another embodiment of this application, determining the position of the dividing line in the target map includes: in response to an operation of selecting two points in the target map, generating a dividing line based on the two selected points and determining the position of the dividing line in the target map.

[0056] S302: Determine the work area based on the defined dividing lines.

[0057] In this embodiment, dividing lines can divide the target map into multiple work areas. If a dividing line is determined in the target map displayed by the application, the dividing line can divide the target map into a first area and a second area. If three dividing lines are determined in the target map displayed by the application, the three dividing lines can divide the target map into a first area, a second area, a third area, and a fourth area, such as... Figure 5 As shown. In this embodiment of the application, the number of dividing lines can be determined according to user needs, and this application does not limit this.

[0058] S303: Determine the target points within the work area.

[0059] In this embodiment, to reduce the amount of data that needs to be sent to the robot after editing the target map, any point can be arbitrarily selected as the target point within the work area. By sending the coordinates to the robot, the robot can determine the corresponding work area based on the coordinates. There is a one-to-one correspondence between the target point and the work area. For example, after dividing the target map into a first and second region by dividing lines, point A can be selected as the target point in the first region, and point B in the second region. Similarly, after dividing the target map into a first, second, third, and fourth region by three dividing lines, point A can be selected as the target point in the first region, point B in the second region, point C in the third region, and point D in the fourth region, and so on. Figure 5 As shown.

[0060] In some embodiments, the target point can be the center point of the work area. After the work area is determined, the center point of the work area can be calculated, and the calculated center point can be used as the target point. Alternatively, any point can be arbitrarily selected as the target point within the determined work area.

[0061] In this embodiment of the application, after determining the target points of the work area, a sequence number for the target points can also be set. The sequence number of the target points represents the corresponding work area. In some embodiments, the sequence number can be either letters or numbers. For example, Figure 5 The sequence number of target point A in the first region shown can be 0, the sequence number of target point B in the second region can be 1, the sequence number of target point C in the third region can be 2, and the sequence number of target point D in the fourth region can be 3.

[0062] S304: Obtain the endpoint coordinates of the dividing line and the preset information corresponding to the target point, wherein the preset information includes the coordinates corresponding to the target point.

[0063] In this embodiment, before obtaining the endpoint coordinates of the dividing line and the preset information corresponding to the target point, the data transmission method further includes: establishing a second coordinate system on the display screen based on the target map; and establishing the correspondence between each coordinate point of the target map in the second coordinate system and each coordinate point of the target map in the first coordinate system. In some embodiments, the origin of the coordinate system can be the center point of the target map; or it can be a corner point of the target map, such as the upper left corner, lower left corner, upper right corner, and lower right corner. In other embodiments, the origin of the coordinate system can be the center point of the display screen; or it can be a corner point of the display screen, such as the upper left corner, lower left corner, upper right corner, and lower right corner.

[0064] In this embodiment, the endpoint coordinates of the dividing line include a coordinate set, which includes a first coordinate and a second coordinate. Specifically, the dividing line includes a first endpoint and a second endpoint, the first endpoint corresponding to the first coordinate and the second endpoint corresponding to the second coordinate. The first coordinate and the second coordinate form a coordinate set, and the first endpoint and the second endpoint correspond one-to-one.

[0065] In this embodiment, the preset information includes coordinates and a sequence number. In one embodiment, when the coordinates of the target point are (x, y) and the sequence number is A, the corresponding preset information is (x, y, A).

[0066] S305: Send the endpoint coordinates and the preset information corresponding to the target point to the robot.

[0067] In this embodiment of the application, sending the endpoint coordinates and the coordinates corresponding to the target point to the robot enables the robot to divide the target map into regions based on the endpoint coordinates and the target point coordinates.

[0068] Specifically, in the target map pre-stored by the robot, the robot obtains dividing lines based on the endpoint coordinates, and connects the first and second endpoints in a set of coordinate groups to form dividing lines. By sequentially connecting the first and second endpoints of each set of coordinate groups, multiple dividing lines are obtained, dividing the target map into multiple sub-regions. Next, the robot expands outwards from each target point, selecting grid blocks, and stopping the selection when a selected grid block is located on a dividing line or boundary. In this way, the robot can reconstruct the edited target map based on the transmitted data.

[0069] In another embodiment, sending the endpoint coordinates and the coordinates and sequence number of the target point to the robot enables the robot to divide the target map into regions based on the endpoint coordinates and the coordinates and sequence number of the target point.

[0070] In this embodiment, when a user needs to control a robot to work in a work area, the data transmission method further includes: the electronic device responding to a third operation of touching the work area by sending a serial number corresponding to the work area to the robot. This allows the robot to determine the corresponding work area based on the serial number. Specifically, when the user touches any point in the work area, the electronic device is triggered to send the serial number corresponding to that work area to the robot, allowing the robot to determine the corresponding work area based on the serial number.

[0071] In some embodiments, when it is necessary to merge the divided work areas, in response to the fourth operation of selecting at least two work areas to be merged, at least two work areas to be merged are merged to obtain a merged work area; target points in the merged work area are determined; the endpoint coordinates of the remaining dividing lines in the target map are obtained; and the endpoint coordinates of the remaining dividing lines, preset information corresponding to the target points in the remaining work areas, and preset information corresponding to the target points in the merged work area are sent to the robot. For example, refer to Figure 6 As shown, the target map includes three dividing lines and four working areas. The three dividing lines are the first dividing line, the second dividing line, and the third dividing line. The four working areas are area A, area B, area C, and area D. When the user needs to merge area A and area B, in response to the user touching any point in area A and area B respectively, the four working areas are merged to obtain the merged area E; the target point E of the merged area E is determined, and the endpoint coordinates of the first and third dividing lines, the preset information corresponding to the target points in the remaining areas C and D, and the preset information corresponding to the target points in the merged area E are sent to the robot.

[0072] In this embodiment, by sending the endpoint coordinates of the dividing lines in the edited target map, and the coordinates of the target points in the pre-defined information of the work areas divided by the dividing lines, the robot can edit the established target map based on the endpoint coordinates and the coordinates of the target points. This significantly reduces the amount of data sent to the robot when editing the target map via an electronic device. Furthermore, the robot can identify each divided work area using the serial number in the pre-defined information, facilitating subsequent individual operations within that work area.

[0073] Figure 7 This is a structural diagram of the data transmission device provided in an embodiment of this application. The data transmission device 700 may include multiple functional modules composed of computer program segments. The computer programs of each program segment in the data transmission device 700 may be stored in the memory of a computer device and executed by at least one processor to perform (see details). Figure 2 (Description) Function of data transmission.

[0074] In this embodiment, the data transmission device 700 can be divided into multiple functional modules according to its functions. The functional modules may include: a determining module 701, an acquiring module 702, and a sending module 703. The term "module" in this application refers to a series of computer program segments that can be executed by at least one processor and perform a fixed function, and which are stored in memory. In this embodiment, the data transmission device 700 can be used to implement, for example... Figure 2 The data transmission method shown. For example... Figure 7 As shown, the data transmission device 700 is applied to electronic devices (such as...) Figure 1 In the electronic device shown, the data transmission device 700 includes:

[0075] The determining module 701 is used to determine the position of the dividing line in the target map, wherein the target map is displayed on the screen of the electronic device;

[0076] The determining module 701 is further configured to determine the work area based on the determined dividing line;

[0077] The determining module 701 is also used to determine target points in the work area;

[0078] The acquisition module 702 is used to acquire the endpoint coordinates of the dividing line and the preset information corresponding to the target point, wherein the preset information includes the coordinates corresponding to the target point;

[0079] The sending module 703 is used to send the endpoint coordinates and the coordinates corresponding to the target point to the robot that is communicatively connected to the electronic device.

[0080] In this embodiment of the application, the determining module 701 is further configured to: establish a map processing area based on the robot's working area to obtain an initial map before determining the position of the dividing line in the target map; perform rasterization processing on the initial map to obtain grid points; establish a first coordinate system based on the initial map and determine the coordinate points corresponding to the grid points; generate the target map according to the coordinate points corresponding to the grid points; and receive the target map sent by the robot, wherein the target map includes the grid points and the coordinate points corresponding to the grid points.

[0081] In this embodiment of the application, the determining module 701 is further configured to generate the dividing line in the target map in response to the first operation; and to determine the position of the dividing line in the target map in response to the second operation.

[0082] In this embodiment of the application, the acquisition module 702 is further configured to establish a second coordinate system on the display screen based on the target map; and to establish the correspondence between each coordinate point of the target map in the second coordinate system and each coordinate point of the target map in the first coordinate system.

[0083] In this embodiment of the application, the sending module 703 is further configured to send the serial number corresponding to the work area to the robot in response to a third operation of touching the work area.

[0084] In this embodiment of the application, the sending module 703 is further configured to respond to a fourth operation of selecting at least two work areas to be merged, merge the at least two work areas to be merged to obtain a merged work area; determine the target point in the merged work area; obtain the endpoint coordinates of the remaining dividing lines in the target map; and send the endpoint coordinates of the remaining dividing lines, the preset information corresponding to the target point in the remaining work area, and the preset information corresponding to the target point in the merged work area to the robot.

[0085] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, and the method implemented when the program instructions are executed can refer to the methods in the above embodiments of this application.

[0086] The computer-readable storage medium can be the internal memory of the electronic device described in the above embodiments, such as the hard disk or memory of the electronic device. Alternatively, the computer-readable storage medium can be an external storage device of the electronic device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the electronic device.

[0087] In some embodiments, the computer-readable storage medium may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, etc.; and the data storage area may store data created based on the use of the electronic device, etc.

[0088] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0089] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0090] In the embodiments provided in this application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0091] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0092] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A data transmission method applied in an electronic device, wherein the electronic device is communicatively connected to a robot, characterized in that, The method comprises: determining the position of the split line in the target map, wherein the target map is displayed in the display screen of the electronic device; determining the work area based on the determined split line; determining the target point in the work area; obtaining the endpoint coordinates of the split line and the preset information corresponding to the target point, wherein the preset information includes the coordinates corresponding to the target point; sending the endpoint coordinates and the preset information corresponding to the target point to the robot.

2. The data transmission method of claim 1, wherein, The preset information further includes the serial number corresponding to the target point.

3. The data transmission method of claim 1, wherein, Before determining the position of the split line in the target map, the method comprises: establishing a map processing area based on the working area of the robot to obtain an initial map; performing rasterization processing on the initial map to obtain grid points; establishing a first coordinate system based on the initial map and determining the coordinate points corresponding to the grid points; generating the target map according to the coordinate points corresponding to the grid points; receiving the target map sent by the robot, wherein the target map includes the grid points and the coordinate points corresponding to the grid points.

4. The data transmission method of claim 1, wherein, The determination of the position of the split line in the target map comprises: in response to a first operation, generating the split line in the target map; in response to a second operation, determining the position of the split line in the target map.

5. The data transmission method of claim 3, wherein, Before obtaining the endpoint coordinates of the split line and the preset information corresponding to the target point, the method further comprises: establishing a second coordinate system in the display screen based on the target map; establishing the correspondence between each coordinate point in the target map in the second coordinate system and each coordinate point in the target map in the first coordinate system.

6. The data transmission method of claim 2, wherein, The method further comprises: in response to a third operation of touching the work area, sending the serial number corresponding to the work area to the robot.

7. The data transmission method of claim 5, wherein, The method further comprises: in response to a fourth operation of selecting at least two work areas to be merged, merging the at least two work areas to be merged to obtain a merged work area; determining the target point in the merged work area; obtaining the endpoint coordinates of the remaining split lines in the target map; sending the endpoint coordinates of the remaining split lines, the preset information corresponding to the target points in the remaining work area, and the preset information corresponding to the target points in the merged work area to the robot.

8. A data transmission apparatus, characterized by comprising: comprises: a determination module for determining the position of the split line in the target map, wherein the target map is displayed in the display screen of the electronic device; the determination module is further configured to determine the work area based on the determined split line; the determination module is further configured to determine the target point in the work area; an acquisition module for acquiring the endpoint coordinates of the split line and the preset information corresponding to the target point, wherein the preset information includes the coordinates corresponding to the target point; a sending module for sending the endpoint coordinates and the preset information corresponding to the target point to the robot in communication connection with the electronic device.

9. An electronic device, comprising: The electronic device comprises a processor and a memory, and the processor executes the computer program stored in the memory to realize the data transmission method of any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores at least one instruction, and the at least one instruction is executed by the processor to implement the data transmission method in any one of claims 1 to 7.