New Raspberry Pi 4 presented today

Jeff Liebermann <jeffl@cruzio.com> wrote in
news:had3het03rhl2rm5e68hsb90j2jknouor1@4ax.com:

On Tue, 25 Jun 2019 02:44:26 +0000 (UTC),
DecadentLinuxUserNumeroUno@decadence.org wrote:

Jeff Liebermann <jeffl@cruzio.com> wrote in
news:0nv1hetkndei1ali88034qpvf48085849f@4ax.com:

On Mon, 24 Jun 2019 15:42:15 GMT, Jan Panteltje
pNaOnStPeAlMtje@yahoo.com> wrote:

On a sunny day (Mon, 24 Jun 2019 16:24:58 +0200) it happened
olaf <olaf@criseis.ruhr.de> wrote in
q237uf-7a3.ln1@criseis.ruhr.de>:
What is the application for a second display on a hardware
that is a little bit weak in computing performance compared to
PC-hardware.
Olaf

Heads up 3D display using two small LCD monitors?
Driving a 3D "fog display"? <http://www.fogscreen.com
Picture in Picture display?

For example in a boat in the cabin near the chart table,
and on the outside for the helmsman.
And with different data at that, and remote controlled and..

Debugging perhaps? Program runs on one display, and
debugger/editor/perfmon/etc on the other display?
Combine the two HDMI ports to make a single 8K or wider display?
Watch two TV programs, or play two games at the same time?

The processor barely streams one HDMI feed.

I doubt seriously it would decode two at the same time without
stream glitch artifacts. I refer to the ras pi and their new quad
core.

"Raspberry Pi 4 Model B review: This board really can replace your
PC"
https://www.techrepublic.com/article/raspberry-pi-4-model-b-
review
-this-board-really-can-replace-your-pc/

Raspberry Pi co-creator Eben Upton told me the dual
micro-HDMI ports should be able to support up to two
4K displays at 30Hz or a single 4K display at 60Hz.
I also saw the feature working on another board, with
the Raspbian desktop being split across two displays
and playing back an online video without any issues.
I was able to get my Raspberry Pi 4 working with a 2016
Samsung TV at 4K @ 30Hz, which seemed to work fine,
although obviously it was slightly less smooth than
running the display at 60Hz at 1920 x1080 resolution.

Maybe you should follow this thread branch again. He asked about
INPUT of streams. Not what the thing can display.

And by decode I mean running an app that decodes a video file and
plays it. Can't do two of those simultaneously.
 
On 6/25/19 12:03 AM, Clifford Heath wrote:
On 24/6/19 7:24 pm, Jan Panteltje wrote:
New Raspberry Pi 4 quadcore presented today:
  https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

USB3, gigabit ethernet, micro HDMI dual display 4K, WiFi, bluetooth
H264 and H265 hardware decode, 40 pin GPIO,
1, 2, or 4 GB RAM,.
5V 3 A supply.

Interesting. Does anyone want to speculate on the best way to get
high-bandwidth data into the RPi4? Like from a pair of high-speed ADCs
like you'd use in an SDR? HDMI supports HEC at 100MBit/sec, but you need
software or an FPGA to get it into the right form. The camera interface
is probably not suitable either.

SPI with DMA on the Pi side
 
On 25/6/19 5:09 pm, bitrex wrote:
On 6/25/19 12:03 AM, Clifford Heath wrote:
On 24/6/19 7:24 pm, Jan Panteltje wrote:
New Raspberry Pi 4 quadcore presented today:
  https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

USB3, gigabit ethernet, micro HDMI dual display 4K, WiFi, bluetooth
H264 and H265 hardware decode, 40 pin GPIO,
1, 2, or 4 GB RAM,.
5V 3 A supply.

Interesting. Does anyone want to speculate on the best way to get
high-bandwidth data into the RPi4? Like from a pair of high-speed ADCs
like you'd use in an SDR? HDMI supports HEC at 100MBit/sec, but you
need software or an FPGA to get it into the right form. The camera
interface is probably not suitable either.

SPI with DMA on the Pi side

Still only 20Mbps, not 20MSPS at 12 bit I&Q :)
 
On 2019-06-24, Chris <xxx.syseng.yyy@gfsys.co.uk> wrote:
On 06/24/19 10:24, Jan Panteltje wrote:
New Raspberry Pi 4 quadcore presented today:
https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

USB3, gigabit ethernet, micro HDMI dual display 4K, WiFi, bluetooth
H264 and H265 hardware decode, 40 pin GPIO,
1, 2, or 4 GB RAM,.
5V 3 A supply.


Only minus I see is that the power consumption goes up and up with each model,
my old 1 core raspi only needs 300 mA :-(


Seems a bit meh to me, loads of other boards out there now, but what it
really needed was a a second ethernet, or means to add one.

A good use for this would be low power firewall, opnsense or similar
software, but useless with only a single ethernet...

It's got a media player SoC, so it's going to excell as that task.
if you want a router, you should pick something built around a router
SoC instead.

there's a list here: https://dd-wrt.com/support/router-database/

--
When I tried casting out nines I made a hash of it.
 
On a sunny day (Tue, 25 Jun 2019 14:03:39 +1000) it happened Clifford Heath
<no.spam@please.net> wrote in <x2hQE.5392$xk5.2327@fx37.iad>:

On 24/6/19 7:24 pm, Jan Panteltje wrote:
New Raspberry Pi 4 quadcore presented today:
https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

USB3, gigabit ethernet, micro HDMI dual display 4K, WiFi, bluetooth
H264 and H265 hardware decode, 40 pin GPIO,
1, 2, or 4 GB RAM,.
5V 3 A supply.

Interesting. Does anyone want to speculate on the best way to get
high-bandwidth data into the RPi4? Like from a pair of high-speed ADCs
like you'd use in an SDR? HDMI supports HEC at 100MBit/sec, but you need
software or an FPGA to get it into the right form. The camera interface
is probably not suitable either.

This was recently discussed here, you can toggle a GPIO pin at > 30MHz on the pi 3+.
So even a software read loop of 16 bits wide on GPIO at say 5 MHz (store time)
would give 80 Mbit / s? On the Pi 3+ ?
But mind the task switching, needs FIFO buffer, not hard to do:
http://panteltje.com/panteltje/raspberry_pi_dvb-s_transmitter/

Pi has DMA too, but I have never used that.

It works great with rtl-sdr, I have my spectrum analyzer runnng on a Pi 2:
http://panteltje.com/panteltje/xpsa/index.html
what is high speed ;-)

The Pi 4 has gigabit ethernet, I have several PICs programmed to supply normal UDP ethernet,
maybe those would need a different chip for Gigabit ethernet...


USB3 seems interesting too.
 
On a sunny day (Mon, 24 Jun 2019 22:29:46 -0400) it happened bitrex
<user@example.net> wrote in <uGfQE.25970$Tl4.10427@fx41.iad>:

On 6/24/19 10:28 PM, bitrex wrote:
On 6/24/19 5:24 AM, Jan Panteltje wrote:
New Raspberry Pi 4 quadcore presented today:
  https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

USB3, gigabit ethernet, micro HDMI dual display 4K, WiFi, bluetooth
H264 and H265 hardware decode, 40 pin GPIO,
1, 2, or 4 GB RAM,.
5V 3 A supply.

Only minus I see is that the power consumption goes up and up with
each model,
my old 1 core raspi only needs 300 mA :-(


I have one of these audio samplers/drum machine workstations, the
hardware was outsourced and well designed and built, the software was
written in-house by newbs and is junk, buggy and unusable:

https://reverb.com/item/7895101-bke-beat-thang-sampling-drum-machine

They sold maybe 10,000 of them before the company folded. No support, no
further firmware revisions ever to be available.

I've been thinking about simply disabling the obsolete Motorola Coldfire
with Busybox that runs it currently and bolting a RPi in there and
connecting all the controls and display up to the RPi, and turning it
into something useful.

It seems a more plausible/less frustrating spare time project than
trying to reverse engineer the current firmware and fix all the problems.

Yes busybox is a bit spartanic...
 
On a sunny day (Mon, 24 Jun 2019 20:12:44 +0100) it happened Chris
<xxx.syseng.yyy@gfsys.co.uk> wrote in <qer7ba$7ff$1@gioia.aioe.org>:

On 06/24/19 10:24, Jan Panteltje wrote:
New Raspberry Pi 4 quadcore presented today:
https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

USB3, gigabit ethernet, micro HDMI dual display 4K, WiFi, bluetooth
H264 and H265 hardware decode, 40 pin GPIO,
1, 2, or 4 GB RAM,.
5V 3 A supply.


Only minus I see is that the power consumption goes up and up with each model,
my old 1 core raspi only needs 300 mA :-(


Seems a bit meh to me, loads of other boards out there now, but what it
really needed was a a second ethernet, or means to add one.

A good use for this would be low power firewall, opnsense or similar
software, but useless with only a single ethernet...

Chris

I am using a Pi 2 model as router, has a 4G stick in it,
and runs iptables for routing and firewall.
It is my internet connection.
 
Jasen Betts <jasen@xnet.co.nz> wrote in
news:qesni8$9f7$2@gonzo.revmaps.no-ip.org:

On 2019-06-24, Chris <xxx.syseng.yyy@gfsys.co.uk> wrote:
On 06/24/19 10:24, Jan Panteltje wrote:
New Raspberry Pi 4 quadcore presented today:
https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

USB3, gigabit ethernet, micro HDMI dual display 4K, WiFi,
bluetooth H264 and H265 hardware decode, 40 pin GPIO,
1, 2, or 4 GB RAM,.
5V 3 A supply.


Only minus I see is that the power consumption goes up and up
with each model, my old 1 core raspi only needs 300 mA :-(


Seems a bit meh to me, loads of other boards out there now, but
what it really needed was a a second ethernet, or means to add
one.

A good use for this would be low power firewall, opnsense or
similar software, but useless with only a single ethernet...

It's got a media player SoC, so it's going to excell as that task.
if you want a router, you should pick something built around a
router SoC instead.

there's a list here: https://dd-wrt.com/support/router-database/

Same link I posted before. Look at SolidRun.

<https://www.solid-run.com/>
 
On 06/25/19 11:06, Jan Panteltje wrote:
On a sunny day (Mon, 24 Jun 2019 20:12:44 +0100) it happened Chris
xxx.syseng.yyy@gfsys.co.uk> wrote in<qer7ba$7ff$1@gioia.aioe.org>:

On 06/24/19 10:24, Jan Panteltje wrote:
New Raspberry Pi 4 quadcore presented today:
https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

USB3, gigabit ethernet, micro HDMI dual display 4K, WiFi, bluetooth
H264 and H265 hardware decode, 40 pin GPIO,
1, 2, or 4 GB RAM,.
5V 3 A supply.


Only minus I see is that the power consumption goes up and up with each model,
my old 1 core raspi only needs 300 mA :-(


Seems a bit meh to me, loads of other boards out there now, but what it
really needed was a a second ethernet, or means to add one.

A good use for this would be low power firewall, opnsense or similar
software, but useless with only a single ethernet...

Chris

I am using a Pi 2 model as router, has a 4G stick in it,
and runs iptables for routing and firewall.
It is my internet connection.

I guess with a single interface, you are defining virtual interfaces ?.
Prefer separate hardware interfaces for firewall duty for added
isolation. Virtual interfaces always seemed a bit of a hack to me...

Chris
 
On 06/25/19 09:55, Jasen Betts wrote:
On 2019-06-24, Chris<xxx.syseng.yyy@gfsys.co.uk> wrote:
On 06/24/19 10:24, Jan Panteltje wrote:
New Raspberry Pi 4 quadcore presented today:
https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

USB3, gigabit ethernet, micro HDMI dual display 4K, WiFi, bluetooth
H264 and H265 hardware decode, 40 pin GPIO,
1, 2, or 4 GB RAM,.
5V 3 A supply.


Only minus I see is that the power consumption goes up and up with each model,
my old 1 core raspi only needs 300 mA :-(


Seems a bit meh to me, loads of other boards out there now, but what it
really needed was a a second ethernet, or means to add one.

A good use for this would be low power firewall, opnsense or similar
software, but useless with only a single ethernet...

It's got a media player SoC, so it's going to excell as that task.
if you want a router, you should pick something built around a router
SoC instead.

there's a list here: https://dd-wrt.com/support/router-database/

Already use dd-wrt and tomato for wireless routers but the issue is
cost. Media player or not, it would have much greater applicability if
it had 2 network ports. Even for a media player, one for management and
the other for the media serving, separate subnets for security...

Chris
 
On 06/25/19 03:14, boB wrote:
On Mon, 24 Jun 2019 20:12:44 +0100, Chris<xxx.syseng.yyy@gfsys.co.uk
wrote:

On 06/24/19 10:24, Jan Panteltje wrote:
New Raspberry Pi 4 quadcore presented today:
https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

USB3, gigabit ethernet, micro HDMI dual display 4K, WiFi, bluetooth
H264 and H265 hardware decode, 40 pin GPIO,
1, 2, or 4 GB RAM,.
5V 3 A supply.


Only minus I see is that the power consumption goes up and up with each model,
my old 1 core raspi only needs 300 mA :-(


Seems a bit meh to me, loads of other boards out there now, but what it
really needed was a a second ethernet, or means to add one.

A good use for this would be low power firewall, opnsense or similar
software, but useless with only a single ethernet...

Chris


Available in August...

Here is a nice little review of the 4B just out today

https://www.youtube.com/watch?v=CXCjpJasvG0

Starting to look good. Have been lusting after an affordable arm based
workstation class machine running FreeBSD for ages now. It's taken
some time, but Arm is becoming a valid alternative to the intel
monopoly. Good enough to get work done at a fraction of the cost and
power consumption...

Chris
 
On Tuesday, June 25, 2019 at 12:40:52 PM UTC-4, Chris wrote:
Starting to look good. Have been lusting after an affordable arm based
workstation class machine running FreeBSD for ages now. It's taken
some time, but Arm is becoming a valid alternative to the intel
monopoly. Good enough to get work done at a fraction of the cost and
power consumption...

The ARMs are getting more heavyweight in all regards including more power and the Intel devices are getting more lightweight including less power. Seems they are going to meet in the middle.

Intel powered laptops these days really don't burn so much power. They may have a fan, but it can sit in your lap with no feeling of heat. The rPi ARM chips pretty universally need a fan to run at full speed.

--

Rick C.

-+-+ Get 1,000 miles of free Supercharging
-+-+ Tesla referral code - https://ts.la/richard11209
 
On a sunny day (Tue, 25 Jun 2019 17:22:10 +0100) it happened Chris
<xxx.syseng.yyy@gfsys.co.uk> wrote in <qethng$kkc$1@gioia.aioe.org>:

On 06/25/19 11:06, Jan Panteltje wrote:
On a sunny day (Mon, 24 Jun 2019 20:12:44 +0100) it happened Chris
xxx.syseng.yyy@gfsys.co.uk> wrote in<qer7ba$7ff$1@gioia.aioe.org>:

On 06/24/19 10:24, Jan Panteltje wrote:
New Raspberry Pi 4 quadcore presented today:
https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

USB3, gigabit ethernet, micro HDMI dual display 4K, WiFi, bluetooth
H264 and H265 hardware decode, 40 pin GPIO,
1, 2, or 4 GB RAM,.
5V 3 A supply.


Only minus I see is that the power consumption goes up and up with each model,
my old 1 core raspi only needs 300 mA :-(


Seems a bit meh to me, loads of other boards out there now, but what it
really needed was a a second ethernet, or means to add one.

A good use for this would be low power firewall, opnsense or similar
software, but useless with only a single ethernet...

Chris

I am using a Pi 2 model as router, has a 4G stick in it,
and runs iptables for routing and firewall.
It is my internet connection.



I guess with a single interface, you are defining virtual interfaces ?.
Prefer separate hardware interfaces for firewall duty for added
isolation. Virtual interfaces always seemed a bit of a hack to me...

Chris

Not sure what you mean, here is my connect script for the Huawei 4G stick I bought from ebay:

root@raspberrypi:/usr/local/sbin# cat start_4g
#! /bin/sh

echo "using usb_modeswitch"
usb_modeswitch -s 15 -I -H -c /etc/usb_modeswitch.conf
sleep 2

ls -rtl /dev/ttyUSB*

echo "setting PIN"
huaweic -d /dev/ttyUSB1 -b 9600 -p 1234

sleep 2

killall -KILL pppd

echo "starting pppd"
sleep 1
/usr/sbin/pppd /dev/ttyUSB1 call pct-hsdpa-3g-huawei-e220-kpn
sleep 10

echo "ifconfig"
ifconfig

echo "setting IP forwarding"
iptables -F
route add -net 192.168.0.0/16 dev eth0
echo 1 >/proc/sys/net/ipv4/ip_forward
ip_address=`ifconfig | awk '/P-t-P/{print $2}' | cut -d':' -f2`
iptables -t nat -A POSTROUTING ! -d 192.168.0.0/16 -o ppp0 -j SNAT --to-source $ip_address

echo ""
vnstat -i ppp0 -s

echo ""
/opt/vc/bin/vcgencmd measure_temp



I wrote 'huaweic', only using it here to set the PIN for the 4G USB stick,
but it can do SMS and some more things, it is on my website (at least the old version).
http://panteltje.com/panteltje/newsflex/download.html#huaweic
For usb_modeswitch goolge for it for raspberry (apt-get IIRC)

This raspi is at 192.168.178.1
from there it goes to a 8 port switch, then and other 8 port switch and again an other 8 port switch.
Lots of computahs and other gadgets hang on it in the LAN, some with POE.
Each of those uses a huge number of entries iptables firewall.

vnstat shows usage, so Mbytes used....
All puters have gateway 192.168.178.1 specified.

The 'pct-hsdpa-3g-huawei-e220-kpn' script used by pppd is in fact modified for 4G and connects to the telco.

When I am not home I can take that 4G stick and simply insert it in my laptop
and then run an other script to connect.

Its simple, (once you figured it all out that is) and so far extremely reliable.

To start it all I just ssh -Y to 192.168.178.1 and type
start4g
leave the ssh connection on in terminal,
and check the network connectivity and speed:
root@raspberrypi:~# ping -c 1 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=54 time=38.8 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 38.824/38.824/38.824/0.000 ms

To get my usage an other script, 'vnstat -i ppp0 -s'
root@raspberrypi:~# used

rx / tx / total / estimated
ppp0:
May '19 3.61 GiB / 287.18 MiB / 3.89 GiB
Jun '19 2.45 GiB / 199.62 MiB / 2.64 GiB / 3.20 GiB
yesterday 132.50 MiB / 8.15 MiB / 140.66 MiB
today 156.21 MiB / 9.77 MiB / 165.98 MiB / 208 MiB

its easy.




Maybe 2 ports would help if you only had 2 computahs, but a switch is much easier.
I can switch of the modem / route raspi (go offline) and things will just keep working on the LAN,
because after a short while an ARP request will ask for the MAC addresses for a given IP,
and reroute any traffic via the switches.

That router raspi also knows the exact time...

?
 
On 2019-06-24 02:24, Jan Panteltje wrote:
New Raspberry Pi 4 quadcore presented today:
https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

USB3, gigabit ethernet, micro HDMI dual display 4K, WiFi, bluetooth
H264 and H265 hardware decode, 40 pin GPIO,
1, 2, or 4 GB RAM,.
5V 3 A supply.


Only minus I see is that the power consumption goes up and up with each model,
my old 1 core raspi only needs 300 mA :-(

Unfortunately it seems that it still can't do fast video such as 1080
Youtube in full screen, otherwise this would have been the time I'd get
on board:

https://www.tomshardware.com/reviews/raspberry-pi-4-b,6193.html

There is a way via omxplayer on the command line but we aren't living in
the stone age anymore.

I wonder why. All those cheap Android TV boxes could do that since
years. We have one.

--
Regards, Joerg

http://www.analogconsultants.com/
 
On 6/25/19 3:38 AM, Clifford Heath wrote:
On 25/6/19 5:09 pm, bitrex wrote:
On 6/25/19 12:03 AM, Clifford Heath wrote:
On 24/6/19 7:24 pm, Jan Panteltje wrote:
New Raspberry Pi 4 quadcore presented today:
  https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

USB3, gigabit ethernet, micro HDMI dual display 4K, WiFi, bluetooth
H264 and H265 hardware decode, 40 pin GPIO,
1, 2, or 4 GB RAM,.
5V 3 A supply.

Interesting. Does anyone want to speculate on the best way to get
high-bandwidth data into the RPi4? Like from a pair of high-speed
ADCs like you'd use in an SDR? HDMI supports HEC at 100MBit/sec, but
you need software or an FPGA to get it into the right form. The
camera interface is probably not suitable either.

SPI with DMA on the Pi side

Still only 20Mbps, not 20MSPS at 12 bit I&Q :)

Don't know what the Pi hardware SPI bus tops out at, I didn't believe
there was any standards-enforced upper bound on SPI bus speed. There's
more than one hardware SPI channel on the board maybe you could
interleave it.

Other than that your options are kinda limited; HDMI and camera for the
reasons you say, Ethernet doesn't make much sense, USB you'd also have
to use a FPGA or have a second embedded processor to format the
transmission and write a driver for it, i2c is too slow.

Might as well check how fast the GPIO pins can toggle and go direct via
bit-banging it, it might be faster than one expects
 
On 06/25/19 18:17, Jan Panteltje wrote:
On a sunny day (Tue, 25 Jun 2019 17:22:10 +0100) it happened Chris
xxx.syseng.yyy@gfsys.co.uk> wrote in<qethng$kkc$1@gioia.aioe.org>:

On 06/25/19 11:06, Jan Panteltje wrote:
On a sunny day (Mon, 24 Jun 2019 20:12:44 +0100) it happened Chris
xxx.syseng.yyy@gfsys.co.uk> wrote in<qer7ba$7ff$1@gioia.aioe.org>:

On 06/24/19 10:24, Jan Panteltje wrote:
New Raspberry Pi 4 quadcore presented today:
https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

USB3, gigabit ethernet, micro HDMI dual display 4K, WiFi, bluetooth
H264 and H265 hardware decode, 40 pin GPIO,
1, 2, or 4 GB RAM,.
5V 3 A supply.


Only minus I see is that the power consumption goes up and up with each model,
my old 1 core raspi only needs 300 mA :-(


Seems a bit meh to me, loads of other boards out there now, but what it
really needed was a a second ethernet, or means to add one.

A good use for this would be low power firewall, opnsense or similar
software, but useless with only a single ethernet...

Chris

I am using a Pi 2 model as router, has a 4G stick in it,
and runs iptables for routing and firewall.
It is my internet connection.



I guess with a single interface, you are defining virtual interfaces ?.
Prefer separate hardware interfaces for firewall duty for added
isolation. Virtual interfaces always seemed a bit of a hack to me...

Chris

Not sure what you mean, here is my connect script for the Huawei 4G stick I bought from ebay:

root@raspberrypi:/usr/local/sbin# cat start_4g
#! /bin/sh

echo "using usb_modeswitch"
usb_modeswitch -s 15 -I -H -c /etc/usb_modeswitch.conf
sleep 2

ls -rtl /dev/ttyUSB*

echo "setting PIN"
huaweic -d /dev/ttyUSB1 -b 9600 -p 1234

sleep 2

killall -KILL pppd

echo "starting pppd"
sleep 1
/usr/sbin/pppd /dev/ttyUSB1 call pct-hsdpa-3g-huawei-e220-kpn
sleep 10

echo "ifconfig"
ifconfig

echo "setting IP forwarding"
iptables -F
route add -net 192.168.0.0/16 dev eth0
echo 1>/proc/sys/net/ipv4/ip_forward
ip_address=`ifconfig | awk '/P-t-P/{print $2}' | cut -d':' -f2`
iptables -t nat -A POSTROUTING ! -d 192.168.0.0/16 -o ppp0 -j SNAT --to-source $ip_address

echo ""
vnstat -i ppp0 -s

echo ""
/opt/vc/bin/vcgencmd measure_temp



I wrote 'huaweic', only using it here to set the PIN for the 4G USB stick,
but it can do SMS and some more things, it is on my website (at least the old version).
http://panteltje.com/panteltje/newsflex/download.html#huaweic
For usb_modeswitch goolge for it for raspberry (apt-get IIRC)

This raspi is at 192.168.178.1
from there it goes to a 8 port switch, then and other 8 port switch and again an other 8 port switch.
Lots of computahs and other gadgets hang on it in the LAN, some with POE.
Each of those uses a huge number of entries iptables firewall.

vnstat shows usage, so Mbytes used....
All puters have gateway 192.168.178.1 specified.

The 'pct-hsdpa-3g-huawei-e220-kpn' script used by pppd is in fact modified for 4G and connects to the telco.

When I am not home I can take that 4G stick and simply insert it in my laptop
and then run an other script to connect.

Its simple, (once you figured it all out that is) and so far extremely reliable.

To start it all I just ssh -Y to 192.168.178.1 and type
start4g
leave the ssh connection on in terminal,
and check the network connectivity and speed:
root@raspberrypi:~# ping -c 1 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=54 time=38.8 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 38.824/38.824/38.824/0.000 ms

To get my usage an other script, 'vnstat -i ppp0 -s'
root@raspberrypi:~# used

rx / tx / total / estimated
ppp0:
May '19 3.61 GiB / 287.18 MiB / 3.89 GiB
Jun '19 2.45 GiB / 199.62 MiB / 2.64 GiB / 3.20 GiB
yesterday 132.50 MiB / 8.15 MiB / 140.66 MiB
today 156.21 MiB / 9.77 MiB / 165.98 MiB / 208 MiB

its easy.




Maybe 2 ports would help if you only had 2 computahs, but a switch is much easier.
I can switch of the modem / route raspi (go offline) and things will just keep working on the LAN,
because after a short while an ARP request will ask for the MAC addresses for a given IP,
and reroute any traffic via the switches.

That router raspi also knows the exact time...

?

I think I can see what you are doing, but seems a bit complicated,
setups all over the place. Here, prefer to secure the perimeter
first, single point of setup for the rules, port forwarding etc
but then have 2nd level routers with their own rules to control
access to and from subnets. Firewalling is a separate function
and generally don't have much in the way of rules on the machines.

Hierarchical access control and setup that doesn't really change
from year to year. Different strokes for different folks I guess...

Chris
 
On a sunny day (Tue, 25 Jun 2019 11:03:39 -0700) it happened Joerg
<news@analogconsultants.com> wrote in <gnf5vnFi6h8U1@mid.individual.net>:

On 2019-06-24 02:24, Jan Panteltje wrote:
New Raspberry Pi 4 quadcore presented today:
https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

USB3, gigabit ethernet, micro HDMI dual display 4K, WiFi, bluetooth
H264 and H265 hardware decode, 40 pin GPIO,
1, 2, or 4 GB RAM,.
5V 3 A supply.


Only minus I see is that the power consumption goes up and up with each model,
my old 1 core raspi only needs 300 mA :-(


Unfortunately it seems that it still can't do fast video such as 1080
Youtube in full screen, otherwise this would have been the time I'd get
on board:

https://www.tomshardware.com/reviews/raspberry-pi-4-b,6193.html

Test is OK, but has some silly remarks
like 'charging' via USB,
and toggling GIO pins with python
(I'd use asm or C to get the real speed), so he gets kHz and not MHz???
Could be a typo, I do not speak snake languages,


There is a way via omxplayer on the command line but we aren't living in
the stone age anymore.

Holly cow, who is in the stone age?
I do everything from the command line.
It is only silly clueless whimsy MS widows poisoned poor left hand mouse clunkers that do not know about scripts and commend line
because Billy the Gates removed that interface to it to avoid DrDOS running with win 3.1, in win95.

We are 24 years later now and every kid now uses the command line
if not they are doomed to be destroyed by Hacker in the next war trumpy starts,


Get real. 4k I do not use, this monitor I use now is 1680 * 1050 and is my work station.

For my older Pi you had to buy a license key to enable hardware mpeg playback.
Not sure he had it enabled? Maybe no more key needed? I do not know.
Anyways people making 4k youtube videos with only themselves talking should be banned to some island without connectivity,
as looking at some silly babble in 4k is a crime against humanity and a waste, and bad for the climate [1],
and etc etc... does not add anything to the content.
I am sure software will be improved but I could not care less.
I type this on a 2.8 GHz single core AMD sempron, so wtf. 5625.59 bogomips.
Load factor 7.3 .. about all the time that is ...

Yes I have a core i5 too, but those are full of security holes.

Anyways I'd expect to see youtube working , but I could not care less.
If it really does not work and I need it I will write it,


[1] we had a heat wave today, really:
t_min 25.7 at 08:15 t_max 38.2 at 15:59 rh_min 24.0 at 13:42 rh_max 67.0 at 20:57

It is also clear we need a heatsink and fan in the Pi4 housing,




I wonder why. All those cheap Android TV boxes could do that since
years. We have one.

Tom does nice test, but I wonder...
Was looking again today, no 4G memory model available...
But I do want one :)
 
On 06/25/19 18:22, Rick C wrote:
On Tuesday, June 25, 2019 at 12:40:52 PM UTC-4, Chris wrote:

Starting to look good. Have been lusting after an affordable arm based
workstation class machine running FreeBSD for ages now. It's taken
some time, but Arm is becoming a valid alternative to the intel
monopoly. Good enough to get work done at a fraction of the cost and
power consumption...

The ARMs are getting more heavyweight in all regards including more power and the Intel devices are getting more lightweight including less power. Seems they are going to meet in the middle.

Intel powered laptops these days really don't burn so much power. They may have a fan, but it can sit in your lap with no feeling of heat. The rPi ARM chips pretty universally need a fan to run at full speed.

They are getting better, but still quite a bit behind afaics. Whatever,
but a bit more competition might get them off their backsides and come
up with something truly innovative. Good product, but not really
trying at all. With a fairly captive market, perhaps they think they
don't need to, but amd is snapping at their heals at least...

Chris
 
In sci.electronics.design Don Kuenz <g@crcomp.net> wrote:
Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> wrote:
On a sunny day (24 Jun 2019 03:01:11 -0700) it happened Winfield Hill
winfieldhill@yahoo.com> wrote in <qeq71702fh6@drn.newsguy.com>:

Jan Panteltje wrote...

New Raspberry Pi 4 quadcore presented today:
https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

USB3, gigabit ethernet, micro HDMI dual display 4K, WiFi,
bluetooth. H264 and H265 hardware decode, 40 pin GPIO,
1, 2, or 4 GB RAM,. 5V 3 A supply.

Only minus I see is that the power consumption goes up and
up with each model, my old 1 core raspi only needs 300 mA :-(

I noticed the pics don't show a heatsink on the processor,
will that have to be an awkward 3rd-party add-on? Maybe
a heatsink with a small fan? Is there a fan connector?

Good question,
here they sell a case with build in fan
https://www.kiwi-electronics.nl/unity-case-for-raspberry-pi-4-with-fan-transparent
I take it that it is always on.

What I find peculiar is that the specs say 0-50 °C,
so not below zero?

I will likely order one, as the idea of 2 displays seems cool.

Is a cooler mandatory? The GPIO block contains power pins able to
theoretically power a fan.

A cooler is not mandatory, per this _Register_ article (shared by a
followup at comp.sys.raspberry-pi):

Cases and Cooling

Connector changes aren't the only worries for those looking
to upgrade. While the Pi 4 is the same size as its predecessor,
you will likely need a new case due to sockets moving about,
and we'd also recommend considering a cooling solution.

In our real-world testing – using the machine as our primary
computer for a few days – things got quite warm. If you were
to load the thing up with serious tasks, then airflow would
definitely be a consideration.

Upton warned us that the Pi would start "managing its clocking"
- aka dialing clock rates down and performance back a bit to
cool down - at around 80°C, adding: "It's definitely a little
warmer than the Model 3 B+: idle power is roughly the same, but
we can draw about 1W more under full load."

Our Pi 4 Model B, sat on a desk without a case, hit 69 degrees
just writing this piece in LibreOffice. Those keen to hammer
their Pis, in terms of workload, would therefore be wise to
look at options for keeping things cool.

(excerpt)

https://www.theregister.co.uk/2019/06/24/raspberry_pi_4_model_b/

Thank you, 73,

--
Don Kuenz KB7RPU
There was a young lady named Bright Whose speed was far faster than light;
She set out one day In a relative way And returned on the previous night.
 
On a sunny day (Tue, 25 Jun 2019 21:17:32 -0000 (UTC)) it happened Don Kuenz
<g@crcomp.net> wrote in <20190625c@crcomp.net>:

In sci.electronics.design Don Kuenz <g@crcomp.net> wrote:
Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> wrote:
On a sunny day (24 Jun 2019 03:01:11 -0700) it happened Winfield Hill
winfieldhill@yahoo.com> wrote in <qeq71702fh6@drn.newsguy.com>:

Jan Panteltje wrote...

New Raspberry Pi 4 quadcore presented today:
https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

USB3, gigabit ethernet, micro HDMI dual display 4K, WiFi,
bluetooth. H264 and H265 hardware decode, 40 pin GPIO,
1, 2, or 4 GB RAM,. 5V 3 A supply.

Only minus I see is that the power consumption goes up and
up with each model, my old 1 core raspi only needs 300 mA :-(

I noticed the pics don't show a heatsink on the processor,
will that have to be an awkward 3rd-party add-on? Maybe
a heatsink with a small fan? Is there a fan connector?

Good question,
here they sell a case with build in fan
https://www.kiwi-electronics.nl/unity-case-for-raspberry-pi-4-with-fan-transparent
I take it that it is always on.

What I find peculiar is that the specs say 0-50 °C,
so not below zero?

I will likely order one, as the idea of 2 displays seems cool.

Is a cooler mandatory? The GPIO block contains power pins able to
theoretically power a fan.

A cooler is not mandatory, per this _Register_ article (shared by a
followup at comp.sys.raspberry-pi):

Cases and Cooling

Connector changes aren't the only worries for those looking
to upgrade. While the Pi 4 is the same size as its predecessor,
you will likely need a new case due to sockets moving about,
and we'd also recommend considering a cooling solution.

In our real-world testing – using the machine as our primary
computer for a few days – things got quite warm. If you were
to load the thing up with serious tasks, then airflow would
definitely be a consideration.

Upton warned us that the Pi would start "managing its clocking"
- aka dialing clock rates down and performance back a bit to
cool down - at around 80°C, adding: "It's definitely a little
warmer than the Model 3 B+: idle power is roughly the same, but
we can draw about 1W more under full load."

Our Pi 4 Model B, sat on a desk without a case, hit 69 degrees
just writing this piece in LibreOffice. Those keen to hammer
their Pis, in terms of workload, would therefore be wise to
look at options for keeping things cool.

(excerpt)

https://www.theregister.co.uk/2019/06/24/raspberry_pi_4_model_b/

Bit silly, he thing slows the clock down all the time because temperature alarm comes in.
Imagine a 15 W soldering iron in a mall plastic box.

OF COURSE you need a fan, and better a heatsink on the processor too.
Else one may just as well use a Pi 3+ as it will be just as fast without throttling.

Alu housing will become available I am sure, that may work for silent operation,
cooling by convection, IF enough space around that Pi.
 

Welcome to EDABoard.com

Sponsor

Back
Top