PDA

View Full Version : DeviceLink utility to display real-time graph



a_v_c
09-08-2004, 03:58 AM
Hi all,
I've seen a lot of discussions of DeviceLink and utilities that use it to communicate with Il2 FB here so I decided to add my twopence. While ago I wrote my first utility which could take a plane off using simple script language. When I'd been writing it I had a problem with algorithm which controls aircraft course and roll to set proper coefficients for that algorithm I had to see how course and roll change in real-time. So I wrote another small utility UdpGraph. It can show real-time values of almost all parameters of payer's aircraft in graphical or tabular mode. Actually not only parameters themselves but some calculations as well, energy, for example. Unfortunately it still had no time to add GUI to manage all settings of UdpGraph it uses plain text ini file, but I've added a lot of comments to it so it shouldn't be hard to change them for anybody. UsdpGraph can log all values to a csv file and timestamp them for further analysis in Ms Excel or any other program that can read csv files. Anybody interested can download UdpGraph from http://www.avcsite.ru/il2dl/graph_en.htm.
I hope that eventually I will have some time to revive my first utility (let's call it UdpFlight) and will add some new features to it. For example it will be possible to run it on background and then start/stop different scripts using hotkeys like an autopilot.

a_v_c
09-08-2004, 03:58 AM
Hi all,
I've seen a lot of discussions of DeviceLink and utilities that use it to communicate with Il2 FB here so I decided to add my twopence. While ago I wrote my first utility which could take a plane off using simple script language. When I'd been writing it I had a problem with algorithm which controls aircraft course and roll to set proper coefficients for that algorithm I had to see how course and roll change in real-time. So I wrote another small utility UdpGraph. It can show real-time values of almost all parameters of payer's aircraft in graphical or tabular mode. Actually not only parameters themselves but some calculations as well, energy, for example. Unfortunately it still had no time to add GUI to manage all settings of UdpGraph it uses plain text ini file, but I've added a lot of comments to it so it shouldn't be hard to change them for anybody. UsdpGraph can log all values to a csv file and timestamp them for further analysis in Ms Excel or any other program that can read csv files. Anybody interested can download UdpGraph from http://www.avcsite.ru/il2dl/graph_en.htm.
I hope that eventually I will have some time to revive my first utility (let's call it UdpFlight) and will add some new features to it. For example it will be possible to run it on background and then start/stop different scripts using hotkeys like an autopilot.

GAU-8
09-08-2004, 04:47 AM
cool, thankyou!

this is going to be a full saturday off from work this weekend for me...ill giver er a try!

your work is appeciated!

Atomic_Marten
09-08-2004, 04:54 AM
Nice.. http://ubbxforums.ubi.com/infopop/emoticons/icon_smile.gif

Thanks... it will be nice if you add GUI so newbie like me can use it...

Diablo310th
09-08-2004, 05:48 AM
heyy AVC.......I have been following your threads over at SimHQ concerning UDPspeed and UDPgraph. I have gotten UDPspeed working great but ahve not tried your program yet. It is next. Do you have any scripts written to show all the different parameters that it can show? Gau...you will absolutely love what you can do with these 2 programs. Unfortunately they only work offline right now. If you need any help let me know.

http://img54.photobucket.com/albums/v166/310thDiablo/DiabloSig.gif

a_v_c
09-08-2004, 06:34 AM
I think next step for UdpGraph - add GUI. Even for me it is cumbersome to change ini file in Notepad sometimes. http://ubbxforums.ubi.com/infopop/emoticons/icon_smile.gif

Diablo310th
09-08-2004, 08:43 AM
AVC....that is great to hear. I just posted over on SimHq asking for jsut that. Keep up the great work. I for one really appreciate all this work for the community and the game. it really makes it alot more enjoyable to play. Now if we could jsut get it working online (sounding like a broke record here I know)

http://img54.photobucket.com/albums/v166/310thDiablo/DiabloSig.gif

lil_labbit
09-08-2004, 09:21 AM
Great utility - Thanks a_v_c !

http://members.home.nl/lil.labbit/lilseesya.jpg
Question: Did you back-up your files?
Answer: I didn't know they had a reverse...

dux-1
09-08-2004, 09:44 AM
<BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by Diablo310th:
AVC....that is great to hear. I just posted over on SimHq asking for jsut that. Keep up the great work. I for one really appreciate all this work for the community and the game. it really makes it alot more enjoyable to play. Now if we could jsut get it working online (sounding like a broke record here I know)

http://img54.photobucket.com/albums/v166/310thDiablo/DiabloSig.gif <HR></BLOCKQUOTE>

http://www.simhq.com/simhq3/sims/boards/bbs/ultimatebb.php?ubb=get_topic;f=98;t=011755

<BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Leadspitter has said the same thing about TIR. Devicelink only works online IF THE SERVER OPERATOR HAS ENABLED IT.

<HR></BLOCKQUOTE>

Diablo310th
09-08-2004, 10:11 AM
Dux......does the server have to have the same DeviceLink lines in the config.ini as the client? also..does the server have to UDPspeed installed? I would think not..just have DeviceLink turned on in the config.ini. I don't host so i don't know if it's any different or not. It would be nice if some of the hosts would turn it on so we could test online.

http://img54.photobucket.com/albums/v166/310thDiablo/DiabloSig.gif

BaldieJr
09-08-2004, 10:15 AM
I don't think it can be turned on when the host is dedicated. I toyed with this at work one night and devicelink never functioned.

To be honest, I've never read any comments from anyone who claimed to have used DeviceLink online, so I'm starting to thing the whole thing is just a rumor.

<A HREF="http://officemax.secureportal.com/" TARGET=_blank>
Hey ya'll prepare yourselves
for the rubberband man!</A>
http://www.fighterjerks.com/rbman.png
http://www.fighterjerks.com

dux-1
09-08-2004, 10:17 AM
<BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by Diablo310th:
Dux......does the server have to have the same DeviceLink lines in the config.ini as the client? also..does the server have to UDPspeed installed? I would think not..just have DeviceLink turned on in the config.ini. I don't host so i don't know if it's any different or not. It would be nice if some of the hosts would turn it on so we could test online.

http://img54.photobucket.com/albums/v166/310thDiablo/DiabloSig.gif <HR></BLOCKQUOTE>

Sorry Diablo, never tried this setup.. You can ask at the brilliant guys over at SimHQ; it looks like they are coming up with some really cool stuff..

TX Rahman
09-08-2004, 10:18 AM
Wow....could you modify this to make some of the bombsight calculations while navagating to the target?!? This could be really useful for us folks who bomb...

Regards and Salute,
TX-Rahman
http://www.txsquadron.com

Baldie....ahh true...I almost forgot. I don't think devicelink is usable while online...

lil_labbit
09-08-2004, 11:11 AM
alt/speed calc realy http://ubbxforums.ubi.com/infopop/emoticons/icon_biggrin.gif should be able to do that...

But what use would it be without the sight http://ubbxforums.ubi.com/infopop/emoticons/icon_wink.gif

And I can't get some to work on an La7(3x20) e.g. I cant get RPM etc (anything from engine[1] http://ubbxforums.ubi.com/infopop/emoticons/icon_frown.gif - I am using the 2.05 beta though http://ubbxforums.ubi.com/infopop/emoticons/icon_wink.gif

http://members.home.nl/lil.labbit/lilseesya.jpg
Question: Did you back-up your files?
Answer: I didn't know they had a reverse...

TX Rahman
09-08-2004, 11:47 AM
Of course I was talking about the bombers with sights http://ubbxforums.ubi.com/infopop/emoticons/icon_wink.gif http://ubbxforums.ubi.com/images/smiley/crazy.gif

Regards and Salute,
TX-Rahman
http://www.txsquadron.com

Diablo310th
09-08-2004, 11:54 AM
<BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by BaldieJr:
I don't think it can be turned on when the host is dedicated. I toyed with this at work one night and devicelink never functioned.

To be honest, I've never read any comments from anyone who claimed to have used DeviceLink online, so I'm starting to thing the whole thing is just a rumor.

http://officemax.secureportal.com/
http://www.fighterjerks.com/rbman.png
http://www.fighterjerks.com
<HR></BLOCKQUOTE>

BaldieJr.....I'm starting to believe that too. No one has said what works and what does not work online nor has anyone been able to tell me exactly how teh host needs to setup the server to make DeviceLink work online.

http://img54.photobucket.com/albums/v166/310thDiablo/DiabloSig.gif

a_v_c
09-08-2004, 12:04 PM
<BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by lil_labbit:
And I can't get some to work on an La7(3x20) e.g. I cant get RPM etc (anything from engine[1] http://ubbxforums.ubi.com/infopop/emoticons/icon_frown.gif - I am using the 2.05 beta though http://ubbxforums.ubi.com/infopop/emoticons/icon_wink.gif
<HR></BLOCKQUOTE>
It was mine stupid mistake. I made this bug when removed [keys] section from UdpGraph.ini file. Now it should be (but would it be?) okay. Please, download it again and give it a try. I cannot test it properly without my second PC and it is gone till weekend.

F16_txmx
09-08-2004, 12:12 PM
Does any1 know if this has a performance inpact on the server (dedicated and presuming one gets it to work) ?

"Pay to kill, die to lose..."
http://www.flygflottilj16.se/images/sigs_avatars/txmx_sig.jpg (http://www.flygflottilj16.se)
P4 3GHz | ABIT IC7-G | 1GB DDR PC3200 | NVIDIA GeForce 6800 GT | Philips 170S4
Windows XP Professional | DirectX 9.0c | Saitek X45 Hotas | CH Pedals | TrackIR3 Pro

lil_labbit
09-08-2004, 12:32 PM
<BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>
quote: Originaly posted by a_v_c:

quote:Originally posted by lil_labbit:
And I can't get some to work on an La7(3x20) e.g. I cant get RPM etc (anything from engine[1] Frown - I am using the 2.05 beta though Wink


It was mine stupid mistake. I made this bug when removed [keys] section from UdpGraph.ini file. Now it should be (but would it be?) okay. Please, download it again and give it a try. I cannot test it properly without my second PC and it is gone till weekend.
<HR></BLOCKQUOTE>

Will do so at once http://ubbxforums.ubi.com/infopop/emoticons/icon_biggrin.gif thanks - I am facinated...

Will report back here http://ubbxforums.ubi.com/infopop/emoticons/icon_biggrin.gif if it works.

@ BaldieJr :

...and Well I got an on-line gear indicator when I did a quick Multiplay hosting http://ubbxforums.ubi.com/infopop/emoticons/icon_biggrin.gif
...but that's about all...

...I have added the following to my conf.ini file...
[DeviceLink]
port=21100 &lt;-- com port for UdpGraph
IPS=127.0.0.1 &lt;-- only my own system allowed ? not sure yet gonne test online
host=127.0.0.1 &lt;-- my system

http://members.home.nl/lil.labbit/lilseesya.jpg
Question: Did you back-up your files?
Answer: I didn't know they had a reverse...

[This message was edited by lil_labbit on Wed September 08 2004 at 11:43 AM.]

lil_labbit
09-08-2004, 12:42 PM
1.05 beta works now thanks a lot a_v_c http://ubbxforums.ubi.com/images/smiley/11.gif
I'm very gratefull http://ubbxforums.ubi.com/infopop/emoticons/icon_biggrin.gif

Finally I can see with what speed I crashed into the ground http://ubbxforums.ubi.com/infopop/emoticons/icon_biggrin.gif

http://members.home.nl/lil.labbit/lilseesya.jpg
Question: Did you back-up your files?
Answer: I didn't know they had a reverse...

a_v_c
09-08-2004, 12:49 PM
<BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by lil_labbit:
1.05 beta works now thanks a lot a_v_c http://ubbxforums.ubi.com/images/smiley/11.gif
I'm very gratefull http://ubbxforums.ubi.com/infopop/emoticons/icon_biggrin.gif

Finally I can see with what speed I crashed into the ground http://ubbxforums.ubi.com/infopop/emoticons/icon_biggrin.gif<HR></BLOCKQUOTE>
Thanks a lot for testing it!

lil_labbit
09-08-2004, 01:10 PM
I dont think it works online (well it does for some values - like rudder/aerelon/elevator/gear) - it says (allmost) as much in devicelink.txt in main FB folder - man that would be great though http://ubbxforums.ubi.com/infopop/emoticons/icon_biggrin.gif
I would like to fly a programmed plane http://ubbxforums.ubi.com/infopop/emoticons/icon_biggrin.gif - and Oleg could get some more interesting AI algorithms that way - maybe a setting Oleg ? http://ubbxforums.ubi.com/infopop/emoticons/icon_wink.gif
It would be good for the home-cockpit guys too http://ubbxforums.ubi.com/infopop/emoticons/icon_biggrin.gif (like real dials http://ubbxforums.ubi.com/infopop/emoticons/icon_wink.gif )

But - it does work on recorded tracks (both .trk and .ntrk), so you can analyse your flight http://ubbxforums.ubi.com/infopop/emoticons/icon_wink.gif

This is one great utility http://ubbxforums.ubi.com/infopop/emoticons/icon_biggrin.gif - if nothing else it's an extra gear warning (great for the Rata http://ubbxforums.ubi.com/infopop/emoticons/icon_biggrin.gif ) rofl

http://members.home.nl/lil.labbit/lilseesya.jpg
Question: Did you back-up your files?
Answer: I didn't know they had a reverse...

a_v_c
09-08-2004, 03:19 PM
Just found that problem with reading flaps was fixed in patch 2.0.4. Now it returns real values (from -1.0 to 1.0). In 2.0.1 it always returns -1.0.

WUAF_Badsight
09-08-2004, 03:25 PM
i think if the host sets Devicelink to enabled it will work online ?

no ?

.
__________________________________________________ __________________________
actual UBI post :
"If their is a good server with wonder woman views but historic planesets...let me know!" http://ubbxforums.ubi.com/images/smiley/16x16_smiley-very-happy.gif

lil_labbit
09-08-2004, 08:47 PM
no http://ubbxforums.ubi.com/infopop/emoticons/icon_frown.gif

It will however return some values online (I think they are input)
like gear values (handy with manual ones http://ubbxforums.ubi.com/infopop/emoticons/icon_biggrin.gif )
any stick/rudder input http://ubbxforums.ubi.com/infopop/emoticons/icon_biggrin.gif etc
only seen direct inputs online...
IF you make a recording (bind a key under Controls to quick-record- bla bla bla) and you replay - the thing WILL WORK http://ubbxforums.ubi.com/infopop/emoticons/icon_biggrin.gif - 4 the plane you flew in http://ubbxforums.ubi.com/infopop/emoticons/icon_biggrin.gif

http://members.home.nl/lil.labbit/lilseesya.jpg
Question: Did you back-up your files?
Answer: I didn't know they had a reverse...

[This message was edited by lil_labbit on Wed September 08 2004 at 08:12 PM.]

WWSensei
09-09-2004, 05:50 AM
<BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Just found that problem with reading flaps was fixed in patch 2.0.4. Now it returns real values (from -1.0 to 1.0). In 2.0.1 it always returns -1.0.<HR></BLOCKQUOTE>

It should be noted that all of the axis reading commands return the value of your axis setting and not the real flight surface setting.

By that I mean IF you mapped your flaps to an axis then you will get a reasonable return value as long as you don't use the keyboard to change the flaps settings and get it out of "sync" with your controlling axis.

Ditto for power/throttle settings as well.

BaldieJr
09-09-2004, 07:03 AM
Now that really stinks.

<A HREF="http://officemax.secureportal.com/" TARGET=_blank>
Hey ya'll prepare yourselves
for the rubberband man!</A>
http://www.fighterjerks.com/rbman.png
http://www.fighterjerks.com

Diablo310th
09-09-2004, 03:39 PM
<BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by BaldieJr:
Now that really stinks.

http://officemax.secureportal.com/
http://www.fighterjerks.com/rbman.png
http://www.fighterjerks.com
<HR></BLOCKQUOTE>

I agree. Why have such a nice useful feature and only be able to use it offline. Seems to me that such a good thing should be able to be used both on and offline. Maybe we should approach oleg about making it usable online. Just like complex CEM those that are interested and want to use and learn it can. I would love to be able to run UDPGraph and see how many gallons of fuel I have left or see waht my energy state is.

http://img54.photobucket.com/albums/v166/310thDiablo/DiabloSig.gif

a_v_c
10-16-2004, 02:45 PM
New UdpGraph version 2.0.8 is available for download. Now it has GUI to change all settings instaed of editing .ini file manually plus some extra features - global variables, that can be shared across multiple graphs, some special functions to make calculations a little bit easier: tas(), side() and a lot more. You can check what is new and download new version from http://www.avcsite.ru/il2dl/graph_en.htm Readme.txt file from UdpGraph.zip contains short description what is new.
http://www.avcsite.ru/il2dl/imgs/ugscreen2.png

a_v_c
10-31-2004, 12:30 PM
Couple of screen shots of my new utility UdpTrack for post-flight analyse: http://avcsite.ru/il2dl/imgs/utrackv2.png http://avcsite.ru/il2dl/imgs/loop.png

a_v_c
11-14-2004, 03:24 PM
Alpha version of UdpTrack can be downloaded now:
http://avcsite.ru/bin/UdpTrack.zip
Known problem - on GForce 4 it has some problem with Z-buffer. And I have one report that it crashes on ATI card.

avc