Current state of HTTPS on ESP8266

This is the output from howsmyssl:

{
	"given_cipher_suites": [
		"TLS_RSA_WITH_AES_128_CBC_SHA",
		"TLS_RSA_WITH_AES_256_CBC_SHA"
	],
	"ephemeral_keys_supported": false,
	"session_ticket_supported": false,
	"tls_compression_supported": false,
	"unknown_cipher_suite_supported": false,
	"beast_vuln": false,
	"able_to_detect_n_minus_one_splitting": false,
	"insecure_cipher_suites": {},
	"tls_version": "TLS 1.1",
	"rating": "Improvable"
}

Only upto TLS 1.1 😦
This was tested using ESP-01. I’ll be performing tests with ESP32 next month, once I get around to drag-soldering it 🙂
Continue reading

Advertisements

Play audio from 2 bluetooth headsets simultaneously on the Macbook Pro

Previously, I’d written about how to play audio simultaneously through a bluetooth headset and wired earphones on your Macbook Pro.

However, now we have a new problem. We just got a new 🐈 Spot, who’s the cutest cat my wife has ever seen. And he loves to pull on all kinds of threads and wires, including… earphones wire!

So I wondered, can we connect 2 bluetooth headsets to the Macbook Pro and have music play from them simultaneously (without any significant lag).

Turns out, it’s definitely possible and not hard to set up. This is what you do:

  • You need to open up the secret audio device manager within MacOS called “Audio Midi”. Use Spotlight to find it.
  • Open it up and click on the “+” sign in the bottom-left and select “Create a multi-output” device. (You need to have the latest MacOS installed. This is how it should look: Multi-output Device MacOS
  • Make sure you tick only the 2 bluetooth devices and untick and others in the list. Also tick the boxes for drift correction and make sure sampling frequency is set to 44.1kHz (or else the sound will be horrible 😦 )
  • Once this is done, right click (or double-tap) on the multi-output device option on the left and select the option “Use this device for sound output”. You should hear the audio through both the bluetooth speakers 🎉.
  • Sometimes, it doesn’t work on the first try. Just delete the multi-output device and retry. Also, the bluetooth pairing order matters, for some reason that I don’t know. For my setup, I had to pair my Bose Soundlink headset before the Mpow headset, or else the Bose would disconnect.

Enjoy!

(Cat photo credit: fastcompany)

Apple Macbook Multi-output audio

multi-output-audio

I was trying to watch John Oliver with my fiance today and we had the eternal problem of 2 people trying to share a pair of headphones. I had a Bluetooth headset too and I wondered if we could stream audio over both these. Voila! Someone had already worked out this neat trick here:

http://bit.ly/1LseGRo

The last part about about sending output to a particular device is done by going into System Preferences > Sound > Output and selecting the multi-output device there.

TI Launchpad

TI-launchpad

Credit:TI

I got a new TI launchpad MSP430G2 board. This is a simple micro-controller board with built in flash emulation and debugging capability. You can use TI’s CCS or  Energia to communicate with it and flash your program.

I start with the simple example blink LED tutorial, which is quite fun 🙂

Lets see how I can hook it up with my Raspberry Pi to make something interesting.