Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #548501 > unrolled thread

New Raspberry Pi 4 presented today

Started byJan Panteltje <pNaOnStPeAlMtje@yahoo.com>
First post2019-06-24 09:24 +0000
Last post2019-06-27 19:37 +0000
Articles 20 on this page of 46 — 15 participants

Back to article view | Back to sci.electronics.design


Contents

  New Raspberry Pi 4 presented today Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-24 09:24 +0000
    Re: New Raspberry Pi 4 presented today Winfield Hill <winfieldhill@yahoo.com> - 2019-06-24 03:01 -0700
      Re: New Raspberry Pi 4 presented today Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-24 10:21 +0000
        Re: New Raspberry Pi 4 presented today Don Kuenz <g@crcomp.net> - 2019-06-24 14:11 +0000
          Re: New Raspberry Pi 4 presented today The Natural Philosopher <tnp@invalid.invalid> - 2019-06-24 19:59 +0100
          Re: New Raspberry Pi 4 presented today Don Kuenz <g@crcomp.net> - 2019-06-25 21:17 +0000
            Re: New Raspberry Pi 4 presented today Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-26 04:58 +0000
        Re: New Raspberry Pi 4 presented today olaf <olaf@criseis.ruhr.de> - 2019-06-24 16:24 +0200
          Re: New Raspberry Pi 4 presented today Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-24 15:42 +0000
            Re: New Raspberry Pi 4 presented today Jeff Liebermann <jeffl@cruzio.com> - 2019-06-24 10:13 -0700
              Re: New Raspberry Pi 4 presented today DecadentLinuxUserNumeroUno@decadence.org - 2019-06-25 02:44 +0000
                Re: New Raspberry Pi 4 presented today Jeff Liebermann <jeffl@cruzio.com> - 2019-06-24 22:49 -0700
                  Re: New Raspberry Pi 4 presented today DecadentLinuxUserNumeroUno@decadence.org - 2019-06-25 06:28 +0000
      Re: New Raspberry Pi 4 presented today olaf <olaf@criseis.ruhr.de> - 2019-06-24 16:21 +0200
    Re: New Raspberry Pi 4 presented today DecadentLinuxUserNumeroUno@decadence.org - 2019-06-24 14:31 +0000
      Re: New Raspberry Pi 4 presented today Lasse Langwadt Christensen <langwadt@fonz.dk> - 2019-06-24 08:44 -0700
        Re: New Raspberry Pi 4 presented today DecadentLinuxUserNumeroUno@decadence.org - 2019-06-25 02:35 +0000
    Re: New Raspberry Pi 4 presented today Chris <xxx.syseng.yyy@gfsys.co.uk> - 2019-06-24 20:12 +0100
      Re: New Raspberry Pi 4 presented today boB <boB@K7IQ.com> - 2019-06-24 19:14 -0700
        Re: New Raspberry Pi 4 presented today Chris <xxx.syseng.yyy@gfsys.co.uk> - 2019-06-25 17:40 +0100
          Re: New Raspberry Pi 4 presented today Rick C <gnuarm.deletethisbit@gmail.com> - 2019-06-25 10:22 -0700
            Re: New Raspberry Pi 4 presented today Chris <xxx.syseng.yyy@gfsys.co.uk> - 2019-06-25 19:46 +0100
      Re: New Raspberry Pi 4 presented today Jasen Betts <jasen@xnet.co.nz> - 2019-06-25 08:55 +0000
        Re: New Raspberry Pi 4 presented today DecadentLinuxUserNumeroUno@decadence.org - 2019-06-25 12:40 +0000
        Re: New Raspberry Pi 4 presented today Chris <xxx.syseng.yyy@gfsys.co.uk> - 2019-06-25 17:18 +0100
      Re: New Raspberry Pi 4 presented today Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-25 10:06 +0000
        Re: New Raspberry Pi 4 presented today Chris <xxx.syseng.yyy@gfsys.co.uk> - 2019-06-25 17:22 +0100
          Re: New Raspberry Pi 4 presented today Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-25 17:17 +0000
            Re: New Raspberry Pi 4 presented today Chris <xxx.syseng.yyy@gfsys.co.uk> - 2019-06-25 19:39 +0100
    Re: New Raspberry Pi 4 presented today bitrex <user@example.net> - 2019-06-24 22:28 -0400
      Re: New Raspberry Pi 4 presented today bitrex <user@example.net> - 2019-06-24 22:29 -0400
        Re: New Raspberry Pi 4 presented today Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-25 10:06 +0000
    Re: New Raspberry Pi 4 presented today Clifford Heath <no.spam@please.net> - 2019-06-25 14:03 +1000
      Re: New Raspberry Pi 4 presented today DecadentLinuxUserNumeroUno@decadence.org - 2019-06-25 05:48 +0000
      Re: New Raspberry Pi 4 presented today bitrex <user@example.net> - 2019-06-25 03:09 -0400
        Re: New Raspberry Pi 4 presented today Clifford Heath <no.spam@please.net> - 2019-06-25 17:38 +1000
          Re: New Raspberry Pi 4 presented today bitrex <user@example.net> - 2019-06-25 14:37 -0400
      Re: New Raspberry Pi 4 presented today Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-25 10:08 +0000
    Re: New Raspberry Pi 4 presented today Joerg <news@analogconsultants.com> - 2019-06-25 11:03 -0700
      Re: New Raspberry Pi 4 presented today Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-25 19:10 +0000
        Re: New Raspberry Pi 4 presented today Joerg <news@analogconsultants.com> - 2019-06-26 08:09 -0700
          Re: New Raspberry Pi 4 presented today Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-26 17:16 +0000
            Re: New Raspberry Pi 4 presented today Joerg <news@analogconsultants.com> - 2019-06-26 15:13 -0700
              Re: New Raspberry Pi 4 presented today Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-27 07:39 +0000
                Re: New Raspberry Pi 4 presented today Joerg <news@analogconsultants.com> - 2019-06-27 09:22 -0700
                  Re: New Raspberry Pi 4 presented today Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-27 19:37 +0000

Page 2 of 3 — ← Prev page 1 [2] 3  Next page →


#548796

FromRick C <gnuarm.deletethisbit@gmail.com>
Date2019-06-25 10:22 -0700
Message-ID<9f075e58-52f2-4d4c-a7cd-f0f2297418ee@googlegroups.com>
In reply to#548787
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

[toc] | [prev] | [next] | [standalone]


#548803

FromChris <xxx.syseng.yyy@gfsys.co.uk>
Date2019-06-25 19:46 +0100
Message-ID<qetq67$1rli$1@gioia.aioe.org>
In reply to#548796
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

[toc] | [prev] | [next] | [standalone]


#548733

FromJasen Betts <jasen@xnet.co.nz>
Date2019-06-25 08:55 +0000
Message-ID<qesni8$9f7$2@gonzo.revmaps.no-ip.org>
In reply to#548613
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.

[toc] | [prev] | [next] | [standalone]


#548751

FromDecadentLinuxUserNumeroUno@decadence.org
Date2019-06-25 12:40 +0000
Message-ID<qet4nl$n81$1@gioia.aioe.org>
In reply to#548733
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/>

[toc] | [prev] | [next] | [standalone]


#548782

FromChris <xxx.syseng.yyy@gfsys.co.uk>
Date2019-06-25 17:18 +0100
Message-ID<qethh5$jg2$1@gioia.aioe.org>
In reply to#548733
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

[toc] | [prev] | [next] | [standalone]


#548744

FromJan Panteltje <pNaOnStPeAlMtje@yahoo.com>
Date2019-06-25 10:06 +0000
Message-ID<qesrnt$pqe$1@dont-email.me>
In reply to#548613
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.

[toc] | [prev] | [next] | [standalone]


#548783

FromChris <xxx.syseng.yyy@gfsys.co.uk>
Date2019-06-25 17:22 +0100
Message-ID<qethng$kkc$1@gioia.aioe.org>
In reply to#548744
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

[toc] | [prev] | [next] | [standalone]


#548794

FromJan Panteltje <pNaOnStPeAlMtje@yahoo.com>
Date2019-06-25 17:17 +0000
Message-ID<qetkvq$e4e$1@dont-email.me>
In reply to#548783
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...

?

[toc] | [prev] | [next] | [standalone]


#548801

FromChris <xxx.syseng.yyy@gfsys.co.uk>
Date2019-06-25 19:39 +0100
Message-ID<qetpo4$1pgc$1@gioia.aioe.org>
In reply to#548794
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

[toc] | [prev] | [next] | [standalone]


#548674

Frombitrex <user@example.net>
Date2019-06-24 22:28 -0400
Message-ID<REfQE.25969$Tl4.3060@fx41.iad>
In reply to#548501
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.

Most of the controls and DAC pins, etc seem to be brought out to pcb 
pads or headers and the LCD display is off-the-shelf stock so at least 
in principle it shouldn't be too hard to give it a new brain. Given how 
many others must be sitting dusty in closets there might be a small 
market for the upgrade.

[toc] | [prev] | [next] | [standalone]


#548676

Frombitrex <user@example.net>
Date2019-06-24 22:29 -0400
Message-ID<uGfQE.25970$Tl4.10427@fx41.iad>
In reply to#548674
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.

[toc] | [prev] | [next] | [standalone]


#548745

FromJan Panteltje <pNaOnStPeAlMtje@yahoo.com>
Date2019-06-25 10:06 +0000
Message-ID<qesro6$ps2$1@dont-email.me>
In reply to#548676
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...

[toc] | [prev] | [next] | [standalone]


#548695

FromClifford Heath <no.spam@please.net>
Date2019-06-25 14:03 +1000
Message-ID<x2hQE.5392$xk5.2327@fx37.iad>
In reply to#548501
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.

[toc] | [prev] | [next] | [standalone]


#548708

FromDecadentLinuxUserNumeroUno@decadence.org
Date2019-06-25 05:48 +0000
Message-ID<qescka$17f3$3@gioia.aioe.org>
In reply to#548695
Clifford Heath <no.spam@please.net> wrote in
news: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.
> 

  It puts out to an HEC, but I seriously doubt it takes data in at 
that rate.

[toc] | [prev] | [next] | [standalone]


#548716

Frombitrex <user@example.net>
Date2019-06-25 03:09 -0400
Message-ID<tMjQE.11010$L55.7516@fx45.iad>
In reply to#548695
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

[toc] | [prev] | [next] | [standalone]


#548721

FromClifford Heath <no.spam@please.net>
Date2019-06-25 17:38 +1000
Message-ID<vbkQE.24738$065.1331@fx43.iad>
In reply to#548716
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 :)

[toc] | [prev] | [next] | [standalone]


#548800

Frombitrex <user@example.net>
Date2019-06-25 14:37 -0400
Message-ID<1StQE.8163$dz4.1224@fx05.iad>
In reply to#548721
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

[toc] | [prev] | [next] | [standalone]


#548746

FromJan Panteltje <pNaOnStPeAlMtje@yahoo.com>
Date2019-06-25 10:08 +0000
Message-ID<qesrqe$qbn$1@dont-email.me>
In reply to#548695
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.

[toc] | [prev] | [next] | [standalone]


#548799

FromJoerg <news@analogconsultants.com>
Date2019-06-25 11:03 -0700
Message-ID<gnf5vnFi6h8U1@mid.individual.net>
In reply to#548501
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/

[toc] | [prev] | [next] | [standalone]


#548806

FromJan Panteltje <pNaOnStPeAlMtje@yahoo.com>
Date2019-06-25 19:10 +0000
Message-ID<qetrju$nc3$1@dont-email.me>
In reply to#548799
 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 :-)

[toc] | [prev] | [next] | [standalone]


Page 2 of 3 — ← Prev page 1 [2] 3  Next page →

Back to top | Article view | sci.electronics.design


csiph-web