Is there a roadmap for Kaa to release Endpoint SDK's for Mbed OS?
Or do anyone have previously done just that, connect to Kaa using Mbed OS?
Will appreciate your help.
The Kaa C SDK is portable, and the platform implementations look pretty simple as long as you have socket primitives (which there are in Mbed OS 5).
So porting the SDK to Mbed should be pretty straight-forward.
Related
There are servral USB libraries out there. I have tried libusb and it won't work for me. I cannot connect my USB device with that library because my driver for that USB device is using usbser.sys driver. My USB device is a Communication Device Class (CDC).
The only USB library that works for me is QtSerialPort (I have not tested Win32 API yet) and now to the question: If QtSerialPort only works for my USB device, what API does QtSerialPort use then? Does QtSerialPort use internal Win32 API functions, or own internal API?
On Windows, QtSerialPort uses the Windows API to communicate with serial ports (CreateFile, WriteFile, ReadFile, SetCommTimeouts, etc.).
You can read the relevant source code here:
https://github.com/qt/qtserialport/blob/dev/src/serialport/qserialport_win.cpp
I am working with BLE devices. and using nrf controller with bluez 5.4 code.
I am customizing gatttool source code so that multiple devices can connect and disconnect.
My focus part for now is how to disconnect ble device using gatttool apis.
I had found one solution in code that we can use:
g_io_channel_shutdown();
g_io_channel_unref();
These 2 APIs are use to disconnect ble device.
I am using nrf connect application in my mobile to connect generate dummy ble device so that I can perform operations.
When I use this for disconnecting device any other formalities are needed in between or only these APIs are ok?
I am not able to disconnect using these APIs.Some time it is give effect and some time it is not working.
If any one have idea abut this please respond.
Thanks in advance.
Do you mean Bluez 5.4 or Bluez 5.40? Either way, they are quite old releases.
gatttool is one of the BlueZ tools that has been deprecated in BlueZ.
Ideally you would be using the BlueZ DBus API to interact with BlueZ.
Not sure if you are creating a GATT Server (peripheral device) or GATT client (Central Device) but there are examples of both in the BlueZ source:
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/example-gatt-server
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/example-gatt-client
These examples are in Python, but most languages have DBus libraries to help access the API which are documented at:
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/adapter-api.txt
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/device-api.txt
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/gatt-api.txt
I'm planning to connect some sensor hardware with an IoT service platform. The sensors are connected to the interet with Thread/802.15.4 via a border router (gateway). So, each sensor has a IPv6 address. I would like to connect them to a kaa project enviroment.
It seems that kaa project supports neither MQTT nor CoAP out-of-the-box. But I found for instance this pull request about CoAP .
What is the current state? Do I need to implement a CoAP or MQTT layer myself?
I also read that the kaa release 1.0.0 banana beach will support MQTT out-of-the-box. Is there already a release date? And will CoAP be supported as well?
Thanks in advance.
I'm just getting into Kaa myself, but I see MQTT is one of the default transports.
See- https://docs.kaaproject.org/display/KAA/Transports
I also ran across this project on GH-
https://github.com/ethicstechOSS/MQTT-with-Kaa-server
From the open source code of AbstractKaaClient.java below, i'm sure kaaproject supports TCP protocol between endpoint and kaa server.
KaaDataChannel operationsChannel = new DefaultOperationTcpChannel(
kaaClientState, failoverManager, failureListener);
But there are some cases, especially in IoT domain, UDP is more popular than TCP, for its bigger transport overheads. Does kaaproject.org have any plan to support udp transport ? If it has already supported, could you please give me a solution?
Thanks!
It is not supported in 0.x versions of KAA platform. But in 1.0 version we planned to add support for CoAP that built over UDP.
I want to allow a network communication via TCP/IP using LwIP stack in FREERTOS. I am using stm32f4 discovery board as my device with LCd interfacing and want to communicate with my pc. I am new to LwIP. Does anybody have source code or can hep me with any suggestions. Thank you
There is a reference lwIP/FreeRTOS integration in the FreeRTOS Interactive site but note it is very old, and not all the code in it is relevant any more (for example it uses a pre-release of FreeRTOS+CLI that is not compatible with the released version). Hopefully it will be useful to you as a template though.
There is also a FreeRTOS+TCP (not lwIP) example for the STM32F4 which might provide a viable alternative - depending on your application - or at least provide you with a reference Ethernet driver that could be adapted for use with lwIP.