A communication method, electronic equipment, chip system and storage medium

CN122602093APending Publication Date: 2026-08-18HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510176530.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-17
Publication Date
2026-08-18

AI Technical Summary

Technical Problem

[0003]在实际的OTO服务场景下,服务下单对象通常只能通过服务平台,实现获取服务提供对象的信息、与服务提供对象进行交互等操作,这样的方式单一且存在局限性,通常无法满足用户的多样性需求

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122602093A_ABST
    Figure CN122602093A_ABST
Patent Text Reader

Abstract

The application provides a communication method, an electronic device, a chip system and a storage medium. The method can include: a first electronic device receiving a service ordering operation in a service application, and publishing a service order through a service platform to which the service application belongs; a second electronic device displaying the service order, receiving a service order accepting operation for the service order, and accepting the service order through the service platform in the case that the service order of the first electronic device is received; the first electronic device and the second electronic device establishing a short-distance communication connection based on order information of the service order; and the first electronic device and / or the second electronic device performing an operation associated with the service order based on the short-distance communication connection. According to the application, the operation associated with the service order in the OTO service scenario can be realized based on the short-distance communication connection between the electronic devices, so that the operation experience of the user can be enriched and improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a communication method, electronic device, chip system and storage medium. Background Technology

[0002] With the widespread use of smart electronic devices and the development of technologies such as mobile internet and mobile payment, numerous lifestyle service apps have emerged. These apps aim to improve users' quality of life by providing various convenient services, such as ride-hailing, chauffeur services, and food delivery. Most of these services operate on an OTO (Online to Offline) model. The core of the OTO model lies in combining online convenience with offline physical experiences, attracting users through an internet service platform and providing services in the real world.

[0003] In actual OTO service scenarios, service orderers can usually only obtain information about the service provider and interact with the service provider through the service platform. This approach is singular and limited, and usually cannot meet the diverse needs of users. Summary of the Invention

[0004] This application provides a communication method, electronic device, chip system, and storage medium that can realize operations related to service orders in OTO service scenarios based on short-distance communication connections between electronic devices, thereby enriching and improving the user's operating experience.

[0005] In a first aspect, embodiments of this application provide a communication method that can be applied to a first electronic device, the method comprising:

[0006] Upon receiving a service order from a service application, an order release request is sent to the service platform to which the service application belongs. This order release request is used to request the service platform to release the service order. If the service order is accepted by a second electronic device, a short-range communication connection is established with the second electronic device based on the order information of the service order. The operation associated with the service order is executed based on the short-range communication connection.

[0007] As can be seen, this technical solution enables operations related to service orders in OTO service scenarios based on short-range communication connections between electronic devices, thereby enriching and enhancing the user experience. Furthermore, the short-range communication connection between electronic devices is established based on the order information of the service order, ensuring that only two electronic devices associated with the service order establish a short-range communication connection, thus avoiding accidental connections and guaranteeing connection accuracy.

[0008] In conjunction with the first aspect, in one possible approach, when a service order is accepted by a second electronic device, the method for establishing a short-range communication connection with the second electronic device based on the order information of the service order could be as follows: when the service order is accepted by the second electronic device, based on the order information of the service order, determine the broadcast information to be searched, which is the information broadcast by the second electronic device for the service order; search for the broadcast information, and if the broadcast information is found, send a communication connection request to the second electronic device, which is used to request the second electronic device to establish a short-range communication connection with the first electronic device; receive a communication connection response from the second electronic device, which is used to indicate that the short-range communication connection between the second electronic device and the first electronic device has been successfully established.

[0009] As can be seen, in this technical solution, the second electronic device (i.e., the order receiving end) broadcasts service order information, and the first electronic device (i.e., the order placing end) discovers the second electronic device by searching for this broadcast information and establishes a short-range communication connection with it. This improves the accuracy of the communication connection, avoids useless connection operations with other devices, and improves the efficiency of the communication connection. In conjunction with the first aspect, in one possible approach, the method for determining the broadcast information to be searched based on the service order information could be: obtaining first information from the service order information; performing a first encryption calculation on the first information to generate the broadcast information to be searched.

[0010] As can be seen, in this technical solution, the broadcast information is obtained by encrypting specific information in the order information, which can achieve privacy protection for the information that needs to be broadcast.

[0011] In conjunction with the first aspect, in one possible manner, the communication connection request sent to the second electronic device carries authentication information, which is used to request the second electronic device to establish a short-range communication connection with the first electronic device if the authentication information is verified.

[0012] As can be seen, in this technical solution, a short-range communication connection is established between electronic devices only after the verification information is verified, which ensures the accuracy and security of the communication connection.

[0013] In conjunction with the first aspect, in one possible approach, the above method further includes: obtaining second information from the order information; performing a second encryption calculation on the second information to generate verification information.

[0014] As can be seen, in this technical solution, the verification information is obtained by encrypting and calculating specific information in the order information. That is, the verification information is associated with the service order. In this way, only electronic devices associated with the service order can verify the verification information, thereby ensuring that two electronic devices associated with the service order establish a short-range communication connection and achieve accurate connection.

[0015] In conjunction with the first aspect, in one possible approach, the method further includes: determining first location information of a first electronic device; obtaining second location information of a second electronic device from a service platform; determining the distance between the first electronic device and the second electronic device based on the first and second location information; and searching for broadcast information if the distance is less than or equal to a distance threshold.

[0016] It is evident that in this technical solution, broadcast information is searched only when the distance between the first electronic device and the second electronic device is relatively short. This reduces useless information search operations when the distance is far, thereby reducing the consumption of computer resources and power of the electronic devices.

[0017] In conjunction with the first aspect, in one possible approach, when a service order is accepted by a second electronic device, the method for establishing a short-range communication connection with the second electronic device based on the order information of the service order could be as follows: when the service order is accepted by the second electronic device, a broadcast message is generated based on the order information of the service order and broadcast, and the broadcast message is used to trigger the second electronic device to send a communication connection request to the first electronic device; upon receiving the communication connection request from the second electronic device, a short-range communication connection is established with the second electronic device, and a communication connection response is sent to the second electronic device, which is used to indicate that the short-range communication connection between the first electronic device and the second electronic device has been successfully established.

[0018] As can be seen, in this technical solution, the first electronic device (i.e., the order-placing end) broadcasts service order information, and the second electronic device (i.e., the order-receiving end) discovers the first electronic device by searching for the broadcast information and establishes a short-range communication connection with the first electronic device. This can improve the accuracy of the communication connection, thereby avoiding useless connection operations with other devices, improving the efficiency of the communication connection, and increasing the diversity of communication connection establishment methods.

[0019] In conjunction with the first aspect, in one possible approach, the communication connection request from the second electronic device carries authentication information. Upon receiving the communication connection request from the second electronic device, the method of establishing a short-range communication connection with the second electronic device and sending a communication connection response to the second electronic device may be as follows: upon receiving the communication connection request from the second electronic device, the authentication information is verified; if the authentication information is verified successfully, a short-range communication connection is established with the second electronic device, and a communication connection response is sent to the second electronic device.

[0020] As can be seen, in this technical solution, a short-range communication connection is established between electronic devices only after the verification information is verified, which ensures the accuracy and security of the communication connection.

[0021] In conjunction with the first aspect, one possible approach to performing operations associated with a service order based on a short-range communication connection could be: measuring in real time the distance and / or orientation information between the second electronic device and the first electronic device based on the short-range communication connection between the first electronic device and the second electronic device.

[0022] As can be seen, this technical solution can automatically achieve positioning in OTO service scenarios based on short-range communication connections between electronic devices. This enables precise positioning, which is more accurate than the current positioning method based on positioning devices configured on electronic devices, which has positional deviations.

[0023] In one possible approach, the above method may further include: displaying the distance information and / or orientation information in real time in the message display area of ​​the display interface.

[0024] As can be seen, in this technical solution, the precise distance and / or orientation information between the second electronic device and the first electronic device can be displayed in real time in the message display area of ​​the display interface. This allows users to know the precise distance and orientation between the service provider and the first electronic device in real time, thereby enriching and improving the user's positioning experience.

[0025] In conjunction with the first aspect, one possible approach to performing a service order-related operation based on a short-range communication connection is to: display a control in the message display area of ​​the display interface; and upon receiving a trigger operation for the control, perform the operation indicated by the control based on the short-range communication connection, wherein the operation indicated by the control is an operation related to the service order.

[0026] As can be seen, in this technical solution, the short-range communication connection between electronic devices can be triggered by manually triggering the control, thereby enabling operations related to service orders in OTO service scenarios, which can enrich and improve the user's operating experience.

[0027] In conjunction with the first aspect, in one possible approach, the controls displayed in the message display area include instant messaging controls. Upon receiving a trigger operation on the control, the method of executing the operation indicated by the control based on a short-range communication connection could be: upon receiving a trigger operation on the instant messaging control, instant communication is performed with the second electronic device based on a short-range communication connection between the first electronic device and the second electronic device.

[0028] As can be seen, this technical solution can realize instant communication in OTO service scenarios based on short-range communication connections between electronic devices. This eliminates communication costs, which is a significant improvement over the current method where service orderers and service providers need to pay call charges when contacting each other by phone. This reduces usage costs and enriches and enhances the user's instant communication experience.

[0029] In conjunction with the first aspect, in one possible approach, the control displayed in the message display area includes a positioning control. Upon receiving a trigger operation for the control, the method of executing the operation indicated by the control based on a short-range communication connection could be: upon receiving a trigger operation for the positioning control, based on a short-range communication connection between the first electronic device and the second electronic device, the distance information and / or orientation information between the second electronic device and the first electronic device are measured in real time.

[0030] As can be seen, in this technical solution, positioning in OTO service scenarios can be achieved by manually triggering the positioning control to trigger a short-range communication connection between electronic devices. This not only achieves accurate positioning, but also has higher positioning accuracy compared to the current positioning method based on positioning devices configured on electronic devices, which has positional deviations. Furthermore, it can also achieve a variety of positioning methods.

[0031] In one possible approach, the above method may further include: displaying the distance information and / or location information in real time in the message display area.

[0032] As can be seen, in this technical solution, the precise distance and / or orientation information between the second electronic device and the first electronic device can be displayed in real time in the message display area. This allows users to know the precise distance and orientation between the service provider and the first electronic device in real time, thereby enriching and improving the user's positioning experience.

[0033] In conjunction with the first aspect, in one possible approach, the controls displayed in the message display area include a service status confirmation control. Upon receiving a trigger operation on the control, the method for executing the operation indicated by the control based on a short-range communication connection could be: upon receiving a trigger operation on the service status confirmation control, generating service status confirmation information; sending the service status confirmation information to the second electronic device based on the short-range communication connection between the first and second electronic devices; the service status confirmation information instructing the second electronic device to send a status adjustment request to the service platform, the status adjustment request being used to request the service platform to adjust the service status of the service order.

[0034] As can be seen, this technical solution enables service status confirmation in OTO service scenarios based on short-range communication connections between electronic devices. The service ordering party (or the user of the first electronic device) directly confirms the service status using a service status confirmation control. This process eliminates the need for the service ordering party to verbally disclose any personal information to the service provider (or the user of the second electronic device). Compared to current methods where the service ordering party needs to verbally disclose personal information (such as the last four digits of a mobile phone number) to the service provider, who then inputs this information to confirm service commencement, this approach avoids the leakage of personal information and thus enriches and enhances the user's service status confirmation experience.

[0035] Furthermore, due to the limited communication distance supported by short-range communication connections, when the service ordering object is far from the service provider (or the first electronic device is far from the second electronic device), the service ordering object cannot confirm the service status based on the short-range communication connection. In this case, the service status of the service order cannot be adjusted to the start state. Only when the service ordering object is close to the service provider can the service ordering object confirm the service status based on the short-range communication connection, and only then can the service status of the service order be adjusted to the start state. This can prevent situations where services are falsely executed (e.g., someone is not working overtime at the company, but falsely takes a taxi to a certain place to pick themselves up, and then claims reimbursement based on the taxi record).

[0036] In conjunction with the first aspect, in one possible approach, the service order is a vehicle service order, the second electronic device is located inside the vehicle executing the vehicle service order, the second electronic device has established a communication connection with the vehicle, and the controls displayed in the message display area include vehicle control controls; upon receiving a trigger operation for the control, the method of executing the operation indicated by the control based on the short-range communication connection may include: upon receiving a trigger operation for the vehicle control control, generating vehicle control information; and sending the vehicle control information to the second electronic device based on the short-range communication connection between the first electronic device and the second electronic device; the vehicle control information is used to instruct the second electronic device to perform control operations on the vehicle.

[0037] As can be seen, this technical solution can realize vehicle control in OTO service scenarios based on short-range communication connections between electronic devices. Moreover, the control of the vehicle of the service provider is initiated by the service ordering object, which can enrich and enhance the user's vehicle control experience.

[0038] In conjunction with the first aspect, in one possible approach, the above method further includes: determining the service status of a service order based on one or more of the following: third positioning information of the first electronic device, fourth positioning information of the second electronic device, distance information between the second electronic device and the first electronic device measured based on a short-range communication connection, and connection status of the short-range communication connection; and sending a service termination request to the service platform when the service status is a service termination status, the service termination request being used to request the service platform to terminate the service order.

[0039] As can be seen, this technical solution can automatically determine the service status of a service order. When the service status is "service completed", it can automatically apply to the service platform to terminate the service order. This can terminate the service order in a timely manner and avoid unreasonable service fees due to the failure to terminate the service order in a timely manner.

[0040] Secondly, embodiments of this application provide another communication method that can be applied to a second electronic device, the method comprising:

[0041] The service application's interface displays the service order of the first electronic device; it receives the service order acceptance operation for the service order and sends an order acceptance request to the service platform to which the service application belongs. The order request is used to request the service platform to accept the service order for the second electronic device; based on the order information of the service order, it establishes a short-range communication connection with the first electronic device. The short-range communication connection is used to execute the operations associated with the service order.

[0042] As can be seen, this technical solution enables operations related to service orders in OTO service scenarios based on short-range communication connections between electronic devices, thereby enriching and enhancing the user experience. Furthermore, the short-range communication connection between electronic devices is established based on the order information of the service order, ensuring that only two electronic devices associated with the service order establish a short-range communication connection, thus avoiding accidental connections and guaranteeing connection accuracy.

[0043] In conjunction with the second aspect, in one possible approach, the method for establishing a short-range communication connection with the first electronic device based on the order information of the service order could be: generating broadcast information based on the order information of the service order; broadcasting the broadcast information, which triggers the first electronic device to send a communication connection request to the second electronic device; upon receiving the communication connection request from the first electronic device, establishing a short-range communication connection with the first electronic device and sending a communication connection response to the first electronic device, which indicates that the short-range communication connection between the second electronic device and the first electronic device has been successfully established.

[0044] As can be seen, in this technical solution, the second electronic device (i.e., the order receiving end) broadcasts service order information, and the first electronic device (i.e., the order placing end) discovers the second electronic device by searching for the broadcast information and establishes a short-range communication connection with the second electronic device. This can improve the accuracy of the communication connection, thereby avoiding useless connection operations with other devices and improving the efficiency of the communication connection.

[0045] In conjunction with the second aspect, one possible approach to generating broadcast information based on the order information of a service order is to: obtain first information from the order information of the service order; perform a first encryption calculation on the first information to generate broadcast information.

[0046] As can be seen, in this technical solution, the broadcast information is obtained by encrypting specific information in the order information, which can achieve privacy protection for the information that needs to be broadcast.

[0047] In conjunction with the second aspect, in one possible approach, the communication connection request from the first electronic device carries verification information. Upon receiving the communication connection request from the first electronic device, the method of establishing a short-range communication connection with the first electronic device and sending a communication connection response to the first electronic device may be as follows: upon receiving the communication connection request from the first electronic device, the verification information is verified; if the verification information is verified successfully, a short-range communication connection is established with the first electronic device, and a communication connection response is sent to the first electronic device.

[0048] As can be seen, in this technical solution, a short-range communication connection is established between electronic devices only after the verification information is verified, which ensures the accuracy and security of the communication connection.

[0049] In conjunction with the second aspect, one possible approach to broadcasting the broadcast information could be: determining the location information of the second electronic device; obtaining the location information of the first electronic device from the service platform; determining the distance between the first and second electronic devices based on the location information of the second and first electronic devices; and broadcasting the broadcast information if the distance is less than or equal to a distance threshold.

[0050] It is evident that in this technical solution, the broadcast information is only broadcast when the distance between the second electronic device and the first electronic device is relatively short. This reduces useless information broadcasting operations when the distance is long, thereby reducing the computer resource consumption and power consumption of the electronic devices.

[0051] In conjunction with the second aspect, in one possible approach, the method for establishing a short-range communication connection with the first electronic device based on the order information of the service order could be as follows: based on the order information of the service order, determine the broadcast information to be searched, which is the information broadcast by the first electronic device for the service order; search for the broadcast information, and if the broadcast information is found, send a communication connection request to the first electronic device, which is used to request the first electronic device to establish a short-range communication connection with the second electronic device; receive a communication connection response from the first electronic device, which is used to indicate that the short-range communication connection between the first electronic device and the second electronic device has been successfully established.

[0052] As can be seen, in this technical solution, the first electronic device (i.e., the order-placing end) broadcasts service order information, and the second electronic device (i.e., the order-receiving end) discovers the first electronic device by searching for the broadcast information and establishes a short-range communication connection with the first electronic device. This can improve the accuracy of the communication connection, thereby avoiding useless connection operations with other devices, improving the efficiency of the communication connection, and increasing the diversity of communication connection establishment methods.

[0053] In conjunction with the second aspect, in one possible manner, the communication connection request sent to the first electronic device carries verification information, which is used to request the first electronic device to establish a short-range communication connection with the second electronic device if the verification information is verified successfully.

[0054] As can be seen, in this technical solution, a short-range communication connection is established between electronic devices only after the verification information is verified, which ensures the accuracy and security of the communication connection.

[0055] In conjunction with the second aspect, in one possible approach, the above method further includes: obtaining second information from the order information; performing a second encryption calculation on the second information to generate verification information.

[0056] As can be seen, in this technical solution, the verification information is obtained by encrypting and calculating specific information in the order information. That is, the verification information is associated with the service order. In this way, only electronic devices associated with the service order can verify the verification information, thereby ensuring that two electronic devices associated with the service order establish a short-range communication connection and achieve accurate connection.

[0057] In conjunction with the second aspect, in one possible approach, the above method further includes: based on the short-range communication connection between the second electronic device and the first electronic device, measuring the distance information and / or orientation information between the first electronic device and the second electronic device in real time, and displaying the distance information and / or orientation information in real time in the message display area of ​​the display interface.

[0058] As can be seen, this technical solution enables location tracking in OTO service scenarios based on short-range communication connections between electronic devices. This allows for precise positioning, achieving higher accuracy compared to current positioning methods that rely on electronic device configurations and are prone to location discrepancies. Furthermore, the precise distance and / or orientation information between the first and second electronic devices can be displayed in real-time in the message display area of ​​the interface. This allows users to understand the precise distance and orientation between themselves and the service provider, enriching and enhancing their positioning experience.

[0059] In conjunction with the second aspect, in one possible approach, the above method further includes: conducting real-time communication with the first electronic device based on a short-range communication connection between the second electronic device and the first electronic device.

[0060] As can be seen, this technical solution can realize instant communication in OTO service scenarios based on short-range communication connections between electronic devices. This eliminates communication costs, which is a significant improvement over the current method where service orderers and service providers need to pay call charges when contacting each other by phone. This reduces usage costs and enriches and enhances the user's instant communication experience.

[0061] In conjunction with the second aspect, in one possible approach, the above method further includes: receiving service status confirmation information from the first electronic device based on a short-range communication connection between the second electronic device and the first electronic device, and sending a status adjustment request to the service platform, wherein the status adjustment request is used to request the service platform to adjust the service status of the service order.

[0062] As can be seen, this technical solution can realize service status confirmation in OTO service scenarios based on short-range communication connections between electronic devices. This process does not require the service ordering object (or the user of the first electronic device) to verbally inform the service provider (or the user of the second electronic device) of any personal information. Compared with the current method where the service ordering object needs to verbally inform the service provider of personal information (such as the last four digits of the mobile phone number) and the service provider inputs the information to confirm the start of the service, the leakage of personal information can be avoided, thereby enriching and improving the user's service status confirmation experience.

[0063] In conjunction with the second aspect, in one possible approach, the above method further includes: when the service order is a vehicle service order, receiving vehicle control information from the first electronic device based on a short-range communication connection between the second electronic device and the first electronic device, and performing control operations on the vehicle based on the vehicle control information; the vehicle is the vehicle executing the vehicle service order, the second electronic device is located inside the vehicle, and the second electronic device has established a communication connection with the vehicle.

[0064] As can be seen, this technical solution can realize vehicle control in OTO service scenarios based on short-range communication connections between electronic devices, which can enrich and enhance the user's vehicle control experience.

[0065] In conjunction with the second aspect, in one possible approach, the method further includes: displaying a control in a message display area of ​​the display interface; and, upon receiving a trigger operation for the control, executing the operation indicated by the control based on a short-range communication connection between the second electronic device and the first electronic device, wherein the operation indicated by the control is an operation associated with a service order.

[0066] As can be seen, in this technical solution, the short-range communication connection between electronic devices can be triggered by manually triggering the control, thereby enabling operations related to service orders in OTO service scenarios, which can enrich and improve the user's operating experience.

[0067] Thirdly, this application provides an electronic device comprising: one or more processors, a memory, and a communication interface; the communication interface is used for information interaction with other devices; the memory is coupled to the one or more processors and is used to store computer program code, the computer program code including computer instructions; the one or more processors call the computer instructions to cause the electronic device to perform: receiving a service order operation in a service application; sending an order release request to the service platform to which the service application belongs, the order release request being used to request the service platform to release a service order; if the service order is accepted by a second electronic device, establishing a short-range communication connection with the second electronic device based on the order information of the service order; and performing operations associated with the service order based on the short-range communication connection.

[0068] In conjunction with the third aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: if a service order is accepted by the second electronic device, determine, based on the order information of the service order, a broadcast message to be searched, which is the information broadcast by the second electronic device for the service order; if the broadcast message is found, send a communication connection request to the second electronic device, which requests the second electronic device to establish a short-range communication connection with the first electronic device; and receive a communication connection response from the second electronic device, which indicates that the short-range communication connection has been successfully established.

[0069] In conjunction with the third aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: obtaining first information from the order information of the service order; performing a first encryption calculation on the first information to generate broadcast information to be searched.

[0070] In conjunction with the third aspect, in one possible manner, the communication connection request sent to the second electronic device carries verification information, which is used to request the second electronic device to establish a short-range communication connection with the first electronic device if the verification information is verified successfully.

[0071] In conjunction with the third aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: obtaining second information from the order information; performing a second encryption calculation on the second information to generate verification information.

[0072] In conjunction with the third aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: determining first location information of the first electronic device; obtaining second location information of the second electronic device from the service platform; determining the distance between the first electronic device and the second electronic device based on the first and second location information; and searching for the broadcast information if the distance is less than or equal to a distance threshold.

[0073] In conjunction with the third aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: generating broadcast information based on the order information of the service order when the service order is accepted by the second electronic device; broadcasting the broadcast information to trigger the second electronic device to send a communication connection request to the first electronic device; and, upon receiving the communication connection request from the second electronic device, establishing a short-range communication connection with the second electronic device and sending a communication connection response to the second electronic device, the communication connection response indicating that the short-range communication connection has been successfully established.

[0074] In conjunction with the third aspect, in one possible manner, the communication connection request from the second electronic device carries authentication information, and the one or more processors invoke the computer instructions to cause the electronic device to perform: upon receiving the communication connection request from the second electronic device, verifying the authentication information; if the authentication information is verified successfully, establishing a short-range communication connection with the second electronic device and sending a communication connection response to the second electronic device.

[0075] In conjunction with the third aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: based on a short-range communication connection, real-time measurement of distance information and / or orientation information between the second electronic device and the first electronic device; and real-time display of the distance information and / or orientation information in the message display area of ​​the display interface.

[0076] In conjunction with the third aspect, in one possible manner, the one or more processors invoke computer instructions to cause the electronic device to perform: displaying a control in a message display area of ​​the display interface; and, upon receiving a trigger operation for the control, performing an operation indicated by the control based on a short-range communication connection, the operation indicated by the control being an operation associated with a service order.

[0077] In conjunction with the third aspect, in one possible manner, the control includes an instant messaging control, wherein the one or more processors invoke computer instructions to cause the electronic device to perform: upon receiving a trigger operation for the instant messaging control, to perform instant messaging with a second electronic device based on a short-range communication connection.

[0078] In conjunction with the third aspect, in one possible manner, the control includes a positioning control, wherein the one or more processors invoke computer instructions to cause the electronic device to perform: upon receiving a trigger operation for the positioning control, measuring in real time the distance and / or orientation information between the second electronic device and the first electronic device based on a short-range communication connection; and displaying the distance and / or orientation information in real time in a message display area.

[0079] In conjunction with the third aspect, in one possible manner, the control includes a service status confirmation control, wherein the one or more processors invoke computer instructions to cause the electronic device to perform: upon receiving a trigger operation for the service status confirmation control, generating service status confirmation information; sending the service status confirmation information to a second electronic device based on a short-range communication connection; the service status confirmation information being used to instruct the second electronic device to send a status adjustment request to the service platform, the status adjustment request being used to request the service platform to adjust the service status of the service order.

[0080] In conjunction with the third aspect, in one possible manner, the service order is a vehicle service order, the second electronic device is located inside the vehicle executing the vehicle service order, the second electronic device has a communication connection with the vehicle, and the control includes a vehicle control control; the one or more processors invoke the computer instructions to cause the electronic device to perform: upon receiving a trigger operation for the vehicle control control, generating vehicle control information; and sending the vehicle control information to the second electronic device based on a short-range communication connection; the vehicle control information is used to instruct the second electronic device to perform control operations on the vehicle.

[0081] In conjunction with the third aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: determining the service status of a service order based on one or more of the following: third location information of the first electronic device, fourth location information of the second electronic device, distance information between the second electronic device and the first electronic device, and connection status of a short-range communication connection; the distance information is measured based on the short-range communication connection; and, if the service status is a service termination status, sending a service termination request to the service platform; the service termination request is used to request the service platform to terminate the service order.

[0082] Fourthly, this application provides another electronic device, comprising: one or more processors, a memory, and a communication interface; the communication interface is used for information interaction with other devices, the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the electronic device to perform: displaying a service order of a first electronic device in the application interface of a service application; receiving a service order acceptance operation for the service order, sending an order acceptance request to the service platform to which the service application belongs, the order request being used to request the service platform to accept the service order for the second electronic device; and establishing a short-range communication connection with the first electronic device based on the order information of the service order, the short-range communication connection being used to perform operations associated with the service order.

[0083] In conjunction with the fourth aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: generating broadcast information based on order information of a service order; broadcasting the broadcast information to trigger a communication connection request from a first electronic device to a second electronic device; and, upon receiving a communication connection request from the first electronic device, establishing a short-range communication connection with the first electronic device and sending a communication connection response to the first electronic device, the communication connection response indicating that the short-range communication connection has been successfully established.

[0084] In conjunction with the fourth aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: obtaining first information from the order information of the service order; performing a first encryption calculation on the first information to generate broadcast information.

[0085] In conjunction with the fourth aspect, in one possible manner, the communication connection request from the first electronic device carries authentication information, and the one or more processors invoke the computer instructions to cause the electronic device to perform: upon receiving the communication connection request from the first electronic device, verifying the authentication information; if the authentication information is verified successfully, establishing a short-range communication connection with the first electronic device and sending a communication connection response to the first electronic device.

[0086] In conjunction with the fourth aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: determining the location information of the second electronic device; obtaining the location information of the first electronic device from the service platform; determining the distance between the first electronic device and the second electronic device based on the location information of the second electronic device and the location information of the first electronic device; and broadcasting the broadcast information if the distance is less than or equal to a distance threshold.

[0087] In conjunction with the fourth aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: determining, based on the order information of the service order, the broadcast information being broadcast by the first electronic device in response to the service order; if the broadcast information is found, sending a communication connection request to the first electronic device, the communication connection request being used to request the first electronic device to establish a short-range communication connection with the second electronic device; and receiving a communication connection response from the first electronic device, the communication connection response indicating that the short-range communication connection has been successfully established.

[0088] In conjunction with the fourth aspect, in one possible manner, the communication connection request sent to the first electronic device carries verification information, which is used to request the first electronic device to establish a short-range communication connection with the second electronic device if the verification information is verified successfully.

[0089] In conjunction with the fourth aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: obtaining second information from the order information; performing a second encryption calculation on the second information to generate verification information.

[0090] In conjunction with the fourth aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: based on a short-range communication connection, real-time measurement of distance and / or orientation information between the first electronic device and the second electronic device, and real-time display of the distance and / or orientation information in the message display area of ​​the display interface; or,

[0091] Based on a short-range communication connection, it enables real-time communication with a first electronic device; or...

[0092] Based on a short-range communication connection, the system receives service status confirmation information from a first electronic device and sends a status adjustment request to the service platform. This status adjustment request is used to request the service platform to adjust the service status of the service order; or...

[0093] In the case of a vehicle service order, the system receives vehicle control information from a first electronic device based on a short-range communication connection, and performs control operations on the vehicle based on the vehicle control information; the vehicle is the vehicle executing the vehicle service order, the second electronic device is located inside the vehicle, and the second electronic device has established a communication connection with the vehicle.

[0094] In conjunction with the fourth aspect, in one possible manner, the one or more processors invoke computer instructions to cause the electronic device to perform: displaying a control in a message display area of ​​the display interface; and, upon receiving a trigger operation for the control, performing an operation indicated by the control based on a short-range communication connection, the operation indicated by the control being an operation associated with a service order.

[0095] Fifthly, this application provides a chip system including one or more processors, a memory, and an interface circuit. The memory, the interface circuit, and the one or more processors are interconnected via circuits. The memory stores program instructions. When the program instructions are executed by the processor, the chip system implements the method described in the first aspect above, or implements the method described in the second aspect above.

[0096] In a sixth aspect, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in the first aspect above, or implements the method described in the second aspect above.

[0097] In a seventh aspect, this application provides a computer program product containing instructions that, when the computer program product is run on an electronic device, cause the electronic device to implement the method described in the first aspect above, or to implement the method described in the second aspect above. Attached Figure Description

[0098] Figure 1 This application provides an exemplary architectural diagram of a communication system.

[0099] Figures 2A-2D This is an example of an interface diagram illustrating an order placement operation in a service application, provided as an embodiment of this application.

[0100] Figures 3A-3B This is a schematic diagram of an interface for accepting service orders in a service application, provided as an example of an embodiment of this application.

[0101] Figures 4A-4D A schematic diagram of an interface for displaying information in the form of capsule notifications is provided as an example of an embodiment of this application;

[0102] Figure 5 A flowchart illustrating a communication method provided as an example of an embodiment of this application;

[0103] Figure 6 A flowchart illustrating another communication method provided as an example of an embodiment of this application;

[0104] Figures 7A-7BThis is an exemplary schematic diagram of another interface for displaying information in the form of capsule notifications, provided as an example of an embodiment of this application.

[0105] Figure 8A A flowchart illustrating yet another communication method provided as an example of an embodiment of this application;

[0106] Figure 8B A flowchart illustrating yet another communication method provided as an example of an embodiment of this application;

[0107] Figure 9A A flowchart illustrating yet another communication method provided as an example of an embodiment of this application;

[0108] Figure 9B A flowchart illustrating yet another communication method provided as an example of an embodiment of this application;

[0109] Figure 10 This is a schematic diagram of the software structure of an electronic device provided as an example of an embodiment of this application;

[0110] Figure 11 This is a schematic diagram of the hardware structure of an electronic device provided as an example of an embodiment of this application. Detailed Implementation

[0111] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0112] The terms "first," "second," "third," etc., used in the embodiments of this application are to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, it may include a series of steps or units, or optionally, steps or units not listed, or other steps or units inherent to these processes, methods, products, or devices. The terms "one embodiment" or "some embodiments," etc., mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of the embodiments of this application, do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.

[0113] In the embodiments of this application, the words "exemplary," "for example," or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary," "for example," or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the words "exemplary," "for example," or "for instance" is intended to present the relevant concepts in a specific manner.

[0114] Furthermore, "at least one" refers to one or more, while "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b, and c, where a, b, and c can be single or multiple.

[0115] The term "Bluetooth" as used in the following embodiments of this application, also known as Bluetooth Classic, is a low-cost, low-power, short-range wireless communication technology that allows devices to transmit data and voice without cables. It enables wireless connection and communication via a peer-to-peer network, facilitating rapid pairing and data transfer between devices.

[0116] BLE (Bluetooth Low Energy): Bluetooth Low Energy is a short-range, low-cost, interoperable wireless technology designed to extend the classic Bluetooth technology.

[0117] ZigBee is a low-power, low-cost, low-data-rate, short-range wireless communication technology. Based on the IEEE 802.15.4 standard, ZigBee is a wireless communication protocol focused on low-data-rate, short-range wireless sensor network applications.

[0118] Dynamic Capsule: Primarily used to display real-time dynamic information about ongoing tasks, such as vehicle status when hailing a ride, flight boarding time, and delivery progress, allowing users to easily view real-time status, perform quick actions, or rapidly access applications. Users can interact with the Dynamic Capsule through simple actions like clicking and swiping to expand it for more information or perform related operations. The Dynamic Capsule is typically displayed in a "capsule" shape at the top of the screen, and can collapse into a "ball" shape, reopening after a period of time until the task status ends. This design aims to provide real-time task or reminder information without interfering with the user's current operation.

[0119] An application interface (or user interface, UI) is the medium through which an application or operating system interacts and exchanges information with the user. It converts the internal form of information into a form that the user can understand. The user interface is source code written in specific computer languages ​​such as Java or Extensible Markup Language (XML). This source code is parsed and rendered on the electronic device, ultimately presenting content that the user can recognize. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be visible interface elements displayed on the screen of an electronic device, such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.

[0120] The following uses a ride-hailing scenario as an example to illustrate the system architecture and application scenarios of this application embodiment.

[0121] The communication method provided in this application embodiment can be applied to... Figure 1 The communication system shown. Figure 1 The communication system shown may include, but is not limited to, a first electronic device 101, a second electronic device 102, and a service platform 103. The service platform 103 may be a platform providing ride-hailing services. The first electronic device 101 and the second electronic device 102 may be devices with network connectivity, capable of establishing a communication connection with the service platform 103 via a network. The first electronic device 101 and the second electronic device 102 may also have short-range communication capabilities, for example, Bluetooth Low Energy (BLE) communication capabilities. Figure 1The system also includes a service ordering entity 104, a service provider 105, and a vehicle 106 that performs the ride-hailing service. The service ordering entity 104 is the user of the first electronic device 101, and can be referred to as a passenger in the ride-hailing scenario; the service provider 105 is the user of the second electronic device 102, and can be referred to as a driver in the ride-hailing scenario. The service ordering entity 104 can use the first electronic device 101 to post a ride-hailing order on the service platform 103, and the service provider 105 can use the second electronic device 102 to accept ride-hailing orders on the service platform 103 and use its vehicle 106 to perform the service corresponding to the ride-hailing order. Screen 107 shows the interior view of vehicle 106, with the service provider 105 located in the driver's position inside the vehicle.

[0122] Figure 1 The form of the device is used for illustration and does not constitute a limitation on the embodiments of this application. For example, Figure 1 The first electronic device 101 and the second electronic device 102 are exemplarily smartphones. In one possible embodiment, the first electronic device 101 and the second electronic device 102 may also be devices capable of configuring service applications, such as smartwatches, but are not limited thereto. In one possible embodiment, the service platform 103 may be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, and middleware services.

[0123] like Figure 2A As shown, the first electronic device 101 can display a main screen interface, which includes multiple application icons, such as weather app icon, stock app icon, calculator app icon, settings app icon, email app icon, gallery app icon, Facebook app icon, browser app icon, app store icon, music app icon, video app icon, and ride-hailing app icon 21. Below each application icon is a page indicator to show the positional relationship between the currently displayed page and other pages. The first electronic device 101 can receive a trigger operation 22 (e.g., a click operation) from the user (i.e., the service order object 104) on the ride-hailing app icon 21. In response to the trigger operation 22, the first electronic device 101 can display... Figure 2B The image shows the interface of a ride-hailing application (passenger-side ride-hailing application).

[0124] like Figure 2B As shown, the application interface includes multiple interface objects, such as a search box, a "scan" control, and a "hail a taxi" control 23. The first electronic device 101 can receive a user's trigger operation 24 (e.g., a click operation) on the "hail a taxi" control 23. In response to the trigger operation 24, the first electronic device 101 can display... Figure 2CThe image shows the interface of a ride-hailing app. Figure 2C As shown, the application interface includes multiple interface objects, such as: "Pick-up Location" input box 25, "Destination" input box 26, etc. The first electronic device 101 can receive the user's input operation 27 for the "Pick-up Location" input box 25 and the "Destination" input box 26, and determine the pick-up location (north gate of Community A) and the destination (parking lot of Community B) entered in the input operation 27.

[0125] Upon completion of input operation 27, the first electronic device 101 may display as follows: Figure 2D The application interface of the ride-hailing app shown is as follows: Figure 2D As shown, the application interface includes multiple interface objects, such as: the route from the pick-up location to the destination, the estimated taxi fare, and the "Call a Taxi Now" control 28. The first electronic device 101 can receive a user's trigger operation 29 (e.g., a click operation) on the "Call a Taxi Now" control 28. In response to the trigger operation 29, the first electronic device 101 can send an order publishing request to the service platform 103 to which the taxi application belongs. Upon receiving the order publishing request from the first electronic device 101, the service platform responds by publishing a service order for the first electronic device 101 (or service order object 104), which is a taxi order from "North Gate of Community A" to "Parking Lot of Community B".

[0126] Upon receiving a service order from the first electronic device 101 published by the service platform 103, the second electronic device 102 can display [the relevant information] based on the service order from the first electronic device 101. Figure 3A The image shows the interface of a ride-hailing app (driver-side ride-hailing app). Figure 3A As shown, the application interface includes multiple interface objects, such as: "Pick-up Location: North Gate of Community A", "Destination: Parking Lot of Community B", and "Accept Order Now" control 31. The second electronic device 102 can receive trigger operations 32 (e.g., click operations) from the user (i.e., service provider 105) on the "Accept Order Now" control 31. In response to the trigger operation 32, the second electronic device 102 can send an order acceptance request to the service platform 103 to which the ride-hailing application belongs. Upon receiving the order acceptance request from the second electronic device 102, the service platform 103, in response to the order acceptance request, accepts the service order from the first electronic device 101 for the second electronic device 102 (or service provider 105) and sends an order acceptance response to the second electronic device 102, indicating that the service order has been successfully accepted. Upon receiving the order acceptance response from the service platform 103, the second electronic device 102 can display... Figure 3B The image shows the interface of a ride-hailing app. Figure 3BAs shown, the application interface includes a route from the boarding location to the destination.

[0127] When the service platform 103 successfully accepts a service order for the second electronic device 102, it can send the order information of this service order to the first electronic device 101 and the second electronic device 102. The order information may include service acceptance information. For the taxi-hailing scenario, the service acceptance information may include: the estimated arrival time of the driver, the vehicle information of the vehicle 106 performing the taxi-hailing service, the order number, and so on. Among them, the vehicle information may include the license plate number (such as Bing AA1212), the vehicle color, and so on. Information such as the estimated arrival time of the driver can be updated in real time.

[0128] When the second electronic device 102 successfully accepts the order, it can use an encryption algorithm to encrypt information such as the license plate number, generate broadcast information, and perform Bluetooth broadcasting on the broadcast information. For example, the license plate number is Bing AA1212, and the broadcast information is BLE_ABCDE.

[0129] When the service order operation is completed, the first electronic device 101 can run the taxi-hailing application in the background according to the user operation, and display the application interface of other applications or the system desktop in the foreground. As Figure 4A shown, the first electronic device 101 can display the live application interface. When the service order released by the first electronic device 101 is accepted and the first electronic device 101 receives the order information from the service platform 103, it can display some order information (such as service acceptance information) in the form of a capsule notification in the display interface. As Figure 4B shown, a smart capsule 41 can be displayed at the top of the display interface. The smart capsule includes the following information: the estimated arrival time of the driver is 4 minutes, "license plate number Bing AA1212", and the vehicle color is white. The first electronic device 101 can obtain information such as the license plate number from the smart capsule 41, and use an encryption algorithm to parse the Bluetooth broadcast information of the second electronic device 102 (i.e., the driver's electronic device). For example, the broadcast information generated by the second electronic device 102 at the driver's end according to the license plate number is BLE_ABCDE. Only the passenger-side electronic device that can obtain the driver's license plate number from the smart capsule and knows the corresponding encryption algorithm can parse the broadcast information of the driver's electronic device according to the license plate number. Among them, the first electronic device 101 and the second electronic device 102 may belong to the same production object (or manufacturer). The two may be configured with the same encryption and decryption algorithms at the factory, or they may have the same encryption and decryption algorithms through later software or firmware updates.

[0130] When the second electronic device 102 and the first electronic device 101 are close together (i.e., the driver and passenger are close together), the second electronic device 102 broadcasts Bluetooth information. The first electronic device 101 searches for the corresponding broadcast information, thus automatically discovering the Bluetooth broadcast information of the second electronic device 102. Upon discovering the Bluetooth broadcast information of the second electronic device 102, the first electronic device 101 can request to establish a Bluetooth connection with the second electronic device 102 (which may be a BLE Bluetooth connection).

[0131] During the Bluetooth connection establishment process, the second electronic device 102 can authenticate the first electronic device 101 (i.e., the driver authenticates the passenger). At this time, both the second electronic device 102 and the first electronic device 101 can encrypt and calculate a verification code based on information such as the license plate number. For example, the verification code generated by the second electronic device 102 on the driver's end based on the license plate number is `authen_hon`. Only the passenger's electronic device, which can obtain the driver's license plate number from something like a smart capsule and is familiar with the corresponding encryption algorithm, can calculate the authentication code `authen_hon` based on the license plate number. The first electronic device 101 sends the verification code to the second electronic device 102. The second electronic device 102 compares its own generated verification code with the verification code from the first electronic device 101. If they match, the first electronic device 101 is deemed to have successfully authenticated, and a Bluetooth connection is established with the first electronic device 101.

[0132] In other embodiments, upon receiving order information from the service platform 103, the first electronic device 101 may use an encryption algorithm to encrypt information such as the license plate number, generate broadcast information, and broadcast the broadcast information via Bluetooth. The second electronic device 102, based on information such as the license plate number, uses an encryption algorithm to parse the Bluetooth broadcast information of the first electronic device 101 (i.e., the passenger's electronic device). When the second electronic device 102 and the first electronic device 101 are close (i.e., the driver and passenger are close), the first electronic device 101 broadcasts the generated broadcast information via Bluetooth, and the second electronic device 102 searches for the corresponding broadcast information, thus automatically discovering the Bluetooth broadcast information of the first electronic device 101. Upon discovering the Bluetooth broadcast information of the first electronic device 101, the second electronic device 102 may request to establish a Bluetooth connection. During the Bluetooth connection establishment process, the first electronic device 101 may authenticate the second electronic device 102 (i.e., the passenger authenticates the driver), at which time both the first electronic device 101 and the second electronic device 102 may encrypt information such as the license plate number to calculate a verification code. The second electronic device 102 sends the verification code to the first electronic device 101. The first electronic device 101 compares its own generated verification code with the verification code from the second electronic device 102. If they match, the first electronic device 102 is deemed to have successfully authenticated the user and a Bluetooth connection is established with the second electronic device 102.

[0133] Once the Bluetooth connection between the first electronic device 101 and the second electronic device 102 is successfully established, before the passenger boards the vehicle, the distance and / or direction of the second electronic device 102 (or the vehicle 106) can be measured via Bluetooth, the passenger can call the driver via Bluetooth, and the vehicle door can be opened via Bluetooth. After the passenger boards the vehicle, the passenger can verify their identity (or confirm boarding) via Bluetooth. This way, the passenger does not need to report the last four digits of their mobile phone number to the driver, and this action can confirm that the passenger has boarded the vehicle and is not a false boarding.

[0134] For example, if the Bluetooth connection between the first electronic device 101 and the second electronic device 102 is successfully established, such as Figure 4CAs shown, the first electronic device 101 can display controls within the flexible capsule 41, which may include: a telephone control 42, a location control 43, a boarding confirmation control 44, and a door opening control 45. When the telephone control 42 is triggered, the first electronic device 101 and the second electronic device 102 can conduct voice calls via Bluetooth, meaning the passenger and driver can communicate via Bluetooth. When the location control 43 is triggered, the first electronic device 101 can measure the distance and orientation between the second electronic device and the first electronic device in real time via a short-range communication connection, such as... Figure 4D As shown, the distance and location can be displayed in the flexible capsule 41 so that passengers know the driver's position and direction. When the boarding confirmation control 44 is triggered, the first electronic device 101 can send a boarding confirmation instruction to the second electronic device 102 via a short-range communication connection to complete the passenger's identity verification, that is, to confirm the start of the journey. When the door opening control 45 is triggered, the first electronic device 101 can send a door opening control information to the second electronic device 102 via a short-range communication connection. Upon receiving the door opening control information from the first electronic device 101, the second electronic device 102 can confirm whether the vehicle is in a state where the door can be opened (e.g., the vehicle has arrived at the boarding location and is stationary). If the vehicle is in a state where the door can be opened, it controls the vehicle to open the door.

[0135] In addition, upon completion of the trip, the first electronic device 101 and / or the second electronic device 102 can automatically confirm the end of the trip by verifying the distance between the passenger and the driver and combining the location information from the service platform.

[0136] The above examples illustrate the application scenarios of this application, using a ride-hailing scenario as an example. This application can also be applied to other application scenarios such as chauffeur services and food delivery.

[0137] The communication method provided in the embodiments of this application is described in detail below.

[0138] Please see Figure 5 , Figure 5 This is a flowchart illustrating a communication method provided in an embodiment of this application. The method may include, but is not limited to, the following steps:

[0139] 501, Service order placement operation in the first electronic device receiving service application.

[0140] The first electronic device can be the electronic device of the service ordering object, and the service application configured on the first electronic device can be a lifestyle service application provided to the service ordering object. The service application is associated with the application scenario. For example, if the application scenario is a ride-hailing scenario, then the service ordering object is the passenger, and the service application is the ride-hailing application on the passenger's end; as another example, if the application scenario is a chauffeur service scenario, then the service ordering object is the car owner, and the service application is the chauffeur service application on the car owner's end; as yet another example, if the application scenario is a food delivery scenario, then the service ordering object is the customer, and the service application is the food delivery application on the customer's end.

[0141] The first electronic device can, upon receiving an activation command for the service application, display the application interface of the service application and receive the service order placed by the user within the application interface. For example, in a ride-hailing scenario, the service order placement operation could include: entering the pick-up location and destination, entering a confirmation command, etc. Similarly, in a chauffeur service scenario, the service order placement operation could include: entering the starting point and destination, entering a confirmation command to call a chauffeur, etc. And in a food delivery scenario, the service order placement operation could include: selecting a merchant and products, submitting the order, entering the delivery address, etc.

[0142] 502, The first electronic device sends an order release request to the service platform to which the service application belongs.

[0143] The order placement request can be used to request the service platform to place a service order. The service platform to which the service application belongs can be an online platform that integrates multiple service functions, aiming to provide users with a convenient and efficient service experience.

[0144] In some embodiments, the first electronic device can determine service order information based on a service order operation, generate an order release request based on the service order information, and send the order release request to the service platform to which the service application belongs. This order release request can be used to request the service platform to release a service order based on the service order information. For example, in a ride-hailing scenario, the service order information may include: pick-up location "North Gate of Community A", destination "Parking Lot of Community B", etc., and the released service order may be a ride-hailing order from "North Gate of Community A" to "Parking Lot of Community B". Similarly, in a food delivery scenario, the service order information may include: merchant name, merchant address, product information, delivery address, etc.

[0145] 503. Upon receiving an order release request from the first electronic device, the service platform responds by releasing a service order in response to the order release request.

[0146] In some embodiments, upon receiving an order placement request from a first electronic device, the service platform can generate a service order based on the service order information carried in the order placement request and publish the service order on the service platform. This may include sending the service order to the electronic device providing the service; this service order may be referred to as the service order of the first electronic device. For example, in a ride-hailing scenario, the service order may include the following information: pick-up location, destination, estimated fare, order time, order number, etc. For example, in a food delivery scenario, the service order may include the following information: merchant name, merchant address, delivery address, delivery fee, order time, order number, etc.

[0147] 504, The second electronic device displays the service order of the first electronic device in the application interface of the service application.

[0148] The second electronic device can be the electronic device of the service provider (or the service order recipient), and the service application configured on the second electronic device can be a lifestyle service application provided to the service provider. The service application on the second electronic device and the service application configured on the first electronic device belong to the same service platform. In some embodiments, the service application on the second electronic device and the service application on the first electronic device can be the same service application, only the application interfaces provided to the service order recipient and the service provider are different. In other embodiments, the service application on the second electronic device and the service application on the first electronic device can be different service applications, but they jointly implement the same type of service, such as jointly implementing a ride-hailing service.

[0149] Upon receiving a service order from the first electronic device sent by the service platform, the second electronic device displays the service order from the first electronic device in the application interface of the service application. For example, ... Figure 3A As shown, this displays taxi orders from "North Gate of Community A" to "Parking Lot of Community B".

[0150] 505, The second electronic device receives a service order acceptance operation for the service order.

[0151] In some embodiments, the second electronic device further displays a service order acceptance control associated with the service order of the first electronic device in the application interface of the service application. The second electronic device receives a service order acceptance operation for the service order, which may be a trigger operation on the service order acceptance control. The trigger operation may be a gesture operation, such as a click operation. For example, as... Figure 3AAs shown, the application interface also displays an "Accept Order Now" control 31 associated with the "taxi order from the north gate of Community A to the parking lot of Community B". When a trigger operation 32 (such as a click operation) is received for the "Accept Order Now" control 31, it is a service order acceptance operation for the service order of the first electronic device.

[0152] 506. The second electronic device sends an order acceptance request to the service platform to which the service application belongs.

[0153] The order acceptance request is used to request the service platform to accept the service order from the first electronic device for the second electronic device.

[0154] 507. Upon receiving an order acceptance request from the second electronic device, the service platform responds to the order acceptance request by accepting a service order for the second electronic device.

[0155] 508, order information generated by the service platform for the service order.

[0156] When the service platform successfully accepts a service order for the second electronic device, meaning the service order is accepted by the second electronic device, the service platform can generate order information for the service order. This order information may include one or more of the following: service order acceptance information, service order placement information, and other information associated with the service order. Service order acceptance information may include the service order acceptance time, information about the service provider, the order number, etc. The information about the service provider is related to the application scenario. For example, in a ride-hailing scenario, the service order is a ride-hailing order, and the information about the service provider may include: information about the vehicle used by the service provider to execute the ride-hailing order, such as the license plate number and vehicle color. Similarly, in scenarios such as chauffeur services and food delivery, the information about the service provider may include: the account information of the service provider logged into the service platform, the estimated arrival time of the service provider, etc.

[0157] 509. The service platform sends order information to the first electronic device and the second electronic device.

[0158] The content of the order information sent by the service platform to the first electronic device may be the same as or different from the content of the order information sent to the second electronic device.

[0159] 510. Upon receiving order information from the service platform, the second electronic device generates broadcast information based on the order information.

[0160] When the second electronic device receives the order information from the service platform, it indicates that the service platform has successfully accepted the service order for the second electronic device. At this time, based on the order information of the service order, broadcast information for the service order of the first electronic device can be generated.

[0161] In some embodiments, the second electronic device can obtain the first information from the order information of the service order. The first information is the information that needs to be broadcast. The first information is subjected to the first encryption calculation to generate the broadcast information. Among them, the second electronic device can perform the encryption calculation on the first information based on the first encryption algorithm configured by itself, and determine the broadcast information based on the encryption calculation result. The specific content of the first information is associated with the application scenario. For example, for the taxi-hailing scenario, the first information may include the license plate number, or may include the license plate number and the order number, and so on. Suppose the license plate number is "Bing AA1212". The license plate number "Bing AA1212" is subjected to the encryption calculation, and the encryption calculation result "BLE_ABCDE" is obtained. The calculation result "BLE_ABCDE" can be directly determined as the broadcast information and broadcast, so as to protect the privacy of the vehicle information of the driver who takes the order. Another example, for the driver service scenario and the food delivery scenario, the first information may include the account information of the service recipient logged in on the service platform, or may include the account information and the order number.

[0162] In a feasible implementation manner, the first electronic device can report the device information of the first electronic device to the service platform. The device information can be used to determine the production object (or the manufacturer) of the first electronic device. The second electronic device obtains the device information of the first electronic device from the service platform, and determines the production object of the first electronic device based on the device information. Only when the production object of the first electronic device is the same as the production object of the second electronic device, the second electronic device can obtain the first information from the order information of the service order, and perform the first encryption calculation on the first information to generate the broadcast information. Usually, only when the first electronic device and the second electronic device belong to the same production object, the two are configured with the same encryption and decryption algorithms, so that the first electronic device can parse and discover the information broadcast by the second electronic device for the service order. Optionally, the device information of the first electronic device may be included in the service order placement information sent to the service platform.

[0163] In some other embodiments, when the production object of the first electronic device is different from the production object of the second electronic device, the second electronic device can obtain the first information from the order information of the service order, and directly use the first information as the broadcast information for the service order.

[0164] 511, the second electronic device broadcasts the broadcast information.

[0165] The broadcast message can be used to trigger the first electronic device to send a communication connection request to the second electronic device.

[0166] In some embodiments, the second electronic device may broadcast the broadcast information to an external location based on its short-range communication capability. The short-range communication capability may be implemented using short-range wireless communication technologies, such as Bluetooth Classic, Bluetooth Low Energy (BLE), ZigBee, etc.

[0167] In some embodiments, the broadcast information may be broadcast immediately upon its generation.

[0168] In other embodiments, the broadcast information may be broadcast when the distance between the first electronic device and the second electronic device is detected to be less than or equal to a distance threshold (which may be referred to as the first distance threshold). Since the information propagation distance supported by short-range communication functions is limited, broadcasting information only when the distance is relatively close can reduce useless information broadcasting operations when the distance is relatively far, thereby reducing the computer resource consumption and power consumption of the second electronic device.

[0169] The process could involve determining the location information of a second electronic device, obtaining the location information of a first electronic device from a service platform, and then determining the distance between the two devices based on the location information of the second and first electronic devices. In feasible implementations, the second electronic device could obtain its own location information through a configured positioning device. For example, the positioning device could be a Global Positioning System (GPS) device, and the location information could be GPS positioning information. Alternatively, the first electronic device could obtain its own location information through its configured positioning device, and then actively or passively report this information to the service platform periodically. The service platform would record this location information, and the second electronic device could then obtain the first electronic device's location information from the service platform when needed.

[0170] In other embodiments, the service platform may update the estimated rendezvous time between the service provider (or the second electronic device) and the service ordering object (or the first electronic device) in real time based on the location information reported by the first electronic device and the location information reported by the second electronic device. The second electronic device obtains the estimated rendezvous time from the service platform. If the estimated rendezvous time is less than a time threshold (which may be called the first time threshold), it indicates that the two are close to each other, and then the broadcast information is broadcast.

[0171] 512, Upon receiving order information from the service platform, the first electronic device determines the broadcast information to be searched based on the order information.

[0172] As mentioned earlier, when a service order is accepted by the second electronic device, the service platform generates order information for the service order and sends this information to the first electronic device. Upon receiving the order information from the service platform, the first electronic device can determine the broadcast information to be searched based on this information. This broadcast information is the information broadcast by the second electronic device in response to the service order from the first electronic device.

[0173] In some embodiments, the first electronic device can obtain first information from the order information of a service order; this first information is the information that the second electronic device needs to broadcast. A first encryption calculation is performed on the first information to obtain the broadcast information to be searched. In feasible implementations, the first and second electronic devices belong to the same production object (or manufacturer), and both are configured with the same encryption / decryption algorithm. Similar to the processing method of the second electronic device, the first electronic device can perform encryption calculations on the first information based on its own configured first encryption algorithm, and obtain the broadcast information to be searched based on the encryption calculation result.

[0174] In a feasible implementation, the second electronic device can report its device information to the service platform. This device information can be used to determine the production target (or manufacturer) of the second electronic device. The first electronic device obtains the device information of the second electronic device from the service platform and determines the production target of the second electronic device based on this device information. Only if the production target of the second electronic device is the same as that of the first electronic device, does the first electronic device obtain first information from the order information of the service order and perform a first encryption calculation on the first information to obtain the broadcast information to be searched. Optionally, the device information of the second electronic device may be included in the service order information.

[0175] In other embodiments, when the production object of the second electronic device is different from that of the first electronic device, the first electronic device can obtain the first information from the order information of the service order and directly use the first information as the broadcast information to be searched.

[0176] In some embodiments, upon receiving order information from a service platform, the first electronic device may display all or part of the order information in the message display area of ​​the display interface.

[0177] In a feasible implementation, order information can be displayed in the form of capsule notifications on the display interface, where the message display area can refer to the display location of the capsule notification. For example, ... Figure 4B As shown, the smart capsule 41 can be displayed at the top of the display interface. The smart capsule includes the following order information: the estimated arrival time of the driver is 4 minutes, "license plate number Bing AA1212", and the vehicle color is white. Optionally, the first electronic device can obtain the first information from the order information displayed in the smart capsule, and the first information is used to determine the broadcast information to be searched.

[0178] 513, the first electronic device searches for broadcast information.

[0179] In some embodiments, the first electronic device can search for the broadcast information based on its short-range communication function. The short-range communication function can be implemented based on short-range wireless communication technology, and the short-range wireless communication technology can be classic Bluetooth, low-power Bluetooth BLE, ZigBee, etc.

[0180] In some embodiments, it can be that when the broadcast information to be searched is determined, the broadcast information is searched immediately.

[0181] In other embodiments, it can be that when the distance between the first electronic device and the second electronic device is detected to be less than or equal to a distance threshold (which can be called the second distance threshold, and the second distance threshold can be the same as or different from the first distance threshold described above), the broadcast information is searched. Since the information search distance supported by the short-range communication function is limited, the broadcast information is searched only when the distance is relatively close, which can reduce the useless information search operations when the distance is far, thereby reducing the consumption of computer resources and power of the first electronic device.

[0182] It can be to determine the first positioning information of the first electronic device, obtain the second positioning information of the second electronic device from the service platform, and determine the distance between the first electronic device and the second electronic device based on the first positioning information and the second positioning information. In a feasible implementation manner, it can be that the first electronic device obtains the positioning information of the first electronic device through its configured positioning device. For example, the positioning device is a global positioning system GPS device and the positioning information is GPS positioning information. It can be that the second electronic device obtains the positioning information of the second electronic device through its configured positioning device, and actively or passively reports the positioning information to the service platform at regular intervals. The service platform records the positioning information of the second electronic device, and the first electronic device obtains the positioning information of the second electronic device from the service platform when it needs to obtain the positioning information of the second electronic device.

[0183] In some other embodiments, the service platform may update in real time the estimated meeting time between the service providing object (or the second electronic device) and the service ordering object (or the first electronic device) based on the positioning information reported by the first electronic device and the positioning information reported by the second electronic device. The first electronic device obtains the estimated meeting time from the service platform. When the estimated meeting time is less than a time threshold (which can be called the second time threshold, and the second time threshold may be the same as or different from the first time threshold described above), it indicates that the distance between the two is relatively close. At this time, the first electronic device searches for broadcast information.

[0184] 514, when the first electronic device searches for the broadcast information, it sends a communication connection request to the second electronic device.

[0185] The communication connection request is used to request the second electronic device to establish a short - distance communication connection with the first electronic device. For example, it requests to establish a low - power Bluetooth BLE connection.

[0186] In some embodiments, the communication connection request may carry verification information. The communication connection request is used to request the second electronic device to establish a short - distance communication connection with the first electronic device when the verification information passes the verification. The verification information may be generated based on the order information of the service order.

[0187] In some embodiments, the first electronic device may obtain second information from the order information of the service order. The second information is the information used to generate the verification information. The first electronic device performs a second encryption calculation on the second information to generate the verification information. The first electronic device may perform an encryption calculation on the second information based on the second encryption algorithm configured by itself and determine the verification information based on the encryption calculation result. The specific content of the second information is associated with the application scenario. For example, for a taxi - hailing scenario, the second information may include the license plate number, the order number, and the service ordering time. Suppose the license plate number is "Bing AA1212", the order number is 20122045025, and the service ordering time is 2025 / 1 / 10. After encrypting and calculating the three, the encryption calculation result "authen_hon" is obtained, and the calculation result "authen_hon" can be directly determined as the verification information. Another example, for a driver - for - hire application scenario and a food delivery application scenario, the second information may include: the account information of the service providing object logged in on the service platform, the order number, and the service ordering time.

[0188] The second piece of information can be the same as the first piece of information used to generate the broadcast information. For example, in a ride-hailing scenario, both the first and second pieces of information are the license plate number and the order number. In this case, the second encryption algorithm used to generate the verification information is a different encryption algorithm than the first encryption algorithm used to generate the broadcast information. Alternatively, the second piece of information can be different from the first piece of information used to generate the broadcast information. For example, in a ride-hailing application scenario, the first piece of information is the license plate number, and the second piece of information is the license plate number and the order number. In this case, the second encryption algorithm used to generate the verification information can be the same as the first encryption algorithm used to generate the broadcast information, or it can be a different encryption algorithm.

[0189] In a feasible implementation, the first electronic device retrieves the second information from the service order information only when the production object of the second electronic device is the same as that of the first electronic device. It then performs a second encryption calculation on the second information to generate verification information. Typically, the first and second electronic devices are configured with the same encryption / decryption algorithm only if they belong to the same production object. This allows the second electronic device to parse and verify the verification information generated by the first electronic device for the service order.

[0190] In other embodiments, when the production object of the second electronic device is different from that of the first electronic device, the first electronic device can obtain the second information from the order information of the service order and directly use the second information as verification information.

[0191] 515. Upon receiving a communication connection request from the first electronic device, the second electronic device establishes a short-range communication connection with the first electronic device.

[0192] For example, the second electronic device establishes a Bluetooth Low Energy (BLE) connection with the first electronic device.

[0193] In some embodiments, when a communication connection request is received from a first electronic device and the communication connection request carries verification information, the second electronic device may verify the verification information carried in the communication connection request, and establish a short-range communication connection with the first electronic device if the verification information is verified successfully.

[0194] In a feasible implementation, the second electronic device can generate verification information based on the order information of the service order, and compare the generated verification information with the verification information from the first electronic device. If the two are consistent, it can be determined that the verification information from the first electronic device has passed the verification, and a short-range communication connection can be established with the first electronic device. If the two are inconsistent, it can be determined that the verification information from the first electronic device has failed the verification, and the communication connection request from the first electronic device can be rejected.

[0195] In some embodiments, the second electronic device can obtain second information from the order information of the service order. This second information is the same as the information used by the first electronic device to generate verification information. The second electronic device then performs a second encryption calculation on the second information to generate verification information. In feasible implementations, the first and second electronic devices belong to the same production object (or manufacturer) and are configured with the same encryption / decryption algorithm. Similar to the processing method of the first electronic device, the second electronic device can perform encryption calculations on the second information based on its own configured second encryption algorithm, and obtain verification information based on the encryption calculation result.

[0196] In a feasible implementation, the second electronic device obtains the second information from the order information of the service order only when the production object of the first electronic device is the same as that of the second electronic device, and performs a second encryption calculation on the second information to obtain the verification information.

[0197] In other embodiments, when the production object of the first electronic device is different from that of the second electronic device, the first electronic device can obtain the second information from the order information of the service order and directly use the second information as verification information.

[0198] Optionally, the second information used by the first electronic device to generate verification information and by the second electronic device to generate validation information may include information that can uniquely identify the service order (i.e., this service), such as: order number, account information logged in by the service order recipient on the service platform, etc. This ensures that both parties generate verification and validation information specifically for this service order, that is, to authenticate the order recipient (or the ordering electronic device) for this service order. This ensures that subsequent short-range communication connections are established between the two parties of this service order, avoiding accidental connections (for example, in a ride-hailing scenario, the second information only includes the license plate number, so the passenger's electronic device that previously accepted the order also knows the driver's license plate number, and if it happens to be near the service order recipient, it can also search for the broadcast information, complete authentication, and establish a communication connection with the driver's electronic device).

[0199] 516, The second electronic device sends a communication connection response to the first electronic device.

[0200] Upon successful establishment of a short-range communication connection with the first electronic device, the second electronic device may send a communication connection response to the first electronic device. This response can indicate that the short-range communication connection has been successfully established. Optionally, the second electronic device may send a communication connection response to the first electronic device via the short-range communication connection.

[0201] 517, The first electronic device receives a communication connection response from the second electronic device.

[0202] Among them, steps 510 to 516 above are a way for the first electronic device and the second electronic device to establish a short-range communication connection based on the order information of the service order.

[0203] 518, The first electronic device performs operations associated with a service order based on a short-range communication connection.

[0204] When the first electronic device receives a communication connection response from the second electronic device, it indicates that a short-range communication connection between the first electronic device and the second electronic device has been successfully established. At this time, the operation associated with the service order can be executed based on the short-range communication connection between the first electronic device and the second electronic device. The operation associated with the service order may include some related operations in the service implementation process corresponding to the service order, such as instant messaging, positioning (including ranging and / or direction finding), service status confirmation, vehicle control in a ride-hailing scenario, etc.

[0205] In feasible embodiments, when a short-range communication connection is successfully established between the first electronic device and the second electronic device, the first electronic device can automatically measure the distance and / or orientation information between the second electronic device and the first electronic device in real time based on the short-range communication connection, and display the measured distance and / or orientation information between the second electronic device and the first electronic device in real time in the message display area. For example, as... Figure 4D As shown, the distance and orientation between the second electronic device and the first electronic device, measured in real time, can be displayed in the flexible capsule 41 so that passengers can know the driver's position and direction.

[0206] In feasible embodiments, the first electronic device can display controls in the message display area of ​​the display interface. Upon receiving a trigger operation on the control, it executes the operation indicated by the control based on a short-range communication connection. The operation indicated by the control can be an operation associated with a service order. The control can include one or more of the following: instant messaging controls, location controls, service status confirmation controls, and vehicle control controls (which may only be available in a ride-hailing scenario). The trigger operation can be a gesture operation or a voice control operation, such as a click operation.

[0207] In feasible implementations, the control can be displayed in the form of a capsule notification on the display interface, where the message display area can refer to the display location of the capsule notification. For example, ... Figure 4CAs shown, controls can be displayed in the flexible capsule 41. For a taxi-hailing scenario, these controls may include: a phone control 42, a location control 43, a confirmation boarding control 44, and an open door control 45. Optionally, these controls can be displayed synchronously or asynchronously when certain display conditions are met. For example, in a taxi-hailing scenario, the phone control and location control can be displayed upon receiving a communication connection response from the second electronic device. The open door control is only displayed when the distance between the second electronic device and the first electronic device is less than a third distance threshold (the third distance threshold can be less than the first and second distance thresholds mentioned above, indicating that the vehicle has arrived at the pick-up location) and the second electronic device indicates that the vehicle is stationary. This ensures safety and prevents accidents.

[0208] In some embodiments, when the controls displayed in the message display area include an instant messaging control, the first electronic device can receive a trigger operation on the instant messaging control. Upon receiving the trigger operation, the first electronic device can perform instant messaging with the second electronic device based on a short-range communication connection (e.g., a low-power BLE connection) between the two devices. For example, instant messaging can be a voice call.

[0209] In a feasible implementation, upon receiving a trigger operation for an instant messaging control, the first electronic device can send an instant messaging request to the second electronic device via a short-range communication connection. Upon receiving the instant messaging request via the short-range communication connection, the second electronic device can display instant messaging prompts (e.g., display answer and reject controls) in the message display area of ​​its display interface (e.g., the capsule notification display location). Upon receiving an answer operation in response to the instant messaging prompts, it establishes an instant messaging channel with the first electronic device via the short-range communication connection. The first and second electronic devices then use this instant messaging channel to achieve instant communication between the service provider and the service order recipient. For example, the first electronic device collects a user's voice and sends it to the second electronic device via the instant messaging channel. Upon receiving the voice message sent via the instant messaging channel, the second electronic device plays the voice message.

[0210] As can be seen, this method can realize instant communication in OTO service scenarios based on short-range communication connections between electronic devices. There are no communication costs, which reduces usage costs compared to the current method where service orderers and service providers need to pay call charges when contacting each other by phone. This can enrich and improve the user's instant communication experience.

[0211] In some embodiments, when the controls displayed in the message display area include a positioning control, the first electronic device can receive a trigger operation for the positioning control. Upon receiving the trigger operation for the positioning control, the distance and / or azimuth information between the second electronic device and the first electronic device can be measured in real time based on a short-range communication connection (e.g., a low-power BLE connection) between the first and second electronic devices. For example, based on a short-range communication connection, the distance can be calculated by measuring the flight time required for the signal to travel from the transmitter to the receiver (i.e., ranging), or the distance can be estimated based on the received signal strength. The azimuth (i.e., direction finding) can be measured using the angle of arrival (AHA) method or the angle of deviation (ODR) method. The AHA method determines the transmitter's position by measuring the direction of the received signal relative to the receiver's antenna array. This typically requires the use of an antenna array to receive the signal and the calculation of the phase difference between the signals received by different antennas on the antenna array to estimate the AHA. The ODR method is similar to the AHA method, but it measures the angle of deviation of the signal from the transmitter's antenna array. This requires the transmitter to also be equipped with an antenna array and to switch antennas during transmission to change the signal phase. This application does not limit the method of ranging and direction finding based on a short-range communication connection. Ranging and direction finding results based on short-range communication connections often have small errors and high accuracy.

[0212] In feasible implementations, the measured distance and / or orientation information between the second electronic device and the first electronic device can be displayed in real time in the message display area. For example, when the controls are displayed in the flexible capsule, such as... Figure 4D As shown, the distance and orientation between the second electronic device and the first electronic device, measured in real time, can be displayed in the flexible capsule 41 so that passengers can know the driver's position and direction. Figure 4D The distance and direction are displayed in text form, but this is not limited to it. For example, they can also be displayed as static or dynamic graphics. Optionally, the first electronic device can, based on a short-range communication connection between itself and the second electronic device, measure the distance between them multiple times within a short period of time (which may be less than a specific time threshold), and use the average of the multiple measurements as the distance between them measured at the corresponding time. The first electronic device can also, based on the short-range communication connection between itself and the second electronic device, measure the direction between them multiple times within a short period of time, and use the average of the multiple measurements as the direction between them measured at the corresponding time. This ensures the accuracy of the measured distance and direction.

[0213] As can be seen, this method enables location services in OTO scenarios based on short-range communication connections between electronic devices, achieving precise positioning. Compared to current positioning methods relying on positioning devices configured on electronic devices, which suffer from location deviations, this method offers higher accuracy. Furthermore, unlike current methods that only display distance, this embodiment can display both distance and orientation, providing more specific location information. Additionally, the precise distance and / or orientation information between the second and first electronic devices can be displayed in real-time in the message display area, allowing users to understand the precise distance and orientation between themselves and the service provider, thereby enriching and enhancing the user's positioning experience.

[0214] In some embodiments, when the controls displayed in the message display area include a service status confirmation control, the first electronic device can receive a trigger operation on the service status confirmation control. Upon receiving the trigger operation, it can generate service status confirmation information and send the service status confirmation information to the second electronic device based on a short-range communication connection (e.g., a low-power BLE connection) between the first and second electronic devices. This service status confirmation information can be used to instruct the second electronic device to send a status adjustment request to the service platform. Upon receiving the service status confirmation information from the first electronic device based on the short-range communication connection, the second electronic device can send a status adjustment request to the service platform. This status adjustment request can be used to request the service platform to adjust the service status of the service order. Upon receiving the status adjustment request from the second electronic device, the service platform responds by adjusting the service status of the service order. In other words, service status confirmation in an OTO service scenario can be achieved based on a short-range communication connection between electronic devices.

[0215] In a feasible implementation, the service status confirmation control may include a service start confirmation control. Upon receiving a trigger operation on the service start confirmation control, the service status confirmation information becomes service start confirmation information, and the status adjustment request is used to request that the service status of the order be adjusted to the service start status. For example, in a ride-hailing scenario, the service start confirmation control could be as follows: Figure 4C The confirmed boarding control 44 shown can be used to send a confirmed boarding instruction to the second electronic device via a short-range communication connection when the confirmed boarding control 44 is triggered. Upon receiving the confirmed boarding instruction from the first electronic device via the short-range communication connection, the second electronic device will report the start of the ride-hailing order to the service platform.

[0216] Optionally, upon receiving a trigger operation for the service start confirmation control, the first electronic device can directly report the start of the ride-hailing order to the service platform.

[0217] As can be seen, in this method, the service ordering object (or the user of the first electronic device) directly confirms the start of the service based on the service status confirmation control. This process does not require the service ordering object to verbally disclose any personal information to the service provider (or the user of the second electronic device). Compared to the current method where the service ordering object needs to verbally disclose personal information (such as the last four digits of a mobile phone number) to the service provider, and the service provider inputs this information to confirm the start of the service, the leakage of personal information can be avoided, thereby enriching and improving the user's service status confirmation experience. In addition, since the communication distance supported by short-range communication connections is limited, if the service ordering object is far from the service provider (or the first electronic device is far from the second electronic device), the service ordering object cannot confirm the start of the service based on the short-range communication connection. At this time, the service status of the service order cannot be adjusted to the start state. Only when the service ordering object is close to the service provider can the service ordering object confirm the start of the service based on the short-range communication connection, and only then can the service status of the service order be adjusted to the start state. This can prevent the service from being falsely executed (for example, not working overtime at the company, falsely taking a taxi to a certain place to pick oneself up, and then claiming reimbursement based on the taxi record).

[0218] In a feasible implementation, the service status confirmation control may include a service completion confirmation control, the service status confirmation information being the service completion confirmation information, and the status adjustment request being used to request that the service status of the service order be adjusted to the service completion status. In this approach, when the second electronic device receives the service completion confirmation information from the first electronic device via a short-range communication connection, it can display a prompt in the message display area. This prompt can be used to ask the user whether to confirm the end of the service. Upon receiving a confirmation instruction in response to this prompt, it sends a status adjustment request to the service platform. This status adjustment request is used to request the termination of the service order. This allows the service order to be terminated when both parties confirm the service completion, thus preventing the service order recipient from prematurely terminating the service order before the service is completed. Furthermore, since the termination of the service order is initiated by the service order recipient, this also prevents the service order recipient from prematurely terminating the service order before the service is completed.

[0219] In this approach, when the second electronic device receives service termination confirmation information from the first electronic device via a short-range communication connection, it can also automatically determine whether the service has ended based on certain information. If the service has ended, it sends a status adjustment request to the service platform, which is used to request the termination of the service order. Optionally, the end of the service can be determined based on changes in the distance between the first and second electronic devices. For example, in a ride-hailing scenario, after a passenger boards the vehicle, the distance between the passenger's electronic device and the driver's electronic device is relatively short. Upon arrival at the destination and after the passenger disembarks, the distance between the passenger's electronic device and the driver's electronic device increases and exceeds a specific distance threshold, thus determining that the ride has ended.

[0220] Optionally, the service end confirmation control and the service start confirmation control can be displayed synchronously in the message display area, or the service start confirmation control can be displayed in the message display area first, and the service end confirmation control can be displayed in the message display area only after the service start confirmation control is triggered.

[0221] In some embodiments, the service order is a vehicle service order (e.g., a ride-hailing order). The second electronic device is located inside the vehicle executing the service order (e.g., the driver's vehicle in a ride-hailing scenario). The second electronic device establishes a communication connection with the vehicle and can perform some control functions on the vehicle through this connection. In this case, the controls displayed in the message display area may include vehicle control controls. The first electronic device can receive trigger operations for the vehicle control controls. Upon receiving a trigger operation for the vehicle control controls, it generates vehicle control information and sends the vehicle control information to the second electronic device based on a short-range communication connection (e.g., a low-power BLE connection). This vehicle control information can be used to instruct the second electronic device to perform control operations on the vehicle. Upon receiving the vehicle control information from the first electronic device based on the short-range communication connection, the second electronic device performs control operations on the vehicle based on the vehicle control information.

[0222] For example, in a ride-hailing scenario, vehicle control controls could be like this: Figure 4CThe door opening control 45 shown can, when triggered, allow a first electronic device to send door opening control information to a second electronic device via a short-range communication connection. Upon receiving confirmation of door opening control from the first electronic device via the short-range communication connection, the second electronic device controls the vehicle to open the door. Optionally, it can control the opening of a specific door, such as the right rear door if the vehicle is driving on the right. Using this method, for example, when the driver is waiting for passengers, resting in the vehicle, and locking the doors (for safety), passengers can control the driver to open the door upon arrival at the boarding location, allowing them to board without the driver needing to unlock the door.

[0223] In feasible implementations, to ensure vehicle control safety, the second electronic device, upon receiving vehicle control information from the first electronic device via a short-range communication connection, can determine whether the vehicle is in a state capable of performing control operations. If it is determined that the vehicle is in a state capable of performing control operations, the control operation is performed on the vehicle based on the vehicle control information. For example, in a taxi-hailing scenario, the control operation for the vehicle is opening the door. This can be done by controlling the vehicle to open the door after confirming that the vehicle is in a state where the door can be opened (e.g., the vehicle has arrived at the pick-up location and is stationary).

[0224] In a feasible implementation, to ensure the safety of vehicle control, when the second electronic device receives vehicle control information from the first electronic device via a short-range communication connection, it can determine whether it is within a time frame capable of performing a control operation. If it is determined that it is within a time frame capable of performing a control operation, it performs a control operation on the vehicle based on the vehicle control information. Optionally, the time frame capable of performing a control operation can refer to the period from when the vehicle is in a state where a control operation can be performed until a subsequent preset duration (e.g., 5 minutes), or it can refer to the period from when the short-range communication connection is successfully established until a subsequent preset duration. That is to say, the time that the service ordering object (e.g., a passenger) can control the vehicle used by the service order receiving object (e.g., a driver) to execute a service order (e.g., a ride-hailing order) through the short-range communication connection between the first and second electronic devices is fixed; beyond this time, vehicle control is not possible. Optionally, when it is not within a time frame capable of performing a control operation, the first electronic device can control the display of vehicle control controls in the message display area.

[0225] As can be seen, in this approach, vehicle control in OTO service scenarios can be achieved based on short-range communication connections between electronic devices. Furthermore, the control of the vehicle of the service provider is initiated by the service ordering object, which can enrich and enhance the user's vehicle control experience.

[0226] In feasible embodiments, the first electronic device can determine the service status of the service order based on one or more of the following: third positioning information of the first electronic device, fourth positioning information of the second electronic device, distance information between the second and first electronic devices (which can be obtained based on short-range communication connection measurements), and the connection status of the short-range communication connection. If the service status is determined to be a service termination status, a service termination request can be sent to the service platform. This service termination request can be used to request the service platform to terminate the service order. Upon receiving the service termination request from the first electronic device, the service platform can respond by terminating the service order. Therefore, in this technical solution, the service status of the service order can be automatically determined, and if the service status is a service termination status, an automatic request to terminate the service order can be made to the service platform. This allows for timely termination of the service order, thereby avoiding unreasonable service fees due to untimely termination of the service order.

[0227] The above describes one implementation of the communication method provided in this application, using the example of a second electronic device (i.e., the order-receiving end) broadcasting information based on order information and a first electronic device (i.e., the order-placing end) searching for broadcast information based on order information to establish a short-range communication connection between the two. In feasible embodiments, the first electronic device (i.e., the order-placing end) can also broadcast information based on order information, and the second electronic device (i.e., the order-receiving end) can search for broadcast information based on order information to establish a short-range communication connection between the two. Please refer to [link to relevant documentation]. Figure 6 , Figure 6 This is a flowchart illustrating another communication method provided in an embodiment of this application. The method may include, but is not limited to, the following steps:

[0228] 601, Service order placement operation in the first electronic device receiving service application.

[0229] 602, The first electronic device sends an order release request to the service platform to which the service application belongs.

[0230] 603. Upon receiving an order release request from the first electronic device, the service platform responds by releasing a service order in response to the order release request.

[0231] 604. The second electronic device displays the service order of the first electronic device in the application interface of the service application.

[0232] 605, The second electronic device receives a service order acceptance operation for the service order.

[0233] 606. The second electronic device sends an order acceptance request to the service platform to which the service application belongs.

[0234] 607. Upon receiving an order acceptance request from the second electronic device, the service platform responds to the order acceptance request by accepting a service order for the second electronic device.

[0235] 608, order information generated by the service platform for the service order.

[0236] 609. The service platform sends order information to the first electronic device and the second electronic device.

[0237] The implementation methods of steps 601 to 609 can be referred to the relevant descriptions of steps 501 to 509 in the previous embodiments, and will not be repeated here.

[0238] 610. Upon receiving order information from the service platform, the first electronic device generates broadcast information based on the order information.

[0239] When the first electronic device receives order information from the service platform, it indicates that the service order for the first electronic device has been successfully accepted. At this time, broadcast information for the service order can be generated based on the order information of the service order for the first electronic device.

[0240] In some embodiments, the first electronic device can obtain first information from the order information of a service order. This first information is the information to be broadcast. The first electronic device performs a first encryption calculation on the first information to generate broadcast information. The first electronic device can perform the encryption calculation on the first information based on its own configured first encryption algorithm, and determine the broadcast information based on the encryption calculation result. The specific content of the first information is related to the application scenario.

[0241] In a feasible implementation, the first electronic device obtains the device information of the second electronic device from the service platform, determines the production object of the second electronic device based on the device information, and only when the production object of the second electronic device is the same as the production object of the first electronic device, does the first electronic device obtain the first information from the order information of the service order, and performs a first encryption calculation on the first information to generate broadcast information.

[0242] In other embodiments, when the production object of the second electronic device is different from that of the first electronic device, the first electronic device can obtain the first information from the order information of the service order and directly use the first information as broadcast information for the service order.

[0243] 611, The first electronic device broadcasts this broadcast information.

[0244] This broadcast message can be used to trigger a second electronic device to send a communication connection request to the first electronic device.

[0245] In some embodiments, the first electronic device may broadcast the broadcast information to the outside based on its short-range communication capabilities.

[0246] In some embodiments, the broadcast information may be broadcast immediately upon its generation.

[0247] In other embodiments, the broadcast information may be broadcast when the distance between the second electronic device and the first electronic device is detected to be less than or equal to a distance threshold. This may involve determining the location information of the first electronic device, obtaining the location information of the second electronic device from a service platform, and determining the distance between the second and first electronic devices based on the location information of the first and second electronic devices.

[0248] In other embodiments, the service platform may update the estimated rendezvous time between the service provider (or the second electronic device) and the service ordering object (or the first electronic device) in real time based on the location information reported by the first electronic device and the location information reported by the second electronic device. The first electronic device obtains the estimated rendezvous time from the service platform. If the estimated rendezvous time is less than the time threshold, it indicates that the two are close, and the broadcast information is then broadcast.

[0249] 612. Upon receiving order information from the service platform, the second electronic device determines the broadcast information to be searched based on the order information.

[0250] When the second electronic device receives order information from the service platform, it indicates that the service platform has successfully accepted the service order for the second electronic device. At this point, the broadcast information to be searched can be determined based on the order information of the service order. This broadcast information is the information broadcast by the first electronic device in response to its service order.

[0251] In some embodiments, the second electronic device can obtain first information from the order information of a service order; this first information is the information that the first electronic device needs to broadcast. A first encryption calculation is then performed on the first information to obtain the broadcast information to be searched. In feasible implementations, the second electronic device and the first electronic device belong to the same production object (or manufacturer), and both are configured with the same encryption / decryption algorithm. Similar to the processing method of the first electronic device, the second electronic device can perform encryption calculations on the first information based on its own configured first encryption algorithm, and obtain the broadcast information to be searched based on the encryption calculation result.

[0252] In a feasible implementation, the second electronic device obtains the device information of the first electronic device from the service platform, determines the production object of the first electronic device based on the device information, and only when the production object of the first electronic device is the same as the production object of the second electronic device, does the second electronic device obtain the first information from the order information of the service order, and performs a first encryption calculation on the first information to obtain the broadcast information to be searched.

[0253] In other embodiments, when the production object of the first electronic device is different from that of the second electronic device, the second electronic device can obtain the first information from the order information of the service order and directly use the first information as the broadcast information to be searched.

[0254] 613, The second electronic device searches for broadcast information.

[0255] In some embodiments, the second electronic device may search for the broadcast information based on its short-range communication capabilities.

[0256] In some embodiments, the broadcast information may be searched immediately once the broadcast information to be searched is determined.

[0257] In other embodiments, the broadcast information may be searched when the distance between the first electronic device and the second electronic device is detected to be less than or equal to a distance threshold. This may involve determining the location information of the second electronic device, obtaining the location information of the first electronic device from a service platform, and determining the distance between the first and second electronic devices based on the location information of both devices.

[0258] In other embodiments, the service platform may update the estimated rendezvous time between the service provider (or the second electronic device) and the service ordering object (or the first electronic device) in real time based on the location information reported by the first electronic device and the location information reported by the second electronic device. The second electronic device obtains the estimated rendezvous time from the service platform. If the estimated rendezvous time is less than the time threshold, it indicates that the two are close, and then the broadcast information is searched.

[0259] 614. Upon detecting broadcast information, the second electronic device sends a communication connection request to the first electronic device.

[0260] The communication connection request is used to request the first electronic device to establish a short-range communication connection with the second electronic device. For example, it may request the establishment of a Bluetooth Low Energy (BLE) connection.

[0261] In some embodiments, the communication connection request may carry authentication information. The communication connection request is used to request the first electronic device to establish a short-range communication connection with the second electronic device if the authentication information is successfully verified. The authentication information may be generated based on order information from a service order.

[0262] In some embodiments, the second electronic device can obtain second information from the order information of a service order. This second information is used to generate verification information. The second electronic device then performs a second encryption calculation on the second information to generate the verification information. Specifically, the second electronic device can perform the encryption calculation on the second information based on its own configured second encryption algorithm, and determine the verification information based on the encryption calculation result. The specific content of the second information is related to the application scenario.

[0263] In a feasible implementation, the second electronic device obtains the second information from the order information of the service order only when the production object of the first electronic device is the same as that of the second electronic device, performs the second encryption calculation on the second information, and generates verification information.

[0264] In other embodiments, when the production object of the first electronic device is different from that of the second electronic device, the second electronic device can obtain the second information from the order information of the service order and directly use the second information as verification information.

[0265] 615. Upon receiving a communication connection request from the second electronic device, the first electronic device establishes a short-range communication connection with the second electronic device.

[0266] For example, the first electronic device establishes a Bluetooth Low Energy (BLE) connection with the second electronic device.

[0267] In some embodiments, when a communication connection request is received from a second electronic device and the communication connection request carries verification information, the first electronic device may verify the verification information carried in the communication connection request, and establish a short-range communication connection with the second electronic device if the verification information is verified successfully.

[0268] In a feasible implementation, the first electronic device can generate verification information based on the order information of the service order, and compare the generated verification information with the verification information from the second electronic device. If the two are consistent, it can be determined that the verification information from the second electronic device has passed the verification, and a short-range communication connection can be established with the second electronic device. If the two are inconsistent, it can be determined that the verification information from the second electronic device has failed the verification, and the communication connection request from the second electronic device can be rejected.

[0269] In some embodiments, the first electronic device can obtain second information from the order information of a service order. This second information is the information used by the second electronic device to generate verification information. The first electronic device then performs a second encryption calculation on the second information to generate verification information. In feasible implementations, the first and second electronic devices belong to the same production object (or manufacturer) and are configured with the same encryption / decryption algorithm. Similar to the processing method of the second electronic device, the first electronic device can perform encryption calculations on the second information based on its own configured second encryption algorithm, and obtain verification information based on the encryption calculation result.

[0270] In a feasible implementation, the first electronic device obtains the second information from the order information of the service order only when the production object of the second electronic device is the same as that of the first electronic device, and performs a second encryption calculation on the second information to obtain verification information.

[0271] In other embodiments, when the production object of the second electronic device is different from that of the first electronic device, the first electronic device can obtain the second information from the order information of the service order and directly use the second information as verification information.

[0272] Optionally, the second information used for the second electronic device to generate verification information and for the first electronic device to generate verification information may include information that can be used to uniquely indicate a service order (i.e., this service).

[0273] 616, The first electronic device sends a communication connection response to the second electronic device.

[0274] Upon successful establishment of a short-range communication connection with the second electronic device, the first electronic device may send a communication connection response to the second electronic device. This response can indicate that the short-range communication connection has been successfully established. Optionally, the first electronic device may send a communication connection response to the second electronic device via the short-range communication connection.

[0275] 617, The second electronic device receives a communication connection response from the first electronic device.

[0276] Steps 610 to 616 described above represent another method by which the first electronic device and the second electronic device establish a short-range communication connection based on the order information of the service order. Implementation methods not exhaustively described in steps 610 to 616 can be found in the relevant descriptions of steps 510 to 516 in the preceding embodiments, and will not be repeated here.

[0277] 618, The first electronic device performs operations associated with a service order based on a short-range communication connection.

[0278] The implementation of step 618 can be found in the description of step 618 in the previous embodiment, and will not be repeated here.

[0279] The above provides a detailed description of the processing initiated from the first electronic device (i.e., the order-placing end) when a short-range communication connection is successfully established between the first electronic device and the second electronic device. In feasible embodiments, processing can also be initiated from the second electronic device (i.e., the order-receiving end). The communication method provided in this application embodiment may further include the step of: the second electronic device performing operations associated with the service order based on the short-range communication connection.

[0280] Once a short-range communication connection is successfully established between the second electronic device and the first electronic device, operations associated with the service order can be executed based on this connection. These operations may include related operations in the service implementation process, such as instant messaging, location (including ranging and / or direction finding), vehicle control in a chauffeur scenario, and so on.

[0281] In a feasible embodiment, when a short-range communication connection is successfully established between the second electronic device and the first electronic device, the second electronic device can automatically measure the distance information and / or orientation information between the first electronic device and the second electronic device in real time based on the short-range communication connection, and display the measured distance information and / or orientation information between the first electronic device and the second electronic device in real time in the message display area.

[0282] In feasible embodiments, the second electronic device can display controls in the message display area of ​​the display interface. Upon receiving a trigger operation on the control, it executes the operation indicated by the control based on a short-range communication connection. The operation indicated by the control can be an operation associated with a service order. The control can include one or more of the following: instant messaging controls, location controls, and vehicle control controls (which may only be present in a chauffeur service scenario). The trigger operation can be a gesture operation or a voice control operation, such as a click operation.

[0283] In feasible implementations, the control can be displayed in the form of a capsule notification on the display interface, where the message display area can refer to the display location of the capsule notification. For example, when the second electronic device receives order information from the service platform, such as... Figure 7A As shown, the Agile Capsule 71 can be displayed at the top of the display interface. The Agile Capsule includes the following order information: estimated arrival time 2 minutes. This is in the event that a short-range communication connection with the first electronic device is successfully established, such as... Figure 7BAs shown, controls can be displayed in the flexible capsule 71. For a designated driver scenario, these controls may include: a phone control 72, a location control 73, and a door open control 74. Optionally, these controls can be displayed synchronously or asynchronously when certain display conditions are met. For example, in a ride-hailing scenario, the phone control and location control can be displayed once a short-range communication connection with the first electronic device is successfully established. The door open control is only displayed when the distance between the first and second electronic devices is detected to be less than a fourth distance threshold (the fourth distance threshold can be less than the first and second distance thresholds mentioned above, indicating that the designated driver has arrived at the starting point). This ensures safety and avoids accidents.

[0284] In some embodiments, when the controls displayed in the message display area include instant messaging controls, the second electronic device can receive a trigger operation on the instant messaging controls. Upon receiving a trigger operation on the instant messaging controls, the second electronic device can perform instant messaging with the first electronic device based on the short-range communication connection between the second electronic device and the first electronic device. For example, instant messaging can be a voice call.

[0285] In some embodiments, when the control displayed in the message display area includes a positioning control, the second electronic device can receive a trigger operation for the positioning control. Upon receiving the trigger operation for the positioning control, the distance information and / or orientation information between the first electronic device and the second electronic device can be measured in real time based on the short-range communication connection between the second electronic device and the first electronic device.

[0286] In a feasible implementation, the distance and / or orientation information between the first electronic device and the second electronic device, as measured, can be displayed in real time in the message display area.

[0287] In some embodiments, the service order is a vehicle service order (e.g., a chauffeur service order). The first electronic device is located inside the vehicle executing the chauffeur service order (e.g., the vehicle of the ordering owner in a chauffeur scenario). The first electronic device establishes a communication connection with the vehicle and can perform some control on the vehicle through the communication connection. In this case, the controls displayed in the message display area may include vehicle control controls. The second electronic device can receive trigger operations for the vehicle control controls. Upon receiving a trigger operation for the vehicle control controls, it generates vehicle control information and sends the vehicle control information to the first electronic device based on the short-range communication connection between the second and first electronic devices. This vehicle control information can be used to instruct the first electronic device to perform control operations on the vehicle. Upon receiving the vehicle control information from the second electronic device based on the short-range communication connection, the first electronic device performs control operations on the vehicle based on the vehicle control information.

[0288] For example, in a chauffeur service scenario, vehicle control controls could be such as... Figure 7B The door opening control 74 shown can, when triggered, allow a second electronic device to send door opening control information to a first electronic device via a short-range communication connection. Upon receiving confirmation of the door opening control from the second electronic device via the short-range communication connection, the first electronic device controls the vehicle to open the door. Optionally, the control can open a specific door, such as the driver's side door. Using this method, for example, if the car owner is waiting for a designated driver and is resting in the passenger seat with the doors locked (for safety), the designated driver can also control the car to open the door upon arrival at the starting point. This way, the designated driver can open the door and drive the vehicle without the car owner needing to unlock it.

[0289] The above provides a brief description of how the second electronic device performs operations associated with a service order based on a short-range communication connection. For any implementation methods not described exhaustively, please refer to the previous section on how the first electronic device performs operations associated with a service order based on a short-range communication connection. These methods will not be elaborated upon here.

[0290] Next, we will describe some possible processes for the electronic device to perform operations, taking into account the interaction of its internal modules. In some embodiments, when the electronic device is the first electronic device corresponding to the previous embodiments, it may include, for example... Figure 8A or Figure 8B The steps are shown.

[0291] like Figure 8A As shown, the steps may include, but are not limited to, the following:

[0292] 801, receives user commands to enable service applications.

[0293] Optionally, the command to activate a service application can be a voice command or a gesture. A voice command could be, for example, "activate the service application (e.g., a ride-hailing application)," while a gesture could be, for example, clicking on the service application's icon on the home screen.

[0294] 802, in response to the start command, starts the service application and displays the application interface of the service application on the display screen.

[0295] 803, receives service order operations from users in the service application.

[0296] 804, the network communication module responds to the service order operation by sending an order release request to the service platform to which the service application belongs.

[0297] In this process, upon receiving an order placement request from a first electronic device, the service platform responds by placing a service order. If the service order is accepted by a second electronic device, the service platform generates order information and sends this information to both devices. Upon receiving the order information from the service platform, the second electronic device generates a broadcast message based on this information and broadcasts it using short-range communication technology.

[0298] 805, The network communication module receives order information from the service platform.

[0299] 806, The network communication module sends order information to the information processing module.

[0300] 807. The information processing module determines the broadcast information to be searched based on the order information.

[0301] The broadcast information is information broadcast by the second electronic device in response to a service order.

[0302] 808, the information processing module sends the first notification message to the short-range communication module.

[0303] The first notification message can be used to instruct the short-range communication module to search for the broadcast information.

[0304] 809, The short-range communication module responds to the first notification message by searching for the broadcast information.

[0305] 810. Upon detecting the broadcast information, the short-range communication module sends a communication connection request to the second electronic device.

[0306] The communication connection request is used to request the second electronic device to establish a short-range communication connection with the first electronic device. For example, it may request to establish a Bluetooth Low Energy (BLE) connection. Upon receiving the communication connection request from the first electronic device, the second electronic device establishes a short-range communication connection with the first electronic device. If the short-range communication connection is successfully established, the second electronic device may send a communication connection response to the first electronic device, which can be used to indicate that the short-range communication connection has been successfully established.

[0307] Optionally, the communication connection request may carry authentication information. This request is used to request the second electronic device to establish a short-range communication connection with the first electronic device if the authentication information is verified successfully. The authentication information may be generated based on order information from a service order. Upon receiving the communication connection request from the first electronic device, the second electronic device verifies the authentication information. If the authentication information is verified successfully, a short-range communication connection is established with the first electronic device. Upon successful establishment of the short-range communication connection, the second electronic device may send a communication connection response to the first electronic device, indicating that the short-range communication connection has been successfully established.

[0308] 811. Upon receiving a communication connection response from the second electronic device, the short-range communication module sends a second notification message to the display module.

[0309] Upon receiving a communication connection response from the second electronic device, it indicates that a short-range communication connection with the second electronic device has been successfully established. The second notification message can be used to notify the display module to display controls.

[0310] 812, the display module responds to the second notification message and displays controls in the message display area of ​​the display interface.

[0311] The control may include one or more of the following: instant messaging control, location control, service status confirmation control, and vehicle control control (which may only be available in the ride-hailing scenario).

[0312] 813, receives user-triggered operations on the control.

[0313] The triggering operation can be a gesture operation or a voice control operation, such as a click operation.

[0314] 814, The trigger response module responds to the trigger operation and executes the operation indicated by the control based on the short-range communication connection. The operation indicated by the control is an operation associated with the service order.

[0315] For example, if the controls displayed in the message display area include an instant messaging control, in response to a trigger operation on the instant messaging control, instant communication can be performed with the second electronic device based on a short-range communication connection with the second electronic device. As another example, if the controls displayed in the message display area include a positioning control, in response to a trigger operation on the instant messaging control, distance and / or orientation information between the second electronic device and the first electronic device can be measured in real time based on a short-range communication connection with the second electronic device. Optionally, this distance and / or orientation information can be displayed in real time in the message display area.

[0316] In one possible implementation, upon successful establishment of a short-range communication connection with the second electronic device, or upon receiving a communication connection response from the second electronic device, the distance and / or orientation information between the first and second electronic devices can be automatically measured in real time based on the short-range communication connection between the first and second electronic devices, and the distance and / or orientation information can be displayed in real time in the message display area of ​​the display interface.

[0317] like Figure 8B As shown, the steps may include, but are not limited to, the following:

[0318] 821, Receive user commands to enable service applications.

[0319] 822, in response to the start command, starts the service application and displays the application interface of the service application on the display screen.

[0320] 823, receives service order operations from users in the service application.

[0321] 824. In response to the service order placement operation, the network communication module sends an order release request to the service platform to which the service application belongs.

[0322] When the service platform receives an order release request from the first electronic device, it releases a service order in response to the order release request. When the service order is accepted by the second electronic device, the service platform generates the order information of the service order and sends the order information to the first electronic device and the second electronic device.

[0323] 825, The network communication module receives order information from the service platform.

[0324] 826, The network communication module sends order information to the information processing module.

[0325] 827. The information processing module generates broadcast information based on order information.

[0326] 828, the information processing module sends a third notification message to the short-range communication module, the third notification message carrying the broadcast information.

[0327] The third notification message can be used to notify the short-range communication module to broadcast the broadcast information.

[0328] 829. In response to the third notification message, the short-range communication module broadcasts the broadcast information.

[0329] This broadcast message can be used to trigger a second electronic device to send a communication connection request to the first electronic device.

[0330] Optionally, the second electronic device can search for information broadcast by the first electronic device for the service order based on the order information of the service order, thereby discovering the first electronic device.

[0331] 830, the short-range communication module receives a communication connection request from the second electronic device, the communication connection request carrying authentication information.

[0332] This verification information can be generated based on the order information of the service order.

[0333] 831, the short-range communication module sends a fourth notification message to the verification module, the fourth notification message carrying the verification information.

[0334] The fourth notification message can be used to notify the verification module to verify the verification information.

[0335] 832, the verification module responds to the fourth notification message and verifies the verification information.

[0336] 833. If the verification information passes the verification, the verification module sends a fifth notification message to the short-range communication module.

[0337] The fifth notification message can be used to notify the short-range communication module that the verification information has been verified and that a short-range communication connection can be established with the second electronic device.

[0338] 834. In response to the fifth notification message, the short-range communication module establishes a short-range communication connection with the second electronic device and sends a communication connection response to the second electronic device.

[0339] The communication connection response indicates that the short-range communication connection has been successfully established.

[0340] 835, the short-range communication module sends the sixth notification message to the display module.

[0341] The sixth notification message can be used by the notification display module to display controls.

[0342] 836, the display module responds to the sixth notification message and displays controls in the message display area of ​​the display interface.

[0343] The control may include one or more of the following: instant messaging control, location control, service status confirmation control, and vehicle control control (which may only be available in the ride-hailing scenario).

[0344] 837, receives user-triggered operations on the control.

[0345] The triggering operation can be a gesture operation or a voice control operation, such as a click operation.

[0346] 838, the trigger response module responds to the trigger operation and executes the operation indicated by the control based on the short-range communication connection. The operation indicated by the control is an operation associated with the service order.

[0347] For example, if the controls displayed in the message display area include an instant messaging control, in response to a trigger operation on the instant messaging control, instant communication can be performed with the second electronic device based on a short-range communication connection with the second electronic device. As another example, if the controls displayed in the message display area include a positioning control, in response to a trigger operation on the instant messaging control, distance and / or orientation information between the second electronic device and the first electronic device can be measured in real time based on a short-range communication connection with the second electronic device. Optionally, this distance and / or orientation information can be displayed in real time in the message display area.

[0348] In one possible implementation, upon successful establishment of a short-range communication connection with the second electronic device, the distance and / or orientation information between the second and first electronic devices can be automatically measured in real time based on the short-range communication connection between the first and second electronic devices, and the distance and / or orientation information can be displayed in real time in the message display area of ​​the display interface.

[0349] For implementation methods not described exhaustively above, please refer to the relevant descriptions in the preceding method embodiments, which will not be repeated here.

[0350] In some embodiments, where the electronic device is the second electronic device corresponding to the foregoing embodiments, it may include, for example: Figure 9A or Figure 9B The steps are shown.

[0351] like Figure 9A As shown, the steps may include, but are not limited to, the following:

[0352] 901. In the application interface of the service application, the service order of the first electronic device is displayed.

[0353] Upon receiving an order placement request from the first electronic device, the service platform responds by placing a service order, which may include sending the service order to the electronic device providing the service (e.g., the second electronic device). Upon receiving the service order from the first electronic device sent by the service platform, the service order can be displayed in the application interface of the service application.

[0354] 902, receives service order acceptance operations from users for service orders.

[0355] 903, In response to the service order acceptance operation, the network communication module sends an order acceptance request to the service platform to which the service application belongs.

[0356] Upon receiving an order acceptance request from the second electronic device, the service platform responds by accepting the service order for the second electronic device. If the service platform successfully accepts the service order for the second electronic device, it generates order information and sends the order information to both the first and second electronic devices.

[0357] 904, The network communication module receives order information from the service platform.

[0358] 905, The network communication module sends order information to the information processing module.

[0359] 906. The information processing module generates broadcast information based on order information.

[0360] 907, the information processing module sends a seventh notification message to the short-range communication module, the seventh notification message carrying the broadcast information.

[0361] The seventh notification message can be used to notify the short-range communication module to broadcast the broadcast information.

[0362] 908, the short-range communication module responds to the seventh notification message by broadcasting the broadcast information.

[0363] The broadcast message can be used to trigger the first electronic device to send a communication connection request to the second electronic device.

[0364] Optionally, the first electronic device can search for information broadcast by the second electronic device in relation to the service order based on the order information of the service order, thereby discovering the second electronic device.

[0365] 909, The short-range communication module receives a communication connection request from the first electronic device, the communication connection request carrying authentication information.

[0366] This verification information can be generated based on the order information of the service order.

[0367] 910. The short-range communication module sends an eighth notification message to the verification module, which carries the verification information.

[0368] The eighth notification message can be used to notify the verification module to verify the verification information.

[0369] 911, the verification module responds to the eighth notification message and verifies the verification information.

[0370] 912. If the verification information passes the verification, the verification module sends a ninth notification message to the short-range communication module.

[0371] The ninth notification message can be used to notify the short-range communication module that the verification information has been verified and that a short-range communication connection can be established with the first electronic device.

[0372] 913, In response to the ninth notification message, the short-range communication module establishes a short-range communication connection with the first electronic device and sends a communication connection response to the first electronic device, which indicates that the short-range communication connection has been successfully established. The short-range communication connection is used to perform operations associated with the service order.

[0373] This could be a first electronic device and / or a second electronic device performing operations associated with a service order based on the short-range communication connection.

[0374] In one possible implementation, upon successfully establishing a short-range communication connection with the first electronic device, the short-range communication module can send a notification message to the display module. This notification message can be used to instruct the display module to display controls. In response to the sixth notification message, the display module displays the controls in the message display area of ​​the display interface. These controls can include one or more of the following: instant messaging controls, location controls, and vehicle control controls (which may be only available in a chauffeur-driven scenario). Upon receiving a user's trigger operation on a control, the trigger response module can respond to the trigger operation based on the short-range communication connection.

[0375] For example, if the controls displayed in the message display area include an instant messaging control, in response to a trigger operation on the instant messaging control, instant communication can be performed with the first electronic device based on a short-range communication connection with the first electronic device. As another example, if the controls displayed in the message display area include a positioning control, in response to a trigger operation on the instant messaging control, distance and / or orientation information between the first electronic device and the second electronic device can be measured in real time based on a short-range communication connection with the first electronic device. Optionally, this distance and / or orientation information can be displayed in real time in the message display area.

[0376] In one possible implementation, once a short-range communication connection is successfully established with the first electronic device, the distance and / or orientation information between the first and second electronic devices can be automatically measured in real time based on the short-range communication connection between the second and first electronic devices, and the distance and / or orientation information can be displayed in real time in the message display area of ​​the display interface.

[0377] like Figure 9B As shown, the steps may include, but are not limited to, the following:

[0378] 921. In the application interface of the service application, the service order of the first electronic device is displayed.

[0379] 922, receives service order acceptance operations from users for service orders.

[0380] 923, In response to the service order acceptance operation, the network communication module sends an order acceptance request to the service platform to which the service application belongs.

[0381] Upon receiving an order acceptance request from the second electronic device, the service platform responds by accepting the service order for the second electronic device. If the service platform successfully accepts the service order for the second electronic device, it generates order information and sends the order information to both the first and second electronic devices.

[0382] 924, The network communication module receives order information from the service platform.

[0383] 925, the network communication module sends order information to the information processing module.

[0384] 926. The information processing module determines the broadcast information to be searched based on the order information.

[0385] The broadcast information is information broadcast by the first electronic device in response to a service order.

[0386] 927, the information processing module sends the tenth notification message to the short-range communication module, and the tenth notification message carries the broadcast information.

[0387] The tenth notification message can be used to notify the short-range communication module to search for the broadcast information.

[0388] 928, the short-range communication module responds to the tenth notification message by searching for the broadcast information.

[0389] 929. Upon detecting the broadcast information, the short-range communication module sends a communication connection request to the first electronic device.

[0390] The communication connection request is used to request the first electronic device to establish a short-range communication connection with the second electronic device.

[0391] Optionally, the communication connection request may carry authentication information. This request is used to request the first electronic device to establish a short-range communication connection with the second electronic device if the authentication information is verified successfully. The authentication information may be generated based on order information from a service order.

[0392] 930, the short-range communication module receives a communication connection response from the first electronic device, the communication connection response indicating that the short-range communication connection has been successfully established, the short-range communication connection being used to perform operations associated with the service order.

[0393] This could be a first electronic device and / or a second electronic device performing operations associated with a service order based on the short-range communication connection.

[0394] In one possible implementation, upon successfully establishing a short-range communication connection with the first electronic device, the short-range communication module can send a notification message to the display module. This notification message can be used to instruct the display module to display controls. In response to the notification message, the display module displays the controls in the message display area of ​​the display interface. These controls can include one or more of the following: instant messaging controls, location controls, and vehicle control controls (which may be present only in a chauffeur service scenario). Upon receiving a user's trigger operation on a control, the trigger response module can respond to the trigger operation based on the short-range communication connection.

[0395] In one possible implementation, once a short-range communication connection is successfully established with the first electronic device, the distance and / or orientation information between the first and second electronic devices can be automatically measured in real time based on the short-range communication connection between the second and first electronic devices, and the distance and / or orientation information can be displayed in real time in the message display area of ​​the display interface.

[0396] For implementation methods not described exhaustively above, please refer to the relevant descriptions in the preceding method embodiments, which will not be repeated here.

[0397] For example, the software structure of the electronic device in the embodiments of this application will be described below. The electronic device may be the first electronic device or the second electronic device corresponding to the previous embodiments.

[0398] Optionally, the software architecture of electronic devices can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. The following section uses the layered architecture of the Android system as an example to introduce the software architecture of electronic devices.

[0399] like Figure 10 As shown, the layered architecture of an electronic device divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system consists of, from top to bottom, the application layer, the application framework layer, and the kernel layer, etc.

[0400] The application layer may include a series of application packages, such as camera, gallery, video playback, system settings, map, and call applications. In this embodiment, the application layer may also include service applications, a display module, and short-range communication applications. Service applications may be lifestyle service applications. The display module can be used to control the content output by the user interface, such as displaying the application interface of the service application, displaying prompts, and displaying controls. The short-range communication application is associated with short-range communication functionality and can be used to establish short-range communication connections with other devices, as well as data interaction based on these connections. It can also be used to broadcast information externally and search for external broadcast information.

[0401] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0402] The application framework layer can include a window manager. The window manager is used to manage window applications. The window manager can obtain the screen size, determine if a status bar is present, lock the screen, capture the screen, etc.

[0403] The application framework layer may also include a view system, a notification manager, and so on.

[0404] The view system includes visual controls, such as controls for displaying text and controls for displaying images. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images. In this embodiment, the display interface may also include a capsule notification icon.

[0405] The notification manager allows applications to display notification information in the status bar. It can be used to convey informational messages and can disappear automatically after a short pause, requiring no user interaction. In this embodiment, order information, controls, etc., can be displayed in the capsule notification icon.

[0406] In this embodiment, the application framework layer may further include a verification module, a network communication module, a short-range communication module, an information processing module, and a trigger response module. The verification module can be used to verify the verification information carried in the communication connection request. The short-range communication module can be used to implement short-range communication functions, including: establishing short-range communication connections with other electronic devices, sending data (e.g., voice data, service status confirmation information, vehicle control information, etc.) to other electronic devices based on the short-range communication connection, receiving data (e.g., voice data, service status confirmation information, vehicle control information, etc.) from other electronic devices based on the short-range communication connection, broadcasting information, and searching for broadcast information from other electronic devices. The short-range communication module may be a Bluetooth module. The network communication module can be used to communicate with the service platform via a network, for example, sending order release requests and order acceptance requests to the service platform, and receiving service orders and order information sent by the service platform. The information processing module can be used to generate broadcast information, determine the broadcast information to be searched, and generate verification information.

[0407] The kernel layer is the layer between hardware and software. The kernel layer includes at least display drivers, camera drivers, audio drivers, storage drivers, processor drivers, and communication drivers.

[0408] It should be noted that the functional modules included in the above software structure are merely exemplary and do not constitute a specific limitation on the software architecture of the electronic device of this application. In other embodiments, the functional modules included in the above software structure may be more or fewer, and this application does not impose any limitations on this. Although the embodiments of this application use the Android system as an example for illustration, its basic principles are equally applicable to electronic devices based on operating systems such as iOS or Windows.

[0409] It should be understood that, in the embodiments of this application, the electronic device may be a mobile phone, tablet computer, laptop computer, handheld computer, mobile internet device (MID), wearable device, virtual reality (VR) device, augmented reality (AR) device, wireless terminal in industrial control, wireless terminal in self-driving, wireless terminal in remote medical surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, personal digital assistant (PDA), etc., and the embodiments of this application are not limited thereto.

[0410] For example, the hardware structure of the electronic device in the embodiments of this application will be described below. The electronic device may be the first electronic device or the second electronic device corresponding to the previous embodiments.

[0411] like Figure 11 As shown, the electronic device may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0412] Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. In this embodiment, the processor can determine the broadcast information to be searched, generate the broadcast information, verify the verification information, and respond to trigger operations on controls based on a short-range communication connection.

[0413] An NPU (Neural Processing Unit) is a neural network computing processor that, by drawing inspiration from the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, rapidly processes input information and can continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0414] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0415] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor. In this embodiment, the device can communicate and interact with a service platform based on mobile communication or wireless communication functions, such as sending order release requests and order acceptance requests to the service platform, and receiving service orders and order information sent by the service platform. It can also establish short-range communication connections with other electronic devices based on short-range communication functions (such as Bluetooth) included in the wireless communication function of the electronic device, and conduct instant communication with other electronic devices or measure the distance and location of other electronic devices based on the short-range communication connection.

[0416] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0417] The mobile communication module 150 can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G in electronic devices. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0418] The wireless communication module 160 can provide solutions for wireless communication applications in electronic devices, including wireless local area networks (WLAN) (such as WiFi), Bluetooth (BT), BLE broadcasting, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), and ZigBee. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0419] Electronic devices implement display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0420] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include one or N display screens 194, where N is a positive integer greater than 1. In this embodiment, the display screen 194 can be used to display... Figures 2A-2D The user interface shown Figures 3A-3B , Figures 4A-4D The user interface shown.

[0421] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K detects touch operations applied to or near it. Touch sensor 180K can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of the electronic device, in a different position than display screen 194. In this embodiment, touch sensor 180K can be used to detect user triggering operations on controls, etc.

[0422] It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0423] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive).

[0424] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0425] The steps in the method of this application embodiment can be adjusted, combined, or deleted according to actual needs.

[0426] The modules in the device of this application embodiment can be merged, divided, and deleted according to actual needs.

[0427] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: flash drive, ROM, RAM, disk or optical disk, etc.

[0428] The above-disclosed embodiments are merely one preferred embodiment of this application and only a part of the embodiments of this application. They should not be construed as limiting the scope of the claims of this application.

Claims

1. A communication method, characterized in that, The method is applied to a first electronic device, and the method includes: The system receives a service order placement operation from a service application and sends an order release request to the service platform to which the service application belongs. The order release request is used to request the service platform to release the service order. When the service order is accepted by the second electronic device, a short-range communication connection is established with the second electronic device based on the order information of the service order; The operations associated with the service order are performed based on the short-range communication connection.

2. The method as described in claim 1, characterized in that, When the service order is accepted by the second electronic device, establishing a short-range communication connection with the second electronic device based on the order information of the service order includes: When the service order is accepted by the second electronic device, the broadcast information to be searched is determined based on the order information of the service order; the broadcast information is the information broadcast by the second electronic device for the service order. Upon detecting the broadcast information, a communication connection request is sent to the second electronic device; the communication connection request is used to request the second electronic device to establish a short-range communication connection with the first electronic device. Receive a communication connection response from the second electronic device; the communication connection response indicates that the short-range communication connection has been successfully established.

3. The method as described in claim 2, characterized in that, The step of determining the broadcast information to be searched based on the order information of the service order includes: Obtain the first information from the order information of the service order; The first information is subjected to a first encryption calculation to generate broadcast information to be searched.

4. The method as described in claim 2, characterized in that, The communication connection request carries verification information, and the communication connection request is used to request the second electronic device to establish a short-range communication connection with the first electronic device if the verification information is verified successfully.

5. The method as described in claim 4, characterized in that, The method further includes: Obtain the second information from the order information; The second information is subjected to a second encryption calculation to generate the verification information.

6. The method as described in claim 2, characterized in that, The method further includes: Determine the first location information of the first electronic device; Obtain the second location information of the second electronic device from the service platform; Based on the first location information and the second location information, the distance between the first electronic device and the second electronic device is determined. If the distance is less than or equal to the distance threshold, search for the broadcast information.

7. The method as described in claim 1, characterized in that, When the service order is accepted by the second electronic device, establishing a short-range communication connection with the second electronic device based on the order information of the service order includes: When the service order is accepted by the second electronic device, a broadcast message is generated based on the order information of the service order; The broadcast information is used to trigger the second electronic device to send a communication connection request to the first electronic device. Upon receiving a communication connection request from the second electronic device, a short-range communication connection is established with the second electronic device, and a communication connection response is sent to the second electronic device; the communication connection response indicates that the short-range communication connection has been successfully established.

8. The method as described in claim 7, characterized in that, The communication connection request carries verification information; Upon receiving a communication connection request from the second electronic device, establishing a short-range communication connection with the second electronic device and sending a communication connection response to the second electronic device includes: Upon receiving a communication connection request from the second electronic device, the verification information is verified. If the verification information is verified successfully, a short-range communication connection is established with the second electronic device, and a communication connection response is sent to the second electronic device.

9. The method according to any one of claims 1-8, characterized in that, The operation associated with the service order based on the short-range communication connection includes: Based on the short-range communication connection, the distance information and / or orientation information between the second electronic device and the first electronic device are measured in real time. The method further includes: The distance and / or orientation information is displayed in real time in the message display area of ​​the display interface.

10. The method according to any one of claims 1-8, characterized in that, The operation associated with the service order based on the short-range communication connection includes: Display controls in the message display area of ​​the display interface; Upon receiving a trigger operation for the control, the operation indicated by the control is executed based on the short-range communication connection; the operation indicated by the control is an operation associated with the service order.

11. The method as described in claim 10, characterized in that, The control includes an instant messaging control. Upon receiving a trigger operation for the control, executing the operation indicated by the control based on the short-range communication connection includes: Upon receiving a trigger operation for the instant messaging control, instant communication is conducted with the second electronic device based on the short-range communication connection.

12. The method as described in claim 10, characterized in that, The control includes a positioning control. Upon receiving a trigger operation for the control, executing the operation indicated by the control based on the short-range communication connection includes: Upon receiving a trigger operation for the positioning control, the distance and / or orientation information between the second electronic device and the first electronic device are measured in real time based on the short-range communication connection. The method further includes: The distance information and / or location information are displayed in real time in the message display area.

13. The method as described in claim 10, characterized in that, The control includes a service status confirmation control. Upon receiving a trigger operation for the control, executing the operation indicated by the control based on the short-range communication connection includes: Upon receiving a trigger operation for the service status confirmation control, service status confirmation information is generated; Based on the short-range communication connection, the service status confirmation information is sent to the second electronic device; the service status confirmation information is used to instruct the second electronic device to send a status adjustment request to the service platform, and the status adjustment request is used to request the service platform to adjust the service status of the service order.

14. The method as described in claim 10, characterized in that, The service order is a vehicle service order, the second electronic device is located in the vehicle executing the vehicle service order, the second electronic device has a communication connection with the vehicle, and the control includes vehicle control control; Upon receiving a trigger operation for the control, executing the operation indicated by the control based on the short-range communication connection includes: Upon receiving a trigger operation on the vehicle control control, vehicle control information is generated; Based on the short-range communication connection, the vehicle control information is sent to the second electronic device; the vehicle control information is used to instruct the second electronic device to perform control operations on the vehicle.

15. The method as described in claim 1, characterized in that, The method further includes: The service status of the service order is determined based on one or more of the following: the third location information of the first electronic device, the fourth location information of the second electronic device, the distance information between the second electronic device and the first electronic device, and the connection status of the short-range communication connection; the distance information is measured based on the short-range communication connection. If the service status is "service ended", a service end request is sent to the service platform; the service end request is used to request the service platform to end the service order.

16. A communication method, characterized in that, The method is applied to a second electronic device, and the method includes: The service order for the first electronic device is displayed in the application interface of the service application; Receive a service order acceptance operation for the service order, and send an order acceptance request to the service platform to which the service application belongs. The order request is used to request the service platform to accept the service order for the second electronic device. Based on the order information of the service order, a short-range communication connection is established with the first electronic device; the short-range communication connection is used to perform operations associated with the service order.

17. The method as described in claim 16, characterized in that, The process of establishing a short-range communication connection with the first electronic device based on the order information of the service order includes: Based on the order information of the service order, a broadcast message is generated; The broadcast information is used to trigger the first electronic device to send a communication connection request to the second electronic device. Upon receiving a communication connection request from the first electronic device, a short-range communication connection is established with the first electronic device, and a communication connection response is sent to the first electronic device; the communication connection response indicates that the short-range communication connection has been successfully established.

18. The method as described in claim 17, characterized in that, The generation of broadcast information based on the order information of the service order includes: Obtain the first information from the order information of the service order; The first information is subjected to a first encryption calculation to generate broadcast information.

19. The method as described in claim 17, characterized in that, The communication connection request carries verification information; Upon receiving a communication connection request from the first electronic device, establishing a short-range communication connection with the first electronic device and sending a communication connection response to the first electronic device includes: Upon receiving a communication connection request from the first electronic device, the verification information is verified. If the verification information is verified successfully, a short-range communication connection is established with the first electronic device, and a communication connection response is sent to the first electronic device.

20. The method as described in claim 17, characterized in that, The broadcast information includes: Determine the location information of the second electronic device; Obtain the location information of the first electronic device from the service platform; Based on the location information of the second electronic device and the location information of the first electronic device, the distance between the first electronic device and the second electronic device is determined; If the distance is less than or equal to the distance threshold, the broadcast information is broadcast.

21. The method as described in claim 16, characterized in that, The process of establishing a short-range communication connection with the first electronic device based on the order information of the service order includes: Based on the order information of the service order, the broadcast information to be searched is determined; the broadcast information is the information broadcast by the first electronic device in relation to the service order. Upon detecting the broadcast information, a communication connection request is sent to the first electronic device; the communication connection request is used to request the first electronic device to establish a short-range communication connection with the second electronic device. Receive a communication connection response from the first electronic device; the communication connection response indicates that the short-range communication connection has been successfully established.

22. The method as described in claim 21, characterized in that, The communication connection request carries verification information, and the communication connection request is used to request the first electronic device to establish a short-range communication connection with the second electronic device if the verification information is verified successfully.

23. The method as described in claim 22, characterized in that, The method further includes: Obtain the second information from the order information; The second information is subjected to a second encryption calculation to generate the verification information.

24. The method according to any one of claims 16-23, characterized in that, The method further includes: Based on the short-range communication connection, the distance and / or orientation information between the first electronic device and the second electronic device is measured in real time, and the distance and / or orientation information is displayed in real time in the message display area of ​​the display interface; or... Based on the short-range communication connection, real-time communication can be established with the first electronic device; or... Based on the short-range communication connection, service status confirmation information is received from the first electronic device, and a status adjustment request is sent to the service platform. This status adjustment request is used to request the service platform to adjust the service status of the service order; or... In the case that the service order is a vehicle service order, based on the short-range communication connection, vehicle control information is received from the first electronic device, and control operations are performed on the vehicle based on the vehicle control information; the vehicle is the vehicle executing the vehicle service order, the second electronic device is located inside the vehicle, and the second electronic device has established a communication connection with the vehicle.

25. The method according to any one of claims 16-23, characterized in that, The method further includes: Display controls in the message display area of ​​the display interface; Upon receiving a trigger operation for the control, the operation indicated by the control is executed based on the short-range communication connection; the operation indicated by the control is an operation associated with the service order.

26. An electronic device, characterized in that, The electronic device includes: one or more processors, a memory, and a communication interface; the communication interface is used to interact with other devices, the memory is used to store program code; the processor is used to run the program code, causing the electronic device to implement the method as described in any one of claims 1-15, or to implement the method as described in any one of claims 16-25.

27. A chip system, characterized in that, The chip system includes one or more processors, a memory, and an interface circuit. The memory, the interface circuit, and the one or more processors are interconnected via circuits. The memory stores program instructions. When the program instructions are executed by the processor, the chip system implements the method as described in any one of claims 1-15, or implements the method as described in any one of claims 16-25.

28. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1-15, or implements the method as described in any one of claims 16-25.