RSMB MQTT-SN & Bluetooth - bluetooth

I've been told that MQTT-SN could work with bluetooth instead of TCP/IP.
I downloaded RSMB from http://git.eclipse.org/c/mosquitto/org.eclipse.mosquitto.rsmb.git
I tried then to configure it to work using anything other than TCP/IP without any luck. In fact the only thing I was able to configure using a configuration file was the port number because I could not find a list of possible configurations anywhere.
Does anybody know if it is possible to make such configuration (Bluetooth instead of TCP) in RSMB or any other MQTT broker????
Thanks!

The MQTT-SN support in RSMB is for MQTT-SN over UDP.
To use MQTT-SN over Bluetooth you will need to implement a Forwarder as described in section 5.5 of the spec to bridge between a MQTT-SN gateway and a client on the Bluetooth device.

Related

Is it possible to connect to Sony Camera Remote API with hybrid mobile apps

Since we need to have a UDP socket to discover the device, and since javascript seems not supporting UDP, is it possible to connect to Sony Camera Remote API with a javascript based mobile app (non native).
As said in the comments, you can use Cordova to do the SSDP discovery.
However, as far as I can see, the API is HTTP-based. So if you don't need discover (can write in the IP address and port manually), then this should be possible to do.
Did you ever get anywhere with this project? I'd be interested in getting some LiveView and controlling a camera using Javascript.

Bluetooth paired but no COM port

So I've built an Arduino module with a Bluetooth chip (HM-10) and it pairs succesfully with my Windows laptop. They both use Bluetooth BLE.
The problem is that the pairing doesn't seem to open a COM port, so I have no way to actually communicate across the connection.
There are no COM port connections when I go into Bluetooth settings->COM Ports, even though Windows is definitely telling me that the pairing was successfull.
Does anyone know why this could be?
Thanks for reading
Lukas
I had the same problem on a Mac. Turns out it's not a problem. BLE doesn't quite work like regular ol' Bluetooth and you won't have a COM port. You need to write your own middleware to take care of the communication between the Arduino and your computer.
There are different projects working on that in Python or Node.js. A simple google search should provide with a proficiency of solutions.

Reverse tethering with DUN on Bluez 5

I would like to know which is the current modern way to do DUN reverse tethering using Bluez version >= 5.
I have an old PDA that I use sometime (a Tapwave Zodiac running PalmOS5. It's similar to Palm Tungsten, etc.) These old devices don't have Wifi, only Bluetooth. For networking over Bluetooth, these old devices don't support PAN, only DUN.
So to provide them networking, one need to share a desktop PC's connection over bluetooth DUN.
Up until Bluez version 4, the standard way to provide networking over bluetooth for such PalmOS 5 devices was:
https://wiki.debian.org/BluetoothPalmOSConnection
Basically:
run "dund" to listen for incoming connection.
once the palmos device connects to the PC, have dund start PPPD with parameters tailored for the device
use iptables to forward the connection.
My problem:
I've read that bluez 5 changed the way DUN is handled and thus support for the old "dund" was dropped.
Indeed there's no "bluez-compat" package available anymore for my current distro (opensuse 13.1, runs bluez 5.18)
So my question:
What's the modern successor of "dund --listen" for bluez 5 ?
How should I setup a DUN service on my computer to which to connect from my PDA ?
I've looked around, but I haven't been able to find any guide.
The "dund" functionality should very probably be replicated using some scripting and dbus calls. But I can't find any pointer where to begin looking for a solution.
Thanks for your help.
I think you can
Run pppd with "rfcomm listen" in the "connect" script of your /etc/ppp/peers/ file
Use "sdptool add DUN" so that your service is discoverable
I guess you'll figure out the exact details yourself. Please respond if it won't work for you and I'll try that myself or be more specific.
Take care,
Lubo

What are the other mean of connectivity apart from bluetooth?

I want to consider all the connectivity possibilities in JavaME , connectivity between phone mobile and PC. Apart from bluetooth what are the possible means of such connectivity ?
You need to have a look at the Generic Connection Framework (GCF) which gives you the ablility to open connections using various protocols. You do this my using a Connector object.
It is obviously completely dependant upon the hardware upon the phone and any optional JSRs that it implements, but you can communicate to a phone via:
Using internet protocols e.g. Http, Datagram, Socket connections (Requires PC to be accessible via the internet)
NFC (Near Field Communication)
Using a Secure Element (SATSA)
Serial COMM port connection (I think)
I'll completely admit that using some of these methods to communicate between a PC and a phone are nuts but it could be done.
The best thing to do for simplicity is to use bluetooth or a HttpConnection.
U also able to connect mobile with pc via internet (Gprs).Better u look at the Generic Connection Framework (GCF) documentation.It will help u

mobile receipt printing with J2ME via Bluetooth

I need to make an app in J2ME that can be able to read a SMS and then print it on an epson tm-p60 printer(ESC/POS emulation) via bluetooth.
i looked at the epson supprt site but the only ADK/drivers they provide are for:
1.Sun Java2 SDK Standard Edition Version 1.4.2_10
2.Sun Java2 SDK Standard Edition Version 1.4.2_04
3.Sun Java SE Development Kit 6 Update 3
so i don't know how am i gonna be able to use ESC/POS commands inJ2ME.
I'm a bit clueless on how i will approach this project.. plus w/c would be better to use for this project? Netbeans or Eclipse?
Thanks!
SPP (Serial Port Profile) over Bluetooth means using an RFCOMM connection to send and receive data as if it were a physical serial connection. This is part of JSR 82, so you will be able to develop only on handsets that support this JSR.
You need to:
Figure out how to discover bluetooth devices, and scan for SPP services on a discovered device, then connect to one of those services, using one of the many JSR 82 tutorials out there.
Then send ESC/POS protocol data over that connection -- I assume you have the protocol specification available? Google turned up this application programming guide.
HTH.
JSR-82 Bluetooth API support L2CAP protocol, RFCOMM and OBEX profile. I don't know detail of Bluetooth basic printing profile (BPP) but, if you look into basic printing profile document you can find that BPP built on OBEX profile.
I can't find open source project for BPP on JSR-82. Please try to search it, but if you can't find one you might need to write your own.

Resources