Remotely Updating Raspberry Pi Software 'over the air' [closed] - raspberry-pi

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
We use a Raspberry Pi embedded computer to connect IP cameras on a customers network to our cloud based recording service.
We are using Raspbian and about 50% are Wheezy and 50% are Jessie.
The challenge we have is how to remotely update the software running on these IFUs.
Our current method involves using SSH and Ansible. We have a complex Ansible script that makes all the changes to the Raspberry Pi and we have automated this to an extent so we can updates lots of Raspberry Pi's at a time.
However, the problem is is that this is a non-atomic update. The Raspberry Pi's do not necessarily always have exactly the same package versions on them depending on when they were updated. Its also possible for an upgrade to fail half way through etc.
I am aware that there are a couple of ways of doing an atomic upgrade by downloading a new 'software image' and swapping over to using it instead using a bootloader. I think OpenWRT can do this as well as swupdate: https://github.com/sbabic/swupdate
Has anyone ever done something like this on a Raspberry Pi before?
Thanks

As a bit of an update to this question, I found a couple of ways of doing this.
The first thing to consider is that you do not have to stick with the RPI's default bootloader as #user3145836 pointed out. Uboot allows you to flip the boot partition.
The best option at the moment appears to be https://mender.io and this is the option that we have gone with.
If you can dockerize your app, https://resin.io/ is a nice hosted way of doing it.

Related

Raspberry Pi display all black [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I am trying to install Raspbian on Pi 3 but when I connect it to my monitor using Hdmi the screen is just all black and it doesn't say anything. I've tried searching online but all the answers I found I got confused, since most involve connecting using ssh or something while I can't even get it to turn on to connect it to wifi.
Look for a flash of green near the power led after you plug in the power, that should indicate its booting up okay. I'd suggest verifying the install on your sd card, flash another card and try that. Ensure the power plug you have is good quality and supplying the correct voltage.
Pre-answer: you might want to verify the install on the SD before spending too much time with blind boots.
Easy answer: use a wired usb adapter (preferably with an alternate source of power), then ssh and run raspi-config as I'm sure you've already read.
Moderate answer: stick the SD card in an adapter and edit the /boot/config.txt file. See here for syntax.
Advanced: Edit files as in moderate answer above, but this time target crontab to add a script hook that connects to wifi, thus allowing ssh.

Can Raspberry pi be configured as WIFI ap as well as client simultaneously? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I would like to know if it is possible to configure Raspberry pi to work as Wifi AP and client simultaneously. I googled and found the following link
Link
This link is not clear but it makes a reference to this Link-2
Link-2 has something mentioned like this: It seems likely, given the chipset, that the Raspberry Pi should be able to operate in both Access Point mode and client mode simultaneously. In other words, it can get its internet connection by joining on a wireless network, while simultaneously providing a second network as an access point to a ‘cloud’ of sensors. Which is what i'am looking for. I tried googling more, but could find setting up Raspberry pi as a Wifi AP only but not both simultaneously.
My question is: Is it really possible to set up Raspberry pi in with such a configuration mentioned in link-2. And if so can someone please tell me step-by-step to do it.
I have Raspberry Pi 3B with Raspbian Stretch.
You can't have multiple wifi services with single wifi-interface(built in interface).This is common to all devices not only raspberry pi.
What you could do is to have a separate USB wifi interface(adapter) for that.There are good external USB wifi adapters to purchase in very cheap prices as well.
Try one...

Raspberry pi as a universal remote [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I would like to know if I could use the raspberry pi phone as a universal remote. I am new to the raspberry pi. Would you recommend any parts for the device. If you are familiar with the pi phone them could you recommend any if blasters or batteries.
This is some hardcore serious overkill for a homebrew remote project.
you should be able to simply drive a normal IR-LED directly from one of the Digital Out lines on a raspberry pi board ( assuming that the PI phone leaves at-least one spare. ) The power consumption from something like that is a bit larger than what you would expect (therefore you would only get a few hours out of it. ) something like a ardunio would have a significantly longer battery life (and if you get creative and drop a capacitance sensor onto it to turn on and off the Touchscreen if you are holding it or not then you can have it live even longer. )
It is less than ideal due to the current draw from a IR LED, so a more suitable answer would be to run a transistor from the GPIO port and a secondary regulated power source for the LED.

Setting up a Raspberry Pi [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have just started trying to set up my new Raspberry Pi. I have installed NOOBS and it is now asking which operating system I would like to use. It is recommending 'raspbian'. could anybody tell me why raspbian is the best one to use?
Raspbian is perfect for beginners to the raspberry pi.
It is easy to set-up and use
There is lots of support available on-line for it, as most people are using it.
It is based on Debian which is a widley used OS.
It is specifically designed to run on the raspberry pi.
However it all depends on what you want to use your Pi for, raspbian is great for general use. But if you were looking to do something more specific, like set up a media centre you might want to use RaspBMC
Just to amplify Matthew's view, you'll also find most of the standard starter's printed documentation assumes Raspbian. You will also be amazed how easy it is to get the Pi going, getting network and internet connectivity and starting off with the applications built in.
For such as very very basic system, Pi/Raspbian does an awful lot for minimal effort.
You could do what I did and install NOOBS it comes preloaded with python 3, python 2, scratch, and a bunch more.(plus Raspbian).

Are there any programs that can simulate an unstable network connection? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
We need to simulate an unstable network connection to try to debug some connectivity issues in our server/client application and I was wondering if there are any programs out there that can simulate those conditions such as on a faint wireless network.
I'm not just referring to reducing bandwidth, but also reducing reliability, frequent on and off, short bursts of disconnectedness, etc.
I used a tool called netem that runs on linux. It allows you to increase packet loss at a given percentage, introduce delays within packets and handle packet re-ordering. Basically it's designed to emulate different networks.
All you need to get it up and running is a spare machine to install Linux on with a couple of Ethernet cards. Hook it up as a bridge, and run netem between them. Should be quite simple to do. I used it for my University project having no Linux experience, but I've probably still got all the setup instructions somewhere.
Ian's solution seems like a pretty good long term solution, but sounded a little involved for just some quick testing. (finding another machine, hooking it up, possibly setting up router stuff etc)
I ended up just using Net Limiter and randomly set the limit to something stupidly low manually (like 1 byte/sec) and that seems to be sufficient for our needs.
http://snad.ncsl.nist.gov/nistnet/
It's a little complicated to setup, but works very well.