Restaurant customer service terminal

introduction

At the upscale hotel guests sit at the round table and select food by touching the computer screen in front of them, and the selected food will be delivered to the guests through the track. This automatic ordering system avoids the waits and service attitudes caused by manual services, and provides powerful entertainment functions. Similarly, the system is also suitable for entertainment and office space, and everyone can have a convenient place in their private room or office.

System functions

The processor is an embedded processor designed to meet the computational requirements and low power requirements of today's embedded audio, video and communications applications [1]. The system includes a Blackfin series dual-core processor ADSP-BF561[2], video capture and decoding chip ADV7183B, audio codec chip ADV1836A, SDRAM data memory, FLASH program memory, Ethernet chip LAN91C111, LCD touch screen, SD card, UART interface, Buttons, indicators, etc.



The system has expanded the SD card and ported the FAT file system as a storage for data such as photos, videos, and e-books. The data is read from the SD card to the SDRAM through the SPI bus inside the ADSP-BF561. Similarly, the SDRAM data can be written back to the SD card through the SPI bus.

The image of the dish inside the SDRAM read from the SD card is converted into image data of RGB-24Bit format suitable for 320×240 color LCD display through some processing, and then sent to the LCD controller through the parallel peripheral interface (PPI). Display the picture of the dish.

The system expands the LAN91C111 chip as the network master chip. The ADSP-BF561 communicates with the LAN91C111 via the External Interface Expansion Bus (EBIU). After the network output of LAN91C111 passes through the network converter, it is connected to the RJ-45 interface to realize the hardware connection of the network. The LAN91C111 chip transmits data to the ADSP-BF561 through the DMA method and the interrupt pin. In terms of software, the development of the TCP/IP protocol is carried out through the LWIP ported on the VDK real-time kernel.

The video data (PAL system) is connected to the video decoder ADV7183 through a coaxial cable, and is sampled, video decoded, and output image data in the ITU-656 format. The image data is transferred to the SDRAM through the PPI in a DMA manner with an 8-bit data width, SCLK/2 speed. The synchronous data port of the PPI is connected with the frame synchronization, field synchronization, and line synchronization of the ADV7183 to complete synchronization of the video data. The power-on configuration of the ADV7183 is implemented by the ADSP-BF561's Universal Programming Interface (PF) to implement the I2C protocol, which completes data format, gain control, and exposure control.

The video data read from the video decoder ADV7183 to SDRAM is converted by the YUV to RGB algorithm in the ITU-656 format (UYVY4:2:2 format), converted into RGB24bit data suitable for color LCD display, and transmitted to the LCD controller through PPI. To achieve video capture and playback.

The customer's voice message is input to the audio codec AD1836 through the microphone. After being sampled, quantized and decoded by the audio A/D, it is transmitted to the SDRAM through the Sport port of the DSP for temporary storage [3], and then transmitted through MDMA. Go to the SD card and save the voice of the customer's comments. The AD1836 is configured with a sampling rate of 44kHz and a sampling width of 16 bits through the serial peripheral interface (SPI) of the ADSP-BF561.

The audio data (song) in the SD card is read into the SDRAM through the SPI, decoded by the ADSP-BF561, transmitted to the AD1836 audio encoder through the serial port (SPORT) in DMA mode, and then output through the speaker or headphone to realize the song. Play.

In addition, the system expands NAND Flash as a large-capacity data storage, expands the 4×4 keyboard and indicator lights, and expands Flash as a program firmware, extending the interface of fire information alarms.

The system functions are as follows:

Browse menu: The dishes are stored in BMP format via SD card. When the user browses the menu, the ADSP-BF561 reads the picture of the corresponding dish in the SD card through the file name of the menu and displays it on the color LCD. The customer can browse the menu according to the menu, and the menu can also be scrolled.

Customer ordering: The customer can select the ordering menu by browsing the menu of the menu, and then select the order button to realize the ordering function. In addition, customers can order and order food through the network to realize the intelligent and flexible ordering.

Entertainment features: The terminal provides powerful entertainment features, including listening to music, reading e-books, watching videos from the cooking process, and more. During the process of waiting for the meal, the customer can select these entertainment functions through the touch screen, relieve the anxious mood during the meal, and achieve the purpose of rest assured to eat.

Voice message and play: After the customer finishes the meal, the feedback to the restaurant can be sent to the audio decoder chip AD1836 by the microphone in the form of voice. After audio A/D sampling, quantization and decoding, it is stored in the SDRAM and then passed. Stored in NAND Flash to save user comments. The restaurant operator can play the user's voice message through the menu, according to the user's opinion.

Network function: The system extends LAN91C111 as the network master chip. In the software, LWIP is transplanted as the main structure of the network based on the VDK kernel, and the TCP/IP port is transplanted on the ADSP-BF561 [4]. The establishment of the network Socket under the CS (client-server) model is completed. , connection, transmission, disconnection and other functions. Moreover, based on the standard TCP/IP, an application layer protocol is developed, which realizes the direct data transmission between the ordering terminal and the host computer.

software design

The software implemented on the ADSP-BF561 creates threads by using the VDK. Threads pass through semaphores and messages to synchronize information and complete thread synchronization. The hardware flag (device flag) is used to synchronize the peripheral and DSP. Handle DMA and incidents with interrupts and interrupt nesting. Create a thread for each application, use thread priority and message to schedule and manage each other, and write drivers for devices such as ADV7183, AD1836 and LAN91C111, manage the interrupt service program with priority, and call the API function of VDK. . The dual core software architecture is shown in Figure 2.



The program adopts the menu structure. After the power is initialized, the main menu is displayed. Through the user's click on the touch screen, the second sub-menu is displayed, and then the user can return to the upper menu and jump to the sub-menu. The program has a maximum of 5 levels of menus, providing users with a good interface for human-computer interaction. The main program flow is shown in Figure 3.



In terms of network transmission order information, the DSP-side program mainly transplants the TCP/IP protocol cluster through LWIP on the VDK kernel. VDK is a kernel that ships with Visual DSP++ and is well integrated into VisualDSP++. On the basis of VDK, through the development of Socket server program, the network transmission of ordering information and the function of ordering food are realized.

The loading of the program means that the program is solidified in the FLASH. After power-on, the program can be separated from the emulator and loaded and run independently. This step is a work that must be done in any product development process. The loading process of ADSP-BF561 is very complicated, mainly divided into: 1. loading of simple program; 2. loading of single-core program; 3. loading of dual-core program; 4. complicated program (dual-core, program running in external memory) load. The LWIP program under the VDK kernel, as well as audio and video capture, codec, etc., the huge program size makes the program must run in the external memory, and must use dual-core processor to increase the processing performance. The program loading of this design is the most complicated. Class 4 loading. During the loading process of the program, we started the experiment repeatedly from a simple program, gradually understood the loading process of ADSP-BF561, and through reading a large amount of data, contacted the domestic and foreign technical support of ADI, and finally solved this problem. problem.

This article refers to the address: http://

Mobile phone battery is rechargeable Lithium Ion Battery for NOKIA,SAMSUNG and other phone brands. With its rechargeable ability and high energy desity, lithium ion battery is extensively applied in mobile phone and cell phone. With rich experience and advanced technology, our company supply battery for domestic and oversea clients. Please feel free to contact us!

Mobile Phone Battery For Samsung

Mobile Phone Battery For Samsung,Mobile Battery For Samsung,Phone Battery,Mobile Phone Battery

Ji'an Powercome New Energy Technology Co., Ltd. , http://www.expowercome.com

This entry was posted in on