Websockets streaming issues & applications


Yesterday we managed to stream data from the server, and to play a sound while downloading it (yay !).

Nonetheless, we are facing a big issue : the data doesn’t come as quick as we want. The sound of the wifi is always halting and thus very dirty…

It seems that the mailbox we are using to communicate with the codec clears out too quickly, and then the codec has to wait for a while for some data which makes the sound dirty.

We are also going on the applications side, what Kudly will be able to do after all the features will be completed :


We hope most of these features will be working by Monday morning !


Hello !

Currently my main issue is implementing websockets for audio stream. With Julien we managed to understand the websocket protocol (https://tools.ietf.org/html/rfc6455) and I managed to connect to Julien’s server with a simple implementation of the protocol. At first, we wanted to give away the mask, but it is actually mandatory for sending data. For the moment, the mask is simply 0x00000000 which makes sending data more simple !

After the request the web server echoes what we sent, and we can then receive it and print it on the serial port.

The next step is to implement in & out mailboxes for the codec in order for it to stream audio data to the server. As the codec audio in and out buffers are both 16 bytes long, every request will be the same size.

[Kudly] Wifi & leds

Hello !

This weekend, I linked the leds with Chibios Shell. We can now set colors to leds using shell commands.

With Damien, we are going on with the wifi. Now we can make a request to the server to get a XML file that sets the led colors. We are going focus on sending a stream now, which may be trickier than simply make http requests with the AMW006 API.

We are probably going to set up a websocket between our board and the herokuapp server in order to receive the stream on the server.

Kudly’s pcb & stm32 lab

Hello !

Our PCB is ready, hurray ! 2 days ago, we bought a nice cuddly bear (cf Dim’s photo below) to be our Kudly, so sad to think that we will have to cut his head off to put wires in it… The PCB will be located just behind his nose, with the camera and the PIR in his eyes.

I am still going on with the lab on the Olimex P407 board. I had several issues with events when activating debug options. It turned out that I didn’t properly set up the broadcast, with : chSysLockFromIsr(), then the broadcast, and finally the unlockFromIsr.

I am also implementing this method for the serial over usb, and broadcasting when reciving data.

ChibiOS & STM32F407

Hi !

Today, I was going on with the lab session, trying to apply pwm on a led.

I finally found out that the PWM module on ChibiOS cannot manage the TIM10 timer on the STM32F407. The purpuse was to make the intensity of the led vary, but it uses TIM10 as a timer (on the GPIOF_6 pin). Thus, I am currently setting up the registers by myself, not by using the Chibios module.

[Kudly] Carrying on the PCB

Hello !

Tonight, we are going on the PCB.
We managed to finish the design on DesignView, and we are ready to start placing the elements and then routing them.

The camera and the Wifi modules are still to be integrated, but the pins are set on the design. The camera is linked to the microchip using DCMI and the Wifi using usart.

We finally decided to let down the CO2 sensor, because it is too expensive, it uses too much power and needs a 6V voltage which is over our battery voltage (3.7V).

Kudly’s PCB is coming :



Choosing how to send audio

Yesterday and today, we finally chose how we are going to stream audio from the bear. At first we were thinking about a bluetooth module capable of sending sound without using the processor. But we also need to process the sound to detect when the baby cries or wakes up, and having both the bluetooth module & the processor plugged to the microphones and the speaker bring some issues.

We are then going to get the sound through the processor, and then send it. And finally, for higher speed purposes, data will be transfered though wifi and not bluetooth.

We also finished to set the PSSC for our project and the calendar.

Kudly & Arch installation

This morning, we met to talk about our project : a nice cuddly bear, who will be called Kudly !
We started to set the project specifications, as it is mentioned in Julien, Antoine & Damien’s previous posts.

Today was also the first time I managed to install ArchLinux. As I did it with Antoine and Damien, we managed to configure arch quite properly. We now need to fix some stuff, like the network configuration, and configure the programs to have a good working environment.