GStreamer udpsink (Windows) - gstreamer

Simplest possible gstreamer networking test, from a batch file:
gst-launch-0.10 audiotestsrc ! udpsink host=192.168.1.100 port=23000
A quick glance with Wireshark reveals that no packets are being sent (a "full" test with transmitter and receiver also shows no network communications happening).
Windows 7, with firewall turned off. Same result in Windows XP.

see bug report https://bugzilla.gnome.org/show_bug.cgi?id=706588
you should use new version gstreamer

Related

stk500_recv() programmer is not responding

Intro
Yesterday we were trying to update the firmware of our 3D-printer a Tevo Tarantula i3 The printer was running Marlin 3D Printer Firmware.
We installed a new module a TL-Touch Sensor, a chinese copy of the Bl-Touch an auto bedleveling touch sensor for a 3D printer.
After re-configurating a new version of the firmware for our setup in the Arduino IDE we went on with uploading the sketch to the Arduino Mega that was controling our 3D printer.
The problems
Before we started uploading we made sure the right COM-port was selected in the Arduino IDE and that also the right type of Arduino was selected. The Arduino Mega 2260.
Then we started with compiling the firmware and then uploading it to the Mega, Somewhere in between that moment the IDE freezed and crashed. As a response we removed the USB cable that was connected from the PC uploading the firmware onto the Arduino Mega, (This was a stupid mistake)
After we restarted the IDE and tried again we recieved the following error during the upload.
avrdude stk500_getsync() timeout communicating with programmer
After some Googling we tried the following fixes:
Remove all the !!! in the source code, Because of this the Mega
can enter some kind of safe mode
Tried a test sketch, Same error
When uploading a sketch presing the reset button on the board.
Sometimes the PC could also not detect that the board was connected it
would not show up in the Device Manager. But when we re-connected the
USB it would pop-up in the Windows Device Manager,
We might think we corrupted the bootloader of the Arduino Mega because we unplugged the USB cable during flashing. Prehaps someone knows somehting else that might be wrong with our setup.
Equipment used
Lenovo Y50-70 running Windows 10 with the Arduino IDE
Arduino Mega 2260 that was provided with the 3D-printer
USB cable for connection between PC and Arduino
Firmware for the Printer
Configuration Guide for the BL Touch
Images

Difference between USB Serial in Windows and Linux

I bought a Variense VMU931 inertial measurement unit (IMU) for a robotics project at school, and I am struggling to get it to reliably communicate with my laptop in Ubuntu. I am using C++ with termios to connect to it using 8n1 no parity blah blah blah. I've tried EVERY permutation of settings I can think of, and I still cannot reliably send commands to the IMU.
I called Variense support and spoke to the engineer that wrote their software, and he said it is a known issue. Evidently it works perfectly in Windows (and the Windows demo software worked fine with my device), but neither of us is aware of a significant difference between the USB Serial emulation in Windows and in Linux.
The constructor at the top of this file shows how I am opening and configuring the port:
https://github.com/jsford/FFAST/blob/master/VMU931/src/vmu.cpp
Any help would be great. I've been tearing my hair out over this!
Thanks!
Use the cu utility for running tests with different parameters.
To debug the issue: run the USB packet capture with Wireshark on Linux directly and also on a Windows VM running in VirtualBox/VmWare. Compare the traffic.
Check which kernel module is chosen and loaded for that USB device. Use /sys/ filesystem for that: this virtual fs has information from kernel about what's used. Also, the lsmod-kind of commands show the kernel module usage. The driver choice for USB depends on something like <usb-manufacturer-id>:<usb-product-id>.
Put some printfs into the kernel module to see where is fails. Use the DKMS build system for rebuilding the kernel module. There is a config file somewhere in Linux to blacklist/whitelist the kernel modules - useful to make sure that the right one is loaded.
That's what I was doing to fix a driver of an USB-serial device.

Audio with QML - Unable to play a wav file

3 days I'm stuck with a tricky issue!
I've built an image for my embedded device based on a Colibri T20 board, using Yocto.
I"ve added Qt5, using X11 (because Tegra20 drivers from nvidia support hw accel only with X11...).
At this point, everything works fine.
I've also generated the respective SDK to build application for the respective platform..
Works fine.
I wrote a simple application to play audio file, very basic...just to play wav files...
It does not work. No sound output.
import QtMultimedia 5.5
Item {
...
Audio {
id: audioPlayer
source: "file:///opt/track.wav"
}
..
onClick() {
idPlayer.play()
}
}
This code works fine on my host linux.
But not on my Colibri.
Qt 5.5.1 was firstly built with ALSA, pulseaudio (gstreamer plugins...).
No outpût.
But in the linux, I can play the wav file using:
aplay /opt/track.wav
So I assume that my alsa driver are up-to-date.
Then, I 've recompiled Qt 5.5.1 without pulseaudio....
It does not work better :(
To be honnest, I'm not very experienced with alsa and pulseaudio matter. I'm very fustrated bzecause I don't understand what's happening under the abstracted layer of QtMultuimedia.
Any suggestion is welcome...This issue is simply driving me mad ;)

How to read DIO port?

I am working on a project based on qt 4.8.5 and C++, the system is ubuntu 1404 and the motherboard in the pc was a DL631-c226 (information on DFI.COM ).
In the specification there is a DIO digital input output port 8 bits.
I read and I see every where on the web the simplest command is;
echo 1 > /sys/class/gpio/export
And after that a directory has been created but on my system it is not. Nothing happen even if I send the command using sudo root or root or admin
I get an error message "permission denied".
There is nothing in the BIOS regarding the DIO or GPIO configuration, in the kernel the GPIO is set to YES
I need help to read the value as changed on the pin of the DIO of my motherboard.
The interface to the DIO port is over i2c. Consulting their manual you can see an example of how to talk to it. I suggest you investigate i2c under Linux to understand how to handle it. At the very least you will need to install i2c tools and ensure your kernel has i2c support in it.
Their example: http://www.manualslib.com/manual/725217/Dfi-Dl631-C226.html?page=75#manual

Produce midi sound with rtMidi in Ubuntu

I have a problem playing a midi sound on my linux machine. Using RtMidi and C/C++ I generate three midi messages, and even though I try all the possible ports(I probed for all output ports) I cannot seem get a sound out of it. Should I manually connect one of these timidity ports to the speakers and how?
Thanks beforehand
EDIT 1:
I am trying to implement the solution by Chris Arndt described
here as:
"Have a look at the RtMidi library. It is cross-platform (Win, OS X, Linux, SGI), written in C++ and easy to compile and include in your project.
Then start Timidity as a server (Ubuntu includes an init script for this), which will create several ALSA sequencer client ports for Timidity. Open one of these ports as an output in RtMidi and start sending midi messages."
The problem derived from the online example of rtMidi, when I used the example from the documentation, it worked fine.