Jump to content
The simFlight Network Forums

djp122

new Members
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    USA

djp122's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I have a simple program just to connect to FSUIPC, however, it doesn't work. I get multiple errors. They are listed below: Here is the first one I get when I push the button: FSUIPC Error #12: FSUIPC_ERR_SENDMSG. Error sending message to FSUIPC. Then we I press again I get this: FSUIPC Error #1: FSUIPC_ERR_OPEN. The connection to FSUIPC is already open. The code: Private Sub btnConnect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConnect.Click Try FSUIPCConnection.Open() lblConnected.Text() = "CONNECTED" Catch ex As Exception MessageBox.Show(ex.Message, "Oh No!", MessageBoxButtons.OK, MessageBoxIcon.Error) End Try End Sub FSUIPC Verison 3.999z8 Flight Sim 2004
  2. You are right. The code I have is the exact same as you have written, expect I did set it as an integer. I didn't think it would make that much of big deal since it should only return a byte. Especially, since with the COM1 I did the same and it didn't seem to affect the the reading. My Code: VB Dim COM2Receive as Offset(Of Integer) = New Offset (Of Integer) (&H7B99) Dim COM2Transmit as Offset(Of Integer) = New Offset (Of Integer) (&H7B9A) But thanks for the help. I will give it a try and let you know.
  3. Hey guys, I got most of my project almost done. I have successfully been able to mute my music, e.g. skyBlue and other url based music, during transmitions and receiving, but only on the COM1 radio. The only problem I am having is the COM2 offset. I don't believe that I have the right offset, because instead of returning a byte, i.e. 0 or 1, it is returning random numbers, e.g. 61045631. The offest I am using for COM2 is 0x7b99 for receiving and 0x07b9a for transmitting. Are these the right offsets? And if so, what could be going wrong? Once I am done, I might need some people to help beta test to work out any problems or to help develop it more. I don't know if there is anything out like this, but if there is oh well. I have enjoyed working on it. Right now, I believe it will only work with Squawkbox, because those are the offsets that I am using.
  4. Hey everyone, EDIT: I answered my own question by reviewing the examples in the FSUIPC Client DLL for .NET zip file. I am trying to figure out how to continuously check an offset to see if it is at a current value or not. The variable I am looking to check is the COM1 radio, when it is transmitting and when it is receiving. It works as long as I press the update button on my form. I am trying to figure out how to continuously check it in the background with a backgroundworker. The end goal is to do something if the COM1 is transmitting or receiving. Such as, Streaming SkyBlue radio, but having it mute when I am talking or someone is transmitting over the radio. Figure I would give it a shot anyway. This is some of the code, but kind of stuck on how to implement the continuous variable check. Private Sub Form1_Load(sender As Object, e As System.EventArgs) Handles Me.Load BackgroundWorker1.RunWorkerAsync() End Sub Private Sub btnUpdate_Click(sender As System.Object, e As System.EventArgs) Handles btnUpdate.Click FSUIPCConnection.Process() Dim COM1Recieve As Integer = COM1Rx.Value Dim COM1Transmit As Integer = COM1Tx.Value Me.lblRx.Text = COM1Recieve.ToString Me.lblTx.Text = COM1Transmit.ToString End Sub Private Sub BackgroundWorker1_DoWork(sender As System.Object, e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork FSUIPCConnection.Process() Dim COM1Recieve As Integer = COM1Rx.Value Dim COM1Transmit As Integer = COM1Tx.Value Me.lblRx.Text = COM1Recieve.ToString Me.lblTx.Text = COM1Transmit.ToString ReadCom(COM1Recieve, COM1Transmit) End Sub
×
×
  • 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.