Author Topic: No Data coming in.  (Read 25053 times)

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3508
  • Karma: 1000
    • Wireless Communication Libraries
Re: No Data coming in.
« Reply #30 on: May 29, 2013, 07:42:27 AM »
Send me your code to mike@btframework.com. I'll modify it here and send you back.

printrmd

  • Guest
Re: No Data coming in.
« Reply #31 on: May 29, 2013, 07:48:55 AM »
Hi
This will be later .

thanks

printrmd

  • Guest
Re: No Data coming in.
« Reply #32 on: May 29, 2013, 02:26:37 PM »
Hi

i send the zip file and main.cs

[attachment deleted by admin]

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3508
  • Karma: 1000
    • Wireless Communication Libraries
Re: No Data coming in.
« Reply #33 on: May 29, 2013, 02:55:34 PM »
after

private void btDestroy_Click(object sender, EventArgs e)

add

private int iPort = 0;
private bool fCreated = false;


change

private void btCreate_Click(object sender, EventArgs e)

as below

private void btCreate_Click(object sender, EventArgs e)
        {
         
                wcl.wclBluetoothRadio Radio = GetSelectedRadio();
                if (Radio != null)
                {
                    string Address = "(00:1B:C1:04:DF:96)";
                    wclVirtualCOMPort.Address = Address;
                    wclVirtualCOMPort.Radio = Radio;
                    wclVirtualCOMPort.Service = wcl.wclUUIDs.SerialPortServiceClass_UUID;
                   
                    fCreate = false;
                    iPort = 0;
                    while (!fCreated)
                    {
                       wclVirtualCOMPort.Open();
                       Application.DoEvents();
                     }
                     MessageBox.Show("Port: " + iPort.Tostring());
                }
        }


change

private void wclVirtualCOMPort_AfterOpen

as below

private void wclVirtualCOMPort_AfterOpen(object sender, wcl.wclVirtualPortCreatedEventArgs e)
        {
           
            if (e.Error == wcl.wclErrors.WCL_E_SUCCESS)
            {
               iPort = e.Port;
               fCreated = true;
             }
        }


as I told you had to delete wclShowError() call from your code to disable message showing. It is always bad idea to use WCL samples code instead of developing your own application with your own code.

printrmd

  • Guest
Re: No Data coming in.
« Reply #34 on: May 29, 2013, 04:05:20 PM »
hi

First thing Thank you very much It works.
I understand there is a problem between WCL and BS.
this problem Doesn't happen Widcomm.

I have Another App  that I have a problem with wcl.wclErrors.wclShowError(wclClient.Connect()); open client with
Samsung S3 with widcomm is working, with BS not
If I open communication I am receiving  error 2.
But something amazing if  I create Port  with the first App than  there is no problem to open the communications.??
I will try to use with the same way like you show me.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3508
  • Karma: 1000
    • Wireless Communication Libraries
Re: No Data coming in.
« Reply #35 on: May 29, 2013, 05:31:23 PM »
In fact it is problem in BlueSoleil as there is nothing between WCL and BS except few functions call.

 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14