Author Topic: COM Ports  (Read 6923 times)

Offline wimpel

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
COM Ports
« on: April 10, 2008, 12:46:04 PM »
Hello!

In previous version was class cold: BFBluetoothCOMPortCreatorX
it has nice funcionality (especially working with ToshibaStack) it could creating and removing com ports in system.
For example:
                            BFBluetoothCOMPortCreatorX.Device = Device;
                            BFBluetoothCOMPortCreatorX.Open();
                            int ComNumber = BFBluetoothCOMPortCreatorX.COMNumber;
                            BFBluetoothCOMPortCreatorX.Close();

In current version there are clases:
                            wclSerialPort
                            wclSerialPortMonitor
                            wclSerialPorts
                            wclSerialPortClientParams

but I can't find the way to reach previous funcionality, or maybe I missed something?
Thanks for any replies.

wimpel

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3053
  • Karma: 1000
    • Soft Service Company
Re: COM Ports
« Reply #1 on: April 10, 2008, 01:07:21 PM »
Good day!

This component is not implemented yet. Not sure it will be in the WCL. Why do you need such function?

Offline wimpel

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: COM Ports
« Reply #2 on: April 10, 2008, 02:01:24 PM »
Hi!
I'm writing an application which is DialingUP the modem connection with a specific BlueTooth device on SPP service.

On WidComm is no problem: any new device which, has implementes SPP protocol, could has the same COM Port.
So I'm just changing WidComm-autodial device and using WindowsAPI dial the connection.

On Toshiba I'd discovered that it needs create a new COM port for every new device.
So after this lines
                            BFBluetoothCOMPortCreatorX.Device = Device;
                            BFBluetoothCOMPortCreatorX.Open();
                            int ComNumber = BFBluetoothCOMPortCreatorX.COMNumber;

I had a new COM number and could simply change it in defined modem connection and dial it UP.
After HangUP connection I'm destroing this port.

Is any way to make it in new Wireless Communication Library because BluetoothFramework v5.22
doesn't work stable and sometimes blocking BTStackServer process even I close my application
or maybe I should destroy some objects while closing it??

Wimpel

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3053
  • Karma: 1000
    • Soft Service Company
Re: COM Ports
« Reply #3 on: April 10, 2008, 02:15:10 PM »
Ok. I got your point. I'll add such component back to WCL in 2 days. Need to finish some stuffs before :)

Offline wimpel

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: COM Ports
« Reply #4 on: April 10, 2008, 02:48:46 PM »
I would be grateful !
It would save my neck. :D

Please tell me if Lite Licence can be used for commercial use, or only developer one??

wimpel

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3053
  • Karma: 1000
    • Soft Service Company
Re: COM Ports
« Reply #5 on: April 10, 2008, 05:20:03 PM »
Any version can be used for commercial. The differences between WCL versions are here: http://www.btframework.com/compare.htm

I think (I am not sure< but I think so) I'll add the ComPort creator for the Lite version.

Offline wimpel

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: COM Ports
« Reply #6 on: April 21, 2008, 09:56:40 AM »
Hello!

How about adding ComPort Component to WCL?
How much work left?

wimpel

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3053
  • Karma: 1000
    • Soft Service Company
Re: COM Ports
« Reply #7 on: April 21, 2008, 08:20:10 PM »
Good day!

Yes. more or less it is done. Fixing bugs :)

Offline wimpel

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: COM Ports
« Reply #8 on: May 05, 2008, 08:20:11 AM »
Hello!
I've download new demo version of Wireless Communication Library .NET.
But I couldn't find COMPortCreator component.

Did you hide it below any other funcionality, I missed something or maybe you didn't develop it yet?

wimpel

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3053
  • Karma: 1000
    • Soft Service Company
Re: COM Ports
« Reply #9 on: May 05, 2008, 11:25:32 AM »
Good day!

Sorry, didn't finish it yet.

Offline wimpel

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: COM Ports
« Reply #10 on: May 06, 2008, 10:15:27 AM »
Any possible timelines?
I don't know what to do,
my boss want this library but I need this funcionality to finish my project.

wimpel

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3053
  • Karma: 1000
    • Soft Service Company
Re: COM Ports
« Reply #11 on: May 09, 2008, 09:49:19 AM »
Try this solution (attached).
You can create 2 virtual COM ports linked together one to other then use one on wcl side to send/receive data over BT and other with your application.

You will need 2 wclClient components on WCL side

The first will use serial transport and manages the data received from virtual port and other one will actually connect to BT device and forward all data received from the first wclClient.

See what I mean. I tryed this solution and it works fine.

Offline nan805

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: COM Ports ( Created in Lite Version )
« Reply #12 on: October 02, 2008, 05:36:08 AM »
Hi
I am using the 6.0 lite version of WCL, and planing to purchase.
Now i have a problem which is i don't know how to create a BT serial port after device pairing is done.
My device support the SPP Mastre service, and it needs to create a Bluetooth serial port in WCL with data communication.

I am using C++ builder 6.0, and the pairing with device is ok, just problem in creating serial port.
Thanks.
Nan

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3053
  • Karma: 1000
    • Soft Service Company
Re: COM Ports
« Reply #13 on: October 02, 2008, 11:11:38 AM »
Good day!

If you want communicate with device using your own or vendor specified protocol use wclClient component. You must know the service UUID (Bluetooth), Service name (IrDA) or COM port number (Serial port).
« Last Edit: October 02, 2008, 11:16:25 AM by Mike Petrichenko »

Offline ami

  • Newbie
  • *
  • Posts: 26
  • Karma: 0
Re: COM Ports
« Reply #14 on: November 17, 2010, 04:15:47 PM »
How do i remove the ports created in the above demo APP?

On another note, is it possible to do something similar in the VCL version of the framework?

 

Sitemap 1 2 3 4 5 6 7 8 9