Restaurant Customer Service Terminal
In the high-end hotel guests sat round the table, in front of the computer screen by touching food choices, and soon will be selected by on-orbit delivery of food to the front of the guests. The automatic ordering system to avoid the wait caused by artificial service, attitude and other issues, while providing a powerful entertainment features. Similarly, the system is also suitable for entertainment and office space, we can pack in their office is very convenient locations or between meals.
System block diagram in Figure 1. Blackfin processors are designed to meet today’s embedded audio, video and communications applications with low power requirements and conditions for calculating the design of embedded processors . System contains a series of dual-core Blackfin processor ADSP-BF561 , video capture decoder chip ADV7183B, audio codec chip ADV1836A, SDRAM data memory, FLASH program memory, Ethernet chips LAN91C111, LCD touch screen, SD Card, UART interfaces , buttons, lights.
System by extending the SD card, transfer the FAT file system, as the photos, videos, e-books and other data storage. Through the ADSP-BF561 SPI internal bus, the data from the SD card to read the internal SDRAM, the same, SDRAM data can also be written back through the SPI bus, the internal SD card.
SDRAM read from the SD card pictures within the dishes, through a number of processing into 320 × 240 color LCD for display of the RGB-24Bit format image data, and then, through the parallel peripheral interface (PPI) given to LCD controller the dishes picture display.
LAN91C111 chip system as the network expanded master chip. ADSP-BF561 extend through the external interface bus (EBIU), and LAN91C111 read and write communication. LAN91C111 transformer output of the network through the network after receiving the RJ-45 interface, the hardware realization of the network connection. LAN91C111 chip DMA mode and interrupt pin through, and ADSP-BF561 for data transmission. Software, real-time kernel by VDK transplant LWIP, the TCP / IP protocol development.
Video (PAL system) through the coaxial cable access to the ADV7183 video decoder inside, after sampling, video decoding, the output ITU-656 format image data. Image data through the PPI, the 8bit data width, SCLK / 2 speed, DMA transmitted to the SDRAM. Synchronization using PPI data port and ADV7183 frame synchronization, vertical sync, horizontal sync and other signals connected to complete the synchronization of video data. ADV7183 power configuration of the ADSP-BF561, through a common programming interface (PF) I2C protocol to achieve complete data formats, gain control, exposure control configuration.
ADV7183 video decoder to read from the SDRAM of video data is the ITU-656 format (UYVY4: 2:2 format) through the YUV to RGB transformation algorithm, into a color LCD display module RGB24bit for data transmission to the LCD control by PPI , which realizes the video capture and playback.
Customer’s voice through a microphone input to audio codec AD1836, after the audio A / D sampling, quantification, decoded by DSP’s Sport in the mouth temporarily transferred to SDRAM memory , followed by MDMA transport to the SD card, the customer views the voice preservation. ADSP-BF561 AD1836 via a serial peripheral interface (SPI) configured sampling rate of 44kHz, 16bit sampling width.
SD card audio data (music) to read through the SPI to the SDRAM, decoded by the ADSP-BF561, through the serial port (SPORT) to DMA mode, the transmission to the AD1836 audio codec, then output through speakers or headphones to achieve the songs playback.
In addition, the system extends as a large-capacity NAND Flash data storage, expansion of the 4 × 4 keyboard and light, extending the Flash as the curing process, extend the fire alarm interface information.
System functions as follows:
View menu: dishes, pictures by SD card to store the BMP format. When the user when browsing the menu, ADSP-BF561 file name through the dishes, read the SD card in the corresponding dishes pictures, displayed on the color LCD. Customers can browse the menu to choose dishes, dishes can also scroll through the play.
Customers ordering: Customers browse through the picture menu dishes, dishes to choose their own satisfaction, then select the button ordering, ordering functions that can be achieved. In addition, customers can order food through the network and scheduled dishes, ordering the implementation of intelligent and flexible.
Entertainment features: Terminal provides a powerful entertainment features, including: listening to music, reading books, watching videos, and so the production process dishes. Customers and other meals in the process, you can choose these entertainment features touch screen, ease anxiety and other mood during the meal, also reached the purpose of dining pleasure assured.
Voice mail and play: customers after the end of the meal, the restaurant can feedback in the form of voice from the microphone to the audio decoder chip conveyor AD1836, through the audio A / D sampling, quantization, decoded, stored in the SDRAM, then By stored in the NAND Flash, and achieving the preservation of user comments. Restaurant operator through a menu to the user’s voice message plays out, according to the user’s views.
Network functions: The system extends the LAN91C111 as the network control chip. In software, on the basis of the VDK kernel transplant LWIP main structure as a network to achieve the TCP / IP on the ADSP-BF561 transplantation , completed the CS (client – server) model the establishment of a network Socket , connection, transmission, disconnect the other functions. And, in the standard TCP / IP, based on the application layer protocol developed to realize the ordering terminal and PC computers direct data transmission.
ADSP-BF561 to achieve the software through the use of VDK create a thread, the thread through the signals between the amount of (semaphore) and message (message) to transmit information and the completion of thread synchronization. Use hardware signs (device flag) to complete the DSP peripherals and synchronization. Used to handle the interrupt and DMA interrupt nesting and emergencies. By creating a thread for each application, with the priority of the thread and messages to each other’s scheduling and management, and to prepare ADV7183, AD1836 and LAN91C111 drive and other equipment, with priority management interrupt service routine, the API function calls VDK .
Ordering in the network information transmission, DSP-side program mainly in the VDK kernel ported by LWIP TCP / IP protocol stack. VDK as a Visual DSP + + together with the sale of the core, well integrated into the VisualDSP + + in. On the basis of the VDK, Socket server program through the development, implementation of the ordering information ordering network transmission and network function.
The program is loaded in the FLASH in the curing process, after power-up, the program can be separated from the emulator to load and run independently, this step is the process of any one product development work to be done. ADSP-BF561 loading process is very complex, divided into: 1, simple program to load; 2, a single nuclear program loading; 3, dual-core program loading; 4, the complex process (dual core, running in the external memory) to load. VDK kernel of LWIP procedures, and video and audio collection, coding and decoding, etc., make the program a huge amount of procedures to be run in external memory, and dual-core processor must be used to increase processing performance, the design load is the most complex procedures The Category 4 load. In the process of loading process, we start again from the simple test program, ADSP-BF561 gradual understanding of the loading process, by reading a lot of information, with the ADI’s internal and external technical support were contacted, the ultimate solution this problem.
System takes full advantage of dual-core DSP-BF561 hardware resources, making the Blackfin DSP series of audio and video processing performance into full play. Through the rational design of a DSP peripheral device, to achieve the audio capture and playback, video capture and display module, interactive touch screen, SD card and other large-capacity NAND flash memory used. Management procedures using the VDK kernel process of the transplant in the DSP on the TCP / IP protocol stack to achieve ordering information ordering network transmission and network function. Dishes stored in the terminal the millions of images can be dynamically browse and play. Provides a powerful entertainment features. Customers can dine on the dishes after the voice through a terminal evaluation.
The system uses a real sense of “no smart restaurant.”