PDA

View Full Version : Read sioc server offset



verticallimit
04-09-2010, 02:10 PM
I'm trying to get data out of the SIOC server program with sioc.exe. for light an LED
But it will not succeed.
I use Open Cockpit USB and the Mastercard
SIOC offset 2810, can be read without any problems by Gauges Composer.
I can read from FSUIPC.

What am I doing wrong.


Var 0000, Value 0 // Initializing
{

}

var 0001, Link IOCP, Offset 2810 // wing logo lights
{
IF v1 = 100
{
V2 = 1
}
IF v1 < 100
{
V2 = 0
}
}
Var 0002, Link IOCARD_OUT, Output 12 // Test led 2


Please some help neded

fordgt40
04-09-2010, 02:27 PM
Claus

On the following assumptions:-

FSUIPC has the variable you need
The offset value you have given is in hex
The FSUIPC offset length is one byte

Then try this line

var 0001, Link FSUIPC_IN , Offset $2810 Length 1 // wing logo lights

David

verticallimit
04-09-2010, 04:44 PM
Hi David
These offsets are retrieved from the Leonardo Maddog, and these data can not be retrieved with FSUIPC.
We are currently testing new software which is made by Juan Ascanio from Open Cockpit.
It is also as Juan has made the program SIOCServer.
The great thing about this new software is that it can retrieve data via the virtual cockpit.
Everything is in the first phase. but looks promising for all sim builders.

But I've having problems with getting in contact with SIOCServer and retrieve those offsets. Everything else works.

_______________________________
http://www.md80project.dk

fordgt40
04-09-2010, 05:17 PM
Claus

Ok, good luck. I had assumed that the IOCP command syntax would be the same as FSUIPC_INOUT

David

deering
04-09-2010, 05:35 PM
Hello Claus.

On the SIOC main panel, does Client Module #0 show the correct IP address and Port for the other server and is the client module enabled? Is it connected to the other server?

Jim

verticallimit
04-09-2010, 06:08 PM
Hello Jim

Thanks a lot.
The siocserver whas set to "disconnected" in the ini file.
It is newer to late to learn. ;)

_______________________
http://www.md80project.dk