Go to advanced search

by ZPMMaker
Wed Oct 23, 2019 2:36 am
Forum: Troubleshooting
Topic: udev rule for accessing USB light sensor
Replies: 14
Views: 562

Re: udev rule for accessing USB light sensor

Finally figured out what the cause of the problem was. I had copied the udev rules into a private Wordpress-based website, and was then copying it from that into the terminal window in which I was editing the udev rules file. Doing so changed the double-quotes into a slightly different character, wh...
by ZPMMaker
Tue Oct 15, 2019 7:09 am
Forum: Troubleshooting
Topic: udev rule for accessing USB light sensor
Replies: 14
Views: 562

Re: udev rule for accessing USB light sensor

So I tried to get this to work again today. I went into the rules file and realised that the upgrade to Stretch must've overwritten the file, because my old file was there renamed to 99-com.rules.dpkg-old and a new file (presumably installed by the Stretch upgrade) was saved to 99-com.rules. The sol...
by ZPMMaker
Wed Oct 02, 2019 11:24 am
Forum: Troubleshooting
Topic: udev rule for accessing USB light sensor
Replies: 14
Views: 562

Re: udev rule for accessing USB light sensor

Bump. Anyone have any other suggestions please?
by ZPMMaker
Sat Sep 28, 2019 1:12 am
Forum: Troubleshooting
Topic: udev rule for accessing USB light sensor
Replies: 14
Views: 562

Re: udev rule for accessing USB light sensor

OK, have you tried it using their python library? from yocto_lightsensor import * ... get_currentValue() # Returns the current value of the ambient light ... Sorry, didn't see this message yesterday. I haven't tried using their Python library because I'm not familiar with Python (nor any other prog...
by ZPMMaker
Sat Sep 28, 2019 12:17 am
Forum: Troubleshooting
Topic: udev rule for accessing USB light sensor
Replies: 14
Views: 562

Re: udev rule for accessing USB light sensor

Ok try a different microSD card with Raspbian Stretch Lite freshly installed and updated. Then install the sensor code. ... I also realise I can still also upgrade from Stretch to Buster, but this upgrade to Stretch just bricked that particular device, dunno why, can't SSH into it any more. RIP dev...
by ZPMMaker
Thu Sep 26, 2019 1:15 pm
Forum: Troubleshooting
Topic: udev rule for accessing USB light sensor
Replies: 14
Views: 562

Re: udev rule for accessing USB light sensor

Ok try a different microSD card with Raspbian Stretch Lite freshly installed and updated. Then install the sensor code. ... I also realise I can still also upgrade from Stretch to Buster, but this upgrade to Stretch just bricked that particular device, dunno why, can't SSH into it any more. RIP dev...
by ZPMMaker
Thu Sep 26, 2019 12:28 pm
Forum: Troubleshooting
Topic: udev rule for accessing USB light sensor
Replies: 14
Views: 562

Re: udev rule for accessing USB light sensor

Ok try a different microSD card with Raspbian Stretch Lite freshly installed and updated. Then install the sensor code. Sadly these are all remote systems, so I can't replace the SD cards without having them all sent back to me. However, I can control them via SSH. I just updated the system to Rasp...
by ZPMMaker
Thu Sep 26, 2019 2:00 am
Forum: Troubleshooting
Topic: udev rule for accessing USB light sensor
Replies: 14
Views: 562

Re: udev rule for accessing USB light sensor

Which version of Raspbian are you running on the zero ? Stretch or Buster or some other? And not sure if it makes any difference but your 99-com.rules seems to be missing the line SUBSYSTEM=="gpio", GROUP="gpio", MODE="0660" According to /etc/os-release and lsb_release -a, the systems are running R...
by ZPMMaker
Wed Sep 25, 2019 9:58 am
Forum: Troubleshooting
Topic: udev rule for accessing USB light sensor
Replies: 14
Views: 562

Re: udev rule for accessing USB light sensor

neilgl wrote:
Wed Sep 25, 2019 9:13 am
What happens if you do not change any rules but use sudo to run the "armhf binary" they supply? as per their example:

Code: Select all

sudo ./YModule inventory
That works fine (it outputs a list of connected sensors). But I don’t want to have to run it as root...
by ZPMMaker
Wed Sep 25, 2019 7:05 am
Forum: Troubleshooting
Topic: udev rule for accessing USB light sensor
Replies: 14
Views: 562

udev rule for accessing USB light sensor

I have about a dozen identical RPi Zero Wireless systems. I'm trying to get a USB light sensor to work with them. The problem is, when I run the command to get the light sensor reading, I get an error message: ERR: Cannot register usb: the user has insufficient permissions to access USB devices (ypk...
by ZPMMaker
Wed Dec 12, 2018 9:45 am
Forum: Raspbian
Topic: Run Bash script before shutdown or reboot
Replies: 5
Views: 1025

Re: Run Bash script before shutdown or reboot

Noob question, though. I note that one of the comments in that Stack Exchange link says "this also means that running my script through this folder will not be useful since it will happen too late". If this works, as it does, why not use it? I would assume that's because of some function(s) of the ...
by ZPMMaker
Wed Dec 12, 2018 9:28 am
Forum: Raspbian
Topic: Run Bash script before shutdown or reboot
Replies: 5
Views: 1025

Re: Run Bash script before shutdown or reboot

OK, I also posted in Stack Overflow earlier (before DirkS replied), but nobody had responded to me over there. So I went ahead and wrote an extremely-detailed explanation of how to get this to work using both methods. It is essentially a summary of everything I have learned today (but mostly about D...
by ZPMMaker
Wed Dec 12, 2018 8:57 am
Forum: Raspbian
Topic: Run Bash script before shutdown or reboot
Replies: 5
Views: 1025

Re: Run Bash script before shutdown or reboot

Ahhh, right. That's the problem. Thanks for that. Adding in the following to my script: mount -oremount,rw / my original touch command goes here mount -oremount,ro / ....works perfectly. Noob question, though. I note that one of the comments in that Stack Exchange link says "this also means that run...
by ZPMMaker
Wed Dec 12, 2018 6:50 am
Forum: Raspbian
Topic: Run Bash script before shutdown or reboot
Replies: 5
Views: 1025

Run Bash script before shutdown or reboot

I've gone through about two dozen websites trying to get this to work but it simply refuses to, and I'm starting to pull my hair out over it! I want to run a Bash script prior to either shutdown or reboot of my Pi (running the latest Raspbian). e.g. if I type in sudo shutdown now or sudo reboot now ...
by ZPMMaker
Sat Nov 03, 2018 10:50 am
Forum: General discussion
Topic: SSH tunnel to Pi via my own server
Replies: 3
Views: 702

Re: SSH tunnel to Pi via my own server

Never mind; got it working by following the steps at https://www.howtoforge.com/reverse-ssh-tunneling

Thanks again for your help. :)
by ZPMMaker
Sat Nov 03, 2018 5:14 am
Forum: General discussion
Topic: SSH tunnel to Pi via my own server
Replies: 3
Views: 702

Re: SSH tunnel to Pi via my own server

However, when I ran the first command (on the Pi), all it did was open a new SSH connection from the Pi to the EC2 instance (i.e. I could control the EC2 instance through the SSH connection I had made to control the Pi). This is correct, you will have the tunnel created anyway. There is an option f...
by ZPMMaker
Fri Nov 02, 2018 9:44 am
Forum: General discussion
Topic: SSH tunnel to Pi via my own server
Replies: 3
Views: 702

SSH tunnel to Pi via my own server

So I've tried about half a dozen different commercial SSH tunnelling services (e.g. Weaved/Remote-IoT/AWS Systems Manager, OpenPort, and so on) over the last year for remote controlling my RPis. They all have issues that make them unreliable. So I want to replace/augment them with my own SSH tunnels...
by ZPMMaker
Thu Aug 09, 2018 12:05 am
Forum: General discussion
Topic: Powering a USB hub from third-party 5V 2A solder pads
Replies: 10
Views: 746

Re: Powering a USB hub from third-party 5V 2A solder pads

The page you originally linked to is referring to the original Pi model B(1). That had fuses on each of the two USB ports to limit the current to under 140mA. You'd be better off looking at the "Power Requirements" section of the FAQ , which gives a list of each of the major models, the recommended...
by ZPMMaker
Wed Aug 08, 2018 5:08 am
Forum: General discussion
Topic: Powering a USB hub from third-party 5V 2A solder pads
Replies: 10
Views: 746

Re: Powering a USB hub from third-party 5V 2A solder pads

The Pi cannot provide more than 1.2A to the USB ports, combined, that is true. If, however, you are using only one port, it has all of that 1.2A to itself. Sadly, I need to use three of the USB ports, so not all of the 1.2A can go to the camera itself. I’m curious to know, though, where you found t...
by ZPMMaker
Wed Aug 08, 2018 4:38 am
Forum: General discussion
Topic: Powering a USB hub from third-party 5V 2A solder pads
Replies: 10
Views: 746

Re: Powering a USB hub from third-party 5V 2A solder pads

Paul Hutch wrote:
Tue Aug 07, 2018 6:07 pm
So cutting the cord and hooking it up to a different 5V @ 2A power source should be fine.
Excellent; thanks for your advice. I’ll give it a go.
by ZPMMaker
Wed Aug 08, 2018 4:37 am
Forum: General discussion
Topic: Powering a USB hub from third-party 5V 2A solder pads
Replies: 10
Views: 746

Re: Powering a USB hub from third-party 5V 2A solder pads

The problem is the RPi USB hub doesn't provide enough current to charge the camera's internal battery. I don't understand. An RPi3B is able to provide up to 1.2 amps from a single one of its 4 USB ports. That's far in excess of the USB2.0 spec. So what spec of USB port is the camera supposed to wor...
by ZPMMaker
Tue Aug 07, 2018 2:01 pm
Forum: General discussion
Topic: Powering a USB hub from third-party 5V 2A solder pads
Replies: 10
Views: 746

Powering a USB hub from third-party 5V 2A solder pads

Hi folks, I realise this isn't directly a Raspberry Pi question, but I'm hoping someone here knows the answer to my problem. I have a Raspberry Pi 3 and a USB camera (the Raspberry Pi camera module isn't suitable for my project). I am planning to use the new LiFePo4wered/Pi+ module (which I will con...
by ZPMMaker
Fri Jul 13, 2018 12:52 am
Forum: Troubleshooting
Topic: RPi3 freezes when uploading to AWS S3 via 4G
Replies: 2
Views: 482

Re: RPi3 freezes when uploading to AWS S3 via 4G

Fixed it.
Turns out there was an error in my version of the AWS CLI tools.

A simple application of

Code: Select all

sudo pip install --upgrade awscli
updated AWS CLI and fixed the issue. :roll:
by ZPMMaker
Thu Jul 12, 2018 11:44 pm
Forum: Troubleshooting
Topic: RPi3 freezes when uploading to AWS S3 via 4G
Replies: 2
Views: 482

Re: RPi3 freezes when uploading to AWS S3 via 4G

Ok, bit of an update on this one... A friend directed me to /var/log/ (which I had no idea existed, silly me). I scoured through every log file in that folder. I only found something unusual in /var/log/syslog https://s3-ap-southeast-2.amazonaws.com/ionthesky/PiLogs/log4GS3logout.jpg At roughly 22:0...
by ZPMMaker
Thu Jul 12, 2018 6:23 am
Forum: Troubleshooting
Topic: RPi3 freezes when uploading to AWS S3 via 4G
Replies: 2
Views: 482

RPi3 freezes when uploading to AWS S3 via 4G

Hi all. Got myself a puzzling problem... I have a Raspberry Pi Model 3B, a Sense HAT plugged into it via the GPIO pins, and a 4G/LTE modem and a camera plugged in via USB. My goal is to make a 4G-connected camera that automatically takes a photo every 5 mins and uploads it to AWS S3, and collects se...

Go to advanced search