Raspberry Pi

167

Solutions

287

Contributors

The Raspberry Pi Foundation works to put the power of digital making into the hands of people all over the world, so they are capable of understanding and shaping our increasingly digital world, able to solve the problems that matter to them, and equipped for the jobs of the future.

We provide low-cost, high-performance computers that people use to learn, solve problems and have fun. We provide outreach and education to help more people access computing and digital making. We develop free resources to help people learn about computing and how to make things with computers, and train educators who can guide other people to learn.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hello,

  My company just purchased a Raspberry Pi unit.  With it, we would like to have a power point saved to the unit that will autorun on startup and loop continuously.  Once one is setup we will put 3-4 more throughout the building for tours.  

  I have loaded Wheezy Rhaspian 7-26-13 onto the SD card and it runs fine.  

  I put LibreOffice onto the system, and moved Libre-Impress.desktop into the .config/autorun folder.  

  When I boot up, an error comes up when Libre-Impress tries to load, stating, /Home/pi/U% Does not exist.  

  I am not sure what to do from here.  

  Also, I would like a specific .pptx to auto load.  I already changed the macro file to allow me to auto format things such as full screen and invisible mouse.  At this point it is just the autorun/ autoplay feature that is required.  

  Any help is appreciated.
0
Hi,

I've got a Raspberry Pi Rev B, and whenever I boot it the ACT (green) LED flashes 8 times... pauses, then repeats.  I've tried creating the boot SD card on a mac with dd, with the "install" shell script, and using Win32DiskImager on Windows XP.  It's always the same result.

I'm using an 8G Lexar category 4 SD card, which is known good from my camera.

I found a web page that gives the flash codes for up to 6 flashes, but nobody seems to know what 8 means. :-/

If I boot it without any SD card, then the red LED comes on but nothing on the green LED... so it's definitely something weird.  Maybe I'll try a new SD card, but if someone knows what the 8 flashes means then that would mean full points.

Many Thanks.
Greg.
0
So, i wrote a C program that loads in an ASCII file line-by-line using code like the below.  This worked fine compiled down to windows and to ubuntu, but we tried to compile it onto a raspberry pi (which I think runs a variant of debian linux), it didnt process the file correctly.  It seemed (but not sure) to be loading the entire file into one line; ie not detecting the '/n' as an end of line and loading the whole file into line_data.

We have double checked the data file, and they are each encoded properly (ie line endings) for the operating system.

So my questions are;

1) isn't '\n' supposed to be the portable way to detect an end of line?
2) if not, what IS the portable way?

Thanks for any  help.

        while (!done_reading)
        {
            ch = getc(fp);
            if (ch == EOF) done_reading = true;
            if ((ch == '\n') || (ch == EOF))
            {
                   // process the complete line in line_text
                   line_length=0;
            }
            else
            {
                  line_text[line_length] = ch;
                  line_length++;
            }
      }

Open in new window

0
Hi,

I have a raspberry pi (openelec) with xbmc and bought this keyboard Rii mini (http://www.riitek.com/en/product-detail-422.html).

Not all buttons are working (like home, mute et).
Any idea how I can make them work?

J.
0
Hi,

I have a working config of XBMC on a SSD, how can I correctly backup this config and (if needed) make a new ssd in case of a crash?

Thanks!
J.
0
Hi,

I have a Raspberry Pi with XBMC (Openelec). I configured first of all the videos but they are not showing correctly in begin screen in submenu's. Everything is together in one big menu of Movies.

Please advise howto configure correctly. Any other startup tips howto configure the best way on this great piece (but limited in resources) of hardware are welcome!

Regards,
J.
0
Hi,

I have a XBMC on Raspberry Pi - Open Elec. Most videos play correctly but some, like DVD, play output like a volume meter.

Probably I need to install some kind of plugin?

Please advise.

J.

Note: I found this, but the video is DVD (TS_VIDEO) not MPEG2 ...?

http://mymediaexperience.com/raspberry-pi-xbmc-with-raspbmc/

Install MPEG-2 and VC1 video codecs

In order to play MPEG-2 and VC1 video files, you will need to purchase codec licenses from the Raspberry Pi foundation.

Install the codecs by following these steps:

    Purchase MPEG-2 and VC1 codec license keys
    You will receive the license key from your email within 72 hours
    In Raspbmc, go to Programs > Raspbmc Settings > System Configuration
    Enter the license key from your email to MPEG-2 and/or VC1 codec under the Advanced system settings
    Reboot the system
0
Hi,

Please see this overview.
https://www.dropbox.com/s/ghewtpjsvbypy1h/Overview.pdf 

It works fine as long as I keep the resolution of my XBMC to 1280 x 720 but for some reason sometimes it switches to 1280 x 768 and I get "video mode not supported".

I have to play around with the s-video of the raspberry again and again, reboot and reboot, then I can set video to 1280 x 720, I get "video mode not supported" (s-video connected) and switch to hd output (on tv) to accept the settings.

Is there a way to let XBMC NOT change resolution?

Please advise.
J
0
Does anyone know if novell 7/groupwise be loaded on a raspberry PI and work like a normall novell server..

Reason for asking I like to setup a mail server on a raspberry PI for power reasons..
0
So, I am experimenting with a Raspberry Pi computer, fairly inexperienced in linux but lots of windows and programming experience.  I'm following these instructions to get my computer talking MODBUS over ethernet.

http://www.ostafichuk.com/raspberry-pi-projects/modbus-on-the-pi/

Basically I ran "sudo apt-get install libmodbus5 libmodbus-dev" which seemed to execute okay (to my novice eye) lots of feedback but no errors or warnings.

Then I wrote some sample code which has #include "modbus.h" and calls functions which (according to the documentation) should be in modbus_new_tcp(), etc.  Then I ran the recommended compiling command:

$gcc bandwidth-server-one.c -o bandwidth-server-one `pkg-config –libs –cflags libmodbus`

Open in new window


but first it had trouble finding the modbus.h file.  So I found the file in /usr/include and I included (after google searching) the parameter to my command:

$gcc bandwidth-server-one.c -o bandwidth-server-one `pkg-config –libs –cflags libmodbus` -I/usr/include/modbus

Open in new window


and it found the include file but reported a bunch of "undefined reference" errors for my modbus calls such as modbus_new_tcp.

Then I found the library (I think) in /user/lib, specifically these files:
/usr/lib/libmodbus.so (shortcut)
/usr/lib/libmodbus.so.5 (shortcut)
/usr/lib/libmodbus.so.5.0.2

So I added the -L option as follows:

$gcc bandwidth-server-one.c -o bandwidth-server-one `pkg-config –libs –cflags libmodbus` -I/usr/include/modbus -L/usr/lib

Open in new window


and I still got the undefined reference errors.

So it appears that the "apt-get" command didn't do EVERYTHING I needed to do to start using this library, or I am executing the compiler incorrectly.

Can any of you linux experts please give me some pointers?  

I really appreciate any thoughts.
0
So I have a small python script that sends a single character by serial (pySerial) over a tty connection, a couple of times.

import serial
ser = serial.Serial('/dev/ttyACM0',9600)
ser.write('2')
ser.write('4')

Open in new window


When I run the above line-by-line in LXTerminal (e.g. Miniterm), it works great.
However, I tried to put the code into a .py file as below, it doesn't seem to send anything over serial... but prints any print statements I throw in just fine.

#!/usr/bin/env python2.7
import serial
import time
time.sleep(1)
ser = serial.Serial('/dev/ttyACM0',9600)
time.sleep(5)
ser.write('2')
time.sleep(1)
ser.write('4')
time.sleep(3)

Open in new window


The .py file does have execute permissions.
I'm running the script by cd'ing to the correct directory, then ./scriptName.py
Non-serial commands in a similar script setup work fine.
Per this pySerial FAQ, I tried adding delays. Didn't help.

Any ideas?

P.S. -- Big picture -- I'm using this for communication between a Raspberry Pi and an Arduino. The device is on the port mentioned in the script. Eventually, I need to get this to run via a webserver somehow (later). Hence, the python.
0
Hi All,

There's an option to disable DTS in the menu of the Raspbmc, but everytime I try to disable it, the device freezes.

Is there a way to do it via SSH?


Thanks
0

Raspberry Pi

167

Solutions

287

Contributors

The Raspberry Pi Foundation works to put the power of digital making into the hands of people all over the world, so they are capable of understanding and shaping our increasingly digital world, able to solve the problems that matter to them, and equipped for the jobs of the future.

We provide low-cost, high-performance computers that people use to learn, solve problems and have fun. We provide outreach and education to help more people access computing and digital making. We develop free resources to help people learn about computing and how to make things with computers, and train educators who can guide other people to learn.