Sigfox : how to upgrade firmware automatically

You may had some problem to reflash your TD1208 once you load the blink example or your own code in the device. This is because you need to reset the device to reach the firmware upgrade procedure during boot procedure.

On of the way to do it is to perform a hard reset putting Reset pin to ground during TDLoader Sync process. The other way is to add some lines in your code to create a soft reset. Here is an example on howto do it :

void TD_USER_Setup(void)
{
    // Initialize the LEUART
    init_printf(TD_UART_Init(9600, true, false),
                TD_UART_Putc,
                TD_UART_Start,
                TD_UART_Stop);
}

void TD_USER_Loop(void)
{
    while ((c = TD_UART_GetChar()) >= 0) {
        NVIC_SystemReset();
    }
}

When the loader is waiting for the bootloader sequence, it send communication over the serial line. In this example, when a such communication is detected, the system is calling a soft reset, starting the boot sequence and as a consequence the firmware upgrade automatically.

Continue reading

Soldering station BAKU 702B

photo(1)I recently bought a low cost soldering station ( <100€ ) from Baku. This station includes a hot air soldering tool and a standard soldering tool. Temperature is indicated and independent for the two tools. Air flow level can also be configured.

I did not know if it was a good purchase as the price is really really low compared with usual soldering station. As my need is a non professional one, I did not had the budget and the use for a better station. Since 2 weeks I’m using it now, I can say, I’m happy with it. I do not use the standard soldering tool as the quality is lower my previous one and after testing it one time, I assume it’s life duration will be only a couple of weeks. But the hot air soldering tools seems to work correctly and was a great friend for my last SMD prototype. It is delivered with a replacement peace for the heating part, I assume the life will not be really long but for the price, 1 or 2 year will be enough to me !

Continue reading

Create a new SigFox Project

This tutorial is describing how to create a new SigFox project based on the given SDK version 4-0-0. Read the full post to get the details.

Continue reading

Make an USB power supply with backup battery

I recently had to design a solution to power a arm based system like arduino with an external power supply but, as this system have to stay up even if current is cut, I also had to backup it with a battery. This post is describing the design for a such circuit.

Continue reading

Compared performance of different file transfer protocols over latency

Internet is providing more and more bandwidth to transfer files and files are bigger and bigger. One thing is not changing, it is latency as distance still the same over the time. When a protocol requires acknowledgment between blocks of transfer this latency is limiting the throughput like explained in this post.

The throughput is really different depending on the protocol in use to transfer the file. As I did not found something giving a lot of data to compare the existing protocol, i’ll try to get figures myself and detail here.

Continue reading

My Clermont’ech talk about MQTT

My last post was about a demonstration of what you can do in 5 minutes with MQTT. This video was part of a global MQTT presentation I’ve done for Clermont’ech APIHours.

Here is a full version of this talk in English. For French reader, the video of the talk in French will come soon as soon as Clermont’ech team will finalize it.

Enjoy !

 

Slide are here : http://slides.com/disk91/mqtt#/

How to use MQTT the 4 minutes tour

To prepare a presentation of MQTT for tomorrow, I just finished a MQTT / Mosquitto demonstration in a 4 minutes video. Enjoy !

How does Synology glacier backup is working

awsglacierSynology is providing a Glacier backup tool which seems to be an easy way to backup data on the low cost amazon solution. I will not describe how to configure it a log of blogs are doing it and I do not like to be redundant. The question I did not find an easy answer was : will I be able to restore my backup even if my synology crashed and I would not be able to get one other…

 

 

Continue reading