mr_mojo97 Posted September 28, 2013 Posted September 28, 2013 Thanks Overpro, that sounds good. Unfortunately I don't know what any of it means as I'm not a programmer in any way, so would know what to do with it! Although I'll be sure to find out soon. :) MSI M5 z270 | Intel i5 7600k (OC) 4.8GHz | MSI GTX1080ti Gaming X 11Gb | 500gb Samsung 970 Evo NVME M.2 (DCS World) | 500gb Samsung 850 Evo SSD (OS and Apps) | 32Gb 2400MHz DDR4 - Crucial Ballistix | Be Quiet Silent Loop 240mm | NZXT H440 case | Thrustmaster Warthog - 47608 with Virpil Mongoose joystick base | MFG Crosswinds - 1241 | Westland Lynx collective with Bodnar X board | Pilot's seat from ZH832 Merlin | JetSeat | Oculus Rift S | Windows 10 | VA |
Hansolo Posted September 29, 2013 Posted September 29, 2013 (edited) Hi Hans, Ok, I got a good ping in cmd after changing the IP address in the Arduino software. But when I try and load up Gremlins export software I get this same message 'Invalid IP address'. [ATTACH]88641[/ATTACH] Hi Les, It looks like your separation in the IP address is done using comma. It needs to be full stop: 192.168.1.100 not 192,168,1,100 If I try comma separation in rhe cmsp export tool I can replicate the error message you getting Cheers Hans Edited September 29, 2013 by Hansolo Highligting separation differences 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album
mr_mojo97 Posted September 29, 2013 Posted September 29, 2013 cmsp Hey Hans, Another breakthrough. Weird, I tried your suggestion in lots of different variations yesterday without luck, and again this morning when after I read your email then all of a sudden it's connecting!! Woo hoo So now, I boot DCS but the lcd still says Ready. I get another Gremlin window up saying 'bitte korrecten erkennung eingegen' and there is a little red box beneath in each of the bottom row of the 16 that moves onto the next each time I press enter. Prob won't get the chance to check again today, the missus wants a break from the kids so we're away for a hotel break Thanks Les MSI M5 z270 | Intel i5 7600k (OC) 4.8GHz | MSI GTX1080ti Gaming X 11Gb | 500gb Samsung 970 Evo NVME M.2 (DCS World) | 500gb Samsung 850 Evo SSD (OS and Apps) | 32Gb 2400MHz DDR4 - Crucial Ballistix | Be Quiet Silent Loop 240mm | NZXT H440 case | Thrustmaster Warthog - 47608 with Virpil Mongoose joystick base | MFG Crosswinds - 1241 | Westland Lynx collective with Bodnar X board | Pilot's seat from ZH832 Merlin | JetSeat | Oculus Rift S | Windows 10 | VA |
Hansolo Posted September 29, 2013 Posted September 29, 2013 Hi Les, Great work. Now we have a little bit of work left. The popup you are geeting is because you need to teach the cmsp export tool to recognize every character so that it can send if via UDP. I asume you are already having an export of the cmsp screen somewhere? I found a good manual from Gremlin which I have attached. I was easier then trying to write up one of my own :music_whistling:Yours is not the COM version When teaching the tool to recognize you will be doing a lot of Alt + Tab, while cycling through all the combinations. I noticed that once in a while I could not Alt + Tab straigh through to 'bitte korrecten erkennung eingegen' popup, but you can navigate to it through the lower windows bar. Cheers HansManual for cmsp and cmspCOM.pdf 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album
mr_mojo97 Posted October 1, 2013 Posted October 1, 2013 Hi again Hans. Ok I'm getting a bit stuck here again I've hooked up my second monitor again rather than my virtual monitor so I could see what was happening and this is where my export should be - I'm using easy monitor configurator. When changing the CMSP_SCREEN file - I assume this is the .txt file I find in the Config folder (and I think this is where I'm going wrong here)? But when I do that nothing comes up when I load cmsp software. I've changed the cmsp.init.lua file as suggested 'When you run A-10, select under options your monitor profile' = does this mean my total resolution? But when I run DCS World nothing happens in the cmsp program Any ideas? Thanks Les MSI M5 z270 | Intel i5 7600k (OC) 4.8GHz | MSI GTX1080ti Gaming X 11Gb | 500gb Samsung 970 Evo NVME M.2 (DCS World) | 500gb Samsung 850 Evo SSD (OS and Apps) | 32Gb 2400MHz DDR4 - Crucial Ballistix | Be Quiet Silent Loop 240mm | NZXT H440 case | Thrustmaster Warthog - 47608 with Virpil Mongoose joystick base | MFG Crosswinds - 1241 | Westland Lynx collective with Bodnar X board | Pilot's seat from ZH832 Merlin | JetSeat | Oculus Rift S | Windows 10 | VA |
Hansolo Posted October 1, 2013 Posted October 1, 2013 Hi Les, I haven't used Easy Monitor Configurator but I would very much imagine it is doing the same as written in the document. The correct location of the cmsp.lua can be seen on attached picture, top left corner; ...Eagle Dynamics/DCS World/Mods/Aircraft/A-10C/Cockpit/Scripts/CMSP/indicator/cmsp.lua Really this may not be important as long as you are having the viewport shown, i.e. something like mine when the game is running (lower leftmost corner) What is important is that in your monitor.lua file you have the cmsp.screen set for this size: CMSP_SCREEN = { x = "your position"; y = "your position"; width = 200; height = 42; } Now you make a folder under c-driver (C:/A10) and place a text file in there called cmsp.txt. This is where cmspteachin is storing your recognitions. You can see mine in top right corner of picture. Now you open cmspteachin program and should be getting something like attached picture lower left corner. When recognizing tool cmspteachin shows figures as green then it is NOT exporting. When showing "orange" then it is exporting. Now you will be getting the "bitte korrekte Erkennungen eingeben". Rougly translates to "please input correct recognitions". Now you have to do all the work and teach the SW what is what ps. Tacno..... very sorry for sidetracking your thread. Your recognition Sw might even have been simpler to setup but I still haven't gotten round to try it out Cheers Hans 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album
mr_mojo97 Posted October 8, 2013 Posted October 8, 2013 Hi again Hans. So I've done everything you suggested. Got an export, run the cmsp program and saved all the characters. My lcd still says 'Ready' though. I know it's receiving info as we've already gone through it. Also now that I run the cmsp export, my mfcd's have vanished from the cockpit!! If I don't run the cmsp export, the mfcds come back on. Any ideas? Thanks Les MSI M5 z270 | Intel i5 7600k (OC) 4.8GHz | MSI GTX1080ti Gaming X 11Gb | 500gb Samsung 970 Evo NVME M.2 (DCS World) | 500gb Samsung 850 Evo SSD (OS and Apps) | 32Gb 2400MHz DDR4 - Crucial Ballistix | Be Quiet Silent Loop 240mm | NZXT H440 case | Thrustmaster Warthog - 47608 with Virpil Mongoose joystick base | MFG Crosswinds - 1241 | Westland Lynx collective with Bodnar X board | Pilot's seat from ZH832 Merlin | JetSeat | Oculus Rift S | Windows 10 | VA |
Hansolo Posted October 9, 2013 Posted October 9, 2013 Hi Les, When you cmspexport is running and you get only "Ready" in the LCD, please press reset button on the Arduino. It does this for me also once in a while and I have been unable to trace why it doesn't initialise. With regard to the vanished MFCD's I am puzzled. As far as I know the only remove the MFCD's from the cockpit is in Viewporthandling. I have attackeh location of the .lua file and also highlighted the line where you change between showing MFCD's or not. Mine are not shown in the cockpit thus: {--render_purpose.GENERAL, ...... the two -- makes the remaining of the line a comment thus not used. I have just tried to run my cockpit with the MFCD's shown in the cockpit and then running with cmsp export at the same time. I cannot replicate the observation. I tried to stop and start cmsp while having power on the pit. I couldn't see any difference. Cheers Hans 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album
mr_mojo97 Posted October 9, 2013 Posted October 9, 2013 Reset on the Arduino does nothing I'm afraid. I had a look at the viewport handing and nothing is commented out either but still the mfcds can't be seen. I'm a lost cause at the best of times but this is making my brain go numb!!!!! MSI M5 z270 | Intel i5 7600k (OC) 4.8GHz | MSI GTX1080ti Gaming X 11Gb | 500gb Samsung 970 Evo NVME M.2 (DCS World) | 500gb Samsung 850 Evo SSD (OS and Apps) | 32Gb 2400MHz DDR4 - Crucial Ballistix | Be Quiet Silent Loop 240mm | NZXT H440 case | Thrustmaster Warthog - 47608 with Virpil Mongoose joystick base | MFG Crosswinds - 1241 | Westland Lynx collective with Bodnar X board | Pilot's seat from ZH832 Merlin | JetSeat | Oculus Rift S | Windows 10 | VA |
Hansolo Posted October 11, 2013 Posted October 11, 2013 ... this is making my brain go numb!!!!! That makes two of us :cry: I simply do not get why it won't work. The CMSP export tool is set up to export to the same IP and Port as the Arduino is set for. It is running but the Arduino is not "seeing" it. I just re-tried at my end. I used to have a program which can monitor the UDP packets. Let me see what it is. Then maybe we can at least check that the CMSP is sending the informations correctly. Will have to check when I get home from work. Cheers Hans 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album
mr_mojo97 Posted October 11, 2013 Posted October 11, 2013 Ok another breakthrough Hans mate. I tried again earlier. I tried putting the cmsp export on my main screen and it works with the mfcds running as normal. Seems when I tried putting the export on a particular area of my second screen using easy monitor configurator and had the resolution as 200x42 it would not work but it would at the 270x60 native resolution it would. When I do not use easy monitor configurator and put the cmsp export in the middle of the second screen at either of those resolutions it works. Well I don't understand why. But it is working with both the export and the mfcds working so I'm almost happy. Now about getting it on the lcd...:helpsmilie: Thanks Les MSI M5 z270 | Intel i5 7600k (OC) 4.8GHz | MSI GTX1080ti Gaming X 11Gb | 500gb Samsung 970 Evo NVME M.2 (DCS World) | 500gb Samsung 850 Evo SSD (OS and Apps) | 32Gb 2400MHz DDR4 - Crucial Ballistix | Be Quiet Silent Loop 240mm | NZXT H440 case | Thrustmaster Warthog - 47608 with Virpil Mongoose joystick base | MFG Crosswinds - 1241 | Westland Lynx collective with Bodnar X board | Pilot's seat from ZH832 Merlin | JetSeat | Oculus Rift S | Windows 10 | VA |
Hansolo Posted October 11, 2013 Posted October 11, 2013 Hi Les, Very nice news. I do not have any experience with the Easy Monitor Configurator I am afraid. I think way back I found a thread describing what changes should dgo into the ...._init.lua and then made the changes according to this. I you want I can send you a copy of my files. Then you can backup your own and try mine without the EMC. Just a suggestion. I think I found a little tool which might be able to help us; http://udp-test-tool.software.informer.com/ IMPORTANT!!! make screen dumps of your cmsp settings so that we can reset afterwards. A. Check Arduino can recieve information After installation I start the UDP test tool and IP/port under "Remote" to the same as you have in the CMSP export. In my case 192.168.1.100/8892. I think in your case it was IP 192.168.0.100/8892. This is as you know the IP and Port of the Arduino. Then in the "Edit/send date" field you write something e.g. "this is a test to the Arduino" and press "send". If correctly setup then the Arduino should now show the text you have typed in. If now try holding reset for a few seconds and press send again. If you are not getting the typed in text then re-verify what IP/Port you have stated in you copy of the Arduino code. B. Verify the information send from CMSP export You can verify the text send from the CMSP to the Arduino, however this may be a little tricky because we have to alter the IP in the CMSP export. First you notice that Host local IP is already define. This is the IP of you gaming PC. In my case game PC IP is 192.168.1.45. Secondly you set the Port in UDP test tool to match the one in the CMSP export, i.e. 8892 and press "Bind". Now UDP test tool is looking at the IP of gaming PC and at port 8892. Thirdly you need to change that last three digits of the IP in the CMSP export to match the IP of the gaming PC. This means that the CMSP export will now send the information to the gaming PC instead of the Arduino. Remember doing this change one digit at a time and keep the IP valid. Otherwise CMSP export tells you it is an invalid IP. In my example changing from 192.168.1.100 to 192.168.1.45 is done like this: ....100 ....10 ....105 ....15 ....145 .....45 It is a long way to go but it works. Remeber you game IP is different! Then you start the game and make sure you have a reading on the screen for CMSP value. Then you press start on cmsp export and check UDP test tool for information C. conclusion In you case one of the above test should fail. Lets see which fails. Cheers HansUDP test tool.rar 1 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album
mr_mojo97 Posted October 12, 2013 Posted October 12, 2013 CMSP Woo hoo. Done within 2 mins. How about this then? Your a genius. :) I'm a very happy camper now. Now, is it equally as difficult to do a cdu screen? Rep inbound most certainly Hans Once again thanks for all your help MSI M5 z270 | Intel i5 7600k (OC) 4.8GHz | MSI GTX1080ti Gaming X 11Gb | 500gb Samsung 970 Evo NVME M.2 (DCS World) | 500gb Samsung 850 Evo SSD (OS and Apps) | 32Gb 2400MHz DDR4 - Crucial Ballistix | Be Quiet Silent Loop 240mm | NZXT H440 case | Thrustmaster Warthog - 47608 with Virpil Mongoose joystick base | MFG Crosswinds - 1241 | Westland Lynx collective with Bodnar X board | Pilot's seat from ZH832 Merlin | JetSeat | Oculus Rift S | Windows 10 | VA |
Hansolo Posted October 12, 2013 Posted October 12, 2013 Outstanding good work, Les. I was starting to fear that we did get it solved. I guess this makes my weekend :lol: Glad I could be of assistance. The CDU is nothing compared to this.... it is simply too easy. All you need to do is make an viewport and then place it on a monitor just like you did with the raw data for the CMSP. I have a 5.6" VGA monitor as CDU attached to the PC as 3rd monitor. It couldn't be simpler. You of cause need to have an additional VGA/DVI/HDMI output on you grafics card. I imagine that you GTX670 card should be capable of handling this. Otherwise buying a cheap grafics card will do. Cheers Hans 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album
sanxez Posted October 24, 2013 Posted October 24, 2013 I'm trying to make it work the cmspCOM but when I install it I get an error message "No txt file, Please create cmsp.txt". I have created in C: \ A10 file but the error keeps coming. I tried to run as administrator and follow out the error. Let's see if anyone can help me, thanks
sanxez Posted October 24, 2013 Posted October 24, 2013 I'm trying to make it work the cmspCOM but when I install it I get an error message "No txt file, Please create cmsp.txt". I have created in C: \ A10 file but the error keeps coming. I tried to run as administrator and follow out the error. Let's see if anyone can help me, thanks Solved! She had created the file with name "cmsp.txt" instead of just cmsp ^ ^
tacno Posted December 26, 2015 Author Posted December 26, 2015 To kill my OCR program, Last month I modified export.lua script with this : Goal is format 2 lines of text to send them to LCD 20x2 or what you want. --CMSP local CMSP = list_indication (7) if ( string.len ( CMSP ) > 100 ) then --TEXT TOP local indexStart = string.find ( CMSP , "txt_TOP" , 1 ) local indexEnd = string.find ( CMSP , "txt_BOTTON1" , indexStart ) local textTOP = string.sub ( CMSP, indexStart +7 , indexEnd - 41 -3 ) local TEXT_TOP1 = string.sub ( textTOP, 1 , 4 ) local TEXT_TOP2 = string.sub ( textTOP, 5 , 8 ) local TEXT_TOP3 = string.sub ( textTOP, 9 , 12 ) local TEXT_TOP4 = string.sub ( textTOP, 13 , 15 ) local TEXT_TOP = string.format ( "%s %s %s %s" , TEXT_TOP1 , TEXT_TOP2, TEXT_TOP3, TEXT_TOP4 ); --DN1 indexStart = indexEnd indexEnd = string.find ( CMSP , "txt_BOTTON2" , indexStart ) local textDN1 = string.sub ( CMSP, indexStart +10 , indexEnd - 41 -3 ) --DN2 indexStart = indexEnd indexEnd = string.find ( CMSP , "txt_BOTTON3" , indexStart ) local textDN2 = string.sub ( CMSP, indexStart +10 , indexEnd - 41 -3 ) --DN3 indexStart = indexEnd indexEnd = string.find ( CMSP , "txt_BOTTON4" , indexStart ) local textDN3 = string.sub ( CMSP, indexStart +10 , indexEnd - 41 -3 ) --DN4 indexStart = indexEnd indexEnd = string.len ( CMSP ) local textDN4 = string.sub ( CMSP, indexStart +10 , indexEnd ) local TEXT_BOTTON = string.format ( "%s %s %s %s" , textDN1 , textDN2, textDN3, textDN4 ); --CHECK BOTTOM LINE local TEXT_BOTTON_ID = "0" if ( textDN3 == "INTV" ) then TEXT_BOTTON_ID = "1" end if ( textDN3 == "RWR" ) then TEXT_BOTTON_ID = "2" end if ( textDN3 == "OTR1" ) then TEXT_BOTTON_ID = "3" end --At this point according to TEXT_BOTTON_ID, you can manage sending of data --TEXT_BOTTON_ID = 0 ===> CSMP OFF (no text) --TEXT_BOTTON_ID = 1 ===> "CHAF FLAR INTV CYCL " --TEXT_BOTTON_ID = 2 ===> "MWS JMR RWR DISP " --TEXT_BOTTON_ID = 3 ===> "CHAF FLAR OTR1 PROG " --SEND TEXT_BOTTON if ( TEXT_BOTTON_ID ~= "0" ) then --SEND TEXT_TOP else --SEND TEXT_TOP AS VIRGIN TEXT " " end else -- SEND VIRGIN TEXT_TOP -- SEND VIRGIN TEXT_BOTTON end --CMSP UniversRadio for DCS : http://universradio.fr Homepit on eagle.ru forum :http://forums.eagle.ru/showpost.php?p=1547848&postcount=1 (more details : http://www.tacnoworld.fr) 3rd-Wing.net/75th vFighter "Tiger Sharks"/S-01 Tacno (squadron commander)
Retsilf Posted December 29, 2015 Posted December 29, 2015 Great. Now we need a lua function that may export the cdu lines...
agrasyuk Posted December 29, 2015 Posted December 29, 2015 That one is already available as part of dcs-bios. Anton. My pit build thread . Simple and cheap UFC project
Retsilf Posted December 30, 2015 Posted December 30, 2015 I don't know or use dcs bios. But I'll have a look. Thank you!!!
Recommended Posts