BlackBerry 10 - develop SPP (Obex) Server

I develop an application that receives a file from bluetooth obex digitel pen (a device for which I can't write software). It would be ideal, if the application would receive the file bluetooth directly. For previous versions of firmware BlackBerry, we had an app that makes it work with (in Java): _server = Connector.open (ServerSocketConnection) ("'serviceName", Connector.READ_WRITE, false); and connection = _server.acceptAndOpen (); DataInputStream say = connection.openDataInputStream (); DataOutputStream back = connection.openDataOutputStream (); DoSomething (say, back); Now all I find on PSP/Obex communication in BB10 is cat SPP as an example, but I'm a little lost as to where I should make my changes. I thought, the startSPPServer method would be a good start: bt_spp_open_server ((char *) "serviceName", (char *) SPP_SERVICE_UUID, 0, BTControllerSPPCallback, reinterpret_cast (this) but my serviceName is obviously the cause an error (errno: EINVAL).) Unfortunately I'm not a good C++ programmer, so maybe I'm completely wrong about something. But there is no documentation that I could read and instead of trying everything I can think of, I would be very happy if someone has a tip for me. An alternative to the situation described above would be to send files bluetooth on the phone instead of the app, which is already operating, to monitor the bluetooth folder and take the files from there. But the problem is that you have to manually accept any connection bluetooth for the phone, which is bad for our workflow. Is it possible to automatically accept all incoming files from an already paired device? I have not found such a context. Thank you in advance :-)

OK... interesting:

I tested again and with a bluetooth device removal and new matching that I could do work!

It seems that you must first install (or debug) the app before you pair the device (in my case the digital pen) on the phone. This fact was not new to me, but I thought that I did before. What I tried also now pair the device to the phone rather initialization of the pairing of the pen. I also thought that I've done it before, but I think that something else was not just before (the serviceName? Now, it's the second name mentioned above).

Now, it works as follows:

I took the example of cat SPP and on the phone that I opened by button, click the SPP server. In the code, I made a little adjustment in the ChatManager::startSPPServer() method:

bt_spp_open_server((char *) "serviceName", (char *) SPP_SERVICE_UUID, 0, BTControllerSPPCallback, reinterpret_cast(this)

where "serviceName" is the name of my digital pen service record.

Maybe this info helps someone, too. We have developed this kind of app for a number of devices and the order of the actions to the pen of pair and phone is not always the same.

Tags: BlackBerry Developers

Similar Questions

  • WHAT APPLICATIONS CAN BE DEVELOPED FROM SQL SERVER 2012

    I need to know what applications can be developed using SQL SERVER 2012.

    Hi, Chris,.

    This is an overview of SQL Server 2012

    http://www.Microsoft.com/sqlserver/en/us/product-info/overview-capabilities.aspx

    SQL Server 2012 application development

    http://social.technet.Microsoft.com/wiki/contents/articles/6982.SQL-Server-2012-Developer-Training-Kit-BOM-en-us.aspx#Module_5_SQL_Server_2012_Application_Development

    Post your query on TechNet Forum to get help

    http://TechNet.Microsoft.com/en-us/SQLServer/ff898410.aspx

  • What is Blackberry Bis push Service different development of BlackBerry Java development?

    Hello

    I develop applications using blackberry java development. I want to develop an application that uses blackberry push service, pls suggest is different from the java development?

    What do you mean with 'different '?
    BIS push uses the infrastructure of the RIM and is a service, it is independent of the programming language.

    You can use BIS push with java bb, you can use it with webworks/html5, and you can also use it on bb10 with c ++.

  • BlackBerry Application Development SDK, environment, tools, framework

    Hello

    Is that any company in the world selling BlackBerry Application development infrastructure which enables developers to drag-and - drop controls and to set the properties designer?

    I don't understand why RIM makes developers life so difficult? You must expand each control single UI (field) and customize it before you start to use it.

    Thank you

    Hello

    There is no company now sells the BlackBerry Application development framework that allows developers to drag-and - drop controls and to set the properties of the designer.

    It is in very interesting my friend working with RMI. Try it. Please, before asking the question on the forum you first of all of the research on this. If you do not get the ANS you ask your question in the forum.

    If you get the answer to your question that mark it as resolved.

    Thank you

    Ajay

    Press the left side on Bravo (star) to thank and
    Please mark the thread as solved if its solved...
    KHAKI

  • where to get the guide in PDF for Blackberry Java Development

    Hi all

    I want to get any good guide PDf for blackberry Java development which five will be me good knowledge on the development of java blackberry.

    Thank you all

    http://docs.BlackBerry.com/en/developers/?usertype=21

    and

    http://docs.BlackBerry.com/en/developers/subcategories/?usertype=21&category=Java+development+guides...

  • OAS and (forms and developer suite report server)

    Hello

    I installed 10.2 suite developer on a server equipped with XP OS got (server)

    now I can run any form and report in my browser to another customer without any problem

    so I would like to know what is different between the Forms Server and developer of Pentecost OAS States

    Please help me

    Whats different between the Forms Server and developer of Pentecost OAS States

    http://download.Oracle.com/docs/CD/B25016_08//doc/DL/Web/B14361_02/config.htm#sthref10

    Standalone OC4J must be used by the development and deployment of small and medium-scale production. Specifically, standalone OC4J supports HTTP and HTTPS in native mode without the use of Oracle HTTP Server. There is no support for balancing load, clustering or management via Oracle Enterprise Manager 10 g. To use these features, customers must install one of the Oracle Application Server installation types, such as J2EE + WebCache. The standalone version is supported in a single instance, JVM one and only machine configuration.

  • Confused how to get started with Blackberry 10 development

    Hi all

    I'm new to the development of BB 10.

    I have a DBMS to develop that will help me to read newspapers calllogs/phone and use DBMS data.

    Should I go with native/webworks/cascades? I'm really confused.

    Can someone help me with this...

    Native usually means waterfalls.

    You can use webworks if you plan to develop for multiple platforms and prefer html5, otherwise native/cascades offers better system integration and speed.

    I suggest that you start with the samples and documentation at developer.blackberry.com
    There is also a course online which covers the basics and some advanced topics and should occupy you for a while.

    as a beginner, I suggest to make the UI in QML and use c ++ only as much as necessary until you feel more comfortable with it

  • Impossible to download Blackberry theme developer

    Hi all.

    I'm trying to download the Blackberry Developer 5.0 theme.

    By clicking on the download link that leads me to "https://www.blackberry.com/Downloads/developerdownload.do" which shows a white page. I use Chrome and IE8. The page says done. No pop ups r being blocked.

    Any ideas?

    Thank you

    OK it's working now.

  • Model for blackberry app development tools

    Hello guys,.

    I'm looking for tools to model for OS10 app. I've already found wire (http://supportforums.blackberry.com/t5/BlackBerry-Themes-Animated/Design-amp-Mockup-Tools-for-BlackB...  ), but the link does not work. Can I use for the tools of the comp! Please recommend you use.

    Thank you.

    Luca Filigheddu (Manager, global developer ecosystem to BlackBerry) told me he is allowed to use these media images, and we can change our needs.

    http://CA.BlackBerry.com/company/Newsroom/Media-Gallery.html

    Use MockIt app if you want to do on your device, otherwise I use Gimp a paint.net under Windows.

  • BlackBerry Z10 remove hub and server

    The function allowing the choice on the place where to delete messages, only hub or as a server, which has been returned to us fairly recently, has simply disappeared from my Z10. I'm in the way that it used to be with the option of a deletion, which removes a message from two hub AND server. I really liked this feature originally Blackberry and had been delighted when he was relocated.

    This happened to someone else?

    Is there a way to retrieve this function? Maybe I disabled something by accident?

    You have downgraded your OS Z10?

    If this isn't the case, it is still there.

    Open your Hub > icon three points > settings > display and Actions > scroll to delete the and make your choice.

  • BlackBerry Q10 Q10 email removal server

    My emails on my Blackberry Q10 when I delete them on my phone it also removes them off the server. There is no option to stop this. Causing me real problems. It of OK on the old software, but not on the 273 software.

    It is a question about the BlackBerry10 OS since the release in January and has not yet been set.

    It may be, but BlackBerry has not commented on or advised.

    In the meantime, if you're on a Courier IMAP server, you can choose to FILE these messages (you wanted deleted from the device but registered on your server). Once filed, these messages will be visible on your Q10 (you may need to open your Hub > settings > display and "hide filed messages).

  • Versions of the FMV between BlackBerry during development

    I've developed an application for a while now, and it must be deployed on a few different versions of Blackberry 9550, 8100 and 8520.

    The 9550 is version 5.0.0.535 and I can test the code quite happily using JRE 5.0.0. The 8100 is version 4.5.0.180 and I can test it with the help of Blackberry JRE 4.5.0.

    However there is no JRE Blackberry for 8520, which is 4.6.1.314, which JRE should I use during development and it will all work after deployment.

    I get this error when the project packing, the simulator of loads and the application seems to work very well. The error occurs if I load the project with the 8520 (5.0.0.535) simulator that came in the Simulator or with the 8520 (4.6.1.314) Simulator package I downloaded separately.

    java.lang.NullPointerException
    at net.rim.ejde.A.J.M.getVMVersion(RIMEIDE:3110)
    to net.rim.ejde.A.I.L$ _B.A(RIMEIDE:3114)
    to net.rim.ejde.A.I.L$ _B.compare(RIMEIDE:2031)
    at java.util.Arrays.mergeSort (unknown Source)
    at java.util.Arrays.sort (unknown Source)
    at java.util.Collections.sort (unknown Source)
    at net.rim.ejde.A.P.H.A(RIMEIDE:2680)
    at net.rim.ejde.A.P.H.A(RIMEIDE:712)
    at net.rim.ejde.A.D.E.H(RIMEIDE:2408)
    at net.rim.ejde.A.D.E.D(RIMEIDE:1779)
    at net.rim.ejde.A.D.E.B(RIMEIDE:2955)
    at net.rim.ejde.A.D.A.run(RIMEIDE:3171)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
    at net.rim.ejde.A.D.C.runInWorkspace(RIMEIDE:3462)

    If I try to run a clean on the Simulator I get this error

    java.lang.NullPointerException
    at net.rim.ejde.A.I.L.B(RIMEIDE:2746)
    at net.rim.ejde.A.K.B.C.A(RIMEIDE:3466)
    at net.rim.ejde.A.K.B.C.A(RIMEIDE:3002)
    at net.rim.ejde.A.K.B.C.createTreeViewer(RIMEIDE:3583)
    at net.rim.ejde.A.K.B.C.createDialogArea(RIMEIDE:2162)
    at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:760)
    at org.eclipse.jface.window.Window.create(Window.java:431)
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
    at org.eclipse.ui.dialogs.SelectionStatusDialog.create(SelectionStatusDialog.java:153)
    at org.eclipse.jface.window.Window.open(Window.java:790)
    at net.rim.ejde.A.B.F.execute(RIMEIDE:127)
    at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)

    All ideas, he may not actually be causing me a problem now, but I think he's going to snowball

    You prefer to do it this way:

  • How to get started with Blackberry Z10 development?

    Hello

    Can someone tell me how I can start developing for Blackberry Z10.

    I had the Blackberry 10 native SDk Beta.

    Can I use Eclipse for development of BB 10 as we used it for 5.0,6.0 and 7.0?

    QNX Momentics tool is necessary for the development of BB 10, where to download?

    Thank you.

    Yep, it's in the SDK.

  • BlackBerry Smartphones BB app world server is not responding

    Since today im getting this message when I try to access my apps, and I do not know what is wrong!

    Here's a knockout who deals with this error:

    • KB20031 "BlackBerry AppWorld is having problems connecting to the server BlackBerry AppWorld. "Check your network connections, and then try again" appears at the start of BlackBerry App World

    I hope that it contains something useful

    Good luck and let us know

  • What are the best BlackBerry to develop themes for phones smart blackBerry?

    Hi all

    I did research with conflicting results using Google in terms of finding the best BlackBerry model to develop themes for sale on world BlackBery.

    I developed for mainly the Curve 8520 themes, but I'm sure that's not the most popular actually sell themes for... See if you have enough money to buy a mid to the end range model, you would probably also extra money for byt a theme...

    I would really appreciate if someone could help me whith this question!

    Thanks a ton

    Good luck with your business.

    You will notice that there is a forum of developers here, separate and apart from the 'Forums to Support General' when you send messages currently.

    Visit this link:

Maybe you are looking for