Jump to content
The simFlight Network Forums

Ahmet Mehmetbeyoğlu

Members
  • Posts

    22
  • Joined

  • Last visited

Everything posted by Ahmet Mehmetbeyoğlu

  1. Hi Paul, I am using your client to communicate with the sim. Simconnect seemed to be more complicated and it lacks support and documentation for mortals like us. I am not a programmer so I do not understand much of the available official documentation So I go for the fsuipc client dll. But I do also think that events will be nice as using timers and threads uses to much sources. I am not a programmer so maybe I am doing things wrong. What I do is I try to manage timer intervals when the comm is idle and from a point of time it gets more complicated then not having events.
  2. Hi Tom, I build this example app using Paul's client. I am not using LUA or Link2FS. Just my own C# codes. Maybe this gives you an idea. You can ask me if you have further questions.
  3. Hi Sebastien, You can try sample code below (C#) //definitions private Offset<int> sendControl = new Offset<int>(0x3110, true); private readonly int COM_RADIO_WHOLE_DEC = 65636; private readonly int COM_RADIO_WHOLE_INC = 65637; private readonly int COM_RADIO_FRACT_DEC = 65638; private readonly int COM_RADIO_FRACT_INC = 65639; private void btn_winc_Click(object sender, EventArgs e) { FSUIPCConnection.Process(); sendControl.Value = COM_RADIO_WHOLE_INC; }
  4. Hi Pete, LM team announced an upcoming update 2.1 but they did not announced this bug in the list. I believe this is an easy one for them to fix it. Any news?
  5. Uppps I believe I 've attached a wrong file. This file is 28 MB, which part do I have to send?
  6. I have a problem with master battery in version 4.923 (P3D2 compatible) and 4.921 (not compatible) P3D2 (I tried both). I can't write the offset 281C or 3102, I can only read them. On the other hand I can send a control "TOGGLE_MASTER_BATTERY 66241" and it works. A log file with events enabled is attached.
  7. I have send you an email. Here are some specific new entries ; (Refer to the P3D2 SDK Learning Center documentation) Look for Prepar3D SDK\Utilities\Simconnect\Camera Specific Functions Look for Prepar3D SDK\Utilities\Simconnect\External Sim Specific Functions this "external sim" subject can be revolutionary for sim world if I am understanding it wright.
  8. Hi Pete, There are some new entries in P3D2 simconnect like external sim and new view system. Will they be available in FSUIPC?
  9. Thank you Pete. Sorry for rushing you just after holiday. :oops:
  10. With version 4.921 and P3D2, Master Battery is not functioning in SPAD and in my own custom .NET application using FSUIPC.net Client either.
  11. Hi Paul, I have a small C# program referencing your .dll. It was working without any problem until yesterday I upgrade my OS to Win8 from Win7. Now whenever I run the software I get an error if the sim is not running. Message says: FSUIPC Error #9: FSUIPC_ERR_NOTOPEN. The connection to class instance 00 of WideClient.exe is not open. error highlighs line of "FSUIPCConnection.Open() statement. public void Connect() { try { FSUIPCConnection.Open(); getVersions(); toolStripStatusLabel1.Text = "Connection Established!"; timer1.Enabled = true; toolStripButton1.Enabled = false; toolStripButton2.Enabled = true; pictureBox1.Image = global::Radio.Properties.Resources.bullet_green_icon__1_; loadActiveFlightPlan(); } catch (Exception) { Disconnect(); } } [/CODE] My program checks the availability of the FSUIPC connection before starting in a try, catch statement and if there is no connection it simply closes the connection. So... I am comfused about what is going wrong with the win8 environment. Can you lead a hand here? Best Regards, Ahmet Mehmetbeyoglu
  12. Thank you Pete. I will dig more as you suggest. I believe it is something else interfering. I use some add-ons like F1 Battery X an add-on which recharges battery voltage. Maybe one of them could be the reason. I also use saitek panels. I can use master battery from saitek panels very well. If I find a clue I will inform you then. Best Regards, Ahmet,
  13. I enables "events (non axis controls)" and logged it. It seems there is no sign of anything still. 9688 SimConnect_Open succeeded: waiting to check version okay 11591 READ0 3304, 4 bytes: 01 00 00 46 ...F 11591 READ0 3308, 4 bytes: 08 00 DE FA .... 11591 WRITE0 8001, 13 bytes: 36 50 45 54 45 58 50 44 52 56 57 33 00 6PETEXPDRVW3. 11622 Running in "Microsoft Flight Simulator X", Version: 10.0.61637.0 (SimConnect: 10.0.61259.0) 11622 Initialising SimConnect data requests now 11622 FSUIPC Menu entry added 11638 \\BDT-KAY-BT-01W\B$\FSX\FLIGHTS\OTHER\FLTSIM.FLT 11638 \\BDT-KAY-BT-01W\B$\FSX\SimObjects\Airplanes\beech_baron_58\Beech_Baron_58.AIR 11919 Monitor IPC:281C (U32) = 0 11919 Monitor IPC:2E80 (U32) = 0 16599 READ0 337E, 2 bytes: 13 00 .. 21607 READ0 337E, 2 bytes: 27 00 '. 26645 READ0 337E, 2 bytes: 3B 00 ;. 28190 *** EVENT: Cntrl= 66514 (0x000103d2), Param= 0 (0x00000000) ATC_MENU_CLOSE 29828 SimRead: 281C="ELECTRICAL MASTER BATTERY" INT32: 0 (0x00000000) 29828 SimRead: 2E80="AVIONICS MASTER SWITCH" INT32: 0 (0x00000000) 31684 READ0 337E, 2 bytes: 5F 00 _. 36692 READ0 337E, 2 bytes: 73 00 s. 41699 READ0 337E, 2 bytes: 87 00 .. 46707 READ0 337E, 2 bytes: 9A 00 .. 51730 READ0 337E, 2 bytes: AE 00 .. 56754 READ0 337E, 2 bytes: C2 00 .. 61761 READ0 337E, 2 bytes: D6 00 .. 66597 System time = 07/12/2012 17:51:10, Simulator time = 17:50:15 (15:50Z) 66691 Aircraft="Beech Baron 58 Paint1" 66878 READ0 337E, 2 bytes: EC 00 .. 66909 LUA: beginning "B:\FSX\Modules\ipcReady.lua" 70372 Advanced Weather Interface Enabled 71886 READ0 337E, 2 bytes: B9 01 .. 76893 READ0 337E, 2 bytes: A9 02 .. 81916 READ0 337E, 2 bytes: AB 03 .. 86924 READ0 337E, 2 bytes: A3 04 .. 91947 READ0 337E, 2 bytes: AA 05 .. 96955 READ0 337E, 2 bytes: AC 06 .. 101978 READ0 337E, 2 bytes: B1 07 .. 107001 READ0 337E, 2 bytes: B4 08 .. 112009 READ0 337E, 2 bytes: B3 09 .. 113335 READ0 3304, 4 bytes: 01 00 00 46 ...F 113335 READ0 3308, 4 bytes: 08 00 DE FA .... 116596 READ0 281C, 4 bytes: 00 00 00 00 .... 117017 READ0 337E, 2 bytes: 94 0A .. 119201 READ0 281C, 4 bytes: 00 00 00 00 .... 121010 READ0 281C, 4 bytes: 00 00 00 00 .... 122040 READ0 337E, 2 bytes: 9C 0B .. 122399 WRITE0 281C, 4 bytes: 01 00 00 00 .... 127110 READ0 337E, 2 bytes: 9C 0C .. 127172 READ0 281C, 4 bytes: 00 00 00 00 .... 132180 READ0 337E, 2 bytes: 6A 0D j. 137250 READ0 337E, 2 bytes: 40 0E @. 142273 READ0 337E, 2 bytes: 15 0F .. 147281 READ0 337E, 2 bytes: D8 0F .. 152289 READ0 337E, 2 bytes: D8 10 .. 156001 Sim stopped: average frame rate for last 89 secs = 48.4 fps 157343 READ0 337E, 2 bytes: 96 11 .. 162351 READ0 337E, 2 bytes: AA 11 .. 166219 LogOptions changed, now 00000000 00000001
  14. My bad, sorry. So you mean "Events (non-axis controls)" I thought this is something different.
  15. 10530 Monitor IPC:281C (U32) = 0 13931 SimRead: 281C="ELECTRICAL MASTER BATTERY" INT32: 0 (0x00000000) 14009 System time = 07/12/2012 14:59:42, Simulator time = 14:59:38 (12:59Z) 14118 Aircraft="Beech Baron 58 Paint1" 121853 READ0 3304, 4 bytes: 01 00 00 46 ...F 121853 READ0 3308, 4 bytes: 08 00 DE FA .... 123974 READ0 281C, 4 bytes: 00 00 00 00 .... 125815 WRITE0 281C, 4 bytes: 01 00 00 00 .... 125987 READ0 281C, 4 bytes: 00 00 00 00 .... 128046 READ0 281C, 4 bytes: 00 00 00 00 .... 130011 READ0 281C, 4 bytes: 00 00 00 00 .... 132024 READ0 281C, 4 bytes: 00 00 00 00 .... 134036 READ0 281C, 4 bytes: 00 00 00 00 .... 136064 READ0 281C, 4 bytes: 00 00 00 00 .... 138061 READ0 281C, 4 bytes: 00 00 00 00 .... 138560 LUA: beginning "B:\FSX\Modules\ipcReady.lua" 140073 READ0 281C, 4 bytes: 00 00 00 00 .... 142086 READ0 281C, 4 bytes: 00 00 00 00 .... 142148 Advanced Weather Interface Enabled 144098 READ0 281C, 4 bytes: 00 00 00 00 .... 146111 READ0 281C, 4 bytes: 00 00 00 00 .... 148123 READ0 281C, 4 bytes: 00 00 00 00 .... 150136 READ0 281C, 4 bytes: 00 00 00 00 .... 152148 READ0 281C, 4 bytes: 00 00 00 00 .... 154160 READ0 281C, 4 bytes: 00 00 00 00 .... 156173 READ0 281C, 4 bytes: 00 00 00 00 .... 158185 READ0 281C, 4 bytes: 00 00 00 00 .... 160198 READ0 281C, 4 bytes: 00 00 00 00 .... 162210 READ0 281C, 4 bytes: 00 00 00 00 .... 164222 READ0 281C, 4 bytes: 00 00 00 00 .... 166235 READ0 281C, 4 bytes: 00 00 00 00 .... 168247 READ0 281C, 4 bytes: 00 00 00 00 .... 170260 READ0 281C, 4 bytes: 00 00 00 00 .... 172272 READ0 281C, 4 bytes: 00 00 00 00 .... 174300 READ0 281C, 4 bytes: 00 00 00 00 .... 176312 READ0 281C, 4 bytes: 00 00 00 00 .... 178138 WRITE repeated 6 times 178138 WRITE0 281C, 4 bytes: 00 00 00 00 .... 178309 READ0 281C, 4 bytes: 00 00 00 00 .... 180337 READ0 281C, 4 bytes: 00 00 00 00 .... 182334 READ0 281C, 4 bytes: 00 00 00 00 .... 183036 WRITE0 281C, 4 bytes: 01 00 00 00 .... 184347 READ0 281C, 4 bytes: 00 00 00 00 .... 186375 READ0 281C, 4 bytes: 00 00 00 00 .... 188371 READ0 281C, 4 bytes: 00 00 00 00 .... 190384 READ0 281C, 4 bytes: 00 00 00 00 .... 192396 READ0 281C, 4 bytes: 00 00 00 00 .... 194424 READ0 281C, 4 bytes: 00 00 00 00 .... ....
  16. Hi Pete, Thanks for your answer. I am using FSUIPC logger and I watch the value on the FS title Bar. I am using default planes and I tried on different planes. I can manage the mastery battery inside the cockpit or in game gauges. They perfectly work well. In my software I am using a button to toggle it. When it is "ON" the button also turns to green when it is "OFF" the button is colorless. There are my other buttons like fuel pump, alternator, avionics... and they work perfectly well but this particular "master battery". I use exactly the same code with other toggle buttons. But I cant toggle the battery with my button. I debug my code step by step. I see that my button is able to toggle the value but as soon as it exist that block the value goes back to previous state. Looks like something else is switching it back.
  17. Hi, I am making a software to integrate FSX via FSUIPC. Evertyhing goes well, Thanks To Pete and Paul. ...but now I have a problem which I could not find a solution. Maybe someone can have an idea. I made a temporary code to test the result. The objective here is to toggle the master battery as you see. My problem is the master battery keeps its state. When I debug the values I see that my toggle button is working and writing the value as I want but when it goes back to reading the value the master battery value stays in its previous state. For example assume that the battery is on and value is 1, when I turn it of it gets 0. But as soon as it reads the value it goes back to one. My button is working but I cant find why or what makes the value switch back to its previous state. Can you help me? My code is in C# and it is as fallows. ... public partial class Form1 : Form { private Offset<int> _masterBattery = new Offset<int>(0x281C); ... public void ConnectFSUIPC() { try { FSUIPCConnection.Open(); timer1.Enabled = true; } catch (Exception) { FSUIPCConnection.Close(); } } public void getSIMData() { FSUIPCConnection.Process(); switch (_masterBattery.Value) { case 0: button1.BackColor = Color.Empty; break; case 1: button1.BackColor = Color.LightGreen; break; } } private void Form1_Load(object sender, EventArgs e) { ConnectFSUIPC(); } private void timer1_Tick(object sender, EventArgs e) { getSIMData(); } private void button1_Click(object sender, EventArgs e) { switch (_masterBattery.Value) { case 0: _masterBattery.Value = 1; FSUIPCConnection.Process(); break; case 1: _masterBattery.Value = 0; FSUIPCConnection.Process(); break; } } } }
  18. Hi, I have a little problem. When I try to read the ambient wind speed offset 0x0E90 with C#, I get an imposible value. Do I have to convert it to something? Or am I doing something wrong? "private Offset<int> _ambientWindSpeed = new Offset<int>(0x0E90)"
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.