FSMIC Posted March 22, 2004 Report Posted March 22, 2004 Hi Pete, What could be wrong ??? I am using the fsuipc.cs from SDK_19 and Fsuipc registred version 3.201. Have problem with an external program to set FS9 to PAUSE 0x262. However setting the Slew mode 0x5DC works fine. WideClient log shows : ********* WideClient.DLL Log [version 6.22] Class=FS98MAIN ********* Date (dmy): 22/03/04, Time 09:59:26.281: Client name is P700 141 Sending computer name ... 141 Button Thread Started 17453 New Client Application: "ATVARFS9B" (Id=1376) 17453 Write: Offset=330A, Size=0004 02 00 00 00 17828 375 ReadLocal: Offset=3304, Size=0004 00 00 01 32 17828 375 ReadLocal: Offset=3308, Size=0004 07 00 DE FA ***** set Pause off ***** set Slew off both works 26172 Write: Offset=0262, Size=0004 00 00 00 00 26313 Write: Offset=05DC, Size=0004 00 00 00 00 ***** set Pause on does not work ***** set Slew on works 27391 Write: Offset=0262, Size=0004 01 00 00 00 27563 Write: Offset=05DC, Size=0004 01 00 00 00 Regards. Michel
Pete Dowson Posted March 22, 2004 Report Posted March 22, 2004 What could be wrong ??? Sorry, I've no idea. Try it with FSInterrogate, it always works okay here. Also use the FSUIPC Monitor facility to monitor the value in 0262 in real time (eg. on screen by AdvDisplay selection in Monitor). Also check it with IPC write logging in FSUIPC, and check it with your program running locally to FS too. Regards, Pete
FSMIC Posted March 22, 2004 Author Report Posted March 22, 2004 Hi Pete, Thank you for the prompt reply. Very strange what happens : ********* FSUIPC, Version 3.201 by Pete Dowson ********* User Name="Michel A. Mettling" User Addr="fs_mettling@noos.fr" FSUIPC Key is provided WideFS Key is provided [Continuation log requested by user] Module base=61000000 ClassOptions: UIPCMAIN=FF7F, FS98MAIN=FF7F, FS2KMAIN=FF5E WeatherOptions(Orig)=40003605[40003605] InitDelay: 0 seconds WeatherReadInterval=4 LogOptions=00000005 int func if I use the normal offset the result is not correct : result = fsuipc.FSUIPC_Write(0x0262, func, ref token, ref dwResult); result = fsuipc.FSUIPC_Process(ref dwResult); result = fsuipc.FSUIPC_Write(0x05dc, func, ref token, ref dwResult); result = fsuipc.FSUIPC_Process(ref dwResult); 1379750 System time = 14:56:33, FS2004 time = 11:18:29 (10:18Z) 1379750 LogOptions changed, now 00000005 (LogExtras=0) 1391422 WRITE0 0262, 2 bytes: 01 00 1391422 WRITE0 0264, 2 bytes: 00 00 1391516 WRITE0 05DC, 4 bytes: 01 00 00 00 Using the offsett 0x0264 it works ???? result = fsuipc.FSUIPC_Write(0x0264, func, ref token, ref dwResult); result = fsuipc.FSUIPC_Process(ref dwResult); result = fsuipc.FSUIPC_Write(0x05dc, func, ref token, ref dwResult); result = fsuipc.FSUIPC_Process(ref dwResult); 1480860 System time = 14:58:14, FS2004 time = 11:19:40 (10:19Z) 1519875 WRITE0 0264, 4 bytes: 01 00 00 00 1519985 WRITE0 05DC, 4 bytes: 01 00 00 00 1521782 WRITE0 0264, 4 bytes: 01 00 00 00 Any way the Slew mode works fine . One question more : If I look at the new traffic explorer from the TraffixToolBox SDK the gate name is available. Could this be implemented in a next version of Fsuipc ??? Regards. Michel
Pete Dowson Posted March 22, 2004 Report Posted March 22, 2004 Very strange what happens : No, it isn't strange at all. I now see exactly what is going on. (You didn't check with FSInterrogate as I asked, did you? Then it would have been more obvious to you too :wink: ). I missed this in your last message: 26172 Write: Offset=0262, Size=0004 You are writing 4 bytes to a 2 byte field!!! Only write 1 to the 16-bit (2 byte) control value at 0262, as documented. Writing to 0264 is trapped by FSUIPC and converted to a write to 0262 in any case --- it does this because for a long time some lists showed 0264 as the control, not the indicator. Writing 1 to 0262 and 0 to 0264, as you were doing, will actually write 1 then 0 to the control, so setting the pause ON then OFF. Sorry I missed that before. I see you are also writing 4 bytes now to 0264. This will write zero to the two bytes at 0266. That could do something unexpected too. Never write to someplace you don't know unless you want surprises! If I look at the new traffic explorer from the TraffixToolBox SDKthe gate name is available. Could this be implemented in a next version of Fsuipc ??? There are lots of things in that program which I have no idea how to access. The author is privileged by being part of the FS team. I don't get the sort of information he gets. I you can work out how I can retireve it, I will see if I can add the correct code into FSUIPC, of course, but I think it will be a lot of work -- it took me long enough to get the information I am providing. Sorry. Regards, Pete
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now