Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Setting L2CAP PSM channel

1,015 views
Skip to first unread message

bon...@gmail.com

unread,
Nov 22, 2007, 11:56:12 AM11/22/07
to bluecove-users
I found the new support for L2CAP connection in BlueCove really,
really, really interesting.
It opens a lot of new application possibilities.

I know very well that JSR82 doesn't give you the chance to change the
PSM channel in a L2CAP
server connection, but i continue to think taht this is a stupid
limitation.

Is it possible to introduce in BlueCove a little diversion from the
standard for giving the chance to change
the PSM channel in a L2CAP server connection?
Everybody could then begin to do very interesting things...for example
HID applications that needs to
open PSM channel 0x11...

Think at it

Thanks

giovanni



Vlad Skarzhevskyy

unread,
Nov 23, 2007, 11:47:07 AM11/23/07
to bluecov...@googlegroups.com
Hi Giovanni
  Give me more detail on what you want to implement.
  What is required and your suggestion on how this can be done.
  Do you really need to change the PSM channel or Just open service/server using specific PSM channel?

Regards,
Vlad

bon...@gmail.com

unread,
Nov 25, 2007, 4:12:19 PM11/25/07
to bluecove-users
Hi Vlad

I just need to open service/server using a specific PSM channel.

I want to write a program to use the PC keyboard as a remote wireless
keyboard, via bluetooth, for Nokia cell phones.
I will implement bluetooth HID profile.

The problem is that this profile communicates using L2CAP in channel
0x11 and 0x13, so i need
to open a server L2CAP connection with this PSMs.

I saw the Bluecove source code and Bluecove open the L2CAP connection
in Connector.open().
Maybe changing the connection string btl2cap://localhost...by
appending the PSM values.

Thanks

Giovanni

Vlad Skarzhevskyy

unread,
Nov 25, 2007, 4:22:06 PM11/25/07
to bluecov...@googlegroups.com
If you are going to make your application open source than I will try to add this feature today.

connection string would be:  btl2cap://localhost;name=...;bluecovepsm=11

bon...@gmail.com

unread,
Nov 26, 2007, 3:23:33 AM11/26/07
to bluecove-users
I don't have any commercial intent :-)

The application will be completely open-source and once finished i
will advertise it in this newsgroup.

Do i have to download the nightly builds?

Thanks a lot

Giovanni

On 25 Nov, 22:22, "Vlad Skarzhevskyy" <skarzhevs...@gmail.com> wrote:
> If you are going to make your application open source than I will try to add
> this feature today.
>
> connection string would be: btl2cap://localhost;name=...;bluecovepsm=11
>
> On Nov 25, 2007 4:12 PM, <bong...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi Vlad
>
> > I just need to open service/server using a specific PSM channel.
>
> > I want to write a program to use the PC keyboard as a remote wireless
> > keyboard, via bluetooth, for Nokia cell phones.
> > I will implement bluetooth HID profile.
>
> > The problem is that this profile communicates using L2CAP in channel
> > 0x11 and 0x13, so i need
> > to open a server L2CAP connection with this PSMs.
>
> > I saw the Bluecove source code and Bluecove open the L2CAP connection
> > in Connector.open().
> > Maybe changing the connection string btl2cap://localhost...by
> > appending the PSM values.
>
> > Thanks
>
> > Giovanni
>
> > On 23 Nov, 17:47, "Vlad Skarzhevskyy" <skarzhevs...@gmail.com> wrote:
> > > Hi Giovanni
> > > Give me more detail on what you want to implement.
> > > What is required and your suggestion on how this can be done.
> > > Do you really need to change the PSM channel or Just open
> > service/server
> > > using specific PSM channel?
>
> > > Regards,
> > > Vlad
>
> --
> Vlad- Nascondi testo tra virgolette -
>
> - Mostra testo tra virgolette -

Vlad Skarzhevskyy

unread,
Nov 27, 2007, 12:14:57 AM11/27/07
to bluecov...@googlegroups.com
Hi Giovanni
open-source and commercial can live together.
Take the latest nightly build. bluecovepsm should work now in WIDCOMM
L2CAP server.

On Nov 26, 2007 3:23 AM, <bon...il.com> wrote:
>
> I don't have any commercial intent :-)
>
> The application will be completely open-source and once finished i
> will advertise it in this newsgroup.
>
> Do i have to download the nightly builds?
>
> Thanks a lot
>
> Giovanni


--
Vlad

Vlad Skarzhevskyy

unread,
Jun 7, 2008, 1:46:35 PM6/7/08
to bluecov...@googlegroups.com
Hi Jay and Giovanni
Had any of you made a progress with making HID application using BlueCove?

I'm thinking of making a toy project "Universal remote control using
Bluetooth in Java"
The idea is to connect "Sony PS3 Playstation 3 Bluetooth BD Remote
Control" to application and retransmit the command using RF signal to
TV, DVD and other home equipment in the house....
The IR Remote Control Receiver/Transmitter http://home-electro.com/tira2.php

I think there are some applications like this but non in java.

> --
> Vlad


--
Vlad

Jay Petersen

unread,
Jun 7, 2008, 2:39:02 PM6/7/08
to Vlad Skarzhevskyy, bluecov...@googlegroups.com
Vlad,
I was able to tie into the PS3 controller and get the data stream.
I'm using mine to control a RC helicopter mounted with an Inertial
Measurement Unit for an auto hover system based on a fuzzy logic
control algorithm. I'm more then happy to help out however I can if
you want. I'm using the controller though, and not the Remote.

Thanks,
-Jay

Vlad Skarzhevskyy

unread,
Jun 7, 2008, 6:49:43 PM6/7/08
to bluecov...@googlegroups.com
Thanks Jay
I had more question about technical possibility in general (Yes or
No) of making HID application using BlueCove.

Probably the questions may be answered by reading HID profile
specification and experimenting.... But sine you may already done so
it would not hurt to ask.

If I make a server L2CAP server on 0x11 and 0x13 on PSM channels (I
added bluecovepsm specially for this) will remote connect to this
services when buttons are pressed. For example if remote control goes
to power save mode and disconnect and then will connect again to my
L2CAP service?

Another one is will my service on specific PSM channels conflict
WIDCOMM services? For example I already have a mouse connected to
WIDCOMM BT stack on computer using HID profile I assume. Can I make
another service for another HID connection or should I disable the
native stack HID..... The same apply to OSX and BlueZ versions....

So can the PSM server channels be changed to different values during
initial handshake?


--
Vlad

Jay Petersen

unread,
Jun 12, 2008, 11:17:07 AM6/12/08
to Vlad Skarzhevskyy, bluecov...@googlegroups.com
Vlad, sorry for the delay. I wasn't able to get a PSM running on 0x11
or 0x13 when another process was sitting on those. I had it running
in linux, but had no other BT devices connect. I also never got it
working in OSX (it seems to ignore the setting of the PSM, since the
system already is sitting on those channels). The remote however will
automatically reconnect to the L2CAP service, at least it did for the
PS3 Controller.

This help any?

-Jay

Sorry for the delay

mrede...@gmail.com

unread,
Feb 16, 2015, 6:03:18 PM2/16/15
to bluecov...@googlegroups.com, bon...@gmail.com
I am also interested in simulating a HID device with java.
Did anybody succedd and can give me some examples?
Thanks,
-Marcus

mar...@openremote.org

unread,
Feb 24, 2015, 4:46:57 PM2/24/15
to bluecov...@googlegroups.com, bon...@gmail.com
Hi Giovanni,

did you ever write that program?
Do you have some information for me if this works.
Thanks,
-Marcus
Reply all
Reply to author
Forward
0 new messages