My 4G setup/project

This a discussion place for anything.
kckrawford
Posts: 9
Joined: Tue Dec 10, 2019 3:18 pm
Has thanked: 0
Been thanked: 0

Re: My 4G setup/project

Post by kckrawford » Thu Dec 12, 2019 12:51 am

Any recommendations on a switch?

swwifty
Posts: 565
Joined: Thu Aug 30, 2018 8:21 pm
Location: NE GA Mountains
Has thanked: 1 time
Been thanked: 60 times

Re: My 4G setup/project

Post by swwifty » Thu Dec 12, 2019 8:20 am

kckrawford wrote:
Thu Dec 12, 2019 12:51 am
Any recommendations on a switch?
Depends on how many ports you need but this is a good place to start: https://www.ui.com/unifi-switching/unifi-switch-8/

Also has PoE, but you'll need an adapter for 24v PoE.

Or you could just go with this switch which does all PoE modes: https://www.ui.com/unifi-switching/unifi-switch-8-150w/

Then you won't need a PoE injector for your access point, or your Raspberry PI. Helps with cleaner installs (not creating a rat's nest, etc.)

kckrawford
Posts: 9
Joined: Tue Dec 10, 2019 3:18 pm
Has thanked: 0
Been thanked: 0

Re: My 4G setup/project

Post by kckrawford » Thu Dec 12, 2019 8:06 pm

Replied to your PM,

and will definitely look into the switch for the cleaner install.

SliverGT
Posts: 48
Joined: Sun Dec 22, 2019 10:41 pm
Has thanked: 0
Been thanked: 6 times

Re: My 4G setup/project

Post by SliverGT » Tue Dec 31, 2019 5:23 pm

I got my EM7565 and RPi3+ up and running and noticed the system log on the Pi is filled with change cpu frequency errors. Is there a fix for this?

Tue Dec 31 14:29:05 2019 kern.err kernel: [ 2655.501272] cpufreq: __target_index: Failed to change cpu frequency: -22
Tue Dec 31 14:29:13 2019 kern.err kernel: [ 2663.555870] bcm2835-cpufreq:bcm2835_cpufreq_set_clock:84: Failed to set clock: 1400000 (-12)
Tue Dec 31 14:29:13 2019 kern.err kernel: [ 2663.579202] bcm2835-cpufreq:bcm2835_cpufreq_driver_target_index:183: Error occurred setting a new frequency (1400000)
Tue Dec 31 14:29:13 2019 kern.err kernel: [ 2663.604592] cpufreq: __target_index: Failed to change cpu frequency: -22
Tue Dec 31 14:29:19 2019 kern.err kernel: [ 2669.405981] bcm2835-cpufreq:bcm2835_cpufreq_set_clock:84: Failed to set clock: 1400000 (-12)
Tue Dec 31 14:29:19 2019 kern.err kernel: [ 2669.429455] bcm2835-cpufreq:bcm2835_cpufreq_driver_target_index:183: Error occurred setting a new frequency (1400000)
Tue Dec 31 14:29:19 2019 kern.err kernel: [ 2669.455557] cpufreq: __target_index: Failed to change cpu frequency: -22
Tue Dec 31 14:29:31 2019 kern.err kernel: [ 2681.628986] bcm2835-cpufreq:bcm2835_cpufreq_set_clock:84: Failed to set clock: 1400000 (-12)

swwifty
Posts: 565
Joined: Thu Aug 30, 2018 8:21 pm
Location: NE GA Mountains
Has thanked: 1 time
Been thanked: 60 times

Re: My 4G setup/project

Post by swwifty » Thu Jan 02, 2020 5:09 pm

SliverGT wrote:
Tue Dec 31, 2019 5:23 pm
I got my EM7565 and RPi3+ up and running and noticed the system log on the Pi is filled with change cpu frequency errors. Is there a fix for this?

Tue Dec 31 14:29:05 2019 kern.err kernel: [ 2655.501272] cpufreq: __target_index: Failed to change cpu frequency: -22
Tue Dec 31 14:29:13 2019 kern.err kernel: [ 2663.555870] bcm2835-cpufreq:bcm2835_cpufreq_set_clock:84: Failed to set clock: 1400000 (-12)
Tue Dec 31 14:29:13 2019 kern.err kernel: [ 2663.579202] bcm2835-cpufreq:bcm2835_cpufreq_driver_target_index:183: Error occurred setting a new frequency (1400000)
Tue Dec 31 14:29:13 2019 kern.err kernel: [ 2663.604592] cpufreq: __target_index: Failed to change cpu frequency: -22
Tue Dec 31 14:29:19 2019 kern.err kernel: [ 2669.405981] bcm2835-cpufreq:bcm2835_cpufreq_set_clock:84: Failed to set clock: 1400000 (-12)
Tue Dec 31 14:29:19 2019 kern.err kernel: [ 2669.429455] bcm2835-cpufreq:bcm2835_cpufreq_driver_target_index:183: Error occurred setting a new frequency (1400000)
Tue Dec 31 14:29:19 2019 kern.err kernel: [ 2669.455557] cpufreq: __target_index: Failed to change cpu frequency: -22
Tue Dec 31 14:29:31 2019 kern.err kernel: [ 2681.628986] bcm2835-cpufreq:bcm2835_cpufreq_set_clock:84: Failed to set clock: 1400000 (-12)
Not that I'm aware of. I've seen it too, but haven't noticed any harm from it.

SliverGT
Posts: 48
Joined: Sun Dec 22, 2019 10:41 pm
Has thanked: 0
Been thanked: 6 times

Re: My 4G setup/project

Post by SliverGT » Sun Jan 05, 2020 1:22 pm

Those errors seemed to be adding ~10ms of latency for me. I eliminated them by adding the following commands to the Local Startup. It sets the min/max scaling frequency to the maximum so the processor always runs at full speed. Note that I'm using an Rpi3B+ which runs at a max of 1.4GHz, yours may be different.

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
echo -n 1400000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
echo -n performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
exit 0

swwifty
Posts: 565
Joined: Thu Aug 30, 2018 8:21 pm
Location: NE GA Mountains
Has thanked: 1 time
Been thanked: 60 times

Re: My 4G setup/project

Post by swwifty » Sun Jan 05, 2020 4:21 pm

SliverGT wrote:
Sun Jan 05, 2020 1:22 pm
Those errors seemed to be adding ~10ms of latency for me. I eliminated them by adding the following commands to the Local Startup. It sets the min/max scaling frequency to the maximum so the processor always runs at full speed. Note that I'm using an Rpi3B+ which runs at a max of 1.4GHz, yours may be different.

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
echo -n 1400000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
echo -n performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
exit 0
how'd you figure out it was causing a latency issue?

SliverGT
Posts: 48
Joined: Sun Dec 22, 2019 10:41 pm
Has thanked: 0
Been thanked: 6 times

Re: My 4G setup/project

Post by SliverGT » Sun Jan 05, 2020 7:37 pm

I just noticed the latency in general was higher with the Rpi vs my Mofi4500. It could be something else though, time will tell...

swwifty
Posts: 565
Joined: Thu Aug 30, 2018 8:21 pm
Location: NE GA Mountains
Has thanked: 1 time
Been thanked: 60 times

Re: My 4G setup/project

Post by swwifty » Mon Jan 06, 2020 8:10 am

SliverGT wrote:
Sun Jan 05, 2020 7:37 pm
I just noticed the latency in general was higher with the Rpi vs my Mofi4500. It could be something else though, time will tell...
I can't imagine you could notice a 10ms latency. I'd suspect something else was going on.

I think a human can only notice a latency as low as about 250ms or above? I've seen it somewhere posted.

SliverGT
Posts: 48
Joined: Sun Dec 22, 2019 10:41 pm
Has thanked: 0
Been thanked: 6 times

Re: My 4G setup/project

Post by SliverGT » Sat Jan 25, 2020 11:42 am

My build is fully operational and ready to mount outside close to the antennas. Just wanted to say thanks for your contribution here, not sure I would have attempted this without seeing someone else be successful with it.
IMG_4888.JPG

Post Reply