Presentation is loading. Please wait.

Presentation is loading. Please wait.

Performed by : Micha Rave Guy Gabso Supervisor: Reuven Nisser המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory הטכניון - מכון טכנולוגי.

Similar presentations


Presentation on theme: "Performed by : Micha Rave Guy Gabso Supervisor: Reuven Nisser המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory הטכניון - מכון טכנולוגי."— Presentation transcript:

1 Performed by : Micha Rave Guy Gabso Supervisor: Reuven Nisser המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory הטכניון - מכון טכנולוגי לישראל הפקולטה להנדסת חשמל Technion - Israel institute of technology department of Electrical Engineering Barcode Reader (PC) 1

2 Project Goals: המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 2 Translate barcode labels into voice Equipped with: 1.PC - MFC 2.Scan engine SE2223 3.Board 4.Barcode labels 5.Sound card & speaker Which enables: Translate digital information stored on barcode labels into voice.

3 Software Environment המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 4 The platform used for the project developing is Microsoft Visual C++. The MFC IDE is an Object oriented, MT, WIN32 based environment. The code written implements the following software tasks: 1.Manages the communication with the scan engine using the RS232. The protocol used is the one specified by Symbol’s simple interface documentation.

4 Software Env, continue.. המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 4 2.User Interface. 3.Text to Voice Synthesis.

5 Block Diagram המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 4 Comm Main CSerial IOComm IOMain UI Voice Synthesis

6 המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 3 Serial communication SE2223 – Scan Engine overview 2D Scanner Baud Rate : 9600 Baud Data Bits : 8 bits Hardware Handshaking Software Handshaking - on Half-duplex communication protocol

7 המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 2 SE2223 – Hardware Signals HostDecoder TXD Host TXDRXD Host RXD RTS Host RTS Host CTS CTS Synchronic Communication Host/TXD : Data Transmit output Host/RXD : Data Receive input Host/RTS : Request To Send Host/CTS : Clear To Send Serial communication

8 המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory Block Diagram

9 Serial communication המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 2 SE2223 - Protocol RXD TXD CTS RTS Basic Host Initiated Transaction

10 Serial communication המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 3 SE2223 – SSI Commands Host BEEP, FLUSH_QUEUE, PARAM_SEND, SLEEP, START_SESSION. Case BEEP pData[0] = 05h; // Length pData[1] = E6h; // Opcode pData[2] = 04h; // Message source – Decoder/Host pData[3] = 00h; // Status pData[4] = 00h; // Beep Code pData[5] = FFh;// MSB Checksum – 2’s complement pData[6] = 11h; // LSB Checksum Decoder CMD_ACK, CMD_NAK, DECODE_DATA. 1.Decode opcode 2.If ACK/NAK - end 3.If Packet : check STATUS for multipacket (over 256 byte) 4.Transfer ASCII data to relevant buffer

11 Serial communication המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 4 Data streams from the serial port in packeted ASCII format. The code must strip the relevant data and produce synthesized voice. Length Op Message Length StatusDataChecks um F3h00h…

12 Voice Synthesis המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 4 The Delay Problem ScanEngine input rate:Arrival Time of two chars: 9600[bps]/1000 2 [ms] Play Rate:Duration of one syllable: (1800 WORD)/8000225 [ms]

13 Decoding the ASCII stream המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 4 The program reads the stream, dismantles it to basic syllables and load to memory the corresponding PCM resource according to a predefined table: In such a case the ASCII sequences: “^a” will translate to - אָ and “ba” will translate to – בַּ Vocalt file PhonateHebrew a ^א bb ב דגושה fv ב לא דגושה Second letter in filename a a Like but Second letter in filename e e Like bed

14 4 Decoding the ASCII stream (cont) המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 4 The playing of consecutive syllables will resemble a word. In which case the previous example will sound like ABA ( אבא ).

15 Playing The Voice files המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 6 In the beginning of the program all the voice file representing the syllables are preloaded into the main memory and held in an array. With each syllable to be played, the requested file is placed in a buffer, manipulated as necessary and played. In order to avoid delays, the program manages two buffers. While one buffer s being played the other buffer is filled with the next data to be vocalized.

16 Playing The Voice files - Flow המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory Start Init sound card and Preload handles of all voice files Sending the buff to the sound card Decode the ASCII sequence Prepare the next buff to play Check for “STOP” STOP pressed Wait for Message End of message? No Yes

17 Voice files interpolating המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 4 The voice files are 16 bit, mono 8KHz sample rate raw PCM. In order to achieve a “smooth” transition between the syllables some sort of actions are to be taken to blend each two consecutive syllables. We choose to do this by fading out one syllable while fading in the next one. Other methods include much more sophisticated forms of mathematical manipulation.

18 Bar Code Labels המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 4 The PDF417 barcode labels we used where produced using an applet by ID Automation at http://www.idautomation.com/java/pdf417servlet.html http://www.idautomation.com/java/pdf417servlet.html To encode for example the line “ פרויקט קורא בר קוד ” we encoded the ASCII stream “proyectkorebarkod” and got the result:

19 Major debug issues המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 4 Dealing with the RS232 is a problem due to the asynchronous nature of the data flow and the design of the MT code. Voice Synthesis is far from resembling human voice. Delayed parts delivery from manufacturer.

20 Definition vs. implementation המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 4 All Pre-Definition were fully implemented: Goal Status Remarks Communicating with the Scan Engine Major delays !! Voice Synthesis Need improvement GUI Integration Creation of barcode labels

21 Direction of use: המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 4 User Interface Pressing “Scan” (or ‘S’) will result in scanning a barcode label and playing the data coded into it. Pressing “Stop” (or ‘T’) will stop the playing of message currently in progress. Pressing “Play Again”” (or ‘A’) will play the last message from the beginning.

22 Direction of use, continue.. המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 4 Before pressing play a label must be placed in front of the barcode so it can be scanned. Barcode labels can be printed in the following website: http://www.idautomation.com/java/pdf417servlet.html

23 Future planning המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 4 Design and implement a better phoneme integration, considering a handling in the frequency domain. Build a tool for creating a PDF417 label so that operator need not have a knowledge of the phonemes “special” structure.

24 המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 4

25 המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory 4 מעבדה ספרתית טכניון ישראל פרויקט קורא ברקוד


Download ppt "Performed by : Micha Rave Guy Gabso Supervisor: Reuven Nisser המעבדה למערכות ספרתיות מהירות High speed digital systems laboratory הטכניון - מכון טכנולוגי."

Similar presentations


Ads by Google