I am working on Qt5.9 version to develop an application. In this project I have a controller connected to Toradex SOM iMX6DL. I am developing application in Qt5.9 Qml.
I am not getting a source of information to implement SPI interface between controller and Toradex SOM in Qt Qml.
Please give me some information on this. If anyone have example code or documentation please share it to me.
You should create your own QObject derived class and expose it to QMLEngine. Integrating QML and C++ in Qt documentation will give you a good understanding. Note the BackEnd class in the example and how it is registered to be used in QQmlApplicationEngine.
In your ExampleSPIBackEnd class (or whatever you name it), you have to use either read/write methods of "stdio.h" for half-duplex communication or "sys/ioctl.h" for full-duplex. Refer to this document for quick help.
This project also has good implementation. Consider their GPL v2 license.
Another good example is https://raspberry-projects.com/pi/programming-in-c/spi/using-the-spi-interface.
I searched for spidev, for the SPI implementation in C/C++.
Related
I am using Qt 5.10 for Android. My program is based on Qt Widgets and it is written in C++. I need to get notified when someone is calling. Is there a way in Qt to know messages such as incoming phone call (Maybe this can be extended to Qt mobile framework)?
If possible, please share code for reference, thanks
As I know Qt does not support your need directly. I recommend you to dive into androidextras and JNI class. With using intents you should able to solve your problem. There is an example to call someone with using Intent Class and you also can parse incoming call from Intents.
I'm working on Qt project and I successfully implemented Bluetooth connection using "HandsfreeAudioGateway" so I can stream audio.
As a next step I would like to implement AVRCP to control the audio player over Bluetooth.
Looks like Qt doesn't support AVRCP yet. On the other hand BlueZ has mediaAPI which I don't know how to use it in Qt.
If you can show me a way or an example to figure it out, would be appreciated.
Cheers!
You could take a look at bluez-qt which is a Qt wrapper for Bluez 5 DBus API.
BluezQt::MediaPlayer represents a media player interface and might be a way forward for you.
I have a Qt Application. I want to know whether or not i can automate the testing using TestNG.
Do suggest, if there are any open source Automation tool available.(pls dont mention squish).
Thanks in advance.
You should use the test module provided by Qt proper to test Qt applications, really. It integrates well with the QObject hierarchy like signals, slots, et al, for which you would not have tight integration with TestNG.
Please see the official documentation for further details.
I'm learning electronics/microcontroller programming through TI-MSP430 Launchpad(Energia) and Arduino.
Both are based on wiring framework, and very good place to start for a beginner like me.
Now as I'm forwarding in my learning, I'm thinking to explore more and want to do a real world project. My project can be easily done on both above mentioned platforms, but I want to use STM8S-Discovery(Dev board or STM8S series MCU) for this but there is no wiring framework for STM8S as far as I know and I don't want to use if there is any.
What other skills/information I need to migrate from these wiring framework based platform to real world microcontroller projects?
Thanks in advance for inputs!
The datasheet and user's guide will be your best friend. Be sure to look at programming examples for that device as well. Typically you'll need to do the following:
Initialize clock system and setup peripherals and I/O. (Frameworks generally do all this for you). Read some of the actual code behind the scenes of Energia to see how it actually works.
Once the main hardware is initialized, setup your business logic (variables).
Loop indefinitely (like most embedded systems do)... while (true) anyone?
I hope that helps.
I contributed the A110LR09 Booster Pack library for Energia. Take a look at the source code if you're interested with how to write specific device drivers in C/C++ for the MSP430.
Qt library provides a classes to work with SOAP in qt components. Unfortunately, it's not a part of 'core' Qt and is not well documented. Is it any tutorials / guides/ examples awailable i can use as starting point to learn QtSoap? I want to create a very simple SOAP client for JIRA.
http://doc.qt.nokia.com/solutions/4/qtsoap/google-example.html how about this i think it's a good example
also the documentation for every class is decent eg : http://doc.qt.nokia.com/solutions/4/qtsoap/qtsoapmessage.html#details
Alternatively, use gSOAP. It's the most popular SOAP client library for C++, and has code generation.