Orbeco-Hellige IRim Instruction Manual

Infrared Interface Module
Instruction manual
Table of contents
1. Introduction..............................................................................................................4
1.1 System Overview ...............................................................................................4
1.2 Manual Overview ..............................................................................................4
1.3 Keypad Overview ..............................................................................................4
1.4 LED Indicators ...................................................................................................5
1.5 Power supply to IRIM .........................................................................................5
2. IR-connection ...........................................................................................................5
3. Start of Application ................................................................................................5
3.1 USB Printer interface mode ................................................................................6
3.1.1 Connection to USB printer .................................................................................6
3.1.2 Data transmission ..............................................................................................6
3.2 Serial interface mode .........................................................................................6
3.2.1 Connection to serial printer ...............................................................................6
3.2.2 Data transmission ..............................................................................................7
3.3 PC interface mode .............................................................................................7
3.3.1 Connection arrangement ..................................................................................7
3.3.2 Data transmission ..............................................................................................8
4.1 Programming with USB boot loader: ...............................................................10
Figures
Figure 1 IRIM keys ...........................................................................................................4
Figure 2 IRIM keypad layout ............................................................................................5
Figure 3 IRIM – Battery compartement and IRIM – instrument connection .......................5
Figure 4 Cross cable ........................................................................................................6
Figure 5 Setting on HyperTerminal when PC used for receiving .......................................7
Figure 6 Device detection wizard ....................................................................................8
Figure 7 Driver location ...................................................................................................8
Figure 8 CDC enumeration .............................................................................................9
Figure 9 CDC class settings .............................................................................................9
Figure 10 Device detection wizard ..................................................................................11
Figure 11 Driver location .................................................................................................11
Figure 12 Device Manager ..............................................................................................12
Figure 13 Device Selection ..............................................................................................12
Figure 14 USB communication mode ..............................................................................13
Figure 15 Open the communication ................................................................................13
Figure 16 Load Hex file – Choose file ..............................................................................14
Figure 17 Loading Hex file ..............................................................................................14
Figure 18 Start Application .............................................................................................15
Table 1 Acronyms ........................................................................................................15
IRIM_1 11/2008
3
4
IRIM_1 11/2008
1 Introduction
1.1 System Overview
The connected instrument transmits and receives data on an IrDA interface. The Infrared Interface Module (IRIM) allows the user to connect the Instrument to a specific USB printer, serial printer or to a PC using a USB connector.The IRIM is a middleware for translating the IrDA protocol to USB/Serial protocol as per user selection. A PC should be used for receiving the data from IRIM through USB. If a photometer is connected, it transmits test results through the IrDA according to the test method. The IRIM will receive the data through IrDA. IRIM will receive and transmit the data to any one of the following channels as per user’s selection.
USB Printer• USB COM Class• Serial RS232•
1.2 Manual Overview
This manual serves as a reference for IRIM users and also for device firmware up gradation. User must have prior knowledge of using windows based applications.
1.3 Keypad Overview
Figure 1 IRIM keys
ON/OFF – Switches the unit on and off. SELECT – Used to switch between the following interface modes (scroll function)
RESET – Reset the IRIM board. – Used during firmware Upgrade in combination with the ON/OFF button as explained in 4. Device Firmware Upgrade.
USB printer interface• Serial printer interface• PC interface•
5
IRIM_1 11/2008
1.4 LED Indicators
AA/LR6
AA/LR6
AA/LR6
AA/LR6
Figure 2 IRIM keypad layout
LED Indications:
POWER indicator will be illuminated if software is running.• PC interface indicator will be illuminated if the PC interface mode selected and cable • connected with PC. USB printer interface indicator will be illuminated if the USB printer interface mode is • selected and the cable is connected to printer. Serial printer interface indicator will be illuminated if the RS232 printer interface mode is • selected. It will not check presence of serial printer.
1.5 Power supply to IRIM
The IRIM gets optional power from two sources:
It will first get power from USB device if available1. If USB device is not available, it will get power from 4xAA batteries.2.
Only one power source will be active based on the availability. If the software is running the Power LED will be illuminated.
Figure 3
IRIM - Battery compartement
IRIM - Instrument connection
2 IR-connection
IR - connect to the shortest distance possible
6
IRIM_1 11/2008
3 Start of Application
Infrared data from the instrument will be received by IRIM at 9600 Baud rate.
3.1 USB Printer interface mode
When the unit is switched "ON" it will be in the last selected interface mode.
Initially if USB printer is not connected the interface status LED will be illuminated. If data arrives while the device is not ready, it will be lost.
3.1.1 Connection to USB printer
Connect the USB printer cable to USB host port next to RS232 DB9 connector .If the printer is successfully connected and ready to print the LED in front of the USB printer port will illuminate.
3.1.2 Data transmission
Keep the IRIM and the transmitting instrument (e.g. Photometer) in single line of sight (face to face). Activate print command in the transmitting instrument. The data will be sent to the IRIM board and it will be printed on USB printer.
Note: The IRIM software does not support and will not indicate any printer related errors (Paper jam, paper tray empty, etc).
3.2 Serial interface mode
Press the SELECT key to scroll. The current SELECT functionality will exit and switch over to serial printer mode. The LED in front of DB9 connector will illuminate to indicate the serial interface mode.
3.2.1 Connection to serial printer
Connect the serial printer to the DB9 IRIM connector using a straight cable.
Serial straight cable Pin information
Pin 2 is connected to Pin2 of other DB9 connector Pin 3 is connected to Pin3 of other DB9 connector GND is common (Pin 5 to Pin 5)
If you want to see the result in HyperTerminal use Cross cable between PC and IRIM board:
Figure 4 Cross cable
7
IRIM_1 11/2008
3.2.2 Data transmission
The following settings should be entered in the HyperTerminal:
Start >> Programs >> Accessories >> Communications >> Hyper Terminal
Figure 5 Setting on HyperTerminal when PC used for receiving
After configuration keep the IRIM and the transmitting instrument in single line of sight (face to face). Activate print command in the transmitting instrument. The data will be sent to the IRIM and will be printed by the serial printer.
Note: If the printer is not connected the data will be lost. Reset the serial printer settings if firmware is changed.
3.3 PC interface mode
Press the SELECT key to scroll. The current functionality will exit and switch over to PC interface mode.
3.3.1 Connection details
Connect the USB cable between the PC and the IRIM device port.
8
IRIM_1 11/2008
3.3.2 Data transmission
Before the IRIM can be used for the first time the correct driver must be installed. Install the driver delivered with the IRIM.
Figure 6 Device detection wizard
Figure 7 Driver location
A Virtual Com Port under PORT section on device manager will appear.
9
IRIM_1 11/2008
Figure 8 CDC enumeration
Launch the HyperTerminal application and select the right Com port as indicated in the device manager and set the following configuration.
Figure 9 CDC class settings
Note: The HyperTerminal resource should be closed before enumeration occurs.
After configuration keep the IRIM and the transmitting instrument in single line of sight (face to face) as close as possible. Activate print command in the transmitting instrument. The data can be seen on the HyperTerminal.
All three interfaces can be connected at power up. The interface can be selected by pressing the SELECT key of the IRIM. On Power up the default mode is the USB printer interface mode.
10
IRIM_1 11/2008
4 Device Firmware Upgrade (DFU)
4.1 Programming with USB boot loader:
This IRIM board has a pre-programmed USB boot loader located in the "On-chip boot section" of the AT90USB. This is the easiest and fastest way to reprogram the device directly over the USB interface. The “Flip” PC side application, is available from the Atmel website, offers a flexible user friendly interface to reprogram the application over the USB bus.
The “Flip” software is the tool used to upgrade the firmware (available freely in the Atmel website).
http://www.atmel.com/dyn/products/tools.asp?family_id=604
The following steps should be completed to allow the device starting DFU mode, and load the hex file:
Install Flip software (Flip version 3.0 or above is required)1. Connect the IRIM board to the PC using the USB cable (Standard A to Mini B)2. Push the ON/OFF (Hardware Boot loader) key and hold3. Push the RESET key and hold4. Release the RESET key5. Release the ON/OFF key 6.
If your hardware conditions explained above are correct, a new device detection 7. wizard will be displ ayed on the PC. Pleas e follow the instructions as shown below (the INF file is located in the USB sub directory from Flip installation:
“Install path:\ATMEL\FLIP\FLIPx.x.x\usb”).
11
IRIM_1 11/2008
Figure 10 Device detection wizard
Select the INF file location as C:\Programfiles\ATMEL\FLIP 2.XX\Usb
Figure 11 Driver location
12
IRIM_1 11/2008
Check the Device Manager
[Right Click My Computer >> Manage >> System tools >> Device Manager]
You should see the same icon (jungo icon) as shown in the figure below. If not start again from the step 2.
Figure 12 Device Manager
Once your device is in DFU mode, launch the FLIP software and follow the instructions explained below:
Start >> programs >> flip 3.2.2 >>flip3.2.2
1. Select AT90USB device
Figure 13 Device Selection
13
IRIM_1 11/2008
2. Select the USB as communication mode
Figure 14 USB communication mode
3. Open the communication
Figure 15 Open the communication
14
IRIM_1 11/2008
4. Choose the HEX file to load (the HEX file .a90 / .Hex)
Figure 16 Load Hex file - Choose file
5. Load the HEX file (Check Erase, Blank Check, Program and Verify, then Push Run button)
Figure 17 Loading Hex file
15
IRIM_1 11/2008
6. Start the application.
Figure 18 Start Application
Note: The AT90USB boot loader will detach and jump into the user application when “Start Application” button is pressed.
Note: POWER LED is controlled by software. If software is not downloaded the LED will not be illuminated.
During the boot loader programming mode all LED’s will be in off.
Table 1 Acronyms
Acronym Description
PC Personal computer/ workstation
LV LABVIEW
USB Universal serial Bus
RS232 cable Serial communication cable
CDC/ACM Communication Device Class/
Abstract control model
IR Infrared
IRIM Infrared Interface Module
DFU Device Firmware Upgrade
ISP In System Programming
Technical changes without notice
Orbeco-Hellige Inc., 6456 Parkland Drive, Sarasota, Florida 34243 Phone: 941-756-6410, Fax: 941-727-9654 service@orbeco.com, www.orbeco.com
Loading...