• Welcome to PiBoSo Official Forum. Please login or sign up.
 
March 28, 2024, 03:48:57 PM

News:

GP Bikes beta21c available! :)


Output Plugin Data to a COM Port?

Started by asic_designer, March 10, 2016, 03:25:24 PM

Previous topic - Next topic

asic_designer

Hi All

   I am brand new to this board and this simulator, and based on what I have read about it so far it seems fantastic!  I'd like to know if there is any information out there on how to send the data from the output plugin to a COM port?  I need to be able to create a packet of data, and then transmit that data to a COM port, can some one point me in the right direction?

  Thanks in advance for all of your help.
Encephalon Nand Logic Smart Helmet
http://www.nandlogic.com/promo-smarthelmet.php

HornetMaX

What you want to do is not GPB specific, so any resource about sending data to a COM port will be OK.

h106frp

Hello,
Have you considered using SimTools as one possible easy solution?
http://www.xsimulator.net/community/threads/how-to-write-a-game-plugin-for-simtools-1-0-api-documentation.4612/
To do your own you basically compile a dll (dlo in GPB)  that maps GPBs shared memory area to your own memory space (codeblocks can do this easily in c++). Then either from the dll or from a host application you send the data out to the device, if you use visual studio its easy to use the ports object.

What are you trying to communicate with?

asic_designer

Quote from: h106frp on March 10, 2016, 04:24:11 PM
Hello,
Have you considered using SimTools as one possible easy solution?
http://www.xsimulator.net/community/threads/how-to-write-a-game-plugin-for-simtools-1-0-api-documentation.4612/
To do your own you basically compile a dll (dlo in GPB)  that maps GPBs shared memory area to your own memory space (codeblocks can do this easily in c++). Then either from the dll or from a host application you send the data out to the device, if you use visual studio its easy to use the ports object.

What are you trying to communicate with?

  Hi

   I am trying to send the data to a microcontroller connected to my PC via a COM port.  I am not a software guy really so I would be lost in the forest of "SimTools" for a while probably before I figured it out.
Encephalon Nand Logic Smart Helmet
http://www.nandlogic.com/promo-smarthelmet.php

davidboda46

Is this what I want for MaxHud ( :P Max) so I can display the data on my Samsung tablet, like I do with HudDash/Telemetry Reader (http://www.barzmobilesolutions.de/en/) for Assetto Corsa and Project Cars? Of course you would also have to make an android app I guess... don't know crap about these things, so sorry if I sound stupid. :)

Cheers,

/David "Gonzo" Boda #46
"THE EDGE... THERE IS NO HONEST WAY TO EXPLAIN IT BECAUSE THE ONLY PEOPLE WHO REALLY KNOW WHERE IT IS ARE THE ONES WHO HAVE GONE OVER"

HornetMaX

Quote from: davidboda46 on March 10, 2016, 11:08:14 PM
Is this what I want for MaxHud ( :P Max) so I can display the data on my Samsung tablet, like I do with HudDash/Telemetry Reader (http://www.barzmobilesolutions.de/en/) for Assetto Corsa and Project Cars? Of course you would also have to make an android app I guess... don't know crap about these things, so sorry if I sound stupid. :)
I know it's something popular, but it's highly unlikely I'll venture into that.
It would mean countless hours spent in learning how to code for android, something I'm really *not* looking forward to.
Life is too short for that, unless there's some decent money at stake :P

But if you get in touch with your barz guy, it should be trivial for him to make his dash compatible with GPB, KRP, WRS and MXB.