I have made a logic analyzer board and transport it's data trough USB to PC. In the PC side, I have a Qt App to Receive data. My Question is: How to analyze Protocols like SPI, I2C, etc in my Qt App to find ACK, NAK and more? Is there any proper Library for doing this?
you can access SPI via the bcm2835-library: http://www.airspayce.com/mikem/bcm2835/
The RPi used this one. RPi had mostly bcm2836, later the bcm2837 (just like RPi3).
how can i know that the connected device is class complaint for MIDI
(Ex; for a yamaha keyboard)
(i'm trying to connect arduino directly to a usb midi keyboard)
in linux you can use lsusb -v the device class is in the bDeviceClass field. if it says 0 (Defined at Interface level) see the bInterfaceClass fields. MIDI devices have their own USB class cf. http://www.usb.org/developers/docs/devclass_docs/midi10.pdf
on your arduino has to run a kernel module- / driver-like program that enables communication with the USB midi device, because this communication is standardized ( http://www.beyondlogic.org/usbnutshell/usb1.shtml )
on windows you can use tools like USBView to get the information about the USB class ... https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/usbview
I need to create a Qt GUI that enables the user to select an option from a comboBox and on pressing a 'send' button, send some data to a STM32f072-Disco board via Serial Communication ( over a COM Port - COM11). I looked at the Qt blockig master, blocking slva eexamples but don't understand them very clearly. Any suggestions on how I can proceed ?
I've managed to make a Qt application with some help from sources on github.. The application is able to send & read data from the stm32 board. The stm32 dev board is configured as a CDC device.
The library provided # https://brosnanyuen.blogspot.in/2016/06/stm32-usb-cdc-vcp.html is useful for CDC communication as the stm32 middleware is slightly complex to use.
The git repor # https://github.com/WalkingFrog/Qt-SerialPort-Programming-Demo is a good start for beginners looking for a start.
I can share my code on any requets.
With Qt Bluetooth module (qt 5.2 and up) is it possible to use a Linux computer as a audio gateway?
Basically, I want to use computer as a headset and handle digital audio which comes from a mobile phone and send digital audio over bluetooth using qt bluetooth api.
If this isn't posibble to be done with qtbluetooth which api can handle it?
I would like to use a standalone GSM Module that can interface with other systems like TV, AC, Fridge, etc.. via an SMS or a Call
For example:
1. If the GSM Module is hooked up to a Smoke Sensor, when there is an alert the GSM Module should be able to send as SMS.
I think there needs to a hardware component (that connects to the Smoke Sensor and GSM Module) where I can install program to send a SMS message when there is a signal from Smoke Sensor.
I would like to know on what this hardware component can be, what programming languages can be used and how the hardware component can interface with various devices.
Thanks!
An easy way to get a programmable GSM module is to get a cheap Android smart phone. For connectivity, you will need to build your own solutions unless the sensors already have some interface. You may want to look into Arduino microcontrollers for that. You can interface to the Android device using Wifi, Bluetooth, USB (newer devices support USB host mode, the cheap ones may not) or the audio jack.
Best solution depends on your resources and how many devices you need.
If you have big budget and hardware and software designers, then you could use naked GSM/UMTS module from some m2m module vendor like Cinterion or Telit. And own MCU for controlling it.
But if you need only few devices, then you could use some programmable GSM/UMTS terminal module, which contain all needed stuff: case, sim-holder, antenna connector, some GPIOs and modem.
For example Cinterion TC65T is this kind of terminal module. It can run a java (J2ME) program. Java programs of TC65T have access to GPIOs, which can be connected to smoke sensor for example. Java programs can also send SMS messages.
The Cinterion TC65T terminal was a 2G cellular device with a Java Virtual Machine to allow you to run J2ME 3.2 applications. Now days you could use a Terminal such as the Cinterion EHS6T-USB which is a 2G and 3G device with Java.
You might find it easier to get hold of a Cinterion "concept board" which has a Java enabled 2G and 3G cellular module on there along with an interface for Arduino style shields.
http://www.gemalto.com/m2m/development/cinterion-concept-board
It runs from a USB lead, plugged into you laptop or PC and need no other external power supply for development. I used one of these connected to a battery, and an Arduino relay board plugged in, to be able to switch our Christmas tree lights on and off via SMS.