Streaming live video from the 3DR Solo

I have had a 3DR Solo drone since last summer and have been looking for interesting ways to expand its capabilities. One thing that I thought should be possible is to stream live video from the drone while it’s in flight. The Solo controller has an HDMI port to push video to a monitor but I wanted to see if I could get to the video stream directly, through software. I’m proud to say that I figured out how to do it.

First you need a separate computer, preferably a laptop or something portable. The computer will need to connect to the WiFi network that the Solo controller creates. Once you’ve got your computer joined, make sure it’s connected by pinging the controller (IP address 10.1.1.1).

Next, create an SDP file on your laptop as discussed on the 3DR Solo wiki.

c=IN IP4 10.1.1.1
m=video 5600 RTP/AVP 96
a=rtpmap:96 H264/90000
t=0 0

… save this as sololink.sdp.

The controller will only stream video if it’s got a TCP connection from the host requesting a stream. In a terminal window, connect to the controller as follows:

telnet 10.1.1.1 5502

or

nc 10.1.1.1 5502

Now the controller should be able to stream video using a tool such as VLC or ffmpeg. For VLC, open the osololink.sdp file you created above. You should see the drone video appear on your laptop. VLC is nice for checking the video but I haven’t worked out how to send it to YouTube yet. I believe it does not properly handle the RTMP media format that YouTube needs, though I’m not sure of this.
Continue reading

How to reset your body clock, and get better sleep, with hiking boots and a tent – The Washington Post

How to fix poor sleep brought on by modern technology: go camping!

Are you sick of going to bed late and waking up tired? Then grab your hiking boots and a tent. A new study suggests that a couple days of camping in the great outdoors can reset your circadian clock and help you get more sleep.

The circadian clock is an internal system that tells your body when it’s time to go to sleep and when it’s time to wake up. Scientists track this clock by measuring the amount of melatonin circulating in a person’s blood at any given time.

In a healthy sleeper, melatonin levels rise a few hours before bedtime, stay high through the night and then settle back down to daytime levels when it’s time to wake up. The period when melatonin levels are elevated is known as biological night.

In our modern society, biological night does not usually coincide with night in the natural world. Most of us stay up many hours past sunset, and we would probably sleep in many hours after sunrise if we could.

The trouble is, if your biological night begins at midnight or later, your melatonin levels may still be high when your alarm clock goes off in the morning. This leads to grogginess, and it may have other consequences, researchers say. Diabetes, obesity and heart disease have all been associated with not getting enough sleep.

Research by integrative physiology professor Kenneth Wright of the University of Colorado at Boulder found that people reset their circadian clocks by taking a six-day summer camping trip in the Rocky Mountains.

Source: How to reset your body clock, and get better sleep, with hiking boots and a tent – The Washington Post