Device number

This is a new forum for the OC4BAv4.
Post Reply
tiki77
Posts: 15
Joined: Thu Dec 07, 2017 5:36 pm

Device number

Post by tiki77 »

My USB expancion devise number is 128. When I try to compile the script, I get error: number out of range.
How can I fix this.

-Tino-
mvr1918
Site Admin
Posts: 1709
Joined: Thu Aug 30, 2012 3:35 pm

Re: Device number

Post by mvr1918 »

I guess you mean the USB device number is 128. The number you view in SiOC device window.

Thta is not the same as the IDX number, which is the number that links the script code to the hardware card.

I.e. if you want to use the USB Expansion card to control your OVH, the IDX should be 30, as this is the number(device number in the script code).

Find out more about this by right clicking the Modules and Operation windows in the OC4BAv4Config screen.

In the OC4BAv4.ini you will find all IDX numbers that are used in OC4BAv4 scripts.


The OC4BAv4 documentation also covers this in detail.
tiki77
Posts: 15
Joined: Thu Dec 07, 2017 5:36 pm

Re: Device number

Post by tiki77 »

No, I mean the device number Example IDX=30 USB-Expancion device=128.

The script compiler says it's not ok ; number out of range ----> 128
tiki77
Posts: 15
Joined: Thu Dec 07, 2017 5:36 pm

Re: Device number

Post by tiki77 »

I fixed this doing fresh install Win 10. Now my device numbers start at beginning and it's now 2 for Expancion card, 4 on MCP and 5 on servo card.
It seems like if your usb device number goes above 127, program wont accept number.
Post Reply