Go to advanced search

by rpdom
Tue Nov 20, 2018 9:08 pm
Forum: C/C++
Topic: Porting C++ code
Replies: 5
Views: 105

Re: Porting C++ code

The ARM CPU cores for each of the Pi models are listed here https://en.wikipedia.org/wiki/Raspberry_Pi#Processor

Basically, the Zero and Pi 1 series use an ARMv6, specifically the ARM1176JZF-S CPU. The Pi 3 range (and later Pi 2) use four ARMv8 ARM Cortex-A53.
by rpdom
Tue Nov 20, 2018 6:17 am
Forum: Troubleshooting
Topic: cron job not executing
Replies: 9
Views: 498

Re: cron job not executing

Excellent! Just one minor point. My log files were called logcheck.log and logcheck.err because the script I was running from the crontab was called logcheck (it checks some logs and emails me the findings). I'd suggest changing yours from logcheck.log (and logcheck.err) to windspeedmysql.log (and w...
by rpdom
Tue Nov 20, 2018 6:03 am
Forum: General discussion
Topic: Where are errors stored when executing a Python program?
Replies: 3
Views: 101

Re: Where are errors stored when executing a Python program?

Wherever you send them.

How are you running the program? If you run from the command line prompt, the messages will appear on the screen. If you run from crontab, any output will be lost unless you redirect it to log files in the crontab entry.
by rpdom
Mon Nov 19, 2018 10:52 pm
Forum: General discussion
Topic: Pull the plug
Replies: 17
Views: 771

Re: Pull the plug

Some people can step into roads without ever looking and never get run over. Some people smoke 40 cigarettes a day and never get cancer or COPD. Some people regale others with entertaining tales of how often they have 'electrocuted' themselves, have been hit by lightning, have been involved in car ...
by rpdom
Mon Nov 19, 2018 8:00 pm
Forum: General discussion
Topic: Cannot ping my pc, but I can ping router.
Replies: 2
Views: 168

Re: Cannot ping my pc, but I can ping router.

Are you using a wired or wireless connection? Some routers block connections between machines on the same network when using wireless, but allow wireless to wired connections. It can usually be changed on the router admin interface.
by rpdom
Mon Nov 19, 2018 6:41 pm
Forum: Troubleshooting
Topic: cron job not executing
Replies: 9
Views: 498

Re: cron job not executing

What you've done is copied my cron entry exactly as I put it. That was only an example of how a crontab line with logging can work. It will work on my Pi because those are the names of the script and directories I have created. It won't work on yours because you're not running my code (and don't wan...
by rpdom
Mon Nov 19, 2018 6:38 am
Forum: Python
Topic: Need simple sample stepper code to learn from
Replies: 9
Views: 251

Re: Need simple sample stepper code to learn from

Also, another question, the numbers in the Pi's GPIO pins in the boxes are the pin numbers, 1-40, what are the other numbers on each pins? Some are voltages and some are just numeric? The pins marked with voltages are fixed voltage supply or ground/0V pins. Their state cannot be changed. The ones w...
by rpdom
Mon Nov 19, 2018 6:08 am
Forum: Troubleshooting
Topic: cron job not executing
Replies: 9
Views: 498

Re: cron job not executing

Are your directing the output from the cron job to a file so you can see any errors? That's the standard thing I set up with every cron. An example cron entry is 50 06 * * * /home/pi/cron/logcheck >/home/pi/logs/logcheck.log 2>/home/pi/logs/logcheck.err That will write normal output to the file /hom...
by rpdom
Sun Nov 18, 2018 9:07 pm
Forum: Advanced users
Topic: Check for crashed program periodically?
Replies: 5
Views: 211

Re: Check for crashed program periodically?

It might be worth a look at the supervisor package. It's a program that will start other programs for you and restart them if they fail. I think it's written in Python.
by rpdom
Sun Nov 18, 2018 5:33 pm
Forum: General discussion
Topic: Ban from Raspberry Pi forums. [Self-imposed.]
Replies: 33
Views: 966

Re: Ban from Raspberry Pi forums. [Self-imposed.]

A threat of physical violence has no place in a civilised forum, whether it was meant in jest or not. I think a ban is entirely correct in this case. So why was he not banned when he used the exact same 'threat' on earlier occasions? And why don't moderators get banned when they threaten with a (ba...
by rpdom
Sun Nov 18, 2018 5:15 pm
Forum: General discussion
Topic: STICKY: Pi 3 A+
Replies: 89
Views: 3150

Re: STICKY: Pi 3 A+

If anything, the 3A+ has more power capability on the USB port than any other model apart from the Zero. As far as I know (I don't have one to check), there is nothing to limit the current other than the input fuse, which I guess (could be wrong) is rated about 2.5A. Subtract what the Pi will use (u...
by rpdom
Sun Nov 18, 2018 10:52 am
Forum: C/C++
Topic: Can not install C library on raspberry pi3
Replies: 6
Views: 210

Re: Can not install C library on raspberry pi3

Search for any Open Source drivers for your hardware. If they exist you may be able to build them for a Pi.
by rpdom
Sun Nov 18, 2018 9:39 am
Forum: C/C++
Topic: Can not install C library on raspberry pi3
Replies: 6
Views: 210

Re: Can not install C library on raspberry pi3

What's wrong ? library from vendor was complied on os64 bit ? It was compiled for Intel or AMD x86_64 processors, as used in PCs and Macs. The Pi uses ARM processors which use different instruction sets. Code for one will not work on the other (unless using software emulation, which can be very slo...
by rpdom
Sun Nov 18, 2018 6:59 am
Forum: Beginners
Topic: USB Serial ports on RPI 3
Replies: 13
Views: 510

Re: USB Serial ports on RPI 3

Yes, just plug them in. The first port will be /dev/ttyUSB0, the second /dev/ttyUSB1 etc. The problem you may have is working out which one is which. It may be possibly to write some rules to fix the names if the USB devices have different serial numbers or are different types. Unfortunately most of...
by rpdom
Sat Nov 17, 2018 7:36 pm
Forum: Code Club
Topic: How do you set up Scratch accounts in your club?
Replies: 10
Views: 951

Re: How do you set up Scratch accounts in your club?

Good idea, As a back up plan for sessions I am thinking of setting up a few accounts for the club I run simply. If the kids forget their credentials or are new I can give them an account to use for the session, they can then set up an account at home with parents help. It should be easy enough to t...
by rpdom
Sat Nov 17, 2018 7:26 pm
Forum: General discussion
Topic: Zero W status LED stays on after load ?
Replies: 11
Views: 226

Re: Zero W status LED stays on after load ?

W. H. Heydt wrote:
Sat Nov 17, 2018 6:29 pm
Since the only LED on the Pi0/Pi0W stays on when nothing is running, but it has power, I would maintain that it is a power indicator.
But it doesn't come on unless the firmware has loaded. So not a true "power" indicator.
by rpdom
Sat Nov 17, 2018 5:16 pm
Forum: General discussion
Topic: Zero W status LED stays on after load ?
Replies: 11
Views: 226

Re: Zero W status LED stays on after load ?

W. H. Heydt wrote:
Sat Nov 17, 2018 4:52 pm
I would turn that around. The red LED *is* the power LED. There is no I/O activity LED, so the power LED is doing double duty.
Red LED? All my Zeroes (W or otherwise) have green LEDs. Also, it doesn't come on as soon as power is applied, so isn't a power LED.
by rpdom
Sat Nov 17, 2018 12:07 pm
Forum: Beginners
Topic: ifel
Replies: 4
Views: 122

Re: ifel

210338jim wrote:
Sat Nov 17, 2018 10:03 am
Sorry, got mixed-up -ifel should have read elif word_length == 3:
My further apologies for wasting your time
Jim
Glad you got it fixed and thank you for letting us know :)
by rpdom
Sat Nov 17, 2018 9:41 am
Forum: Beginners
Topic: ifel
Replies: 4
Views: 122

Re: ifel

It might help if you give some context.

What language or editor are using for "ifel"? It's not one I recognise.

What do you mean by "module"?
by rpdom
Fri Nov 16, 2018 8:37 pm
Forum: General discussion
Topic: Zero DAC?
Replies: 7
Views: 228

Re: Zero DAC?

DAC.png
DAC.png (14.17 KiB) Viewed 156 times
by rpdom
Fri Nov 16, 2018 8:35 pm
Forum: General discussion
Topic: Zero DAC?
Replies: 7
Views: 228

Re: Zero DAC?

It is J eleven and all associated names indicate "DAC" . Where does "composite video " come from? Under what feature I should look in BCM 2835 datasheet? Please elaborate. The DAC is driving the composite video output ("TV" connector) via J11 (J1 must have been a typo by drgeoff). Look at the origi...
by rpdom
Fri Nov 16, 2018 7:47 pm
Forum: General discussion
Topic: 3A+ usbboot/rpiboot
Replies: 28
Views: 862

Re: 3A+ usbboot/rpiboot

If some next board revision happens would it make sense to bring the ID pin out so people could cut the trace or even connect it to full otg connector? Changing the connector to a microUSB and bringing the ID connection out to that would work, but would mean a fairly expensive design change and mea...
by rpdom
Fri Nov 16, 2018 6:39 am
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3 Model A+ details
Replies: 23
Views: 888

Re: Raspberry Pi 3 Model A+ details

The RPF occasionally let Dougie have a trial version to keep him quiet :lol: I wish I was so lucky ;) Raspberry Pi Fight Club, or alpha test team, get stuff for testing. Not sure if we need any more people on it right now - will investigate. That would be cool, if possible (yes, I'm familiar with N...
by rpdom
Fri Nov 16, 2018 6:34 am
Forum: Beginners
Topic: PI as a "fake" printer
Replies: 3
Views: 163

Re: PI as a "fake" printer

You might be able to do it with an Arduino acting as the USB slave and passing data to the Pi via USB, UART, I2C or something, otherwise the Pi Zero (and the Pi A range with a bit of magic) can have the USB port set to Slave mode. I don't think there is any standard package for making the Pi look li...
by rpdom
Thu Nov 15, 2018 8:23 pm
Forum: Troubleshooting
Topic: How to decrease amperage required my Pi 3?
Replies: 52
Views: 979

Re: How to decrease amperage required my Pi 3?

Assembled in the UK. Ah. Makes sense I guess. But why not manufacture it in china where production could be cheaper? Because it turned out that doing it in Wales was about as cheap as China. Sony had a large assembly plant they were about to shut down because the old TVs they were making were no lo...

Go to advanced search