7 Replies Latest reply on Jan 7, 2015 12:08 PM by Sean Kennedy

    Is bluetooth API supported for Win32 builds?

    Mark Nongkhlaw

      I need to connect my desktop (via a bluetooth dongle) or my laptop (which already has BT support) to a handheld BT RFID reader.

       

      Is Rho bluetooth API supported for Win32 builds?

       

      Alternatively, is there an Android/Windows Phone emulator that supports bluetooth on desktops and laptops?

        • Re: Is bluetooth API supported for Win32 builds?
          Sean Kennedy

          Hi Mark.

          Usually a Bluetooth {BT} data capture device is connected to a system and will either use: 1) Keyboard wedge of some kind (USB HID), or 2) Serial Port Protocol (SPP) data.

          (There is a third kind, but I won't go into detail here about that {SSI} since it is Symbol/Moto/Ztc specific.)

           

          Since the connection is either of these two, you have the choice of doing nothing (USB HID) since the data is coming from a keyboard entry.  (TextBox)

          Or connect a stream to the COM port wherever you decide to setup the data capture device to.

           

          Are you asking in order to use Bluetooth API to communicate to something specific?  As well, you did not indicate what the BT RFID reader is configured for Bluetooth in this case?

           

          -sean

          Sean M Kennedy

            • Re: Is bluetooth API supported for Win32 builds?
              Mark Nongkhlaw

              Ok, looks like I didn't  make the question clear enough. First, I'm not using a Moto device as an RFID reader. This is a Feig bluetooth handheld RFID Reader (specifically, PRH101B). It reads RFID tags, and communicates to a mobile/PC/other BT devices thru Bluetooth, not by tethering it via USB or serial port (of course in this case, its a serial device but with a BT serial port rather than a conventional  serial port).  I've been able to pair the device with a PC as well as mobile thru BT. In fact, I've developed a mobile app (not with Rho) which displays and records what it reads in the mobile. Now I need to do the same but with a PC rather than a mobile device. I'm looking at the possibility of using Rho for this via Win32 build or via Android /WP standalone emulators where the apk and XAp built with Rho can be deployed. Ive yet to come across emulators with BT support.

               

              So my question is in 2 parts :

               

              1. Will the Rho BT API work on a PC having BT to connect and read the signal being sent by afore-mentioned FEIG RFID Reader? I'm thinking of going  with rake run:win32 here if Rho BT API supports it, but I have my doubts...

               

              2. If no, then can we use Rho to build an Android/WP app & then deploy the resulting apk/xap to an emulator running on a PC but the emulator must have BT support.

               

              Hope I made myself clear.

               

              Thanks.

              • Re: Is bluetooth API supported for Win32 builds?
                Mark Nongkhlaw

                From Rhomobile | Bluetooth  :

                Bluetooth API provide access to Bluetooth serial port connection between phone and another phone, phone and PC, phone and external Bluetooth device (for example external Bluetooth GPS device).

                 

                Not sure if BT serial port connection between PC and external Bluetooth device is supported by the API.

                Can anyone clarify, please?

              • Re: Is bluetooth API supported for Win32 builds?
                Robert Galvin

                Mark

                 

                The BT APIs are not supported in Win32 - It was incorrectly shown on the 5.0 API chart, but correctly shown on the 2.2 API chart (the API is supported in 5.x but still developed in 2.x format so all 2.x compatibility applies)

                • Re: Is bluetooth API supported for Win32 builds?
                  Sean Kennedy

                  For Production:

                   

                  For a RhoApp on WIN32, my best suggestion is to setup the BT RFID device to use HID as the data entry (USB Keyboard Human Interface Device) then you do not have to do anything, except do validation on the Text Box when the pages or context is submitted.

                   

                  That or use a Serial to Keyboard wedge utility  -- most BT barcode scanners which use SPP have a PC-based utility to act as a Keyboard Wedge. That same wedge would behave similar to the above.

                   

                  -sean