[go: up one dir, main page]

CN110503572A - Ordering method and device, electronic equipment and storage medium - Google Patents

Ordering method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110503572A
CN110503572A CN201910726503.XA CN201910726503A CN110503572A CN 110503572 A CN110503572 A CN 110503572A CN 201910726503 A CN201910726503 A CN 201910726503A CN 110503572 A CN110503572 A CN 110503572A
Authority
CN
China
Prior art keywords
merchant terminal
user
terminal
information
bluetooth
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910726503.XA
Other languages
Chinese (zh)
Inventor
方攀
陈岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910726503.XA priority Critical patent/CN110503572A/en
Publication of CN110503572A publication Critical patent/CN110503572A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0281Customer communication at a business location, e.g. providing product or service information, consulting
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Signal Processing (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

The application discloses a food ordering method and device, electronic equipment and a storage medium. The method comprises the following steps: the user terminal establishes Bluetooth connection with the merchant terminal according to the received Bluetooth broadcast message broadcast by the merchant terminal; after the connection is established, receiving menu data pushed by the merchant terminal, and displaying the menu data; and receiving a menu ordering instruction of the user based on the menu data, generating menu ordering information, and sending the menu ordering information to the merchant terminal for ordering. The user terminal and the merchant terminal are connected through Bluetooth connection, so that the influence of network conditions is avoided, the connection stability of ordering is enhanced, and the dining experience of a user is improved.

Description

点餐方法、装置、电子设备及存储介质Meal ordering method, device, electronic device and storage medium

技术领域technical field

本申请涉及电子设备技术领域,更具体地,涉及一种点餐方法、装置、电子设备及存储介质。The present application relates to the technical field of electronic devices, and more particularly, to a method, device, electronic device and storage medium for ordering meals.

背景技术Background technique

随着科技的发展,人们的生活日益丰富,手机、平板电脑等移动终端使用越来越广泛,功能也越来越多,已经成为人们日常生活的必备的电子设备。通常人们在餐饮消费中,可以在餐厅内通过手机进行自助点单,这种点单通常依赖于网络,然而在有些餐厅中,网络信号并不太好,则会造成用户点单失败,影响用户的就餐体验。With the development of science and technology, people's life is increasingly enriched, and mobile terminals such as mobile phones and tablet computers are used more and more widely, and have more and more functions, which have become necessary electronic devices in people's daily life. Usually, people can order self-service through mobile phones in restaurants. This kind of ordering usually depends on the network. However, in some restaurants, the network signal is not very good, which will cause users to fail to order and affect users. dining experience.

发明内容SUMMARY OF THE INVENTION

本申请提出了一种点餐方法、装置、电子设备及存储介质,以满足用户的点单需求,提升用户的就餐体验。The present application proposes an ordering method, device, electronic device and storage medium, so as to meet the ordering requirements of users and improve the dining experience of users.

第一方面,本申请实施例提供了一种点餐方法,应用于用户终端,该方法包括:用户终端根据接收到的商家终端广播的蓝牙广播消息,与所述商家终端建立蓝牙连接;接收商家终端推送的菜单数据,并将所述菜单数据进行显示;接收用户基于所述菜单数据的点单指令,生成点单信息,将所述点单信息发送给所述商家终端进行点餐。In a first aspect, an embodiment of the present application provides a method for ordering meals, which is applied to a user terminal. The method includes: the user terminal establishes a Bluetooth connection with the merchant terminal according to the received Bluetooth broadcast message broadcast by the merchant terminal; The menu data pushed by the terminal is displayed, and the menu data is displayed; the user's order instruction based on the menu data is received, the order information is generated, and the order information is sent to the merchant terminal for ordering.

第二方面,本申请实施例提供了一种点餐方法,应用于商家终端,该方法包括:商家终端按照预设频率广播蓝牙广播消息,所述蓝牙广播消息用于指示移动终端根据所述蓝牙广播消息与所述商家终端建立连接;所述商家终端与所述移动终端建立蓝牙连接后,将菜单数据推送给所述移动终端;接收所述移动终端发送的基于所述菜单数据的点单信息并显示。In a second aspect, an embodiment of the present application provides a method for ordering meals, which is applied to a merchant terminal. The method includes: the merchant terminal broadcasts a Bluetooth broadcast message according to a preset frequency, and the Bluetooth broadcast message is used to instruct the mobile terminal to use the Bluetooth The broadcast message establishes a connection with the merchant terminal; after the merchant terminal establishes a Bluetooth connection with the mobile terminal, the menu data is pushed to the mobile terminal; the order information based on the menu data sent by the mobile terminal is received and display.

第三方面,本申请实施例提供了一种点餐装置,应用于用户终端,该装置包括:连接模块,用于根据接收到的商家终端广播的蓝牙广播消息,与所述商家终端建立蓝牙连接;显示模块,用于接收所述商家终端推送的菜单数据,并将所述菜单数据进行显示;点单模块,用于接收用户基于所述菜单数据的点单指令,生成点单信息,将所述点单信息发送给所述商家终端进行点餐。In a third aspect, an embodiment of the present application provides an ordering device, which is applied to a user terminal. The device includes: a connection module configured to establish a Bluetooth connection with the merchant terminal according to a received Bluetooth broadcast message broadcast by the merchant terminal The display module is used to receive the menu data pushed by the merchant terminal, and display the menu data; the order module is used to receive the user's order instruction based on the menu data, generate order information, The ordering information is sent to the merchant terminal for ordering.

第四方面,本申请实施例提供了一种点餐装置,应用于商家终端,该装置包括:广播模块,用于按照预设频率广播蓝牙广播消息,所述蓝牙广播消息用于指示移动终端根据所述蓝牙广播消息与所述商家终端建立连接;发送模块,用于与所述移动终端建立蓝牙连接后,将菜单数据推送给所述移动终端;接收模块,用于接收所述移动终端发送的基于所述菜单数据的点单信息并显示。In a fourth aspect, an embodiment of the present application provides an ordering device, which is applied to a merchant terminal. The device includes: a broadcasting module, configured to broadcast a Bluetooth broadcast message according to a preset frequency, where the Bluetooth broadcast message is used to instruct the mobile terminal to The bluetooth broadcast message establishes a connection with the merchant terminal; the sending module is used to push the menu data to the mobile terminal after the bluetooth connection is established with the mobile terminal; the receiving module is used to receive the data sent by the mobile terminal. Order information based on the menu data and displayed.

第五方面,本申请实施例提供了一种电子设备,该电子设备包括一个或多个处理器;存储器,与所述一个或多个处理器电连接;壳体以及至少一个广角摄像头,所述广角摄像头可伸出所述壳体外或可收缩于所述壳体内,所述广角摄像头与所述处理器电性连接;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如上述应用于电子设备的方法。In a fifth aspect, an embodiment of the present application provides an electronic device, the electronic device includes one or more processors; a memory electrically connected to the one or more processors; a housing and at least one wide-angle camera, the A wide-angle camera can extend out of the casing or can be retracted in the casing, and the wide-angle camera is electrically connected to the processor; one or more application programs, wherein the one or more application programs are stored in the In the memory and configured to be executed by the one or more processors, the one or more programs are configured to perform a method as applied to an electronic device as described above.

第六方面,本申请实施列提供一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码运行时执行上述的方法。In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, wherein the above-mentioned method is executed when the program code is executed.

相对于现有技术,本申请提出的点餐方法,通过用户终端根据接收到的商家终端广播的蓝牙广播消息,与所述商家终端建立蓝牙连接;在建立连接后,用户终端接收所述商家终端推送的菜单数据,并将所述菜单数据进行显示;用户终端接收用户基于所述菜单数据的点单指令,生成点单信息,将所述点单信息发送给所述商家终端进行点餐。通过蓝牙连接的方式将用户终端与商家终端进行蓝牙连接,从而不受到的网络状况的影响,增强点餐的连接稳定性,从而提升用户的就餐体验。Compared with the prior art, in the ordering method proposed in the present application, the user terminal establishes a Bluetooth connection with the merchant terminal according to the received Bluetooth broadcast message broadcast by the merchant terminal; after the connection is established, the user terminal receives the merchant terminal. Pushed menu data, and display the menu data; the user terminal receives the user's order instruction based on the menu data, generates order information, and sends the order information to the merchant terminal for ordering. The user terminal is connected with the merchant terminal through Bluetooth connection, so as not to be affected by the network conditions, the connection stability of ordering is enhanced, and the user's dining experience is improved.

本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These and other aspects of the present application will be more clearly understood in the description of the following embodiments.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.

图1示出了本申请实施例使用的蓝牙SPP协议的堆栈示意图。FIG. 1 shows a schematic diagram of the stack of the Bluetooth SPP protocol used in the embodiment of the present application.

图2示出了本申请实施例提供的点餐方法的一种应用场景图。FIG. 2 shows an application scenario diagram of the meal ordering method provided by the embodiment of the present application.

图3示出了本申请一个实施例提供的点餐方法的流程图。FIG. 3 shows a flowchart of a method for ordering meals provided by an embodiment of the present application.

图4示出了本申请另一个实施例提供的点餐方法的流程图。FIG. 4 shows a flowchart of a method for ordering meals provided by another embodiment of the present application.

图5示出了本申请实施例中提供的一种菜单数据的显示示意图。FIG. 5 shows a schematic diagram of displaying menu data provided in an embodiment of the present application.

图6示出了本申请实施例中提供的另一种菜单数据的显示示意图。FIG. 6 shows a schematic diagram of displaying another menu data provided in the embodiment of the present application.

图7示出了本申请图3所示的实施例提供的检测连接状态方法的流程图。FIG. 7 shows a flowchart of the method for detecting a connection state provided by the embodiment shown in FIG. 3 of the present application.

图8示出了本申请再一个实施例提供的点餐方法的流程图。FIG. 8 shows a flowchart of a method for ordering meals provided by yet another embodiment of the present application.

图9示出了本申请一个实施例提供的点餐方法的交互流程图。FIG. 9 shows an interaction flowchart of a method for ordering food provided by an embodiment of the present application.

图10示出了本申请一个实施例提供的点餐方法的交互图。FIG. 10 shows an interaction diagram of a meal ordering method provided by an embodiment of the present application.

图11示出了本申请一个实施例提供的点餐装置的功能模块图。FIG. 11 shows a functional block diagram of a meal ordering device provided by an embodiment of the present application.

图12示出了本申请另一个实施例提供的点餐装置的功能模块图。FIG. 12 shows a functional block diagram of a meal ordering device provided by another embodiment of the present application.

图13示出了本申请实施例提出的用于执行根据本申请实施例的支付方法的电子设备的结构框图。FIG. 13 shows a structural block diagram of an electronic device for executing the payment method according to the embodiment of the present application proposed by the embodiment of the present application.

图14示出了本申请实施例提供的用于保存或者携带实现根据本申请实施例的支付方法的程序代码的存储介质。FIG. 14 shows a storage medium provided by an embodiment of the present application for storing or carrying a program code for implementing the payment method according to the embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

通常,人们在餐饮消费场所中进行消费时,需要进行点单,常用的点单方式是餐厅的工作人员将菜单送至用户处,通过工作人员的记录完成点单。随着互联网的发展,也出现了很多自助点单的方式,例如,通过扫描二维码的方式进行点单,具体的,用户可以扫描入座的餐桌上的二维码,通过扫描餐桌上的二维码将用户和所在的餐桌的桌号进行绑定,并通过扫描二维码进入对应的点单界面,用户可根据显示的菜单信息,选择相应的菜品,从而减少排队点单的现象。Usually, when people consume in a catering consumption place, they need to order. A common ordering method is that the staff of the restaurant sends the menu to the user, and the order is completed through the records of the staff. With the development of the Internet, there are many ways of self-ordering, for example, ordering by scanning a QR code. The QR code binds the user to the table number of the table where they are located, and enters the corresponding ordering interface by scanning the QR code. The user can select the corresponding menu according to the displayed menu information, thereby reducing the phenomenon of queuing for ordering.

然而,在使用扫描二维码进行点单的方式,主要依赖于网络通信,在网络条件较好的情况下,可以快速的加载出菜单信息,并提交点单信息;若网络状况不好或是网络不稳定,则会影响菜单的显示以及用户的订单信息的提交,影响用户的就餐体验。发明人在研究中发现,可以通过蓝牙的方式进行点餐,以避免网络对点餐的影响。蓝牙串行端口(SerialPort Profile,SPP)协议是一种蓝牙协议,该协议的堆栈可以参照图1,图1示出了蓝牙SPP协议的堆栈示意图。其中,图1中基带、链路管理协议(Link Manager Protocol,LMP)和逻辑链路控制与适配协议(Logical Link Control and Adaptation Protocol,L2CAP)对应开放式系统互联通信参考模型(Open System Interconnection Reference Model,OSI)的第一层和第二层。RFCOMM是一个蓝牙适配层协议,为上层的模拟串口提供一个传输层。服务发现协议(Service Discovery Protocol,SDP)是一个辅助性的协议。Serial Port API就是真正的模拟串口,提供给应用层调用。SPP协议本身对通信内容的格式没有限定,可以包含纯数据、音频、图片、视频等。从而可以运用在餐厅点单中,在用户进入到餐厅范围时,可以直接传输各类数据,例如菜单数据等,由于蓝牙连接不受到网络的影响,因此,通过蓝牙进行菜单以及点单数据的传输可以满足用户的各种点单需求,包括催单,加单等需求。However, the method of ordering by scanning the QR code mainly relies on network communication. In the case of good network conditions, the menu information can be quickly loaded and the order information can be submitted; if the network condition is poor or Unstable network will affect the display of the menu and the submission of the user's order information, which will affect the user's dining experience. The inventor found in the research that ordering can be done through Bluetooth to avoid the influence of the network on ordering. The Bluetooth Serial Port Profile (SPP) protocol is a Bluetooth protocol, and the stack of the protocol may refer to FIG. 1 , which shows a schematic diagram of the stack of the Bluetooth SPP protocol. Among them, the baseband, Link Manager Protocol (LMP) and Logical Link Control and Adaptation Protocol (L2CAP) in Figure 1 correspond to the Open System Interconnection Reference Model (Open System Interconnection Reference). Model, OSI) of the first and second layers. RFCOMM is a Bluetooth adaptation layer protocol that provides a transport layer for the upper analog serial port. The Service Discovery Protocol (SDP) is an auxiliary protocol. The Serial Port API is a real analog serial port, which is provided to the application layer to call. The SPP protocol itself does not limit the format of the communication content, which can include pure data, audio, pictures, videos, and so on. Therefore, it can be used in restaurant ordering. When the user enters the restaurant, various data, such as menu data, can be directly transmitted. Since the Bluetooth connection is not affected by the network, the menu and order data are transmitted through Bluetooth. It can meet various ordering needs of users, including urging orders, adding orders, etc.

因此,发明人提出本申请的点餐方法,通过用户终端根据接收到的商家终端广播的蓝牙广播消息,与所述商家终端建立蓝牙连接;在建立连接后,接收所述商家终端推送的菜单数据,并将所述菜单数据进行显示;接收用户基于所述菜单数据的点单指令,生成点单信息,将所述点单信息发送给所述商家终端进行点餐。通过蓝牙连接的方式将移动终端与商家终端进行蓝牙连接,从而不受到的网络状况的影响,增强点餐的连接稳定性,从而提升用户的就餐体验。Therefore, the inventor proposes the ordering method of the present application, through which the user terminal establishes a Bluetooth connection with the merchant terminal according to the received Bluetooth broadcast message broadcast by the merchant terminal; after the connection is established, the menu data pushed by the merchant terminal is received. , and display the menu data; receive an order instruction from the user based on the menu data, generate order information, and send the order information to the merchant terminal for ordering. The mobile terminal and the merchant terminal are connected by bluetooth in the way of bluetooth connection, so as not to be affected by the network conditions, the connection stability of ordering is enhanced, and the dining experience of the user is improved.

请参阅图2,图2示出了可用于本申请实施例提供的点餐方法的应用场景图,包括用户终端110,商家终端120。其中,用户终端110和商家终端120通过蓝牙进行连接,所采用的蓝牙协议为蓝牙串行端口(Serial Port Profile,SPP)协议,其中SPP协议本身对通信内容的格式没有任何限定,可以包含纯数据、音频、图片、视频等。Please refer to FIG. 2 . FIG. 2 shows an application scenario diagram applicable to the ordering method provided by the embodiment of the present application, including a user terminal 110 and a merchant terminal 120 . The user terminal 110 and the merchant terminal 120 are connected through Bluetooth, and the Bluetooth protocol adopted is the Bluetooth Serial Port Profile (SPP) protocol, wherein the SPP protocol itself does not have any restrictions on the format of the communication content, and can include pure data , audio, picture, video, etc.

该用户终端110可以是手机、平板电脑等具有蓝牙SPP协议,且具备支付功能的电子设备,在该用户终端110中存储有用户预先绑定的支付帐号。该商家终端120可以是具有显示功能和广播蓝牙功能的电脑、收银机等设备。在该应用场景中,商家终端120可以持续性的广播蓝牙消息,当用户终端110进入商家终端120广播蓝牙消息的辐射范围内121时,可以接收到所述商家终端120广播的蓝牙消息,并根据该蓝牙消息与所述商家终端120进行连接。其中,图1中商家终端周围的虚线框121表示商家终端120广播的蓝牙消息的覆盖范围。当用户终端110进入到虚线框121范围内时,就可以接收到商家终端120广播的蓝牙消息。The user terminal 110 may be an electronic device with a Bluetooth SPP protocol and a payment function, such as a mobile phone and a tablet computer, and a payment account pre-bound by the user is stored in the user terminal 110 . The merchant terminal 120 may be a computer, a cash register and other devices with a display function and a broadcast Bluetooth function. In this application scenario, the merchant terminal 120 can continuously broadcast the Bluetooth message, and when the user terminal 110 enters the radiation range 121 of the merchant terminal 120 broadcasting the Bluetooth message, it can receive the Bluetooth message broadcast by the merchant terminal 120, and according to the The Bluetooth message is connected to the merchant terminal 120 . Wherein, the dotted box 121 around the merchant terminal in FIG. 1 represents the coverage of the Bluetooth message broadcast by the merchant terminal 120 . When the user terminal 110 enters the range of the dotted box 121 , it can receive the Bluetooth message broadcast by the merchant terminal 120 .

基于上面介绍的系统以及系统运行流程,下面将通过具体实施例对本申请实施例提供的点餐方法、装置、电子设备及存储介质进行详细说明。Based on the above-described system and system operation process, the following will describe in detail the ordering method, device, electronic device, and storage medium provided by the embodiments of the present application through specific embodiments.

下面将对本申请实施例进行详细的说明。The embodiments of the present application will be described in detail below.

请参阅图3,本申请实施例提供了一种点餐方法,可应用于用户终端,本实施例描述的是用户终端侧的步骤流程,具体的该方法可以包括:Referring to FIG. 3 , an embodiment of the present application provides a method for ordering meals, which can be applied to a user terminal. This embodiment describes the step flow on the user terminal side. The specific method may include:

步骤S110:根据接收到的商家终端广播的蓝牙广播消息,与所述商家终端建立蓝牙连接。Step S110: Establish a Bluetooth connection with the merchant terminal according to the received Bluetooth broadcast message broadcast by the merchant terminal.

其中,所述蓝牙广播消息为商家终端按照预设频率发出的广播消息,当用户终端进入到所述商家终端广播的蓝牙广播消息的辐射范围内时,可以接收到商家终端广播的蓝牙广播消息。当用户终端接收到所述蓝牙广播消息时,可以根据所述蓝牙广播消息与所述商家终端建立蓝牙连接。The Bluetooth broadcast message is a broadcast message sent by the merchant terminal according to a preset frequency. When the user terminal enters the radiation range of the Bluetooth broadcast message broadcast by the merchant terminal, the Bluetooth broadcast message broadcast by the merchant terminal can be received. When the user terminal receives the Bluetooth broadcast message, it can establish a Bluetooth connection with the merchant terminal according to the Bluetooth broadcast message.

具体的,蓝牙广播消息中可以携带连接请求,在所述用户终端接收到所述蓝牙广播消息时,解析所述蓝牙广播消息中携带的连接请求,对所述连接请求进行响应,向所述商家终端发送确认连接响应,以完成蓝牙连接。在所述用户终端与所述商家终端建立起蓝牙连接后,表示用户终端和所述商家终端可以通过蓝牙协议进行数据的传输,蓝牙协议可以选用SPP协议,SPP协议本身对通信内容的格式没有限定,可以是纯数据、音频、图片、视频等。由此,可以通过蓝牙SPP协议发送菜单数据,该菜单数据可以是简单的文字,也可以是具有图片的菜单等,以实现菜单的多种多样的显示方式。Specifically, the Bluetooth broadcast message may carry a connection request. When the user terminal receives the Bluetooth broadcast message, it parses the connection request carried in the Bluetooth broadcast message, responds to the connection request, and sends a message to the merchant. The terminal sends a confirmation connection response to complete the Bluetooth connection. After the user terminal and the merchant terminal establish a Bluetooth connection, it means that the user terminal and the merchant terminal can transmit data through the Bluetooth protocol. The Bluetooth protocol can be the SPP protocol, and the SPP protocol itself does not limit the format of the communication content. , which can be pure data, audio, picture, video, etc. In this way, menu data can be sent through the Bluetooth SPP protocol, and the menu data can be simple text or a menu with pictures, etc., so as to realize various display modes of the menu.

步骤S120:接收所述商家终端推送的菜单数据,并将所述菜单数据进行显示。Step S120: Receive the menu data pushed by the merchant terminal, and display the menu data.

在所述用户终端与所述商家终端建立起蓝牙连接后,用户终端可以接收到商家终端通过蓝牙协议发送的菜单数据。用户终端在接收到所述菜单数据时,可以对所述菜单数据进行解析,以对菜单数据进行显示。可以理解的是,若所述商家终端通过SPP协议发送的菜单数据为单纯的文字信息,那么用户终端解析所述菜单信息进行显示的也为单纯的文字信息;若所述商家终端通过SPP协议发送的菜单数据为图片信息,那么用户终端解析所述菜单信息进行显示的则为图片信息;若所述商家终端通过SPP协议发送的菜单数据为视频信息,那么用户终端解析所述菜单信息进行显示的也为视频信息。After the user terminal establishes a Bluetooth connection with the merchant terminal, the user terminal may receive menu data sent by the merchant terminal through the Bluetooth protocol. When receiving the menu data, the user terminal may analyze the menu data to display the menu data. It can be understood that, if the menu data sent by the merchant terminal through the SPP protocol is simple text information, then the user terminal parses the menu information and displays it as simple text information; If the menu data is picture information, then what the user terminal parses the menu information for display is picture information; if the menu data sent by the merchant terminal through the SPP protocol is video information, then the user terminal parses the menu information for display. Also for video information.

步骤S130:接收用户基于所述菜单数据的点单指令,生成点单信息,将所述点单信息发送给所述商家终端进行点餐。Step S130: Receive an ordering instruction from the user based on the menu data, generate ordering information, and send the ordering information to the merchant terminal for ordering.

在所述用户终端解析商家终端推送的菜单信息进行显示后,用户可以通过显示的内容进行菜品的选择,生成对应的点单信息。例如,用户根据显示的内容选择的菜品有鱼香肉丝,麻婆豆腐,宫保鸡丁各一份,米饭两份,那么生成的点单信息则可以是鱼香肉丝x1,麻婆豆腐x1,宫保鸡丁x1,米饭x2。在生成所述点单信息后,用户终端则可以将所述点单信息发送给所述商家终端进行点餐,从而商家的工作人员则可以根据所述点单信息进行菜品的准备。After the user terminal parses and displays the menu information pushed by the merchant terminal, the user can select dishes through the displayed content to generate corresponding order information. For example, according to the displayed content, the user selects one dish each of Yuxiang Shredded Pork, Mapo Tofu, Kung Pao Chicken, and two pieces of rice, then the generated order information can be Yuxiang Shredded Pork x1, Mapo Tofu x1 x1, Kung Pao Chicken x1, Rice x2. After the order information is generated, the user terminal can send the order information to the merchant terminal for ordering, so that the staff of the merchant can prepare dishes according to the order information.

本申请提出点餐方法,通过用户终端根据接收到的商家终端广播的蓝牙广播消息,与所述商家终端建立蓝牙连接;在建立连接后,接收所述商家终端推送的菜单数据,并将所述菜单数据进行显示;接收用户基于所述菜单数据的点单指令,生成点单信息,将所述点单信息发送给所述商家终端进行点餐。通过蓝牙连接的方式将用户终端与商家终端进行蓝牙连接,从而不受到的网络状况的影响,增强点餐的连接稳定性,从而提升用户的就餐体验。The present application proposes a method for ordering meals. The user terminal establishes a Bluetooth connection with the merchant terminal according to the received Bluetooth broadcast message broadcast by the merchant terminal; after the connection is established, the menu data pushed by the merchant terminal is received, and the The menu data is displayed; the user's ordering instruction based on the menu data is received, the ordering information is generated, and the ordering information is sent to the merchant terminal for ordering. The user terminal is connected with the merchant terminal through Bluetooth connection, so as not to be affected by the network conditions, the connection stability of ordering is enhanced, and the user's dining experience is improved.

请参阅图4,本申请另一实施例提供了一种点餐方法,本实施例在前述实施例的基础上,重点描述了在用户终端进行点单以及支付的过程,该方法可以包括:Referring to FIG. 4 , another embodiment of the present application provides an ordering method. Based on the foregoing embodiments, this embodiment focuses on the process of ordering and payment at a user terminal. The method may include:

步骤S210:根据接收到的商家终端广播的蓝牙广播消息,与所述商家终端建立蓝牙连接。Step S210: Establish a Bluetooth connection with the merchant terminal according to the received Bluetooth broadcast message broadcast by the merchant terminal.

步骤S210可参照前述实施例对应部分,在此不再赘述。For step S210, reference may be made to the corresponding parts of the foregoing embodiments, and details are not described herein again.

步骤S220:接收所述商家终端推送的菜单数据,对所述菜单数据进行解析得到排版信息以及菜品信息。Step S220: Receive the menu data pushed by the merchant terminal, and analyze the menu data to obtain layout information and dish information.

在接收到商家终端推送的菜单数据时,由于菜单数据是通过SPP协议进行传输的,则需要对菜单数据进行解析。其中,单纯的文字菜单中包括文字和文字的排布方式。为了使展现给用户的菜单更加丰富,通常会包括图片,对应的图片的文字解释,价格等信息,那么这些图片和文字需要按照一定的方式进行排布,从而可以展现给用户。其中,若菜品信息为纯文字菜单,那么排版信息可以是,从右到左的排布方式,即文字阅读顺序为从右到左,或是从左到右的排布方式,即文字阅读顺序为从左到右;若菜品信息为菜品图片加文字信息,那么排版信息可以是文字信息在菜品图片的下方,或是菜品文字信息在菜品图片右边。那么在用户终端解析所述菜单数据则可以得到菜品信息以及对应的排版信息。When the menu data pushed by the merchant terminal is received, since the menu data is transmitted through the SPP protocol, the menu data needs to be parsed. Among them, the simple text menu includes text and text arrangement. In order to make the menu displayed to the user more abundant, it usually includes pictures, text explanations of the corresponding pictures, prices and other information, then these pictures and texts need to be arranged in a certain way so that they can be displayed to the users. Among them, if the dish information is a plain text menu, the layout information can be arranged from right to left, that is, the text reading order is from right to left, or the layout is from left to right, that is, the text reading order From left to right; if the dish information is the dish image plus text information, the typesetting information can be that the text information is below the dish image, or the dish text information is to the right of the dish image. Then, by parsing the menu data at the user terminal, dish information and corresponding layout information can be obtained.

步骤S230:按照所述排版信息对所述菜品信息进行显示。Step S230: Display the dish information according to the layout information.

用户终端解析菜单数据后则可以按照解析得到的菜品信息和排版信息,则按照所述排版信息对所述菜品信息进行显示。例如,若解析菜单数据得到的排版信息为文字信息在菜品图片的下方,那么在用户终端上显示的菜单数据可以参阅图5,本申请实施例中提供的一种菜单数据的显示示意图,其中,在用户终端110的显示界面上,显示有菜品111以菜品对应的解释和价格112;若解析菜单数据得到的排版信息为文字信息在菜品图片的右边,那么在用户终端上显示的菜单数据可以参阅图6,本申请实施例中提供的另一种菜单数据的显示示意图,其中,在用户终端110的显示界面上,显示有菜品111以菜品对应的解释和价格112。由此,用户可以在用户终端上看到菜品数据,以供用户选择。After analyzing the menu data, the user terminal can display the dish information according to the typesetting information according to the dish information and layout information obtained by the analysis. For example, if the typesetting information obtained by parsing the menu data is that the text information is below the picture of the dish, then the menu data displayed on the user terminal may refer to FIG. On the display interface of the user terminal 110, the explanation and price 112 corresponding to the dishes 111 and the dishes are displayed; if the typesetting information obtained by parsing the menu data is text information on the right side of the image of the dishes, the menu data displayed on the user terminal can refer to FIG. 6 is a schematic diagram of displaying another menu data provided in an embodiment of the present application, wherein, on the display interface of the user terminal 110 , an explanation and a price 112 corresponding to the dishes 111 are displayed. Thus, the user can view the dish data on the user terminal for the user to select.

步骤S240:接收用户基于所述菜单数据的点单指令,生成点单信息,将所述点单信息发送给所述商家终端进行点餐。Step S240: Receive an ordering instruction from the user based on the menu data, generate ordering information, and send the ordering information to the merchant terminal for ordering.

基于上述图5和图6所示出的显示界面,用户可以在该显示界面上选择对应的菜品,在用户确认所选择的菜品后,则会生成点单信息,用户终端将点单信息通过SPP协议将点单信息发送给商家终端进行点餐。该点单信息可以包括用户所点的菜品、用户的帐号、菜品的价格等信息。该用户的帐号可以是支付帐号;也可以是绑定支付帐号的其他帐号,如社交帐号;还可以是用户终端的身份标识等。Based on the display interface shown in Figures 5 and 6 above, the user can select the corresponding menu on the display interface. After the user confirms the selected menu, order information will be generated, and the user terminal will pass the order information through the SPP. The protocol sends the order information to the merchant terminal for ordering. The order information may include information such as the dishes ordered by the user, the user's account, and the price of the dishes. The user's account may be a payment account; it may also be another account bound to the payment account, such as a social account; it may also be an identity identifier of the user terminal, and the like.

步骤S250:接收商家终端根据所述点单信息生成的账单信息。Step S250: Receive billing information generated by the merchant terminal according to the ordering information.

用户终端将点单信息发送给所述商家终端后,可以收到商家终端基于所述点单信息生成的账单信息,以供用户进行账单支付。该账单信息可以包括用户所需支付的总的菜品金额以及其他信息。该其他信息如用户所点菜品、各种菜品的金额、商家的收款帐号等。After the user terminal sends the order information to the merchant terminal, it can receive bill information generated by the merchant terminal based on the order information for the user to pay the bill. The billing information may include the total amount of dishes that the user needs to pay and other information. The other information includes the dishes ordered by the user, the amounts of various dishes, the merchant's payment account, and the like.

在一些实施方式中,可以由用户通过所述用户终端发起结账请求,用户终端可以发送一个结账请求给所述商家终端,商家终端在接收到所述结账请求时,则会根据点单信息生成账单信息,发送给用户终端,以供用户进行账单的支付。In some implementations, a user may initiate a checkout request through the user terminal, the user terminal may send a checkout request to the merchant terminal, and when the merchant terminal receives the checkout request, it will generate a bill according to the order information The information is sent to the user terminal for the user to pay the bill.

在另一些实施方式中,可以是在用户终端将所述点单信息发送给商家终端后,间隔预设时间,商家终端根据所述点单信息生成账单信息发送给用户终端,用户终端则会在发送点单信息后,间隔预设时间,收到商家终端根据所述点单信息生成的账单信息。例如,预设时间为3min,那么,用户终端根据用户的点单指令生成点单信息发送给商家终端后的3min,则可以接收到商家终端根据所述点单信息生成的账单信息。In other implementations, after the user terminal sends the order information to the merchant terminal, the merchant terminal may generate billing information according to the order information at a preset time interval and send it to the user terminal, and the user terminal will After the order information is sent, the bill information generated by the merchant terminal according to the order information is received at preset time intervals. For example, if the preset time is 3 minutes, then 3 minutes after the user terminal generates order information according to the user's order instruction and sends it to the merchant terminal, the bill information generated by the merchant terminal according to the order information can be received.

步骤S260:在接收到根据所述账单信息进行的支付操作后,向所述商家终端发送支付信息,所述支付信息用于指示所述商家终端对所述支付操作进行确认。Step S260: After receiving the payment operation according to the billing information, send payment information to the merchant terminal, where the payment information is used to instruct the merchant terminal to confirm the payment operation.

用户终端接收到所述账单信息后,可以对所述账单信息进行支付,其中,用户终端中存储有用户预先绑定的支付帐号,例如,微信支付帐号,支付宝帐号等。那么在用户对账单信息进行支付操作时,则需要从用户终端中预先绑定的支付帐号中,扣除相应的金额。After receiving the billing information, the user terminal can make payment for the billing information, wherein the user terminal stores a payment account pre-bound by the user, for example, a WeChat payment account, an Alipay account, and the like. Then, when the user performs a payment operation on the billing information, the corresponding amount needs to be deducted from the payment account pre-bound in the user terminal.

在一种实施方式中,用户终端可以会发起扣款请求给支付帐号对应的服务器,所述扣款请求包括了支付帐号和扣款金额以及收款帐号,服务器在接收到所述扣款请求时,发送确认指令给所述用户终端,用户确定支付帐号、扣款金额以及收款帐号没有问题后,可以通过输入密码或录入指纹的方式完成扣款,服务器会将对应的金额下发到收款帐号。In one embodiment, the user terminal may initiate a deduction request to the server corresponding to the payment account, where the deduction request includes the payment account, the deduction amount, and the collection account. When the server receives the deduction request , send a confirmation instruction to the user terminal, after the user confirms that there is no problem with the payment account, the deduction amount and the collection account, he can complete the deduction by entering a password or entering a fingerprint, and the server will send the corresponding amount to the collection. account number.

在另一种实施方式中,若用户终端所处环境的网络状况较差,难以与服务器建立网络连接,用户终端可以将扣款请求加密后发送通过蓝牙连接发送到商家终端,指示商家终端将该扣款请求发送到服务器。商家终端将该加密的扣款请求发送给服务器。服务器对该扣钱请求解密后发送加密的确认指令到商家终端,并指示商家终端发送给用户终端。商家终端将加密的确认指令发送给用户终端,用户终端根据确认指令显示支付帐号、扣款金额以及收款帐号等信息,用户在确定支付帐号、扣款金额以及收款帐号没有问题后,可以通过输入密码或录入指纹的方式进行确认扣款操作。用户终端将用户输入的密码或录入的指纹加密后发送给商家终端,并指示商家终端发送给用户终端。商家终端将加密的密码或指纹发送给服务器。服务器解密该密码或指纹并确定无误后,对支付帐号进行扣款,并将对应的金额下发到收款帐号。可以理解的,用户终端对信息的加密方式是服务器可知并且可以解密的,而商家终端是不可知从而无法解密的;服务器对信息的加密方式是用户终端可知并且可以解密的,而商家终端是不可知从而无法解密的。In another embodiment, if the network condition of the environment where the user terminal is located is poor and it is difficult to establish a network connection with the server, the user terminal can encrypt the debit request and send it to the merchant terminal through a Bluetooth connection, instructing the merchant terminal to A chargeback request is sent to the server. The merchant terminal sends the encrypted debit request to the server. After decrypting the deduction request, the server sends an encrypted confirmation instruction to the merchant terminal, and instructs the merchant terminal to send it to the user terminal. The merchant terminal sends the encrypted confirmation instruction to the user terminal, and the user terminal displays information such as the payment account number, the debit amount, and the collection account number according to the confirmation instruction. Enter your password or enter your fingerprint to confirm the deduction operation. The user terminal encrypts the password entered by the user or the entered fingerprint and sends it to the merchant terminal, and instructs the merchant terminal to send it to the user terminal. The merchant terminal sends the encrypted password or fingerprint to the server. After the server decrypts the password or fingerprint and confirms that it is correct, it debits the payment account and sends the corresponding amount to the receiving account. It is understandable that the encryption method of the information by the user terminal is known to the server and can be decrypted, but the merchant terminal is unknowable and cannot be decrypted; the encryption method of the server to the information is known and decryptable by the user terminal, while the merchant terminal cannot. so it cannot be decrypted.

步骤S270:接收所述商家终端对所述支付操作进行确认后的反馈信息,完成支付。Step S270: Receive feedback information after the merchant terminal confirms the payment operation, and complete the payment.

用户通过所述用户终端完成支付操作后,商家终端可以收到与账单信息对应的金额,那么商家终端可以返回一个反馈信息给用户终端,以提示用户已经完成支付。After the user completes the payment operation through the user terminal, the merchant terminal can receive the amount corresponding to the billing information, and then the merchant terminal can return a feedback message to the user terminal to remind the user that the payment has been completed.

在整个过程中,用户还可以随时通过用户终端输入就餐位置,那么,用户终端可以接收用户输入的就餐位置,向所述商家终端发送就餐位置以及输入所述就餐位置的时间。由此,用户可以根据自己的选择变换自己的就餐位置,餐厅的工作人员也可以随时获知用户的就餐位置。例如,用户在进入刚进行餐厅时,为9:00,输入了自己的就餐位置为桌号02,用户终端则将“桌号02-9:00”发送给商家终端;用户在完成点餐后,想要更换自己的就餐位置为桌号05,那么用户在9:07通过用户终端输入自己的就餐位置为桌号05,那么用户终端则将“桌号05-9:07”发送给商家终端,商家终端则可以根据所述就餐位置和时间确定用户的最终就餐位置,从而用户可以灵活的改变自己的就餐位置,满足用户的就餐需求。During the whole process, the user can also input the dining position through the user terminal at any time, then the user terminal can receive the dining position input by the user, and send the dining position and the input time of the dining position to the merchant terminal. Thus, the user can change his dining position according to his choice, and the staff of the restaurant can also know the user's dining position at any time. For example, when the user enters the restaurant for the first time, it is 9:00, and he enters his own dining position as table number 02, and the user terminal sends "table number 02-9:00" to the merchant terminal; after the user completes the ordering , and want to change his dining position to table number 05, then the user enters his dining position as table number 05 through the user terminal at 9:07, then the user terminal sends "table number 05-9:07" to the merchant terminal , the merchant terminal can determine the user's final dining position according to the dining position and time, so that the user can flexibly change his dining position to meet the user's dining needs.

由于用户终端和商家终端通过蓝牙进行通信,蓝牙有可能会出现断开的现象,或是用户自己人为的关掉了蓝牙,那么商家则无法获知用户的需求。由此,可以通过检测用户终端的蓝牙与商家终端连接状态,避免出现用户与商家通信中断的问题。具体的,可参阅图7,示出了用户终端检测连接状态的过程,该方法可以包括:Since the user terminal and the merchant terminal communicate through Bluetooth, the Bluetooth may be disconnected, or the user himself turns off the Bluetooth artificially, so the merchant cannot know the user's needs. Therefore, the connection state between the user terminal and the merchant terminal can be detected by detecting the Bluetooth connection state of the user terminal, so as to avoid the problem of interruption of communication between the user and the merchant. Specifically, please refer to FIG. 7, which shows the process of detecting the connection state of the user terminal. The method may include:

步骤S310:根据接收到的商家终端广播的蓝牙广播消息,与所述商家终端建立蓝牙连接。Step S310: Establish a Bluetooth connection with the merchant terminal according to the received Bluetooth broadcast message broadcast by the merchant terminal.

步骤S310可参照前述实施例对应的部分,在此不再赘述。For step S310, reference may be made to the corresponding parts of the foregoing embodiments, and details are not described herein again.

步骤S320:检测所述蓝牙连接是否断开,若是,则执行步骤S330,若否,则继续执行步骤S320。Step S320: Detecting whether the Bluetooth connection is disconnected, if yes, execute step S330, if not, continue to execute step S320.

在与所述商家终端建立蓝牙连接后,才能检测蓝牙是否断开,若用户终端检测到蓝牙连接断开。则可能是用户主动断开蓝牙,或是由于干扰蓝牙连接中断。若检测到所述蓝牙连接断开,则执行步骤S330;若没有检测到蓝牙连接断开,则继续检测蓝牙连接是否断开。After the Bluetooth connection is established with the merchant terminal, it is possible to detect whether the Bluetooth is disconnected, if the user terminal detects that the Bluetooth connection is disconnected. It may be that the user actively disconnects the Bluetooth, or the Bluetooth connection is interrupted due to interference. If it is detected that the Bluetooth connection is disconnected, step S330 is performed; if it is not detected that the Bluetooth connection is disconnected, continue to detect whether the Bluetooth connection is disconnected.

在本申请实施例中,在点单完成并将点单信息后,即可以以一定频率或者实时地执行本步骤,以监测是否在未完成支付时蓝牙连接被断开。In the embodiment of the present application, after the order is completed and the order information is obtained, this step may be performed at a certain frequency or in real time to monitor whether the Bluetooth connection is disconnected when the payment is not completed.

步骤S330:若对应的点单信息没有完成支付,则自动与所述商家终端进行蓝牙连接。Step S330: If the corresponding order information has not been paid for, automatically connect with the merchant terminal via Bluetooth.

在蓝牙断开时,可以判断是否对应所述点单信息完成支付,若在蓝牙断开时,用户已经对对应的点单信息完成支付,则不进行处理;若检测到用户存在对应的点单信息没有完成支付,则可能出现不支付的情况,则自动与所述商家终端进行蓝牙连接。When the Bluetooth is disconnected, it can be determined whether the payment is completed corresponding to the order information. If the user has completed the payment for the corresponding order information when the Bluetooth is disconnected, no processing is performed; if it is detected that the user has a corresponding order If the payment is not completed for the information, there may be a situation of non-payment, and the Bluetooth connection with the merchant terminal is automatically performed.

若用户存在对应的点单信息没有完成支付,用户终端在接收商家广播的蓝牙广播消息,自动重新与所述商家终端建立连接,便于商家响应用户的需求以及对用户进行定位。在一些实施方式中,有可能是用户主动的断开了蓝牙,由此,用户终端则不能再接收商家终端广播的蓝牙广播消息。则可以检测蓝牙的断开是否为接收到用户的断开指令,若检测到用户的断开指令,则进行支付指示,以提示用户还有点单信息没有完成支付。If the user has the corresponding order information and fails to complete the payment, the user terminal automatically re-establishes a connection with the merchant terminal after receiving the Bluetooth broadcast message broadcast by the merchant, so that the merchant can respond to the user's needs and locate the user. In some embodiments, it is possible that the user disconnects the Bluetooth actively, and thus, the user terminal can no longer receive the Bluetooth broadcast message broadcast by the merchant terminal. Then, it can be detected whether the disconnection of the bluetooth is the receipt of the disconnection instruction from the user, and if the disconnection instruction from the user is detected, a payment instruction is performed to remind the user that there is still order information and the payment has not been completed.

本申请提出的点餐方法,通过用户终端根据接收到的商家终端广播的蓝牙广播消息,与所述商家终端建立蓝牙连接;在建立连接后,接收所述商家终端推送的菜单数据,并将所述菜单数据进行显示;接收用户基于所述菜单数据的点单指令,生成点单信息,将所述点单信息发送给所述商家终端进行点餐,接收商家终端发送的根据所述点单信息生成的账单信息,对账单信息进行支付。且用户可以随时输入自己的位置信息,避免将用户与就餐位置进行绑定,以使得用户可以灵活选择就餐位置,提升用户的就餐体验;对蓝牙断开的判断,避免用户与商家之间的通讯中断,在检测到用户在没有完成点单信息的支付时,用户主动断开蓝牙连接,则发出支付提示,减少未支付的现象,从而提升了用户的就餐体验。In the ordering method proposed in the present application, the user terminal establishes a Bluetooth connection with the merchant terminal according to the received Bluetooth broadcast message broadcast by the merchant terminal; after the connection is established, the menu data pushed by the merchant terminal is received, and the The menu data is displayed; receiving the user's order instruction based on the menu data, generating order information, sending the order information to the merchant terminal for ordering, and receiving the order information sent by the merchant terminal according to the order information. Generated billing information, and make payment on the billing information. And users can input their own location information at any time to avoid binding the user with the dining location, so that the user can flexibly choose the dining location and improve the user's dining experience; the judgment of Bluetooth disconnection avoids the communication between the user and the merchant When it is detected that the user has not completed the payment of the order information, the user actively disconnects the Bluetooth connection, and a payment prompt is issued to reduce the phenomenon of non-payment, thereby improving the user's dining experience.

请参阅图8,本申请又一实施例提供了一种点餐方法,可应用于商家终端,本实施例描述的是商家终端侧的步骤流程,具体的该方法可以包括:Referring to FIG. 8 , another embodiment of the present application provides a method for ordering meals, which can be applied to a merchant terminal. This embodiment describes the steps on the side of the merchant terminal. The specific method may include:

步骤S410:所述商家终端按照预设频率广播蓝牙广播消息,所述蓝牙广播消息用于指示用户终端根据所述蓝牙广播消息与所述商家终端建立连接。Step S410: The merchant terminal broadcasts a Bluetooth broadcast message according to a preset frequency, and the Bluetooth broadcast message is used to instruct the user terminal to establish a connection with the merchant terminal according to the Bluetooth broadcast message.

商家终端可以不断广播蓝牙广播消息,以使进入该商家终端蓝牙广播消息辐射范围内的用户终端可以接收到蓝牙广播消息。商家终端广播的蓝牙广播消息收到功率和当前环境的影响,会影响接收范围,通常,当用户终端进入商家终端5米至10米范围内,可以接收到商家终端广播的蓝牙广播消息。The merchant terminal can continuously broadcast the Bluetooth broadcast message, so that the user terminal entering the radiation range of the merchant terminal's Bluetooth broadcast message can receive the Bluetooth broadcast message. The Bluetooth broadcast message broadcast by the merchant terminal is affected by the power and the current environment, which will affect the receiving range. Usually, when the user terminal enters the range of 5 to 10 meters from the merchant terminal, the Bluetooth broadcast message broadcast by the merchant terminal can be received.

其中,商家终端可以是以预设频率广播蓝牙广播消息,该预设频率的具体值在本申请实施例中并不限定,可以使任意进入该商家终端的辐射范围内的用户终端快速响应为宜。The merchant terminal may broadcast a Bluetooth broadcast message at a preset frequency, and the specific value of the preset frequency is not limited in the embodiments of the present application, and it is appropriate to enable any user terminal that enters the radiation range of the merchant terminal to respond quickly. .

步骤S420:所述商家终端与所述用户终端建立蓝牙连接后,将菜单数据推送给所述用户终端。Step S420: After the merchant terminal establishes a Bluetooth connection with the user terminal, push the menu data to the user terminal.

商家终端广播的蓝牙广播消息可以携带连接请求,用户终端可以响应所述连接请求向商家终端发送确认连接响应,商家终端在接收到所述确认连接响应时,与所述用户终端建立蓝牙连接。在与所述用户终端建立蓝牙连接后,可以将商家的菜单数据推送给用户终端,以供用户查看菜单进行菜品的选择。The Bluetooth broadcast message broadcasted by the merchant terminal may carry a connection request, the user terminal may send a connection confirmation response to the merchant terminal in response to the connection request, and the merchant terminal establishes a Bluetooth connection with the user terminal upon receiving the connection confirmation response. After the Bluetooth connection is established with the user terminal, the menu data of the merchant can be pushed to the user terminal, so that the user can view the menu and select dishes.

其中,所述菜单数据可以包括菜品信息以及对应的排版信息。那么在用户终端接收到所述菜单数据时,对所述菜单数据进行解析,则可以显示商家的菜单数据。Wherein, the menu data may include dish information and corresponding layout information. Then, when the user terminal receives the menu data and analyzes the menu data, the menu data of the merchant can be displayed.

步骤S430:接收所述用户终端发送的基于所述菜单数据的点单信息并显示。Step S430: Receive and display the order information based on the menu data sent by the user terminal.

商家终端将菜单数据推送给用户终端后,用户终端可以根据所述菜单数据,进行菜品的选择,在用户完成菜品的选择后,可以根据用户所选择的菜品生成对应的点单信息,发送给商家终端,从而商家终端可以接收到点单信息进行显示,工作人员则可以根据所显示的点单信息为用户进行配餐。After the merchant terminal pushes the menu data to the user terminal, the user terminal can select dishes according to the menu data. After the user completes the selection of the dishes, it can generate corresponding order information according to the dishes selected by the user and send it to the merchant. terminal, so that the merchant terminal can receive the order information and display it, and the staff can prepare meals for the user according to the displayed order information.

其中,在接收到用户终端发送的基于所述菜单数据的点单信息并显示之后,还可以判断与所述用户终端的蓝牙连接是否断开;若是,在预设时长内若未与所述用户终端成功建立连接,发出对应于所述用户终端的报警信息。Wherein, after receiving and displaying the order information based on the menu data sent by the user terminal, it can also be judged whether the Bluetooth connection with the user terminal is disconnected; The terminal successfully establishes the connection, and sends out alarm information corresponding to the user terminal.

在商家终端显示所述点单信息后,若蓝牙断开连接,则会失去与用户之间的通信。因此,可以判断与所述用户终端的蓝牙连接是否断开,若检测到断开,则在预设时间内检测是否重新与所述商家终端建立蓝牙连接,若在预设时间内没有连接成功,则可以发出对应与所述用户终端的报警信息,以提示商家工作人员进行处理。若在预设时间内与该用户终端重新蓝牙连接,则不发出报警信息。具体的,用户终端与所述商家终端进行蓝牙连接后,商家终端可以获取到用户终端的身份标识等信息,从而可以通过用户终端的身份标识确定断开连接的用户终端。After the merchant terminal displays the order information, if the Bluetooth is disconnected, the communication with the user will be lost. Therefore, it can be determined whether the Bluetooth connection with the user terminal is disconnected, and if disconnection is detected, it is detected whether to re-establish a Bluetooth connection with the merchant terminal within a preset time, and if the connection is not successful within the preset time, Then, alarm information corresponding to the user terminal can be issued to prompt the staff of the merchant to handle it. If the Bluetooth connection with the user terminal is reconnected within the preset time, no alarm message will be sent. Specifically, after the user terminal and the merchant terminal are connected via Bluetooth, the merchant terminal can obtain information such as the identity identifier of the user terminal, so that the disconnected user terminal can be determined through the identity identifier of the user terminal.

在一些场景中,有可能会出现用户在完成点单后,但未支付的情况,由此,则可以实时检测用户终端与所述商家终端的距离,在所述距离大于预设距离时,确定所述用户终端是否完成支付,若未完成,则发出报警,以指示工作人员进行支付确认。具体的,所述用户终端与所述商家终端的距离可以通过蓝牙RSSI值与距离的对应关系获取,通常情况下,距离所述商家终端越远,蓝牙RSSI值越小,那么,在检测到用户终端与所述商家终端的距离大于预设距离时,则确认所述用户终端是否完成支付,可以是检测商家终端是否有发送支付成功的反馈信息给所述用户终端,若未检测到该反馈信息的发送,则可以发出报警信息,以指示工作人员进行支付确认。该报警信息可以是商家终端发送一个报警指令给需要确认的用户终端,指示所述用户终端发出报警,也可以商家终端发出报警,以提示工作人员进行支付确认。In some scenarios, there may be a situation where the user does not pay after completing the order. Therefore, the distance between the user terminal and the merchant terminal can be detected in real time, and when the distance is greater than the preset distance, determine Whether the user terminal has completed the payment, if not, it will issue an alarm to instruct the staff to confirm the payment. Specifically, the distance between the user terminal and the merchant terminal can be obtained through the correspondence between the Bluetooth RSSI value and the distance. Generally, the farther the distance from the merchant terminal, the smaller the Bluetooth RSSI value. When the distance between the terminal and the merchant terminal is greater than the preset distance, confirm whether the user terminal has completed the payment, which may be to detect whether the merchant terminal has sent feedback information of successful payment to the user terminal, if the feedback information is not detected. is sent, an alarm message can be issued to instruct the staff to confirm the payment. The alarm information may be that the merchant terminal sends an alarm instruction to the user terminal that needs to be confirmed, instructing the user terminal to issue an alarm, or the merchant terminal may issue an alarm to prompt the staff to confirm payment.

本申请提出点餐方法,商家终端按照预设频率广播蓝牙广播消息,所述蓝牙广播消息用于指示用户终端根据所述蓝牙广播消息与所述商家终端建立连接;所述商家终端与所述用户终端建立蓝牙连接后,将菜单数据推送给所述用户终端;接收所述用户终端发送的基于所述菜单数据的点单信息并显示。通过蓝牙连接的方式将用户终端与商家终端进行蓝牙连接,从而不受到的网络状况的影响,增强点餐的连接稳定性,从而提升用户的就餐体验。This application proposes a method for ordering meals. A merchant terminal broadcasts a Bluetooth broadcast message according to a preset frequency, and the Bluetooth broadcast message is used to instruct a user terminal to establish a connection with the merchant terminal according to the Bluetooth broadcast message; the merchant terminal and the user After the terminal establishes the Bluetooth connection, the menu data is pushed to the user terminal; the order information based on the menu data sent by the user terminal is received and displayed. The user terminal is connected with the merchant terminal through Bluetooth connection, so as not to be affected by the network conditions, the connection stability of ordering is enhanced, and the user's dining experience is improved.

请参阅图9,本申请又一实施例提供了一种点餐方法,本实施例在前述实施例的基础上,点餐的用户终端和商家终端的交互过程,该方法可以包括:Referring to FIG. 9 , another embodiment of the present application provides a method for ordering meals. Based on the foregoing embodiments, the interaction process between a user terminal for ordering meals and a merchant terminal in this embodiment may include:

步骤S510:商家终端按照预设频率广播蓝牙广播消息,所述蓝牙广播消息用于指示用户终端根据所述蓝牙广播消息与所述商家终端建立连接。Step S510: The merchant terminal broadcasts a Bluetooth broadcast message according to a preset frequency, and the Bluetooth broadcast message is used to instruct the user terminal to establish a connection with the merchant terminal according to the Bluetooth broadcast message.

步骤S520:用户终端根据接收到的商家终端广播的蓝牙广播消息,与所述商家终端建立蓝牙连接。Step S520: The user terminal establishes a Bluetooth connection with the merchant terminal according to the received Bluetooth broadcast message broadcast by the merchant terminal.

步骤S530:商家终端与所述用户终端建立蓝牙连接后,将菜单数据推送给所述用户终端。Step S530: After establishing a Bluetooth connection with the user terminal, the merchant terminal pushes the menu data to the user terminal.

步骤S540:用户终端解析所述菜单数据得到菜品信息和排版信息,按照所述排版信息对所述菜品信息进行显示。Step S540: The user terminal parses the menu data to obtain dish information and layout information, and displays the dish information according to the layout information.

步骤S550:用户终终端接收基于所述用户基于所诉菜单数据的点单指令,生成点单信息,将所述的点单信息发送给所述商家终端进行点餐。Step S550: The user terminal terminal receives the ordering instruction based on the user based on the menu data, generates ordering information, and sends the ordering information to the merchant terminal for ordering.

步骤S560:商家终端接收所述用户终端发送的基于所述菜单数据的点单信息并显示。Step S560: The merchant terminal receives and displays the order information based on the menu data sent by the user terminal.

步骤S510至步骤S560可以参照前述实施例对应的部分,在此不再赘述。同时也可以参阅图10,示出了用户终端与商家终端之间的交互过程。For steps S510 to S560, reference may be made to the corresponding parts of the foregoing embodiments, and details are not described herein again. At the same time, referring to FIG. 10, the interaction process between the user terminal and the merchant terminal is shown.

下面将以一个具体的实例来说明此交互过程。The interaction process will be described below with a specific example.

例如在图2所示的场景中,用户携带用户终端110进入到商家终端120的蓝牙广播消息的辐射范围121内时,其中,用户终端110可以是用户携带的手机,商家终端120可以是商家的收银机。For example, in the scenario shown in FIG. 2, when the user brings the user terminal 110 into the radiation range 121 of the Bluetooth broadcast message of the merchant terminal 120, the user terminal 110 may be a mobile phone carried by the user, and the merchant terminal 120 may be the merchant terminal 120. cashier.

具体的,收银机可以按照一定的频率广播蓝牙广播消息,其中,所述蓝牙广播消息可以包括连接请求,当用户携带手机进入收银机的蓝牙广播消息的辐射范围内时,手机可以接收到所述蓝牙广播消息,手机解析所述蓝牙广播消息,得到连接请求,手机对所述连接请求进行响应发送确认连接响应给收银机,那么手机与所述收银机则可以建立蓝牙连接。Specifically, the cash register can broadcast a Bluetooth broadcast message according to a certain frequency, wherein the Bluetooth broadcast message may include a connection request. When the user brings a mobile phone into the radiation range of the Bluetooth broadcast message of the cash register, the mobile phone can receive the Bluetooth broadcast message, the mobile phone parses the Bluetooth broadcast message to obtain a connection request, the mobile phone responds to the connection request and sends a confirmation connection response to the cash register, then the mobile phone and the cash register can establish a Bluetooth connection.

在建立连接后,收银机通过蓝牙SPP协议推送菜单数据给手机,手机接收到所述菜单数据对所述菜单数据进行解析后,得到菜品信息和排版信息后进行显示,用户通过手机上显示的菜单数据,对菜品进行选择,选择完对应的菜品后,手机根据用户选择的菜品生成点单信息,发送给收银机进行点餐。商家的工作人员,根据所述点单信息进行配餐。在这个过程中,用户可以通过手机输入自己的就餐位置,手机将就餐位置和就餐位置的输入时间一起发送给收银机,工作人员则可以根据就餐位置以及就餐位置的输入时间确认用户的最终就餐位置,为用户自由选择就餐位置提供了方便。工作人员在配餐完毕后,根据用户的就餐位置进行送餐。用户在就餐完毕后,需要支付对应的金额,收银机可以根据用户的点单信息生成对应的账单发送到用户的手机,用户则根据所述账单信息完成支付。After the connection is established, the cash register pushes the menu data to the mobile phone through the Bluetooth SPP protocol. After the mobile phone receives the menu data and parses the menu data, the menu data and typesetting information are obtained and displayed. After selecting the corresponding dish, the mobile phone generates order information according to the dish selected by the user, and sends it to the cash register for ordering. The staff of the merchant arranges meals according to the order information. In this process, the user can input his dining location through the mobile phone, the mobile phone will send the dining location and the input time of the dining location to the cash register, and the staff can confirm the final dining location of the user according to the dining location and the input time of the dining location , which provides convenience for users to freely choose the dining location. After the meal is prepared, the staff will deliver the meal according to the user's dining location. After the user finishes eating, the user needs to pay the corresponding amount, the cash register can generate a corresponding bill according to the user's order information and send it to the user's mobile phone, and the user completes the payment according to the bill information.

手机与收银机之间的蓝牙连接保证了双方的通信,手机还可以检测蓝牙的连接状态,若断开蓝牙连接,则自动进行重连,若用户已经完成了对应点单信息的支付,则在检测到蓝牙断开时可以不做处理。若用户没有完成对应的点单信息的支付,且在预设时间内重连失败,收银机则可以发出对应报警信息,以提示工作人员进行人为的确认,若为用户自己主动断开蓝牙,且没有完成对应的点单信息的支付,则提示用户进行支付。在一些场景下,用户可能忘记对点单信息进行支付,那么收银机可以检测手机与收银机的距离,在所述距离大于预设距离时,发出报警,提示工作人员进行确认。避免出现用餐后没有进行支付的情况,提升了用户的就餐体验。The Bluetooth connection between the mobile phone and the cash register ensures the communication between the two parties. The mobile phone can also detect the Bluetooth connection status. If the Bluetooth connection is disconnected, it will automatically reconnect. It is not necessary to process when it is detected that the Bluetooth is disconnected. If the user does not complete the payment for the corresponding order information and fails to reconnect within the preset time, the cash register can send out a corresponding alarm message to prompt the staff to confirm artificially. If the user actively disconnects the Bluetooth, and If the payment of the corresponding order information is not completed, the user is prompted to pay. In some scenarios, the user may forget to pay for the order information, then the cash register can detect the distance between the mobile phone and the cash register, and when the distance is greater than the preset distance, an alarm will be issued to prompt the staff to confirm. It avoids the situation where no payment is made after the meal, and improves the user's dining experience.

本申请提出的点餐方法,通过商家终端按照预设频率广播蓝牙广播消息,所述蓝牙广播消息用于指示用户终端根据所述蓝牙广播消息与所述商家终端建立连接;用户终端根据接收到的商家终端广播的蓝牙广播消息,与所述商家终端建立蓝牙连接;商家终端与所述用户终端建立蓝牙连接后,将菜单数据推送给所述用户终端;用户终端解析所述菜单数据得到菜品信息和排版信息,按照所述排版信息对所述菜品信息进行显示;用户终端接收基于所述用户基于所诉菜单数据的点单指令,生成点单信息,将所述的点单信息发送给所述商家终端进行点餐;商家终端接收所述用户终端发送的基于所述菜单数据的点单信息并显示。且用户可以随时输入自己的位置信息,避免将用户与就餐位置进行绑定,以使得用户可以灵活选择就餐位置,提升用户的就餐体验;对蓝牙断开的判断,避免用户与商家之间的通讯中断,在检测到用户在没有完成点单信息的支付时,用户主动断开蓝牙连接,则发出支付提示,减少未支付的现象,从而提升了用户的就餐体验。In the ordering method proposed in the present application, the merchant terminal broadcasts a Bluetooth broadcast message according to a preset frequency, and the Bluetooth broadcast message is used to instruct the user terminal to establish a connection with the merchant terminal according to the Bluetooth broadcast message; the user terminal according to the received The Bluetooth broadcast message broadcast by the merchant terminal establishes a Bluetooth connection with the merchant terminal; after the merchant terminal establishes a Bluetooth connection with the user terminal, the menu data is pushed to the user terminal; the user terminal parses the menu data to obtain the dish information and Typesetting information, displaying the dish information according to the typesetting information; the user terminal receives the ordering instruction based on the user based on the menu data, generates ordering information, and sends the ordering information to the merchant The terminal orders food; the merchant terminal receives and displays the order information based on the menu data sent by the user terminal. And users can input their own location information at any time to avoid binding the user with the dining location, so that the user can flexibly choose the dining location and improve the user's dining experience; the judgment of Bluetooth disconnection avoids the communication between the user and the merchant When it is detected that the user has not completed the payment of the order information, the user actively disconnects the Bluetooth connection, and a payment prompt is issued to reduce the phenomenon of non-payment, thereby improving the user's dining experience.

请参阅图11,其示出了本申请实施例提供的一种点餐装置600,应用于用户终端,所述装置600包括连接模块610、显示模块620、点单模块630。Please refer to FIG. 11 , which shows a food ordering device 600 provided by an embodiment of the present application, which is applied to a user terminal. The device 600 includes a connection module 610 , a display module 620 , and an ordering module 630 .

所述连接模块610,用于根据接收到的商家终端广播的蓝牙广播消息,与所述商家终端建立连接;所述显示模块620,用于接收所述商家终端推送的菜单数据,并将所述菜单数据进行显示;所述点单模块630,用于接收用户基于所述菜单数据的点单指令,生成点单信息,将所述点单信息发送给所述商家终端进行点餐。The connection module 610 is used to establish a connection with the merchant terminal according to the received Bluetooth broadcast message broadcast by the merchant terminal; the display module 620 is used to receive the menu data pushed by the merchant terminal, and display the The menu data is displayed; the ordering module 630 is configured to receive an ordering instruction from the user based on the menu data, generate ordering information, and send the ordering information to the merchant terminal for ordering.

进一步的,所述显示模块620还用于接收所述商家终端推送的菜单数据,对所述菜单数据进行解析得到排版信息以及菜品信息;按照所述排版信息对所述菜品信息进行显示。Further, the display module 620 is further configured to receive menu data pushed by the merchant terminal, parse the menu data to obtain layout information and dish information, and display the dish information according to the layout information.

进一步的,所述点单模块630在接收用户基于所述菜单数据的点单指令,生成点单信息发送给所述商家终端之后,所述点单模块630还用于接收商家终端根据所述点单信息生成的账单信息;在用户根据所述账单信息进行支付操作后,向所述商家终端发送支付信息,所述支付信息用于指示所述商家终端对所述支付操作进行确认;接收所述商家终端对所述支付操作进行确认后的反馈信息,完成支付。Further, after the ordering module 630 receives an ordering instruction from the user based on the menu data, and generates ordering information and sends it to the merchant terminal, the ordering module 630 is further configured to receive the ordering instruction from the merchant terminal according to the ordering information. bill information generated by the single information; after the user performs a payment operation according to the bill information, the payment information is sent to the merchant terminal, and the payment information is used to instruct the merchant terminal to confirm the payment operation; The merchant terminal confirms the feedback information of the payment operation, and completes the payment.

进一步的,所述点单模块630还用于检测所述蓝牙连接是否断开;在检测到所述蓝牙连接断开时判断是否对应所述点单信息完成支付;若未完成支付,自动与所述商家终端进行蓝牙连接。Further, the ordering module 630 is further configured to detect whether the Bluetooth connection is disconnected; when detecting that the Bluetooth connection is disconnected, determine whether the payment is completed corresponding to the ordering information; if the payment is not completed, it will automatically contact the The merchant terminal is connected via Bluetooth.

进一步的,所述点单模块630还用于若未完成支付,判断所述蓝牙连接的断开是否是响应用户的断开指令;若是,进行支付提示。Further, the ordering module 630 is further configured to determine whether the disconnection of the Bluetooth connection is in response to the disconnection instruction of the user if the payment has not been completed; if so, perform a payment prompt.

进一步的,所述点单模块630还用于接收用户输入的就餐位置;向所述商家终端发送所述就餐位置以及输入所述就餐位置的时间。Further, the ordering module 630 is further configured to receive the dining location input by the user; send the dining location and the time of inputting the dining location to the merchant terminal.

请参阅图12,其示出了本申请实施例提供的一种点餐装置700,所述装置700包括广播模块710、发送模块720、接收模块730。Please refer to FIG. 12 , which shows an ordering device 700 provided by an embodiment of the present application. The device 700 includes a broadcasting module 710 , a sending module 720 , and a receiving module 730 .

所述广播模块710,用于按照预设频率广播蓝牙广播消息,所述蓝牙广播消息用于指示用户终端根据所述蓝牙广播消息与所述商家终端建立连接;所述发送模块720,用于与所述用户终端建立蓝牙连接后,将菜单数据推送给所述用户终端;所述接收模块730,用于接收所述用户终端发送的基于所述菜单数据的点单信息并显示。The broadcasting module 710 is used to broadcast a Bluetooth broadcast message according to a preset frequency, and the Bluetooth broadcast message is used to instruct the user terminal to establish a connection with the merchant terminal according to the Bluetooth broadcast message; the sending module 720 is used to communicate with the merchant terminal. After the user terminal establishes the Bluetooth connection, the menu data is pushed to the user terminal; the receiving module 730 is configured to receive and display the order information based on the menu data sent by the user terminal.

进一步的,所述接收模块710在接收所述用户终端发送的基于所述菜单数据的点单信息并显示之后,所述接收模块710还用于判断与所述用户终端的蓝牙连接是否断开;若是,在预设时长内若未与所述用户终端成功建立连接,发出对应于所述用户终端的报警信息。Further, after the receiving module 710 receives and displays the order information based on the menu data sent by the user terminal, the receiving module 710 is further configured to determine whether the Bluetooth connection with the user terminal is disconnected; If so, if the connection with the user terminal is not successfully established within a preset time period, an alarm message corresponding to the user terminal is sent out.

进一步的,所述接收模块710在接收所述用户终端发送的基于所述菜单数据的点单信息并显示之后,所述接收模块710还用于实时检测所述用户终端与所述商家终端的距离;在所述距离大于预设距离时,确认所述用户终端是否完成支付;若未完成,则发出报警,以指示工作人员进行支付确认。Further, after the receiving module 710 receives and displays the order information based on the menu data sent by the user terminal, the receiving module 710 is further configured to detect the distance between the user terminal and the merchant terminal in real time ; When the distance is greater than the preset distance, confirm whether the user terminal completes the payment; if not, send an alarm to instruct the staff to confirm the payment.

需要说明的是,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and modules, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

综上所述,本申请提供的点餐方法,通过用户终端根据接收到的商家终端广播的蓝牙广播消息,与所述商家终端建立蓝牙连接;在建立连接后,接收所述商家终端推送的菜单数据,并将所述菜单数据进行显示;接收用户基于所述菜单数据的点单指令,生成点单信息,将所述点单信息发送给所述商家终端进行点餐。通过蓝牙连接的方式将用户终端与商家终端进行蓝牙连接,从而不受到的网络状况的影响,增强点餐的连接稳定性,从而提升用户的就餐体验。To sum up, in the ordering method provided by the present application, the user terminal establishes a Bluetooth connection with the merchant terminal according to the received Bluetooth broadcast message broadcast by the merchant terminal; after the connection is established, the menu pushed by the merchant terminal is received. data, and display the menu data; receive an order instruction from the user based on the menu data, generate order information, and send the order information to the merchant terminal for ordering. The user terminal is connected with the merchant terminal through Bluetooth connection, so as not to be affected by the network conditions, the connection stability of ordering is enhanced, and the user's dining experience is improved.

在本申请所提供的几个实施例中,所显示或讨论的模块相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In several embodiments provided in this application, the coupling or direct coupling or communication connection between the modules shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be electrical, mechanical or otherwise.

另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.

请参考图13,其示出了本申请实施例提供的一种电子设备的结构框图。该电子设备800可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备800可以包括一个或多个如下部件:处理器810、存储器820,以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器820中并被配置为由一个或多个处理器810执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 13 , which shows a structural block diagram of an electronic device provided by an embodiment of the present application. The electronic device 800 may be an electronic device capable of running an application program, such as a smart phone, a tablet computer, an electronic book, or the like. The electronic device 800 in the present application may include one or more of the following components: a processor 810, a memory 820, and one or more application programs, wherein the one or more application programs may be stored in the memory 820 and configured by One or more processors 810 execute, and one or more programs are configured to perform the methods described in the foregoing method embodiments.

处理器810可以包括一个或者多个处理核。处理器810利用各种接口和线路连接整个电子设备800内的各个部分,通过运行或执行存储在存储器820内的指令、程序、代码集或指令集,以及调用存储在存储器820内的数据,执行电子设备800的各种功能和处理数据。可选地,处理器810可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器810可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器810中,单独通过一块通信芯片进行实现。Processor 810 may include one or more processing cores. The processor 810 uses various interfaces and lines to connect various parts of the entire electronic device 800, and executes by running or executing the instructions, programs, code sets or instruction sets stored in the memory 820, and calling the data stored in the memory 820. Various functions of the electronic device 800 and processing data. Optionally, the processor 810 may employ at least one of a digital signal processing (Digital Signal Processing, DSP), a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and a Programmable Logic Array (Programmable Logic Array, PLA). implemented in hardware. The processor 810 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing of the display content; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 810, and is implemented by a communication chip alone.

存储器820可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器820可用于存储指令、程序、代码、代码集或指令集。存储器820可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备800在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 820 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). Memory 820 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 820 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like. The storage data area may also store data created by the electronic device 800 during use (such as a phone book, audio and video data, chat record data) and the like.

请参考图14,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读存储介质900中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 14 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable storage medium 900 stores program codes, and the program codes can be invoked by the processor to execute the methods described in the above method embodiments.

计算机可读存储介质900可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质900包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质900具有执行上述方法中的任何方法步骤的程序代码910的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码910可以例如以适当形式进行压缩。The computer-readable storage medium 900 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 900 includes a non-transitory computer-readable storage medium. Computer readable storage medium 900 has storage space for program code 910 to perform any of the method steps in the above-described methods. These program codes can be read from or written to one or more computer program products. Program code 910 may be compressed, for example, in a suitable form.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (13)

1. a kind of method of ordering, which is characterized in that be applied to user terminal, which comprises
The user terminal establishes bluetooth with the merchant terminal according to the Bluetooth broadcast message of the merchant terminal broadcast received Connection;
The menu data of the merchant terminal push is received, and the menu data is shown;
Point single instrction of the user based on the menu data is received, the single information of point is generated, the single information of the point is sent to described Merchant terminal orders food.
2. the method according to claim 1, wherein the menu data for receiving merchant terminal push, And the menu data is shown, comprising:
The menu data for receiving the merchant terminal push, parses the menu data to obtain composition information and vegetable Information;
The dish information is shown according to the composition information.
3. the method according to claim 1, wherein the reception user is singly referred to based on the point of the menu data It enables, generates the single information of point and be sent to after the merchant terminal, further includes:
Merchant terminal is received according to the bill information putting single information and generating;
After receiving the delivery operation carried out according to the bill information, Xiang Suoshu merchant terminal sends payment information, described Payment information is used to indicate the merchant terminal and confirms to the delivery operation;
The feedback information after the merchant terminal confirms the delivery operation is received, payment is completed.
4. method according to claim 1-3, which is characterized in that the method also includes:
Detect whether the bluetooth connection disconnects;
Judge whether that corresponding to the list information of putting completes payment when detecting that the bluetooth connection disconnects;
If not completing payment, bluetooth connection is carried out with the merchant terminal automatically.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
If not completing payment, judge whether the disconnection of the bluetooth connection is in response to the open command of user;
If so, carrying out payment prompt.
6. method according to claim 1-3, which is characterized in that the method also includes:
Receive the position of having dinner of user's input;
To the merchant terminal send described in have dinner and have dinner time of position described in position and input.
7. a kind of method of ordering, which is characterized in that be applied to merchant terminal, which comprises
The Bluetooth broadcast message that the merchant terminal is broadcasted according to predeterminated frequency, the Bluetooth broadcast message are used to indicate user's end Connection is established according to the Bluetooth broadcast message and the merchant terminal in end;
After the merchant terminal and the user terminal establish bluetooth connection, menu data is pushed to the user terminal;
It receives the point list information based on the menu data that the user terminal is sent and shows.
8. the method according to the description of claim 7 is characterized in that it is described receive that the user terminal sends based on the dish The point list information of forms data and after showing, further includes:
Judge whether the bluetooth connection with the user terminal disconnects;
If being connect if so, not being successfully established with the user terminal in preset duration, issues and correspond to the user terminal Warning message.
9. according to the described in any item methods of claim 7-8, it is described receive that user terminal sends based on the menu data Point list information after, further includes:
User terminal described in real-time detection is at a distance from the merchant terminal;
When the distance is greater than pre-determined distance, confirm whether the user terminal is completed to pay;
If not completing, alarm is issued, to indicate that staff carries out payment affirmation.
10. a kind of food-ordering device, which is characterized in that be applied to user terminal, described device includes:
Link block is established blue for the Bluetooth broadcast message according to the merchant terminal broadcast received with the merchant terminal Tooth connection;
Display module for receiving the menu data of the merchant terminal push, and the menu data is shown;
Point single module generates the single information of point, by the single letter of point for receiving point single instrction of the user based on the menu data Breath is sent to the merchant terminal and orders food.
11. a kind of food-ordering device, which is characterized in that be applied to merchant terminal, described device includes:
Broadcast module, for broadcasting Bluetooth broadcast message according to predeterminated frequency, the Bluetooth broadcast message is used to indicate user's end Connection is established according to the Bluetooth broadcast message and the merchant terminal in end;
Menu data is pushed to the user terminal after establishing bluetooth connection with the user terminal by sending module;
Receiving module, for receiving the point list information based on the menu data of the user terminal transmission and showing.
12. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
One or more processors;
Memory is electrically connected with one or more of processors;
One or more application program, wherein one or more of application programs are stored in the memory and are configured To be executed by one or more of processors, one or more of application programs are configured to carry out such as claim 1 to 6 Described in any item methods, or such as the described in any item methods of claim 7 to 9.
13. a kind of computer-readable storage medium, which is characterized in that be stored with journey in the computer-readable storage medium Sequence code, said program code can be called by processor to be executed such as method as claimed in any one of claims 1 to 6, or such as power Benefit requires 7 to 9 described in any item methods.
CN201910726503.XA 2019-08-07 2019-08-07 Ordering method and device, electronic equipment and storage medium Pending CN110503572A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910726503.XA CN110503572A (en) 2019-08-07 2019-08-07 Ordering method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910726503.XA CN110503572A (en) 2019-08-07 2019-08-07 Ordering method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110503572A true CN110503572A (en) 2019-11-26

Family

ID=68587109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910726503.XA Pending CN110503572A (en) 2019-08-07 2019-08-07 Ordering method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110503572A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023051139A1 (en) * 2021-09-29 2023-04-06 腾讯科技(深圳)有限公司 Program function triggering method, apparatus, device, and system, and medium and program product

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107818464A (en) * 2016-09-14 2018-03-20 百度在线网络技术(北京)有限公司 A kind of NFC payment realized in mobile terminal and device
CN108009945A (en) * 2017-10-28 2018-05-08 深圳市易付云网科技有限公司 A kind of method of ordering of self-help meal ordering machine

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107818464A (en) * 2016-09-14 2018-03-20 百度在线网络技术(北京)有限公司 A kind of NFC payment realized in mobile terminal and device
CN108009945A (en) * 2017-10-28 2018-05-08 深圳市易付云网科技有限公司 A kind of method of ordering of self-help meal ordering machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023051139A1 (en) * 2021-09-29 2023-04-06 腾讯科技(深圳)有限公司 Program function triggering method, apparatus, device, and system, and medium and program product

Similar Documents

Publication Publication Date Title
US10726458B2 (en) Peer-assisted shopping
AU2007261116B2 (en) Wireless communication system
TWI450558B (en) Method and system for providing online service corresponding to multiple mobile devices, server and mobile device thereof, and computer program product
US10580092B2 (en) Resource transfer system and method
US8369799B2 (en) Apparatus, systems and methods to communicate received commands from a receiving device to a mobile device
CN107005794A (en) NFC-based supplier/customer engagement
US9503410B2 (en) Sharing of activity metadata via messaging systems
EP3046332A1 (en) Method and system for display control, breakaway judging apparatus and video/audio processing apparatus
US9119031B2 (en) Network architecture for synchronized display
CN106603389B (en) Virtual bill transfer method and device
US20200374364A1 (en) System and method for connecting mobile device users
US20240028695A1 (en) Function Migration Method and Apparatus
KR20230022917A (en) Data sharing apparatus and control method thereof
CN105072567B (en) Information processing method and electronic equipment
CN110503572A (en) Ordering method and device, electronic equipment and storage medium
US10172002B2 (en) Method and device for information transmission
CN106600377A (en) Order generation method and device
CN114648333A (en) Identity verification method, device and system
US20200074530A1 (en) Information processing apparatus and program
CN103150803A (en) A waiting reminder method and device
JP2006074630A (en) COMMUNICATION INFORMATION PROVIDING SYSTEM, COMMUNICATION INFORMATION PROVIDING METHOD, MOBILE TERMINAL, INFORMATION SERVER, COMMUNICATION INFORMATION PROVIDING PROGRAM, AND RECORDING MEDIUM
KR20230018683A (en) Method for Managing Non-contact Tasting
CN118797720A (en) Service card display method, device, electronic device and storage medium
WO2020243032A1 (en) System and method for connecting mobile device users
HK1128543B (en) Wireless communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191126