intellibox-basic-en
Differences
This shows you the differences between two versions of the page.
— | intellibox-basic-en [2021/12/02 17:27] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======IntelliBox Basic, II and USB-LocoNet Interface====== | ||
+ | [[: | ||
+ | [[english|Content]] -> [[english# | ||
+ | * [[intellibox-en|IntelliBox]] | **IntelliBox Basic, Intellibox II and USB-LocoNet Interface (ULNI)** | ||
+ | |||
+ | // \\ // \\ | ||
+ | ===== Product Overview ===== | ||
+ | |||
+ | The IntelliBox Basic, II and USB-LocoNet Interface support the LocoNet protocol over USB.\\ | ||
+ | |||
+ | ^ IB-II ^ USB-LocoNet \\ Interface 63120 ^ IB-Basic ^ IB-Com ^ | ||
+ | |{{: | ||
+ | | | See also [[# | ||
+ | \\ | ||
+ | |||
+ | |||
+ | ===== Introduction ===== | ||
+ | * Programming of locomotive decoders is not conform to the freely available documentation //LocoNet Personal Edition//. | ||
+ | * There is no publicly available documentation for the advanced programming protocol used by Uhlenbrock. | ||
+ | |||
+ | Since revision 2118 Rocrail supports the **U**hlenbrock **L**oco**N**et **I**nterface (ULNI) with software flow control. \\ | ||
+ | |||
+ | :!: Install the interface driver first! :!: | ||
+ | * Under **Windows**, | ||
+ | * Under **MacOS** the driver from the manufacturer Silicon Labs must be downloaded and installed (see below). | ||
+ | * Common **Linux** distributions already include the driver, so it does not need to be installed. | ||
+ | * For more information on the interface, see [[# | ||
+ | |||
+ | In order to display loco velocity changes by means of the IB throttles correctly in Rocview option **[[: | ||
+ | |||
+ | \\ | ||
+ | ===== Setting up Rocrail ===== | ||
+ | From the menu **File -> Rocrail properties...** is selected and in the following dialogue tab **[[: | ||
+ | |||
+ | \\ | ||
+ | ==== Interface ==== | ||
+ | {{: | ||
+ | On tab // | ||
+ | |||
+ | === Device === | ||
+ | Rocrail determine under Windows the available serial ports currently only to Com10.\\ | ||
+ | If the LocoNet Com port in the dropdown list " | ||
+ | |||
+ | \\ | ||
+ | ==== Options ==== | ||
+ | {{: | ||
+ | Set the CS Type: **intellibox** or **ibcom** for functions support > 8. \\ | ||
+ | On tab //Options// there are no adjustments available for the IB. The options tab is only for Digitrax.\\ | ||
+ | |||
+ | > **Note:** \\ For the IBCom, the IB-Basic and the IB II, the value " | ||
+ | |||
+ | \\ | ||
+ | ==== Details ==== | ||
+ | {{: | ||
+ | |||
+ | === Switch Time === | ||
+ | The Switch Time should be set to the maximum switch time of the IB (see also the description of **Switch acknowledge** below).\\ | ||
+ | |||
+ | === Slot Purge Time === | ||
+ | Locomotives not in use will be purged from the refresh cycle after a time specified in the Intellibox (default two minutes). The value entered into the field **Slot Purge time** on tab //Details// should be equal or slightly lower than the purge time of the Intellibox, e.g. 110 seconds. \\ | ||
+ | > **Note:** If the **Slot Purge time** is set to zero, the IB is supposed not to purge! This will lead to unpredictable situations: Rocrail will not check with the IB if the known slot is purged.\\ | ||
+ | Very small purge time values will cause unnecessary traffic for checking the slots.\\ | ||
+ | Locos that were controlled by Rocrail and were afterwards parked remain active if the option **Slot Ping** is active. If such a loco is selected on the Intellibox a warning will be shown telling the loco is already under control.\\ | ||
+ | |||
+ | === Slot Ping === | ||
+ | The option Slot Ping can be used to inhibit purging by pinging the slot right before it would be purged. | ||
+ | |||
+ | === Wait for slot data === | ||
+ | This value can be increased step by step up to max. 128 if the following error occurs: | ||
+ | < | ||
+ | Could not get slot for loco addr=xx | ||
+ | </ | ||
+ | Default Rocrail will read up to 16 packets until it give up waiting for a free slot.\\ | ||
+ | |||
+ | === Echo timeout === | ||
+ | The default time is 100 x 10ms to wait for the echo of a command. \\ | ||
+ | Under some conditions, this may be too short and can be gradually increased to a maximum of 1000 x 10ms. \\ | ||
+ | |||
+ | === Check switch acknowledge === | ||
+ | The option "Check switch acknowledge" | ||
+ | > **Note:** If **Check switch acknowledge** is enabled the **Switch Time** (see above) __has to be set to exactly the maximum switch time value of the IB__. \\ Moreover, minimum and maximum switch times of the IB should be set to identical values, e.g. 200 or 250 milliseconds both. \\ Genearally this option can and should be disabled. | ||
+ | |||
+ | === Retries/ | ||
+ | Number of attempts to set the switch and receive an acknowledgement plus pause between retries.\\ | ||
+ | It is recommended to set the sleep time to higher values (250ms maximum).\\ | ||
+ | |||
+ | === Slotserver === | ||
+ | The __**Slot Server** must be disabled!__ This will conflict with the IB and could lead to a Rocrail server crash.\\ | ||
+ | |||
+ | === Query address === | ||
+ | The standard query address for getting the current sensor state is 1017.\\ | ||
+ | For Uhlenbrock sensor modules this must be set to **1016**.\\ | ||
+ | |||
+ | \\ | ||
+ | ===== Addressing and Timing ===== | ||
+ | See __**[[: | ||
+ | |||
+ | \\ | ||
+ | ===== Hardware interface ===== | ||
+ | ==== Windows ==== | ||
+ | The installation is carried out as described in the operating instructions enclosed with the unit. \\ | ||
+ | :!: Important: First install the driver, then connect the unit to the computer //via// USB! | ||
+ | The driver can also be found on the Uhlenbrock homepage or may be downloaded directly from the manufacturer Silicon Labs (Silabs): https:// | ||
+ | |||
+ | Afterwards determine under which com port the device is addressed using the Windows device manager. Often it is listed as '' | ||
+ | |||
+ | \\ | ||
+ | ==== Debian Linux ==== | ||
+ | Under Debian, the interface is recognised as '' | ||
+ | |||
+ | The command < | ||
+ | < | ||
+ | Bus 007 Device 004: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP2102/ | ||
+ | </ | ||
+ | |||
+ | More detailed information is provided by < | ||
+ | |||
+ | Debian 10 recognises the interface and assigns it to the device ''/ | ||
+ | < | ||
+ | usb 7-2: New USB device found, idVendor=10c4, | ||
+ | usb 7-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 | ||
+ | usb 7-2: Product: CP2102 USB to UART Bridge Controller | ||
+ | usb 7-2: Manufacturer: | ||
+ | usb 7-2: SerialNumber: | ||
+ | usb 7-2: cp210x converter now attached to ttyUSB0 | ||
+ | </ | ||
+ | |||
+ | With other distributions the interface identifier could be different, e.g. ''/ | ||
+ | |||
+ | :!: Note that the interface is usually assigned to the '' | ||
+ | < | ||
+ | $ ls -l / | ||
+ | crw-rw---- 1 root dialout 188, 0 Apr 11 00:01 / | ||
+ | </ | ||
+ | Users who want to use the interface must be added to the '' | ||
+ | |||
+ | \\ | ||
+ | ==== Mac OS X ==== | ||
+ | The Mac OS X needs to install an extra driver for this interface which can be downloaded from Silicon Labs: | ||
+ | https:// | ||
+ | |||
+ | After reboot the Uhlenbrock interface is recognized as:\\ | ||
+ | < | ||
+ | ls -l /dev/tty* | ||
+ | crw-rw-rw- | ||
+ | </ | ||
+ | |||
+ | |||
+ | \\ | ||
+ | ===== USB-LocoNet-Interface 63 120 ===== | ||
+ | If this adapter is used with an older Intellibox or TwinCenter (devices without USB connection) it may be necessary to register the adapter by once calling the menu of the command station \\ | ||
+ | **Basic Settings** -> **LocoNet Prog.** -> **Art.-Nr.: < | ||
+ | Values in angle brackets <> have to be entered as shown. | ||
+ | |||
+ | \\ | ||
+ | ===== Special Options ===== | ||
+ | === IB Basic SO14 === | ||
+ | Maximum Switch time; default setting is 5 secs. Using the ** OpenDCC signaldecoder ** and loconet, set the value to 0 to get a sufficient fast response of the signal patterns.\\ | ||
+ | |||
+ | \\ | ||
+ | ===== Reset the device ===== | ||
+ | |//This step is only needed if the device has been reprogrammed.// | ||
+ | With the LocoNet type **[[: | ||
+ | ^ LNCV 2 = 4 | 115200 Baudrate | | ||
+ | ^ LNCV 4 = 0 | LocoNet Direct Mode **OFF** | | ||
+ | {{: | ||
+ | |||
+ | \\ | ||
+ | :!: LocoNet direct mode __has to be switched off__! \\ | ||
+ | Since the software handshake itself requires part of the bandwidth available the highest possible baud rate (115200) should be used in order not to slow down communication speed. | ||
+ | |||
+ | \\ | ||
+ | ===== Known issues ===== | ||
+ | ==== Throttle speed is ignored ==== | ||
+ | In order to display loco velocity changes by means of the IB throttles correctly in Rocview option | ||
+ | |||
+ | ==== Unknown LocoNet Messages ==== | ||
+ | Unexpected in LocoNet communication as is published in the LocoNet Personal Edition 1.0 are following: | ||
+ | < | ||
+ | undocumented message: start=0xF8 | ||
+ | undocumented message: start=0xFC | ||
+ | undocumented message: start=0xF6 | ||
+ | undocumented message: start=0xF2 | ||
+ | undocumented message: start=0x93 | ||
+ | </ | ||
+ | 0xF* OPCodes are undefined.\\ | ||
+ | 0x9* OPCodes are undefined; Related to the S88-LocoNet interface.\\ | ||
+ | |||
+ | ==== Refreshing packets DCC/MM ==== | ||
+ | The **IB-Com** does NOT refresh the loco commands on the track in case of __mixed DCC and Motorola__ type of decoders.\\ | ||
+ | This will result in a loco stop after a bad contact, depending of decoder manufacturer, | ||
+ | This problem cannot be solved without some advice from the manufacturer Uhlenbrock. Some undocumented LocoNet commands seems to solve this behaviour. |