Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

21 May, 2024: Computers section is temporarily disabled for maintenance. It will take several days before it's back.


computers / comp.sys.raspberry-pi / Re: Training

SubjectAuthor
* TrainingAoli
+* Re: TrainingAndy Burns
|`* Re: TrainingMartin Gregorie
| `* Re: TrainingAoli
|  +* Re: TrainingAoli
|  |+- Re: Trainingray
|  |`- Re: TrainingThe Natural Philosopher
|  +- Re: TrainingMartin Gregorie
|  `* Re: TrainingDennis Lee Bieber
|   +- Re: TrainingDennis Lee Bieber
|   `* Re: TrainingMartin Gregorie
|    +* Re: TrainingDennis Lee Bieber
|    |`- Re: TrainingDennis Lee Bieber
|    `* Re: TrainingThe Natural Philosopher
|     `- Re: TrainingMartin Gregorie
+- Re: TrainingA. Dumas
`- TrainingRichard Falken

1
Training

<sanlh6$n6q$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2173&group=comp.sys.raspberry-pi#2173

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!7B1Ae3cEGX3ekgYYlW2EMQ.user.gioia.aioe.org.POSTED!not-for-mail
From: Aoli@Aoli.com (Aoli)
Newsgroups: comp.sys.raspberry-pi
Subject: Training
Date: Sun, 20 Jun 2021 08:06:11 -0700
Organization: Aioe.org NNTP Server
Lines: 9
Message-ID: <sanlh6$n6q$1@gioia.aioe.org>
NNTP-Posting-Host: 7B1Ae3cEGX3ekgYYlW2EMQ.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0
SeaMonkey/2.49.5
X-Notice: Filtered by postfilter v. 0.9.2
X-Mozilla-News-Host: news://news.aioe.org:119
 by: Aoli - Sun, 20 Jun 2021 15:06 UTC

I bought a Pi4 and now ...

Where can I get the best training on-line to work with the Pi4 hardware
and learn to code for it too ?

I want to make a remote control vehicle with a camera that I can drive
around my house. I am handicapped and do not get around well and just
would like to see what is going on in other parts of the house.

Re: Training

<ij9nacF13n7U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2174&group=comp.sys.raspberry-pi#2174

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@andyburns.uk (Andy Burns)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Training
Date: Sun, 20 Jun 2021 21:38:36 +0100
Lines: 8
Message-ID: <ij9nacF13n7U1@mid.individual.net>
References: <sanlh6$n6q$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net SRN1X0vVtrLPWy6B4eSfvg3zetZqI5Vi6DUryMdkBn5+Q1B+wO
Cancel-Lock: sha1:DxMQlrYYu/nHfe7Zgprcz3rTmWU=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
In-Reply-To: <sanlh6$n6q$1@gioia.aioe.org>
Content-Language: en-GB
 by: Andy Burns - Sun, 20 Jun 2021 20:38 UTC

Aoli wrote:

> I want to make a remote control vehicle with a camera that I can drive
> around my house.

Are you wanting to use a kit, or build it from scratch?

<https://www.instructables.com/Raspberry-Pi-Remote-Controlled-Car-1/>

Re: Training

<saof4n$go4$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2175&group=comp.sys.raspberry-pi#2175

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: martin@mydomain.invalid (Martin Gregorie)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Training
Date: Sun, 20 Jun 2021 22:23:19 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <saof4n$go4$1@dont-email.me>
References: <sanlh6$n6q$1@gioia.aioe.org> <ij9nacF13n7U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 20 Jun 2021 22:23:19 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f1bc910b8f8269ca34c7aadb236ffa3d";
logging-data="17156"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18N2jIETFJJhMbboGht7e0F4P1FjVxdGxs="
User-Agent: Pan/0.146 (Hic habitat felicitas; 8107378
git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:gR3N0hgeJDqRz0waChlVShw6/rg=
 by: Martin Gregorie - Sun, 20 Jun 2021 22:23 UTC

On Sun, 20 Jun 2021 21:38:36 +0100, Andy Burns wrote:

> Aoli wrote:
>
>> I want to make a remote control vehicle with a camera that I can drive
>> around my house.
>
> Are you wanting to use a kit, or build it from scratch?
>
> <https://www.instructables.com/Raspberry-Pi-Remote-Controlled-Car-1/>

Do you know how to:
- use the Linux OS
- any programming languages, and if so which?
- what sort of programs have you written on other computers?

Knowing this stuff will let us provide more relevant help.

--
Martin | martin at
Gregorie | gregorie dot org

Re: Training

<saqn65$8kl$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2181&group=comp.sys.raspberry-pi#2181

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!7B1Ae3cEGX3ekgYYlW2EMQ.user.gioia.aioe.org.POSTED!not-for-mail
From: Aoli@Aoli.com (Aoli)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Training
Date: Mon, 21 Jun 2021 11:52:49 -0700
Organization: Aioe.org NNTP Server
Lines: 38
Message-ID: <saqn65$8kl$1@gioia.aioe.org>
References: <sanlh6$n6q$1@gioia.aioe.org> <ij9nacF13n7U1@mid.individual.net>
<saof4n$go4$1@dont-email.me>
NNTP-Posting-Host: 7B1Ae3cEGX3ekgYYlW2EMQ.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0
SeaMonkey/2.49.5
X-Notice: Filtered by postfilter v. 0.9.2
 by: Aoli - Mon, 21 Jun 2021 18:52 UTC

Thank you for your responses.

I can do from scratch or kit, from scratch I would need some guidance
but I do have tools that might be needed except for 3D printing which I
do not do.

I am slightly familiar with Linux but of the higher forms of such like
Mint with a graphical interface.

I can program in C and a little Java. Python looks pretty straight
forward to me. I am proficient programing in Visual Basic Classic (VB6).

What language would I need ?

Martin Gregorie wrote:
> On Sun, 20 Jun 2021 21:38:36 +0100, Andy Burns wrote:
>
>> Aoli wrote:
>>
>>> I want to make a remote control vehicle with a camera that I can drive
>>> around my house.
>>
>> Are you wanting to use a kit, or build it from scratch?
>>
>> <https://www.instructables.com/Raspberry-Pi-Remote-Controlled-Car-1/>
>
> Do you know how to:
> - use the Linux OS
> - any programming languages, and if so which?
> - what sort of programs have you written on other computers?
>
> Knowing this stuff will let us provide more relevant help.
>
>

Re: Training

<saqng0$cvq$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2182&group=comp.sys.raspberry-pi#2182

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!7B1Ae3cEGX3ekgYYlW2EMQ.user.gioia.aioe.org.POSTED!not-for-mail
From: Aoli@Aoli.com (Aoli)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Training
Date: Mon, 21 Jun 2021 11:58:04 -0700
Organization: Aioe.org NNTP Server
Lines: 44
Message-ID: <saqng0$cvq$1@gioia.aioe.org>
References: <sanlh6$n6q$1@gioia.aioe.org> <ij9nacF13n7U1@mid.individual.net>
<saof4n$go4$1@dont-email.me> <saqn65$8kl$1@gioia.aioe.org>
NNTP-Posting-Host: 7B1Ae3cEGX3ekgYYlW2EMQ.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0
SeaMonkey/2.49.5
X-Notice: Filtered by postfilter v. 0.9.2
 by: Aoli - Mon, 21 Jun 2021 18:58 UTC

I would be nice to operate the vehicle from a tablet (hopefully android).
Tablet is light weight, easy for me to hold and relatively inexpensive.

Aoli wrote:
>
> Thank you for your responses.
>
> I can do from scratch or kit, from scratch I would need some guidance
> but I do have tools that might be needed except for 3D printing which I
> do not do.
>
> I am slightly familiar with Linux but of the higher forms of such like
> Mint with a graphical interface.
>
> I can program in C and a little Java.  Python looks pretty straight
> forward to me.  I am proficient programing in Visual Basic Classic (VB6).
>
> What language would I need ?
>
>
>
> Martin Gregorie wrote:
>> On Sun, 20 Jun 2021 21:38:36 +0100, Andy Burns wrote:
>>
>>> Aoli wrote:
>>>
>>>> I want to make a remote control vehicle with a camera that I can drive
>>>> around my house.
>>>
>>> Are you wanting to use a kit, or build it from scratch?
>>>
>>> <https://www.instructables.com/Raspberry-Pi-Remote-Controlled-Car-1/>
>>
>> Do you know how to:
>> - use the Linux OS
>> - any programming languages, and if so which?
>> - what sort of programs have you written on other computers?
>>
>> Knowing this stuff will let us provide more relevant help.
>>
>>
>

Re: Training

<saqup4$gek$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2185&group=comp.sys.raspberry-pi#2185

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: martin@mydomain.invalid (Martin Gregorie)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Training
Date: Mon, 21 Jun 2021 21:02:29 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <saqup4$gek$2@dont-email.me>
References: <sanlh6$n6q$1@gioia.aioe.org> <ij9nacF13n7U1@mid.individual.net>
<saof4n$go4$1@dont-email.me> <saqn65$8kl$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 21 Jun 2021 21:02:29 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f1bc910b8f8269ca34c7aadb236ffa3d";
logging-data="16852"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19YBaAGKu9AikZy2YILgc7gJcgi3FH0NTc="
User-Agent: Pan/0.146 (Hic habitat felicitas; 8107378
git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:ZHb/gWusXft0xGOsDKZXRqBzNSw=
 by: Martin Gregorie - Mon, 21 Jun 2021 21:02 UTC

On Mon, 21 Jun 2021 11:52:49 -0700, Aoli wrote:

> Thank you for your responses.
>
> I can do from scratch or kit, from scratch I would need some guidance
> but I do have tools that might be needed except for 3D printing which I
> do not do.
>
> I am slightly familiar with Linux but of the higher forms of such like
> Mint with a graphical interface.
>
Its a good idea to get familiar with bash, the default command language,
because you will probably find yourself writing shell scripts to handle
system management tasks, backups, etc.
> I can program in C and a little Java. Python looks pretty straight
> forward to me. I am proficient programing in Visual Basic Classic
> (VB6).
>
C, Java, Python are good, though I'm uncertain how similar the Windows C
support library is to the the C Standard Library, as used in all
UNIX/Linux systems. Its over 20 years since I compiled a program under
Windows. Java is, of course much the same under any OS.

BASIC is very little used by RPi programmers; most of those who used to
write BASIC would now write Python and, in any case only the .NET
flavours of BASIC seem to be widely supported on RPis.

Depending how you prefer to learn stuff, the "RaspberryPi User Guide" may
help. You may also find "Linux in a Nutshell" useful for understanding
how Linux and its scripting language works. It also explains how help
systems like 'apropos' and the 'man' command (both used to find utility
programs and how to use them) are best used. There are a LOT of these:
the UNIX/Linux world works on the principle that a program should do one
thing and do it well and that you can do more complex things by
connecting a number of these utility programs so that the output of one
feeds the next in a 'pipeline'.

O'Reilly books are also good, though some are fairly pricey. That said,
if you're going to write a lot of C, then any of the C system programing
books for UNIX/Linux are good to have.

It also helps to understand regular expressions (which you may already
understand by using them in Java or C programs) because a lot of command
line tools and editors use regexes as parameters.

There are a lot of text editors: 'gedit', either naked or run via the
lightweight 'geany' IDE is not bad, but some of the others ('emacs',
'microemacs' and 'vi') are a lot more powerful and worth looking at to
see which you prefer.
I have David Curry's "Unix Systems Programming for SvR4" and wouldn't be
without it, though its quite a brick: its quite old, but still very
useful.

--
Martin | martin at
Gregorie | gregorie dot org

Re: Training

<ijcd98Fgu76U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2186&group=comp.sys.raspberry-pi#2186

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: ray@zianet.com (ray)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Training
Date: Mon, 21 Jun 2021 15:05:37 -0600
Lines: 51
Message-ID: <ijcd98Fgu76U1@mid.individual.net>
References: <sanlh6$n6q$1@gioia.aioe.org> <ij9nacF13n7U1@mid.individual.net>
<saof4n$go4$1@dont-email.me> <saqn65$8kl$1@gioia.aioe.org>
<saqng0$cvq$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net a093pERS/AxeCya5TuiDng1fEMXLC6iscthcvG7B54jDA/21fX
Cancel-Lock: sha1:VthNJIP4Z5db+iiD/Vl8yRayiKw=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.10.0
In-Reply-To: <saqng0$cvq$1@gioia.aioe.org>
Content-Language: en-US
 by: ray - Mon, 21 Jun 2021 21:05 UTC

On 6/21/21 12:58 PM, Aoli wrote:
>
> I would be nice to operate the vehicle from a tablet (hopefully android).
> Tablet is light weight, easy for me to hold and relatively inexpensive.
>
> Aoli wrote:
>>
>> Thank you for your responses.
>>
>> I can do from scratch or kit, from scratch I would need some guidance
>> but I do have tools that might be needed except for 3D printing which
>> I do not do.
>>
>> I am slightly familiar with Linux but of the higher forms of such like
>> Mint with a graphical interface.
>>
>> I can program in C and a little Java.  Python looks pretty straight
>> forward to me.  I am proficient programing in Visual Basic Classic (VB6).
>>
>> What language would I need ?
>>
>>
>>
>> Martin Gregorie wrote:
>>> On Sun, 20 Jun 2021 21:38:36 +0100, Andy Burns wrote:
>>>
>>>> Aoli wrote:
>>>>
>>>>> I want to make a remote control vehicle with a camera that I can drive
>>>>> around my house.
>>>>
>>>> Are you wanting to use a kit, or build it from scratch?
>>>>
>>>> <https://www.instructables.com/Raspberry-Pi-Remote-Controlled-Car-1/>
>>>
>>> Do you know how to:
>>> - use the Linux OS
>>> - any programming languages, and if so which?
>>> - what sort of programs have you written on other computers?
>>>
>>> Knowing this stuff will let us provide more relevant help.
>>>
>>>
>>
>

There are numerous tutorials at adafruit.com and the free e-mag 'magpi'
at raspberrypi.org which would be helpful. The main language for pi is
python. It should not be too difficult to control from a tablet - that
would just mean you would need a pi onboard for control over wifi or bt.

Re: Training

<jre2dgh0eebpv5t01cd9dlp1p2ngr5t7ar@4ax.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2189&group=comp.sys.raspberry-pi#2189

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 21 Jun 2021 20:49:02 -0500
From: wlfraed@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Training
Date: Mon, 21 Jun 2021 21:49:01 -0400
Organization: IISS Elusive Unicorn
Message-ID: <jre2dgh0eebpv5t01cd9dlp1p2ngr5t7ar@4ax.com>
References: <sanlh6$n6q$1@gioia.aioe.org> <ij9nacF13n7U1@mid.individual.net> <saof4n$go4$1@dont-email.me> <saqn65$8kl$1@gioia.aioe.org>
User-Agent: ForteAgent/8.00.32.1272
X-No-Archive: YES
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 67
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-hRCmY3cR01T+ig5xdWK2udfFoiFL7EdpoMwaeJYbnHNBFnil5G+HyjlcajXDBmR9AugieifzAd2wBkN!OtHSMYXI7hQnMou7zu7dQ8gXuFuRJ+BFj5TSMy0kP3Ks4a8KGzERAwoVAljQuwtRRVRgeR8X
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 4251
 by: Dennis Lee Bieber - Tue, 22 Jun 2021 01:49 UTC

On Mon, 21 Jun 2021 11:52:49 -0700, Aoli <Aoli@Aoli.com> declaimed the
following:

>
>I am slightly familiar with Linux but of the higher forms of such like
>Mint with a graphical interface.
>
The R-Pi, with the default OS, comes out of the box with a graphical
interface... It does require one use an HDMI connected monitor/TV, and a
USB keyboard/mouse... Or one enables the VNC server and connects to it over
network using a VNC client program.

>I can program in C and a little Java. Python looks pretty straight
>forward to me. I am proficient programing in Visual Basic Classic (VB6).
>
>What language would I need ?
>
You won't like this: Which ever one satisfies your requirements -- you
could install GNAT and code in Ada; or suck up a few GB installing
Lazarus/FreePascal.

Python was considered the "native" (as in: meant for beginners)
language for the R-Pi...

Thing is, your requirements are so high-level that one can't really
declare for any language. At the very least, you are looking at a
multi-threaded application, if not multi-process system (threads exist
within a single process, and depending on implementation, can share
information easily; multi-process will require designing some interprocess
communication system/protocol -- unfortunately, the only OSs for which I
was comfortable in IPC are AmigaOS (message ports: linked lists created by
processes to which other processes can append "messages"; since the Amiga
used a flat address space, all processes could access any memory --
messages tended to contain just a pointer to a buffer) and [Open]VMS
(mailboxes to which processes can write/read).

Take into account that Linux is not a "real-time" OS; an RT kernel just
makes it more responsive without truly being real-time.

The process that handles the drive motors is probably going to run at a
higher priority than one that is handling a camera and relaying video over
WiFi. Higher than both of those might be the process that handles command
receipt and return telemetry. It should spend a lot of time just waiting
for commands, and some time packaging telemetry packets -- no busy loops,
since that would interfere with lower level processes (a busy loop could
totally block out the motor control process from responding to forwarded
STOP commands).

You may even find that you only want to run the user-interface on the
R-Pi, with it sending commands to multiple microcontrollers (Arduino, TIVA
C, AdaFruit Metro [which uses CircuitPython natively, but can have an
Arduino compatible loader installed]).

Some books that might be of import:

Real-Time Systems and Programming Languages: Ada, Real-Time Java and
C/Real-Time POSIX 4th Ed (Alan Burns/Andy Wellings, 2009 Addison-Wesley)

Embedded Linux Primer 2nd Ed (Christopher Hallinan, 2011 Prentice-Hall)

{Interesting: both Addison-Wesley and Prentice-Hall appear to be owned by
Pearson}

--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

Re: Training

<q4j2dg176d3v6u4ta10p0pd8n7eioms13o@4ax.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2191&group=comp.sys.raspberry-pi#2191

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 21 Jun 2021 21:48:13 -0500
From: wlfraed@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Training
Date: Mon, 21 Jun 2021 22:48:12 -0400
Organization: IISS Elusive Unicorn
Message-ID: <q4j2dg176d3v6u4ta10p0pd8n7eioms13o@4ax.com>
References: <sanlh6$n6q$1@gioia.aioe.org> <ij9nacF13n7U1@mid.individual.net> <saof4n$go4$1@dont-email.me> <saqn65$8kl$1@gioia.aioe.org> <jre2dgh0eebpv5t01cd9dlp1p2ngr5t7ar@4ax.com>
User-Agent: ForteAgent/8.00.32.1272
X-No-Archive: YES
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 23
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-XVLWssmE8qi9VqUNVjcO5udoB0o0dcIJedCxUHVx4dnpHWczT3BAWDOgLisrj9GKDfcQaLGDKvfq2bL!25pOnlXZMFgC2TvBkKqVUV6HyPhQNdb8aKI+KVQZq8gWY3LReUUSUcFS3O23obd3F9oqCssi
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1930
 by: Dennis Lee Bieber - Tue, 22 Jun 2021 02:48 UTC

On Mon, 21 Jun 2021 21:49:01 -0400, Dennis Lee Bieber
<wlfraed@ix.netcom.com> declaimed the following:

>Embedded Linux Primer 2nd Ed (Christopher Hallinan, 2011 Prentice-Hall)
>
On second thought -- you can probably ignore this one; it is mostly
about configuring and building Linux kernels, and device driver stuff.

Not Linux-based, but of possible use for algorithms:

Make: Arduino Bots and Gadgets
Make: Making Simple Robots
Make an Arduino-Controlled Robot

Hands-On RTOS with Microcontrollers
(FreeRTOS on an STM32, but should port to other ARM processors)

--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

Re: Training

<sarvmk$dmt$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2192&group=comp.sys.raspberry-pi#2192

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Training
Date: Tue, 22 Jun 2021 07:24:20 +0100
Organization: A little, after lunch
Lines: 13
Message-ID: <sarvmk$dmt$1@dont-email.me>
References: <sanlh6$n6q$1@gioia.aioe.org> <ij9nacF13n7U1@mid.individual.net>
<saof4n$go4$1@dont-email.me> <saqn65$8kl$1@gioia.aioe.org>
<saqng0$cvq$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 22 Jun 2021 06:24:20 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="3e33f277c8cfc0faec7dc715a9afbfd4";
logging-data="14045"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19A39kXoKjpi4F7ABweE39aXo0gLvoXodE="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.6.1
Cancel-Lock: sha1:YAPShO0wmJ5zxwu0lmpq6PDnP00=
In-Reply-To: <saqng0$cvq$1@gioia.aioe.org>
Content-Language: en-GB
 by: The Natural Philosop - Tue, 22 Jun 2021 06:24 UTC

On 21/06/2021 19:58, Aoli wrote:
>
> I would be nice to operate the vehicle from a tablet (hopefully android).
> Tablet is light weight, easy for me to hold and relatively inexpensive.
> Consider writing your user interface in e.g. php html and javascript
then you can use a browser on the tablet to access the pi.

You probably will need a more 'native' language on te pi. Python or C
really

--
To ban Christmas, simply give turkeys the vote.

Re: Training

<sasq1h$7fd$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2196&group=comp.sys.raspberry-pi#2196

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: martin@mydomain.invalid (Martin Gregorie)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Training
Date: Tue, 22 Jun 2021 13:53:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 90
Message-ID: <sasq1h$7fd$1@dont-email.me>
References: <sanlh6$n6q$1@gioia.aioe.org> <ij9nacF13n7U1@mid.individual.net>
<saof4n$go4$1@dont-email.me> <saqn65$8kl$1@gioia.aioe.org>
<jre2dgh0eebpv5t01cd9dlp1p2ngr5t7ar@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 22 Jun 2021 13:53:54 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b86601aae4c29ecf36ee16295fe31bcd";
logging-data="7661"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/xPjv3JFec2pd1TqxGRclb860qM8WvQCI="
User-Agent: Pan/0.146 (Hic habitat felicitas; 8107378
git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:XyGEX0FkYhg9Ik2PFn5s+NoasTM=
 by: Martin Gregorie - Tue, 22 Jun 2021 13:53 UTC

On Mon, 21 Jun 2021 21:49:01 -0400, Dennis Lee Bieber wrote:

> You won't like this: Which ever one satisfies your requirements
-- you
> could install GNAT and code in Ada; or suck up a few GB installing
> Lazarus/FreePascal.
>
> Python was considered the "native" (as in: meant for beginners)
> language for the R-Pi...
>
> Thing is, your requirements are so high-level that one can't really
> declare for any language. At the very least, you are looking at a
> multi-threaded application, if not multi-process system (threads exist
> within a single process, and depending on implementation, can share
> information easily; multi-process will require designing some
> interprocess communication system/protocol -- unfortunately, the only
> OSs for which I was comfortable in IPC are AmigaOS (message ports:
> linked lists created by processes to which other processes can append
> "messages"; since the Amiga used a flat address space, all processes
> could access any memory -- messages tended to contain just a pointer to
> a buffer) and [Open]VMS (mailboxes to which processes can write/read).
>
If you are going to multi-thread, normally I'd suggest going for Java,
which also has a decent GUI system, SWING, especially using using the 3rd
party RiverLayout layout manager from se.datadosen.

Disclaimer: I know thus works v. well in kit like Lenovo laptops but
haven't yet installed Java on an RPi, so have no idea of the likely
performance or compile speeds.

OTOH, if you'd rather go multi-process, then writing a set of co-
operating processes in C that communicate through a block of shared
memory and use semaphores to co-ordinate access is fairly easy,
especially if you have the UNIX Systems Programming book I recommended.

A third way to go is to write a set of small, single threading C
processes, each carrying out a single, well-defined part of the overall
task.

One of these processes owns a block of shared memory and manages access
to it: the blocks of incoming do not move once they are loaded into the
shared memory by a loader process, where then remain until all operations
on them are complete, and an exporter process has done the final
operation and requested them to be deleted from shared memory.

The other worker processes operate by requesting access to a data block,
which is locked as they get passed its address. After they've done their
thing the worker tells the shared memory owner to release the last block
and requests another: each stored block is either 'available' or marked
as allocated to a worker process.

All interprocess communication is done by standard UNIX message passing,
and is handled by the standard C poll() mechanism, which is brilliant for
handling this sort of message queueing.

This sort of multi-process data handling stream works really well and is
quite simple to implement: I designed and implemented a large, high
performance ETL system, running on DEC Alphaserver kit, that transformed
incoming data and loaded it into a data warehouse using this approach. It
easily exceeded the stated performance requirements and, because each
step was handled by a separate, single threaded process, the code was
both simple and secure.

> The process that handles the drive motors is probably going to run at a
> higher priority than one that is handling a camera and relaying video
> over WiFi. Higher than both of those might be the process that handles
> command receipt and return telemetry. It should spend a lot of time just
> waiting for commands, and some time packaging telemetry packets -- no
> busy loops, since that would interfere with lower level processes (a
> busy loop could totally block out the motor control process from
> responding to forwarded STOP commands).
>
> You may even find that you only want to run the user-interface on the
> R-Pi, with it sending commands to multiple microcontrollers (Arduino,
> TIVA C, AdaFruit Metro [which uses CircuitPython natively, but can have
> an Arduino compatible loader installed]).
>
Could also be a good place to use PICAXE chips (despite their rather
horrid compiled, unsigned intreger BASIC (but at least the PICAXE BASIC
compiler runs well on an RPI 2B) or even a RaspberryPi PICO.

Don't forget the standard C poll() function I mentioned earlier, which
can handle responses from microcontrollers as well as from other
processes. See 'man 2 poll' for details.

--
Martin | martin at
Gregorie | gregorie dot org

Re: Training

<sl54dg1206oi8rogt0afqtfdj7pk457177@4ax.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2198&group=comp.sys.raspberry-pi#2198

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 22 Jun 2021 12:21:10 -0500
From: wlfraed@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Training
Date: Tue, 22 Jun 2021 13:21:08 -0400
Organization: IISS Elusive Unicorn
Message-ID: <sl54dg1206oi8rogt0afqtfdj7pk457177@4ax.com>
References: <sanlh6$n6q$1@gioia.aioe.org> <ij9nacF13n7U1@mid.individual.net> <saof4n$go4$1@dont-email.me> <saqn65$8kl$1@gioia.aioe.org> <jre2dgh0eebpv5t01cd9dlp1p2ngr5t7ar@4ax.com> <sasq1h$7fd$1@dont-email.me>
User-Agent: ForteAgent/8.00.32.1272
X-No-Archive: YES
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 33
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-YHOD6hkpwT6GKsiXu+LKwcuLZdFmOsJ2E+wjmk+JrbT3SK9D0oxKlc5ZvudsnoOLmR3qaBCy66hpaQI!8iBqLtYIRHkNPjeP1QXqASdHrAmiXgZA+WU+U2hvOf5y40kvFOuX5stgiGNumcp44PE7GPiv
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2907
 by: Dennis Lee Bieber - Tue, 22 Jun 2021 17:21 UTC

On Tue, 22 Jun 2021 13:53:54 -0000 (UTC), Martin Gregorie
<martin@mydomain.invalid> declaimed the following:

>Could also be a good place to use PICAXE chips (despite their rather
>horrid compiled, unsigned intreger BASIC (but at least the PICAXE BASIC
>compiler runs well on an RPI 2B) or even a RaspberryPi PICO.
>
I could have suggested the Parallax Propeller chip. An extremely weird
microcontroller.

8 "cogs" (cores) running in lockstep, all sharing the 32 GPIO lines.
Nominally a core runs Propeller BASIC interpreter which accesses compiled
code from external memory (there is controller that rotates from cog to cog
allowing access to external memory), but can be loaded with Propeller
assembly code. I believe there is also a C compiler available.

The former Parallax BASIC-Stamps (if any are still stocked) are way too
expensive to consider. One could (in the US at least) buy 7-8 TIVA C
TM4C123G Launchpads for the cost of BS2p. Launchpads are ARM Cortex M4
floating point. The 123 is the slower one, at 80MHz; 256kB flash, 32kB RAM,
and a 2kB EEPROM; 12-bit ADC (2x), and way too many timers (6x64-bit, each
of which can be split into a pair of 32-bit timers, AND 6x32-bit, also
splitable into pairs of 16-bit timers). (The board actually uses a second
TM4C123 chip to handle the interface for programming!). For beginners, TI
cloned the Arduino IDE as Energia. (though for some reason the visit link
under the IDE Help is going to Arduino site -- some programmer missed a URL
I guess).

--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

Re: Training

<60d23497$0$22700$e4fe514c@news.xs4all.nl>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2199&group=comp.sys.raspberry-pi#2199

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Subject: Re: Training
Newsgroups: comp.sys.raspberry-pi
References: <sanlh6$n6q$1@gioia.aioe.org>
From: alexandre@dumas.fr.invalid (A. Dumas)
Date: Tue, 22 Jun 2021 21:05:59 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0)
Gecko/20100101 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <sanlh6$n6q$1@gioia.aioe.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: nl
Content-Transfer-Encoding: 8bit
Lines: 13
Message-ID: <60d23497$0$22700$e4fe514c@news.xs4all.nl>
NNTP-Posting-Host: 6d934df9.news.xs4all.nl
X-Trace: G=jkIz5Haf,C=U2FsdGVkX1/1ReMGuzr7Ij19N3DktnMjlSQr/ywro0XUIm3MNeBiMnXAQGY8HxLzOG+/XYIoSPcLHerQkUo6jSj6lFF09fYck243e+dTMRVS9AWA5AFMmdlrOBmQkL9Q
X-Complaints-To: abuse@xs4all.nl
 by: A. Dumas - Tue, 22 Jun 2021 19:05 UTC

On 20-06-2021 17:06, Aoli wrote:
> I bought a Pi4 and now ...
>
> Where can I get the best training on-line to work with the Pi4 hardware
> and learn to code for it too ?
>
> I want to make a remote control vehicle with a camera that I can drive
> around my house.  I am handicapped and do not get around well and just
> would like to see what is going on in other parts of the house.

You won't get your answer here. Go to
https://www.raspberrypi.org/forums/ and choose a topic. Also they have
https://www.raspberrypi.org/forums/viewforum.php?f=102

Re: Training

<tj84dglbnl7t4gmo4jpmit52i349e1b9mp@4ax.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2200&group=comp.sys.raspberry-pi#2200

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 22 Jun 2021 14:43:58 -0500
From: wlfraed@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Training
Date: Tue, 22 Jun 2021 15:43:58 -0400
Organization: IISS Elusive Unicorn
Message-ID: <tj84dglbnl7t4gmo4jpmit52i349e1b9mp@4ax.com>
References: <sanlh6$n6q$1@gioia.aioe.org> <ij9nacF13n7U1@mid.individual.net> <saof4n$go4$1@dont-email.me> <saqn65$8kl$1@gioia.aioe.org> <jre2dgh0eebpv5t01cd9dlp1p2ngr5t7ar@4ax.com> <sasq1h$7fd$1@dont-email.me> <sl54dg1206oi8rogt0afqtfdj7pk457177@4ax.com>
User-Agent: ForteAgent/8.00.32.1272
X-No-Archive: YES
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 33
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-zkdLDF6h3NK0cRk6+WczsYOjhWvS+yxCviG4eY8/qW8gGTe201XDjsLHE2KP93ErvsvOgl0/t3bBBiB!ILjZMB6NtN3KteID1wBaEiGBXNMplOp8C6KgIJ94uApDh+TX6kkL0IDEDSXj5k3lCBUbHJiy
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2638
 by: Dennis Lee Bieber - Tue, 22 Jun 2021 19:43 UTC

On Tue, 22 Jun 2021 13:21:08 -0400, Dennis Lee Bieber
<wlfraed@ix.netcom.com> declaimed the following:

> 8 "cogs" (cores) running in lockstep, all sharing the 32 GPIO lines.
>Nominally a core runs Propeller BASIC interpreter which accesses compiled
>code from external memory (there is controller that rotates from cog to cog
>allowing access to external memory), but can be loaded with Propeller
>assembly code. I believe there is also a C compiler available.
>

Too many IDEs <G>

SimpleIDE is the C-based version (there is a command line Propeller GCC
version for the masochists).

Propeller IDE appears to be focused on SPIN, though the help system has
the PropBasic manual listed. SPIN and PropBasic appear quite similar,
though some differences exist. No longer maintained (supposedly, but
someone tweaked the github sources in the last year).

Propeller Tool handles SPIN and Propeller Assembly, appears to be
updated for the new P2 chip (I haven't seen anything obvious in the pages
for the other two IDEs)

Plug-in for Visual Studio Code using a third-party compiler...
(FlexProp). Meant for the P2 chip (though the IDE can be toggled to P1,
don't know how that affects VSC).

--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

Re: Training

<sauh1n$e56$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2201&group=comp.sys.raspberry-pi#2201

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Training
Date: Wed, 23 Jun 2021 06:32:38 +0100
Organization: A little, after lunch
Lines: 21
Message-ID: <sauh1n$e56$1@dont-email.me>
References: <sanlh6$n6q$1@gioia.aioe.org> <ij9nacF13n7U1@mid.individual.net>
<saof4n$go4$1@dont-email.me> <saqn65$8kl$1@gioia.aioe.org>
<jre2dgh0eebpv5t01cd9dlp1p2ngr5t7ar@4ax.com> <sasq1h$7fd$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 23 Jun 2021 05:32:39 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="28a8f6b94d1d13e853ca612b007a0724";
logging-data="14502"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+cqI0y7278kAbf4U49Cx3oD+AegWDFaTs="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.6.1
Cancel-Lock: sha1:gp8vRjJ957RguEi6xFWfVTjdwoY=
In-Reply-To: <sasq1h$7fd$1@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Wed, 23 Jun 2021 05:32 UTC

On 22/06/2021 14:53, Martin Gregorie wrote:
> OTOH, if you'd rather go multi-process, then writing a set of co-
> operating processes in C that communicate through a block of shared
> memory and use semaphores to co-ordinate access is fairly easy,
> especially if you have the UNIX Systems Programming book I recommended.
>
No need to go that deep for many apps. My pi runs a multi-process piece
of code that simply uses a file in a small ram disk created for the
purpose.

Obviously in physical terms it is shared memory, but in logical terms
its just a file.

One process deletes it and rewrites it - the other process reads the
data in it.

--
There is something fascinating about science. One gets such wholesale
returns of conjecture out of such a trifling investment of fact.

Mark Twain

Training

<624537697@f1.n770.z7872.fidonet.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2210&group=comp.sys.raspberry-pi#2210

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.Richard.Falken@f1.n770.z7872.fidonet.org (Richard Falken)
Newsgroups: comp.sys.raspberry-pi
Subject: Training
Date: Thu, 24 Jun 2021 05:17:05 +1200
Organization: Agency HUB, Dunedin - New Zealand | bbs.nz/#Fidonet
Message-ID: <624537697@f1.n770.z7872.fidonet.org>
References: <sanlh6$n6q$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="17863"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-Comment-To: Aoli
X-MailConverter: SoupGate-Win32 v1.05
 by: Richard Falken - Wed, 23 Jun 2021 17:17 UTC

Re: Training
By: Aoli to All on Sun Jun 20 2021 08:06 am

> I bought a Pi4 and now ...
>
> Where can I get the best training on-line to work with the Pi4 hardware
> and learn to code for it too ?
>
> I want to make a remote control vehicle with a camera that I can drive
> around my house. I am handicapped and do not get around well and just
> would like to see what is going on in other parts of the house.

There is a relevant Linux Magazine article.

https://www.linux-magazine.com/Issues/2018/215/RaspPi-Controlled-Toy-Sailboat

It is for building a remote control boat that you can maipulate from your
smartphone.

--
gopher://gopher.richardfalken.com/1/richardfalken

Re: Training

<sb2f4p$eet$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2212&group=comp.sys.raspberry-pi#2212

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: martin@mydomain.invalid (Martin Gregorie)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Training
Date: Thu, 24 Jun 2021 17:24:41 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 59
Message-ID: <sb2f4p$eet$1@dont-email.me>
References: <sanlh6$n6q$1@gioia.aioe.org> <ij9nacF13n7U1@mid.individual.net>
<saof4n$go4$1@dont-email.me> <saqn65$8kl$1@gioia.aioe.org>
<jre2dgh0eebpv5t01cd9dlp1p2ngr5t7ar@4ax.com> <sasq1h$7fd$1@dont-email.me>
<sauh1n$e56$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 24 Jun 2021 17:24:41 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="98cf62d6a28ae946ba88a721d858a4d5";
logging-data="14813"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SuVx3zzX3EjZukCM8ChNgeIDcxj/kI7o="
User-Agent: Pan/0.146 (Hic habitat felicitas; 8107378
git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:BNuksbLRRr7mgDeyyvPWvrvuW5U=
 by: Martin Gregorie - Thu, 24 Jun 2021 17:24 UTC

On Wed, 23 Jun 2021 06:32:38 +0100, The Natural Philosopher wrote:

> No need to go that deep for many apps. My pi runs a multi-process piece
> of code that simply uses a file in a small ram disk created for the
> purpose.
>
That depends on the volume of stored data. I agree that an in-memory FS
would work for gueuing small data items, but could turn out to be a
bottleneck for handling large data items simply because moving them
between processes and the FS becomes a bottleneck of you're handling lots
of large items.

The ETL case I mentioned was a case in point: the data items were logfiles
from a large network of message switches, each holding several MB of log
records. The network was made of hundreds to thousands of switches, each
writing a new logfile per day. Since the data sanitisation and
reformatting process involved loading each logfile into RAM, passing it
through 8-10 worker processes to convert each logfile to a common format:
the switches were of various makes and models, so their log formats
differed. As each logfile had been converted to the common format it was
passed it to the datawarehouse loader and deleted from RAM. It was
important for system speed that the sanitising and reformatting steps
could run in parallel and that the logfiles were not copied between
workers: consequently each logfile was loaded into RAM and a reference to
it was passed to the logfile storage manager. This owned all the in-
memory logfiles and kept track of the status of each one. Workers were
handed a reference to the next logfile, applied the changes they were
configured to make and then released the logfile, marking it ready for
the next processing stage, which meant that, once a logfile was loaded
into RAM , it stayed at the same physical address until the datawarehouse
loader program added its content to the database and told the logfile
manager to delete it from RAM.

The fact that each logfile occupied the same RAM address from being read
in until it was loaded into the datawarehouse saved a LOT of mill time:
If we'd used an in memory FS instead, each log would have had to be read
into each worker and written back to the FS when that step was complete.
We'd also have lost the ability to tune performance by running multiple
copies of each worker.

> Obviously in physical terms it is shared memory, but in logical terms
> its just a file.
>
Of course, but in the case I described, the mere fact that each logfile
stayed at the same address once it was loaded into RAM and remained there
until it had been loaded into the database and deleted, saved a lot of
CPU cycles compared with reading it in to a worker, applying changes and
then writing it back to the FS would have required.

Also, having a collection of simple processes, each applying a single
operation to a single field type, made system configuration simple and
the ability to run multiple copies of a slow process made system
performance tuning much easier.

--
Martin | martin at
Gregorie | gregorie dot org


computers / comp.sys.raspberry-pi / Re: Training

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor