Go to advanced search

by boylesg
Mon Jul 04, 2016 9:45 am
Forum: Python
Topic: Serial communication Tx/Rx
Replies: 19
Views: 11841

Re: Serial communication Tx/Rx

Don't know how but it appears my serial port has renamed from ttyAMA0 to tty0. And I still get permission denied when I try to open it in python. Any further suggestions. Actually what had happened here is that I disabled login over serial in raspi-config which apparently also disables the UART ser...
by boylesg
Mon Jul 04, 2016 9:12 am
Forum: Python
Topic: Serial communication Tx/Rx
Replies: 19
Views: 11841

Re: Serial communication Tx/Rx

Don't know how but it appears my serial port has renamed from ttyAMA0 to tty0.
And I still get permission denied when I try to open it in python.
Any further suggestions.
by boylesg
Sun Jul 03, 2016 6:14 pm
Forum: Python
Topic: Serial communication Tx/Rx
Replies: 19
Views: 11841

Re: Serial communication Tx/Rx

Ah ha!

Found this for disabling pi login over serial.

http://www.instructables.com/id/Read-an ... pberry-Pi/
by boylesg
Sun Jul 03, 2016 4:10 pm
Forum: Python
Topic: Serial communication Tx/Rx
Replies: 19
Views: 11841

Re: Serial communication Tx/Rx

Looks like this ttyAMA0 business is bogus. It appears as though the serial port is tty1 because port = serial.Serial('/dev/tty1', baudrate=9600) works in python for me. Found tty1 in /boot/cmdline.txt You are supposed to remove console=tty1 from the line of text in that file which, as I understand i...
by boylesg
Sun Jul 03, 2016 4:02 pm
Forum: Python
Topic: Serial communication Tx/Rx
Replies: 19
Views: 11841

Re: Serial communication Tx/Rx

Why is this so bloody difficult??? Raspberry Pi Serial GPIO Configuration 0. if you have not seen my article on how to remote access your Raspberry Pi, take a look here: https://oscarliang.com/setup-raspberry-pi-for-remote-access/ 1. In order to use the Raspberry Pi’s serial port, we need to disable...
by boylesg
Sun Jul 03, 2016 3:32 pm
Forum: Python
Topic: Serial communication Tx/Rx
Replies: 19
Views: 11841

Re: Serial communication Tx/Rx

DougieLawson wrote:How about sudo adduser -G tty pi ? Or you've got to write a udev rule to change the ownership every time you reboot.
Option g is ambiguous (gecos, gid, group)
by boylesg
Sun Jul 03, 2016 3:07 pm
Forum: Python
Topic: Serial communication Tx/Rx
Replies: 19
Views: 11841

Re: Serial communication Tx/Rx

DougieLawson wrote:
boylesg wrote:sudo chown pi:pi /dev/ttyACM0

This did the trick.
That's an ugly temporary hack. Add user pi to the tty group or your program will break next time you reboot your RPi.
'sudo adduser pi dialout' does nothing to solve the problem in python.

The 'ugly hack' is the only thing that works at present.
by boylesg
Sun Jul 03, 2016 2:23 pm
Forum: Python
Topic: Serial communication Tx/Rx
Replies: 19
Views: 11841

Re: Serial communication Tx/Rx

I have my arduino uno connected to my pi tx/rx pins on the pi and D5 and D6 on the uno. I am using SoftwareSerial on the Uno. I seem to be getting a bit of garbage in ArduinIDE serial monitor. I am wondering if software serial on the UNO is a problem for the Pi - I was reading some where that softwa...
by boylesg
Sun Jul 03, 2016 2:05 pm
Forum: Python
Topic: Serial communication Tx/Rx
Replies: 19
Views: 11841

Re: Serial communication Tx/Rx

sudo chown pi:pi /dev/ttyACM0

This did the trick.
by boylesg
Sun Jul 03, 2016 1:55 pm
Forum: Python
Topic: Serial communication Tx/Rx
Replies: 19
Views: 11841

Re: Serial communication Tx/Rx

Still get permission denied. Do you need to restart the Pi or something for the change to take effect? You need to log out and log back in for user permission changes to take effect. If it doesn't work could you say what ls -l /dev/ttyAMA0 reports? crw--w---- 1 root tty 204, 64 Jul 3 23:48 /dev/tty...
by boylesg
Sun Jul 03, 2016 1:49 pm
Forum: Python
Topic: Serial communication Tx/Rx
Replies: 19
Views: 11841

Re: Serial communication Tx/Rx

bensimmo wrote:Is it not serial0 now, especially if using the Pi3?
Would the Bluetooth deny access to ttyAMA0 ?

Of course it could be the other Pi's?


I never had to alter any groups (but I am 'pi') to get serial working.
Pi 2 B+ I think it is.
by boylesg
Sun Jul 03, 2016 1:06 pm
Forum: Python
Topic: Serial communication Tx/Rx
Replies: 19
Views: 11841

Re: Serial communication Tx/Rx

Still get permission denied.

Do you need to restart the Pi or something for the change to take effect?
by boylesg
Sun Jul 03, 2016 12:20 pm
Forum: Python
Topic: Serial communication Tx/Rx
Replies: 19
Views: 11841

Serial communication Tx/Rx

I tried the following but I get a permission denied error in Python:

Code: Select all

import serial
port = serial.Serial("/dev/ttyAMA0", baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=3.0)
So how do you do this correctly.

I am a complete newbie to python by the way.
by boylesg
Sat Jul 02, 2016 3:05 pm
Forum: Advanced users
Topic: Streaming the PiCamera
Replies: 3
Views: 1085

Re: Streaming the PiCamera

Thank you VERY MUCH folks. I ended up landing on this page and successfully installed it all. http://elinux.org/RPi-Cam-Web-Interface It is EXACTLY what I wanted and all without having to build it all from scratch. It is always much more convenient to gain an understanding of things like this by rev...
by boylesg
Sat Jul 02, 2016 7:23 am
Forum: Camera board
Topic: Raspivid streaming Pi camera to web page
Replies: 1
Views: 10368

Raspivid streaming Pi camera to web page

I found a website that explained how to stream the pi camera to pot 80 on the Pi and to then access that video via the ip address of your pi. But is it possible to to also host a website on the pi and have raspivid stream to that internal web page such that you can access both the website and the st...
by boylesg
Thu Jun 30, 2016 3:46 pm
Forum: Advanced users
Topic: Streaming the PiCamera
Replies: 3
Views: 1085

Streaming the PiCamera

I have seen raspivid examples where you stream the picamera to an external website such as youtube. But my situation and goals is this. I have created a record on FreeDNS and ADLS modem port forwarding entry such that I can access a web page hosted on my RPi via boylesg.privatedns.org:81 In that web...
by boylesg
Mon Jun 27, 2016 4:02 pm
Forum: Troubleshooting
Topic: Ring Voip software
Replies: 3
Views: 2253

Re: Ring Voip software

I have installed the linux version of this on my raspberry pi - it is supposed to be compatible. Except that I have no idea how to run it. No desktop icon has been created and I have no idea where in the folder structure it has installed itself. Has any body used this software on raspberry pi and i...
by boylesg
Mon Jun 27, 2016 2:32 pm
Forum: Troubleshooting
Topic: Ring Voip software
Replies: 3
Views: 2253

Ring Voip software

I have installed the linux version of this on my raspberry pi - it is supposed to be compatible. Except that I have no idea how to run it. No desktop icon has been created and I have no idea where in the folder structure it has installed itself. Has any body used this software on raspberry pi and if...
by boylesg
Mon Jun 27, 2016 11:20 am
Forum: Advanced users
Topic: Streaming audio from an electret microphone to a web page
Replies: 2
Views: 4771

Streaming audio from an electret microphone to a web page

Can anyone point me in the direction of a web page that explains how to do this step by step?
by boylesg
Sun Jun 26, 2016 7:23 am
Forum: Beginners
Topic: Lost the Eject media icon on the task bar
Replies: 2
Views: 552

Re: Lost the Eject media icon on the task bar

JimmyN wrote:Right click in the taskbar.
Click on "Add/Remove Panel Items".
Click on the "Add" button.
Scroll down the list till you see "Ejecter" and add it.
Thankyou Jimmy
by boylesg
Sat Jun 25, 2016 5:31 pm
Forum: Other programming languages
Topic: PHP exec() not working as expected
Replies: 8
Views: 2604

Re: PHP exec() not working as expected

stderr wrote:
boylesg wrote: now I get "Array ( [0] => * failed to open vchiq instance ) 255" on my web page.
Isn't that due to whatever user is running the code isn't part of the video group?
You tell me - I am new to doing web pages on Raspberry Pi.

How do I fix it?
by boylesg
Sat Jun 25, 2016 5:16 pm
Forum: Other programming languages
Topic: PHP exec() not working as expected
Replies: 8
Views: 2604

Re: PHP exec() not working as expected

Looks like you are getting the return code from your exec() call. Can you post the code from the entire page? I just noticed a typo in my code "print_r($rrayOutput);" instead of "print_r($arrayOutput);" But I fixed it as below and now I get "Array ( [0] => * failed to open vchiq instance ) 255" on ...
by boylesg
Sat Jun 25, 2016 5:05 pm
Forum: Beginners
Topic: Lost the Eject media icon on the task bar
Replies: 2
Views: 552

Lost the Eject media icon on the task bar

Can anyone tell me how to put it back?
by boylesg
Sat Jun 25, 2016 4:34 pm
Forum: Other programming languages
Topic: PHP exec() not working as expected
Replies: 8
Views: 2604

PHP exec() not working as expected

I have installed apache on my RPi. And I have a very simple php web page. All I am doing is calling exec("python StartCamera.py", $arrayOutput, $nReturn); and then echoing the results. All I get is 255. I should be getting an error message because the camera is not connected. If I run this code in P...
by boylesg
Sat Jun 25, 2016 3:23 pm
Forum: Beginners
Topic: File manager
Replies: 4
Views: 1232

Re: File manager

But is their an option some where to make this permanent.

I am trying to edit web pages in var/www/html and it is a pain having to constantly do command line stuff when you should be able to do it through file manager.

Go to advanced search