Go to advanced search

by thagrol
Fri Feb 15, 2019 7:04 pm
Forum: Networking and servers
Topic: Creating a router with a Raspberry Pi (DHCP not working)
Replies: 2
Views: 64

Re: Creating a router with a Raspberry Pi (DHCP not working)

Can't help with trouble shooting but I did notice that the article you linked is for Ubuntu not Debian. Yes, I know Ubutntu is derived from Debian but they're not the same. And when you say Debian what do you actually mean, and which version? The RPF's tutorial on creating an AP using a Pi (see http...
by thagrol
Fri Feb 15, 2019 6:37 pm
Forum: Advanced users
Topic: gadget USB device not recognized during boot.
Replies: 14
Views: 214

Re: gadget USB device not recognized during boot.

That wasn't hippy, that was me. sorry about that... just used the quote function in the editor and didn't check that it quoted the right person. np. Just making sure blame goes the right way :) For reference I am using usbProxy to manipulate some data being sent to a USB printer. This is often (but...
by thagrol
Fri Feb 15, 2019 3:58 pm
Forum: Advanced users
Topic: gadget USB device not recognized during boot.
Replies: 14
Views: 214

Re: gadget USB device not recognized during boot.

Thanks again guys Another option might be to use a gpio circuit that pulls the ID pin low (which puts dwc2 into host mode) and releases it once the gadget is ready. However, that might result in both the PC and the Pi trying to power and probe the USB bus. I've no idea whether that's safe and it's ...
by thagrol
Fri Feb 15, 2019 3:55 pm
Forum: Advanced users
Topic: gadget USB device not recognized during boot.
Replies: 14
Views: 214

Re: gadget USB device not recognized during boot.

OK. I've dome some more digging. It appears tha the dwc2 module is the culprit, well that and windows. At some point, before your gadgets have loaded/been configured windows seems to be requesting a device descriptor. dwc2 isn't responding to that request (windows device manager shows "Unknown USB D...
by thagrol
Fri Feb 15, 2019 12:05 pm
Forum: Off topic discussion
Topic: Is ARM doomed?
Replies: 14
Views: 355

Re: Is ARM doomed?

Imperf3kt wrote:
Fri Feb 15, 2019 8:03 am
Correct me if I'm wrong, but doesn't RISC run on ARM?
Edit: Seems to be a processor design maybe I am wrong

Personally, I refuse to use RISC. Tried RISC OS once, took half an hour to figure out how to shut it down.
Best stop using Pi then. And your smartphone.
by thagrol
Fri Feb 15, 2019 12:02 am
Forum: Advanced users
Topic: gadget USB device not recognized during boot.
Replies: 14
Views: 214

Re: gadget USB device not recognized during boot.

Despite my comments above, I'm not sure what's actually going on though it has to be somewhere in the interaction between the SoC boot code, windows (which version?), dwc2, the module(s) providing gadgetfs, and the way the OP is configuring their gadget(s). Unfortunately it's been a while since I've...
by thagrol
Thu Feb 14, 2019 11:30 pm
Forum: Advanced users
Topic: gadget USB device not recognized during boot.
Replies: 14
Views: 214

Re: gadget USB device not recognized during boot.

I recall the message goes away as you describe. It was more problematic with a digital picture frame, it completely hung that, only worked if the DPF was powered up once the Zero was already in gadget mode with MSD running. And there's your work around: power the Zero seperately and only make the d...
by thagrol
Thu Feb 14, 2019 1:27 pm
Forum: Media centres
Topic: File Sharing on Pi with External Hard Drive
Replies: 17
Views: 45774

Re: File Sharing on Pi with External Hard Drive

Hi I'm having the same problem however I don't want to use samba as it won't work with Windows 10 (apparently) I tried this: [url]https://www.howtogeek.com/139433/how-to-turn-a-raspberry-pi-into-a-low-power-network-storage-device[/url/] But then I was told that samba doesn't work with Windows 10. I...
by thagrol
Thu Feb 14, 2019 11:19 am
Forum: Troubleshooting
Topic: Can not write to raid
Replies: 3
Views: 51

Re: Can not write to raid

Hello, New to pi and I have recently set up a raid 1 array using a pi 3. I am able to see my nas file share but I am unable to write to it. The configuration I currently have for my user is as follows [pi] path = /mnt valid users = pi writable = yes browsable = yes force user = pi Any thoughts on w...
by thagrol
Thu Feb 14, 2019 11:16 am
Forum: Troubleshooting
Topic: Can not write to raid
Replies: 3
Views: 51

Re: Can not write to raid

LTolledo wrote:
Thu Feb 14, 2019 9:45 am
directory mask
create mask

are missing
They're not mandatory.
by thagrol
Thu Feb 14, 2019 11:00 am
Forum: Troubleshooting
Topic: [SOLVED} Share an MTP device with samba
Replies: 7
Views: 87

Re: Share an MTP device with samba

Is the client connecting as a valid samba user or as a guest user? The documentation ("This user name only gets used once a connection is established. Thus clients still need to connect as a valid user and supply a valid password.") suggests that "force user" may not apply to guest logins. You could...
by thagrol
Thu Feb 14, 2019 10:47 am
Forum: Beginners
Topic: How to stop multiple scripts that are running simultaneously?
Replies: 8
Views: 150

Re: How to stop multiple scripts that are running simultaneously?

Hi, How about this ("bash" only) solution? #!/bin/bash python scriptA.py & PID_ONE=$! python scriptB.py & PID_TWO=$! trap "kill $PID_ONE $PID_TWO" SIGINT wait $PID_ONE $PID_TWO -- mn That's fine as far as it goes but the OP doesn't want their terminal blocked while the python scripts are running wh...
by thagrol
Wed Feb 13, 2019 10:42 pm
Forum: Beginners
Topic: How to stop multiple scripts that are running simultaneously?
Replies: 8
Views: 150

Re: How to stop multiple scripts that are running simultaneously?

The PID method is good even if it does have some down sides, including needing a way to remove it when the program quits or is killed. Ah, forgot that. The simplest way to achieve the removal of the pid files is to wrap the kill commands into a shell script that also removes the pid files. That doe...
by thagrol
Wed Feb 13, 2019 10:31 pm
Forum: Beginners
Topic: How to stop multiple scripts that are running simultaneously?
Replies: 8
Views: 150

Re: How to stop multiple scripts that are running simultaneously?

epoch1970 wrote:
Wed Feb 13, 2019 7:22 pm
Also the basic job management functions:

Code: Select all

$ jobs
Nope. Given that the OP's python scripts are being started in a sub shell, they won't show up in the output of "jobs".
by thagrol
Wed Feb 13, 2019 10:25 pm
Forum: Troubleshooting
Topic: [SOLVED} Share an MTP device with samba
Replies: 7
Views: 87

Re: Share an MTP device with samba

I'm actually using "force user", however, the problem seems to be that the gvfs folder is accessible only from the pi user, and not from root, so I'm probably wondering that the Daemon, which is running as root, just don't have the right permissions. Unlikely, given that root can ignore most permis...
by thagrol
Wed Feb 13, 2019 7:25 pm
Forum: Troubleshooting
Topic: [SOLVED} Share an MTP device with samba
Replies: 7
Views: 87

Re: Share an MTP device with samba

All right, i the been thought this issue for the last day, and havent found a workaround (at least with my knowledge) I want to share on a smb connection the files in my camera, when i plug it in my RPi. I know the mtp devices are mounted under /run/user/XXXX/gvfs, but this folder is only accessibl...
by thagrol
Wed Feb 13, 2019 7:08 pm
Forum: Beginners
Topic: How to stop multiple scripts that are running simultaneously?
Replies: 8
Views: 150

Re: How to stop multiple scripts that are running simultaneously?

Firstly, sudo killall python is going to kill all python process not just those two. You may find something else breaks on your system when you use it. Now... The way I'd do this is essentialy the way most daemons do it: have each python script write its pid to a file. Then, when you want to kill on...
by thagrol
Wed Feb 13, 2019 6:53 pm
Forum: Advanced users
Topic: gadget USB device not recognized during boot.
Replies: 14
Views: 214

Re: gadget USB device not recognized during boot.

I'm not sure that you can get rid of this message. Or rather that there is anything you can do on the Pi side. Nor do I have any idea what can be done on the windows side. The first thing the USB host sees when the Pi boots is the "BCM2708 Boot" device. AIUI, this is hardcoded in the SoC and cannot ...
by thagrol
Wed Feb 13, 2019 11:19 am
Forum: General discussion
Topic: running python script on startup
Replies: 8
Views: 236

Re: running python script on startup

pi9 wrote:
Wed Feb 13, 2019 1:27 am
Now the million dollar question is how do I do this? Run the scripts in the background. Using & ?
:)
Yep
by thagrol
Tue Feb 12, 2019 4:54 pm
Forum: General discussion
Topic: running python script on startup
Replies: 8
Views: 236

Re: running python script on startup

rc.local is an appropriate place to put startup jobs, but the systemd crowd will tell you to complicate matter by creating a custom service. you probably have to make sure the rc.local file has the excute bit set on it as well. There are some issues with rc.loal that using cron or systemd would avo...
by thagrol
Mon Feb 11, 2019 10:39 pm
Forum: Beginners
Topic: Omxplayer crashes on autostart
Replies: 10
Views: 138

Re: Omxplayer crashes on autostart

I have a hard time blaming the network though since I can ssh into it just fine from where it was sitting. I am wondering if it does not like the TV for some unspoken reason. The way to check that would be to take the Pi and the PC monitor to the TV and try it. If that works, it's likely to be some...
by thagrol
Mon Feb 11, 2019 6:33 pm
Forum: General discussion
Topic: Powering RPi inside of PC case
Replies: 17
Views: 778

Re: Powering RPi inside of PC case

There is one elephant loose in the PC case. If Power is NOT OK, either with PowerOK off or no 3V3 on the PC motherboard, it is quite likely that the power to the Pi is down as well, so the Pi knowing that Power is NOT OK is adacemic :o :shock: :( Indeed. But: "[...] tying into the 5V SB power for t...
by thagrol
Mon Feb 11, 2019 6:23 pm
Forum: Beginners
Topic: Bluetooth Data from Rasp to Android
Replies: 3
Views: 73

Re: Bluetooth Data from Rasp to Android

Hi, my requirements are: "An Android app that communicates via BT to a Raspberry and show real time data from temperature sensor attached to it". I'm a real beginner with Rasp, but I know Android programming. Could you please help me getting started? Some questions/requests: 1. Should i use Rasp or...
by thagrol
Mon Feb 11, 2019 6:10 pm
Forum: Beginners
Topic: Omxplayer crashes on autostart
Replies: 10
Views: 138

Re: Omxplayer crashes on autostart

What I want to do is to start omxplayer on boot with it pulling from an rtsp stream from one of my IP cameras. When I run it from command line, it works 100% however when I try to get it to run on boot it flashes a black screen and then exits. So what I have done is this. I added an entry to: ~/.co...
by thagrol
Mon Feb 11, 2019 5:42 pm
Forum: General discussion
Topic: Powering RPi inside of PC case
Replies: 17
Views: 778

Re: Powering RPi inside of PC case

Thank you for the response. I think I did end up touching something pins 1 & 2 on GPIO will fry it in a nanosecond, so I'm guessing that could be it. I'm going to go forward with tying into the 5V SB power for the Pi for my project. Now, did you look at tying into the "POWER_OK" +5V cable to check ...

Go to advanced search