Hot answers tagged

9

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 You ...


7

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 ...


6

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 http://linux.die.net/man/1/mono-service


5

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


4

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 ...


4

Did you try using a SWAP-File? http://jankarres.de/2012/11/raspberry-pi-swap-erweitern/ The Tutorial is in German but the commands should be the same ;)


4

First: create a start.sh file like this: cd /home/pi/Test mono monoApp.exe Second: make this file executable chmod +x start.sh Third: setup crontab on startup crontab -e and add reboot file: @reboot /home/pi/start.sh on bottom, save and exit, reboot


3

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: /full/path/to/myprogram & 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 ...


3

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 Install-Package Raspberry.IO.GeneralPurpose but to use the SPI you will need to compile or add the ...


2

Update 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: ...


2

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.


2

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; ...


2

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: sudo su 1.5) If you have previously uninstalled dphys-swapfile: apt-get install dphys-swapfile 2) Set the swap ...


2

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 ...


2

You could use Mono with Xamarin studio. I did some basic application in wheezy, the GUI update speed is quite low.


2

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 ...


2

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/...


2

It turns out I the problem was with the C# app. It was listening on the local address: IPAddress.Loopback When apparently to be accessible on the network it needs to listen on: IPAddress.Any


2

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: sudo apt-...


1

I had the same error while working on opencv, cv2.imshow(). Try replacing the host server. I replaced tightvncserver with x11vncserver and things worked like a charm.


1

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: <apps> <web-application> <name>test&...


1

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 ...


1

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 http://web.archive.org/web/20121203091113/http://infinitespace-studios.co.uk/2012/11/14/monogame-on-the-raspberry-pi/ bascially, you need to hack your own version of GLES (because by default ...


1

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 ...


1

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 ...


1

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 ...


1

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 .


1

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 ...


1

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 ...


1

I had to go to 1.0.rc.2 to get it compiling. Also, I did a sudo su - before running instead of as pi. So gem uninstall albacore gem install albacore --version "~> 1.0.rc" then rake mono


Only top voted, non community-wiki answers of a minimum length are eligible