You are going to have to restart your Raspberry Pi (probably by unplugging it, since you can't run the shutdown or reboot commands). You may have to reflash your SD card if this corrupts your image.
Some process is leaking memory, so other programs can't use it. To get an idea of what is causing this, run:
ps --sort -rss -eo rss,pid,command | head
What you are referring to is called Software Serial, where bytes are bit banged and create the same effect as a serial port.
Using a normal Linux distribution the answer is, No. The reason is because bit banging required real time processing of data, otherwise the data will just be junk.
This answer at Electronics Stack shows a USB board with 4 hardware ...
Create an init.d script to run your application
you can run the mono service in linux OS by using the command
mono-service [options] program.exe call this from an init.d sript
Check this man page for more details about running mono service on linux
Mono works absolutely fine on a Pi - we already have a tag and a few dozen questions on the topic.
Getting started should be as straightforward as punching in:
sudo apt-get update
sudo apt-get install mono-complete
I would consider this to be pretty significant. It's due to Mono's lack of support for hardfp, and it affects more than just DateTime.
Here's the bug as it's being tracked by the Mono project: Bug 7938 - mono doesn't work on hard float abi on ARM. If you look at the bottom of that page, you'll see that there are two other bugs that have been determined to ...
First: create a start.sh file like this:
Second: make this file executable
chmod +x start.sh
Third: setup crontab on startup
and add reboot file:
on bottom, save and exit, reboot
If you don't want to write a debian style sysv init script (see /etc/init.d/README), you can just append a line to /etc/rc.local, eg:
The full path is necessary as $PATH may not be properly set for rc.local when it is run at boot (but it will be for "myprogram").
The & just backgrounds the process, allowing rc.local to ...
There is a project called Raspberry♯ (RaspberrySharp)
At the site you find a sub project called raspberry-sharp-io which contians examples on how to use the SPI, I2C, GPIO and some other general purpose things.
You can get the GPIO using Nuget
but to use the SPI you will need to compile or add the ...
You need to add the -c option to the argument string for /bin/bash:
proc.StartInfo.Arguments = "-c raspistill -o image.jpg";
I get the same cannot execute binary file when I try to run /bin/bash /usr/bin/raspistill -? from the command line.
raspberrypi ~ $ /bin/bash /usr/bin/raspistill -?
/usr/bin/raspistill: /usr/bin/raspistill: ...
You need to use RS485 for connecting instead of RS232. Then you can have single master (RPi) polling multiple slaves (AVRs) one after another in a loop. For this you can use MODBUS or some other similar communication protocol.
You can try and use the bash invocation read and execute -c and quoted command line (This is supposed to solve character escaping)
Process proc = new Process();
proc.StartInfo.FileName = "/bin/bash";
proc.StartInfo.Arguments = "-c 'echo p1-22=250 > /dev/servoblaster'";
proc.StartInfo.UseShellExecute = true;
proc.StartInfo.RedirectStandardOutput = false;
Since answers that link to other sites are discouraged, I am summarizing the procedure from the link @Senten provided. All credits to these instructions go to the author of the linked site, Jan Karres.
1) All commands should be issued as root:
1.5) If you have previously uninstalled dphys-swapfile:
apt-get install dphys-swapfile
2) Set the swap ...
This works for me on my Pi. I'm using a version of Mono that I compiled back in December before the patch for hard-float and Mono was released. Here's the output I get. I suspect that the issue has to do with the internationalization of the decimal point character.
Here is the output of mono --version:
Mono Runtime Engine version 3.2.7 (master/e42840f ...
What am I doing wrong?
Using /etc/profile to run a boot service. But that's not the cause of this particular problem.
The Pi does not have a real time clock like standard computers. The system has no way of knowing the actual time when booted. Raspbian uses an NTP client to get the correct current time from the network, but obviously this requires a ...
Yep, @Aurora0001 you're right, thanks!
So, I did only sudo apt-get install mono-complete which installed the Mono 3.2.8 instead the latest version.
I forgot add the Mono repository to my system:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/...
You do need to follow the instructions at: Mono - Download
The problem is that they are missing a step. Those steps will only upgrade our repo list so that it will find the right version of mono to install, but they do not install it or upgrade an existing installation.
If you want to upgrade an existing installation, you need to follow up with:
Apache2 server gets confused when it sees that the apache2.conf file's , also referred to as httpd.conf file, Mono settings conflict with the mono settings in mono-server4-hosts.conf if debian.webapp is not completely configured. For example, a completey configured debian.webapp looks like this:
I figured this out. I had done some exceedingly stupid things first time round. Ultimately I ported the code posted here: http://abyz.me.uk/rpi/pigpio/ex_rotary_encoder.html, which provided a really useful starting point.
With the rotary encoder pins hooked to connector pin 24 (referenced by the library as Pin08), ground and connector pin 26 (referenced by ...
you will need to make some tweaks to OpenTK to get it working on the Pi. I did have a blog post on the subject but after a site hack I lost it but web archive has it
bascially, you need to hack your own version of GLES (because by default ...
The standard 1602 tpye character LCDs do not have an I2C interface as far as I know. Do you have an LCD display that has some active components added to work with I2C (I know people build PCB around them just for that)?
The LCDs without any added PCB circuitry I've seen use either a 4 or 8 bits mode (which you should probably get from the GPIO pins of the ...
It's hard to see any use for the 6 1.5V cells. They are unlikely to reliably power the Pi for more than a few minutes.
The 3V cell might be useful if you want to attach a RTC to the Pi so that it can know the time when it is powered up.
I'd power the Pi and everything else from the lead acid cells.
A UBEC is an obvious candidate to power the Pi. It ...
This is a known issue with the version of mono in raspbian (currently all releases), it is belived to be related to an incomplete implementation of the arm hard float ABI. It appears to have been fixed in more recent versions of mono upstream.
There is a repo I put together with more recent mono packages. I believe they fix the issue with the windows forms ...
I see in the datasheet you linked to that the levels are CMOS level not true RS232 level. Have you checked that the serial hardware you use on the Raspberry Pi accepts these non-RS232 levels ? See also https://raspberrypi.stackexchange.com/questions/12850/raspberry-pi-serial-communication .
As always, when something goes wrong first try so simplify it: remove layers until you find two similar situations, one that works one that does not work.
In this case, you should probably try things like
stty </dev/ttyAMA0 # to show current port settings
stty </dev/ttyAMA0 9600 # or whatever baud rate, so stty --help or man stty for other options ...
There is only 1 usb root hub on the pi. There is little difference if you put everything on the hub or if you use 2 hubs or whatever, except for power usage: some wifi dongle can operate directly, some require a powered hub.
The Pi ports can only provide 350mA IIRC, which is about half the USB standard maximum.
I can't tell you for the mice, but the wifi ...