Crivi Posted February 20, 2014 Share Posted February 20, 2014 (edited) Hello. I'm new here. I've been working on a program to extract data from dcs to my little circuit displays. After reading some post about getting data, I created a small sample application in c# that uses my dll to extract: Update: BS2: uv26, pvi, pui800, ekran, spu9, r800, r828 A10C: cmsc, cmsp, tacan, ils, uhf, vhf am and fm I hope it will be useful for you to know those program. I add the source code: https://github.com/skbn/DCSExtract I added a function to get data ekran, but only work on 64-bit OS, the same with c # Edited March 6, 2014 by Crivi Updating 1 https://github.com/skbn/SpeechDCS/releases Link to comment Share on other sites More sharing options...
Mr_Burns Posted February 21, 2014 Share Posted February 21, 2014 Nice - I admire you software coders - wouldnt know where to start but with folk like you, I dont have to! Link to comment Share on other sites More sharing options...
BaD CrC Posted February 21, 2014 Share Posted February 21, 2014 Wow. This was supposed to be impossible for years ! Can you extract in txt format? https://www.blacksharkden.com http://discord.gg/blacksharkden Link to comment Share on other sites More sharing options...
Crivi Posted February 21, 2014 Author Share Posted February 21, 2014 Thanks! Bad CrC, in what format and how you want to export? You can do anything is how you would need. If it is in ascii had a problem with the name of the active arms, which are in utf8, the rest would be fine. If you need something specific send me a private and I will try to help you. https://github.com/skbn/SpeechDCS/releases Link to comment Share on other sites More sharing options...
Toge Posted February 21, 2014 Share Posted February 21, 2014 Nice work! Initial scan seems to take ~30 seconds before values are found, you might want to skip some memory regions to find the values faster... Care to share the source for the dll also? Link to comment Share on other sites More sharing options...
Crivi Posted February 21, 2014 Author Share Posted February 21, 2014 Nice work! Initial scan seems to take ~30 seconds before values are found, you might want to skip some memory regions to find the values faster... Care to share the source for the dll also? Yes, just change it and now takes seconds. At least now to test is not inhumane: D Once you finish with the a10c I will publish the rest of the code, now not worth it. 1 https://github.com/skbn/SpeechDCS/releases Link to comment Share on other sites More sharing options...
P1KW Posted February 24, 2014 Share Posted February 24, 2014 Really fantastic. With these data it is possible to find some way to send SIOC / OpenCockptis? Greetings! "If adventure is dangerous, try the routine. It is deadly." Paulo Coelho. Link to comment Share on other sites More sharing options...
Crivi Posted February 24, 2014 Author Share Posted February 24, 2014 Hi P1KW. If, knowing what kind of data I send to sioc by tcp. But that's something I've never done. https://github.com/skbn/SpeechDCS/releases Link to comment Share on other sites More sharing options...
bnepethomas Posted February 25, 2014 Share Posted February 25, 2014 Nice work, as far as sending information to OpenCockpits, its nice an simple basically a series of strings with variable=value. I like to use a simple UDP to TCP bridge, that way I can stop and start things without TCP hangups. Some c#, lua and soic code here: https://code.google.com/p/bne-dcs-soic-cmd-lineconverter/source/browse/ Just be aware OC LCD interfaces only like numerics, not alphanumerics. cheers Peter Link to comment Share on other sites More sharing options...
Crivi Posted March 3, 2014 Author Share Posted March 3, 2014 Hi. It has been good that link to another project that I have to in opencockpits. So far I have extracted more data and I can directly modify the radio frequencies both bs2 as the a10, what has interested me get. There is no SDK yet for dcs? 1 https://github.com/skbn/SpeechDCS/releases Link to comment Share on other sites More sharing options...
Crivi Posted March 6, 2014 Author Share Posted March 6, 2014 I updated the dll to extract more things such as radio frequencies and modes of KA50 and added support for the A10C from the cmsc, cmsp, radios, tacan and ils. If someone uses it to find a bug that you discuss me here, if you need help or anything else related to the dll :joystick: https://github.com/skbn/SpeechDCS/releases Link to comment Share on other sites More sharing options...
bnepethomas Posted March 6, 2014 Share Posted March 6, 2014 (edited) I updated the dll to extract more things such as radio frequencies and modes of KA50 and added support for the A10C from the cmsc, cmsp, radios, tacan and ils. If someone uses it to find a bug that you discuss me here, if you need help or anything else related to the dll :joystick: Sweet, so we can now get display information from cmsc/cmsp without resorting to OCR techniques? EDIT - DOH - should have looked at first page - nice work!!!!!! Cheers Peter Edited March 7, 2014 by bnepethomas Link to comment Share on other sites More sharing options...
bnepethomas Posted March 7, 2014 Share Posted March 7, 2014 really nice work - loaded into the pit this morning to give it a run through. Once its finished searching there's no load on the CPU which is a really good thing. Couple of bugs/limitations/things to watch for: 1. Need to start the program once the sim is up and running. Not a biggie, but may be worth retrying every 5 seconds or so until the sim is found. That way you can start the program before getting into the sim 2. The CMSP (and I think CSMC) won't 'find' the display data if you launch the program when the EW panel is off, even if it is turned on later. Neither of these are reasons not to use this code, its a huge step forward, thanks again for sharing, really nice work. Cheers Peter Link to comment Share on other sites More sharing options...
Crivi Posted March 8, 2014 Author Share Posted March 8, 2014 really nice work - loaded into the pit this morning to give it a run through. Once its finished searching there's no load on the CPU which is a really good thing. Couple of bugs/limitations/things to watch for: 1. Need to start the program once the sim is up and running. Not a biggie, but may be worth retrying every 5 seconds or so until the sim is found. That way you can start the program before getting into the sim 2. The CMSP (and I think CSMC) won't 'find' the display data if you launch the program when the EW panel is off, even if it is turned on later. Neither of these are reasons not to use this code, its a huge step forward, thanks again for sharing, really nice work. Cheers Peter Thank you for testing it. I have located the bugs you reported and have corrected me. You should now find either the CMSC and CMSP. The program now activated you can leave without having the active dcs, as running the game will take a few seconds to warn that you found, but only when the cockpit is fully loaded, not before. https://github.com/skbn/SpeechDCS/releases Link to comment Share on other sites More sharing options...
bnepethomas Posted March 8, 2014 Share Posted March 8, 2014 Thank you for testing it. I have located the bugs you reported and have corrected me. You should now find either the CMSC and CMSP. The program now activated you can leave without having the active dcs, as running the game will take a few seconds to warn that you found, but only when the cockpit is fully loaded, not before. Awesome I'll give it a run today. Thanks again Peter Link to comment Share on other sites More sharing options...
bnepethomas Posted March 9, 2014 Share Posted March 9, 2014 (edited) Awesome work - handles sim restarts beautifully as CMSP does what it should. Time for me to modify my OLED drivers to receive data from this. Only one little issue I've found (and again its nt a biggie) When programming the CMSP the characters flick on the value you are setting, currently the exported text stays solid. Again amazing work, Happy days - working like a charm, CMSP running,this will definitely get me a few fps, and is much more reliable than OCR. cheers Peter Edited March 9, 2014 by bnepethomas Link to comment Share on other sites More sharing options...
Hansolo Posted March 9, 2014 Share Posted March 9, 2014 Whoa Crivi, totally missed this. This looks awesome. I will have to try it out. Good work :thumbup: Cheers Hans 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album Link to comment Share on other sites More sharing options...
Crivi Posted March 9, 2014 Author Share Posted March 9, 2014 Hi. I have corrected the error of blinking in cmsp, download the dll and should go well, no need to download anything more. Thanks https://github.com/skbn/SpeechDCS/releases Link to comment Share on other sites More sharing options...
bnepethomas Posted March 9, 2014 Share Posted March 9, 2014 Magic, thanks hugely for the quick fix. Being able to get at individual values has been really good. My CMSC is on 16 characters wide (will fix that one day), so being able to selectively trim different values is real useful. Cheers Peter Link to comment Share on other sites More sharing options...
bnepethomas Posted March 14, 2014 Share Posted March 14, 2014 Hi Crivi I finally got to test the flashing characters, still looks like we have may an issue. I'm using the exe and dll dated 9/3 4:42am but still see solid characters. Its still awesome that this exported, things are running awesome. If I could have for one more feature request, can we get the mode from the Chaff Flare Window - this isn't the A,B,C modes but the X, M, S, A that change as the mode switch is moved. Cheers Peter Link to comment Share on other sites More sharing options...
bnepethomas Posted March 14, 2014 Share Posted March 14, 2014 and here's the result of your code, thanks again Link to comment Share on other sites More sharing options...
Crivi Posted March 14, 2014 Author Share Posted March 14, 2014 (edited) and here's the result of your code, thanks again It is awesome. Flickering in my case it works. It must be that I have not updated either. Now I have updated everything again to add what you've told me that out among the chaff and flare. In DCSExtract.cs: public static bool ScanCMSC (ref string chaff, ref string separator, ref string flare, ref string jmr, mws ref string, ref bool unwrapthreats, ref bool unwrapsymbols) separator for dividing point chaff and flare. Edited March 14, 2014 by Crivi https://github.com/skbn/SpeechDCS/releases Link to comment Share on other sites More sharing options...
bnepethomas Posted March 14, 2014 Share Posted March 14, 2014 Awesome - things are now flashing, and I can also see the mode, thanks hugely! Time to roll it into the pit cheers Peter Link to comment Share on other sites More sharing options...
MacFevre Posted March 15, 2014 Share Posted March 15, 2014 (edited) Program for export data (uv26, pvi, pui800) for dcs ka50 Fantastic. What a great addition to the section! Would it be too soon Peter to ask how you got it to the display board? I've got a Gadroc CMSP that I'd like to fill out the display on. Edited March 15, 2014 by MacFevre Buttons aren't toys! :smilewink: My new Version 2 Pit: MacFevre A-10C SimPit V2 My first pit thread: A-10C Simulator Pit "The TARDIS." Dzus Fastener tutorial, on the inexpensive side: DIY Dzus Fastener Link to comment Share on other sites More sharing options...
bnepethomas Posted March 15, 2014 Share Posted March 15, 2014 Fantastic. What a great addition to the section! Would it be too soon Peter to ask how you got it to the display board? I've got a Gadroc CMSP that I'd like to fill out the display on. What I did was slightly modify Crivi's framework - Here's the modified copy https://code.google.com/p/bne-dcs-extract-master/ Added speech alerts - so I knew when DCS had been discovered, and then when scanning is complete On each cycle then export values of text boxes in a UDP Packet to an intermediate filter The intermediate filter (which I need to upload) looks at deltas in displayed values and only sends differences, this reduces the load on the Ardunio. It sends the data over a UDP socket to the Ardunio receiver. Finally the Ardunio receiver https://code.google.com/p/bne-arduino-multi-oled-receiver/ Receives UDP packets, determines which display they should be displayed, and then throughs them down the comm port to the Ardunio. The Ardunio sketch is also in the project. I'll aim to upload the intermediate filter today. Cheers Peter 1 Link to comment Share on other sites More sharing options...
Recommended Posts