![]() | Shadow Mule User Manual | ![]() |
![]() | ||
![]() | ||
The completes the basic setup procedure. The rest of this guide contains more detailed information and alternative settings.
The RS232 connector on the Shadow Mule is a 9 pin Female 'Dee' connector configured to make interfacing to a PC easy. The numbering is shown below.
Pin 4 on the RS232 connector may optionally be used to supply power for the attached RS232 device. Pin 4 has been chosen for this purpose to provide compatibility with the normal DTR function usually connected here. By default Pin 4 is open circuit. Refer to the Advanced Section to implement this feature.
Computer keyboard circuits are often badly regulated and this can sometimes lead to unusual conditions and give misleading errors. The Shadow Mule monitors the computer keyboard voltage continuously. If the keyboard voltage drops below a critical threshold the red 'Under Voltage' warning LED will light up. (A brief indication when the computer is powered up is normal.) If this happens you should investigate the cause. If you are powering an external RS232 device from the keyboard circuit you may need to use an additional power supply. See the Advanced Section for more information.
The RS232 data format is fixed at 8 data bits, no parity, one stop bit. The default transmission speed is 9600 baud. The baud rate can be changed by resetting the dip switches inside the Shadow Mule (see the next section).
The Shadow Mule can usually be operated without a RS232 handshake. It will automatically buffer up to 94 characters. In the unlikely event that data is lost because the buffer overflowed then a tilde (~) character is inserted into the data stream to flag it. The Shadow Mule can be operated with a RTS/CTS handshake if you need to synchronise to a slow data collector or one with a readiness duty cycle of less than 100%. The handshake scheme is very simple - the Shadow Mule simply holds off transmission if the handshake line connected to pin 7 is negated.
The handshake output (pin 8) from the Shadow Mule is asserted when it has data to send and negated otherwise. In most interface/handshake arrangements this line may be ignored.
The Shadow Mule can output data in a number of different ways to suit most application requirements. The appropriate mode is selected by means of dip switches located within the Shadow Mule. To access the dip switches disconnect the Shadow Mule from all sources of power (e.g. the powered keyboard circuit) and carefully lift the top cover after removing the four retaining screws. The location of the dip switches and their numbering is shown in the figure below.
Note that the factory default setting is all off (this is the generally used configuration).
The settings for each switch are detailed in the Dip Switch Configuration tables below.
The Shadow Mule has two main modes of operation - ASCII mode and Scancode mode.
| Switch Number | Switch Number | RS232 Baud Rate |
| 1 | 2 | |
| off | off * | 9600 |
| on | off | 19200 |
| off | on | 38400 |
| on | on | 1200 |
| Switch 3 | |
| off * | No RS232 handshake |
| on | RTS/CTS handshake (Shadow Mule waits for RTS) |
| Switch Number | Switch Number | String Terminator |
| 4 | 5 | |
| off | off* | CR |
| on | off | SPACE |
| off | on | TAB |
| on | on | CR+LF |
| Switch Number | Switch Number | Switch Number | ASCII Modes |
| 6 | 7 | 8 | |
| off | off | off* | ASCII Mode 1 |
| off | off | on | ASCII Mode 2 |
| off | on | off | ASCII Mode 3 |
| off | on | on | ASCII Mode 4 |
| Switch Number | Switch Number | Switch Number | Scancode Modes |
| 6 | 7 | 8 | |
| on | off | off | Scancode Mode 1 |
| on | off | on | Undefined |
| on | on | off | Scancode Mode 2 |
| on | on | on | Undefined |
* Default configuration
The PC keyboard does not send ASCII codes to the computer in response to keystrokes, it sends scancodes. This is not just a matter of a simple alternative coding system. The scancode system embodies a completely different concept to ASCII encoding. Scancodes simply indicate which key has been pressed and which key has been released. For example, the shift key sends a scancode to the computer just as an alphanumeric key. It is the computer which interprets the scancodes. For example, a scancode from a shift key followed by a scancode from an alpha key may be interpreted as a capital letter. The keyboard sends a different scancode for each key so the left shift key would send a different scancode to the right shift key.
A full list of scancodes can be found on our web site.
PC keyboards have three lamps indicating the current keyboard 'Lock' status. They are - Num Lock, Caps Lock and Scroll Lock. It is important to realise that the lamps are controlled by the computer - not the keyboard. The keyboard sends the same scancode for each key regardless of the state of the lock indicators. The lock indicators are simply there for the convenience of the human operator. They indicate the way the computer will process the scancodes coming from the keyboard. For example the scancode from an alpha key would be the same no matter what the status of the Caps Lock indicator.
The Shadow Mule cannot 'see' the indicators as a human can. It has to remember when the computer last changed the state of the indicator. If, for example, the Shadow Mule is inserted into a 'live' keyboard circuit it will not be able to determine the existing state of the lock indicators. Under these circumstances it will inaccurately interpret the keystrokes until it is able to re-synchronise with the indicators. This will be the next time the PC changes any of the lock indicators.
If the Shadow Mule is inserted into a 'live' keyboard circuit, or any part of the keyboard circuit is connected or disconnected while 'live', any of the keyboard 'lock' keys should be pressed a couple of times in order to resynchronise the Shadow Mule.
Important Note: Altek recommend that all equipment should be switched off before making any alterations to hardware configurations. However we realise that engineers and users often ignore this advice!
The Shadow Mule can be configured to provide power to an external device connected to the RS232 port. This may be useful if a low powered device other than a PC is to receive the data. Also the Shadow Mule itself can be configured to be powered from a source other than the keyboard circuit to which it is attached. This may be useful if the Undervoltage LED indicates the PC circuit cannot sustain the extra few millivolts required by the Shadow Mule.
Important: Not more than 1 link is permitted in Group 1. Group 2 has zero links by default.
By default Link 2 only is connected.
Q Most ASCII characters are OK but a few are consistently 'wrong'.
A Outside the USA many countries have minor changes to the keyboard layout. For those countries you must have the appropriate version of "The Shadow Mule" and you must be using the correct keyboard driver. If you wish to use "The Shadow Mule" in a different country you may have to 'convert' these characters in the applications program or perhaps resort to 'scancode mode'.
Q I occasionally find an unexpected tilde (~) character in the data. What does this mean?
A If you are using a RS232 handshake and the receiving device is slow the Shadow Mule may run out of buffer space. The Shadow Mule can store up to 94 characters before it must transmit to make space for more. If more characters arrive before the transmission has occured the Shadow Mule overwrites the last character with a tilde character to indicate what has happened. The solution is to use a faster receiving device or arrange that the keystrokes are slower.
Q The 'case' of alpha characters or the number keys are sometimes 'wrong'.
A Resync the Shadow Mule by pressing the 'caps lock' key a couple of times. See Advanced Information section for an explanation.
Q I am losing characters in the data stream.
A Your receiving device is too slow. Better results may be obtained by reducing the RS232 baud rate and/or using a RS232 handshake. The Shadow Mule can buffer over 90 characters, so a slow baud rate does not usually mean the Shadow Mule cannot handle fast bursts of data such as those coming from a barcode scanner or similar wedge hardware like the Altek Mule.
Q I have changed the DIP switch settings and they have not taken effect.
A The DIP switches are read only during the power up sequence and once per green LED flash. So it may take a second or two for changes to take effect. Changing DIP switches while the Shadow Mule is powered is not recommended and can (under some circumstances) cause the unit to hang. Normal operation will resume after a power down cycle.
Altek products are checked at every stage of manufacture and every unit is individually tested just prior to despatch. It is most unlikely that goods are faulty straight from the factory. Of all the 'faults' notified to us virtually all turn out to be user errors, computer faults or incompatibilities, cabling or connector faults, or programming errors.If you believe an Altek product is faulty please contact our Returns Department before returning it to us. You will be asked to describe the problem and we may ask you to speak to one of our engineers. If we feel the goods may be faulty we will give you a Returns Number which must be quoted with the returned goods. Goods returned without a Returns Authorisation Number will inevitably be subject to delay. Goods returned as 'faulty' and found to be fault free may incur a testing charge.
If you have an unanswered question please contact
Technical Support.
links to other related web sites:
www.abcfont.com
www.abcfont.co.uk
www.barcodemill.com
www.barcodemill.co.uk
www.barcodeman.com
www.barcodeman.co.uk
www.barcodeline.com
www.barcodeline.co.uk
www.barcodelines.com
www.barcodelines.co.uk
www.barcodeheaven.co.uk
www.booksinstore.co.uk
www.hello.co.uk
www.altek.co.uk
www.usafirst.com
![]() | |
![]() | |
| Top Home | © Altek Instruments Ltd, 2008 |