MKS-PI icon indicating copy to clipboard operation
MKS-PI copied to clipboard

Slow Wifi speed

Open ils15 opened this issue 2 years ago • 23 comments

Comfast adapter has low wifi speed i need to investigate more, but appear a kernel related problem

RPI4 with 5GHZ

image

MKS PI with 2.4 and comfast adapter

image

ils15 avatar Oct 03 '22 19:10 ils15

I'm having the same issue. Wifi with the comfast adapter is incredibly unstable and slow. Did you find a solution to this yet?

garbean7 avatar Dec 01 '22 15:12 garbean7

No. And Markerbase didnt answer anything

ils15 avatar Dec 01 '22 15:12 ils15

Are you able to use the fluidd webpage via wifi? For me it looses connection to moonraker and sometimes the network every 30s despite a great signal. If connected to a ethernet cable everything works fine. Just wondering if it is an issue with my network or the MKS Pi.

garbean7 avatar Dec 01 '22 15:12 garbean7

i think yes i reinstalled everything using kiauh, but speed still slow

ils15 avatar Dec 01 '22 16:12 ils15

My R8188EUS did not work properly or the wifi signal was too weak for it. It now works fine with another adapter.

garbean7 avatar Dec 01 '22 21:12 garbean7

My R8188EUS did not work properly or the wifi signal was too weak for it. It now works fine with another adapter.

which adapter? have you tried any 5 GHZ adapter?

ils15 avatar Dec 02 '22 10:12 ils15

I have similar problems with the comfast adapter. With LAN the network works as it should. But with the comfast adapter the network isn't really usable, as i get a lot of timeouts.

mrmainx avatar Dec 12 '22 19:12 mrmainx

@ils15 The adapter I'm using now is called "AVM FRITZ!WLAN Stick AC 860". I'm running it with the driver "firmware-linux-free" and it is currently running well on 5 GHZ.

garbean7 avatar Dec 12 '22 19:12 garbean7

@ils15 The adapter I'm using now is called "AVM FRITZ!WLAN Stick AC 860". I'm running it with the driver "firmware-linux-free" and it is currently running well on 5 GHZ.

great, can you check model in terminal using

sudo lshw -C network

ils15 avatar Dec 12 '22 19:12 ils15

Just FYI: I tried current image for Renegade board (Ubuntu Jammy + Kernel 5.15.82) together with Comfast dongle. 3 hours without any package drop and avg. up/down speeds around 10-12 Mbit/s . But MKS image has extremely unstable connection and 2-3 Mbit/s speed (same board, same dongle and same physical location). IMO looks like issue with provided image or kernel.

redrathnure avatar Dec 12 '22 19:12 redrathnure

Just FYI: I tried current image from Renegade board (Ubuntu Jammy + Kernel 5.15.82) together with Comfast dongle. 3 hours without any package drop and avg. up and down speeds are 10-12 Mbit/s . But MKS image has extremely unstable connection and 2-3 Mbit/s speed (same board, same dongle and same physical location). IMO looks like issue with provided image or kernel.

disable automatic set network channel in your router. i think it can be solve issue

i tried to compile image, but mks PR is so bad

ils15 avatar Dec 12 '22 19:12 ils15

disable automatic set network channel in your router. i think it can be solve issue

Already tried it. No luck.

i tried to compile image, but mks PR is so bad

PR? Do you mean few latest commits from https://github.com/makerbase-mks/armbian-build?

redrathnure avatar Dec 12 '22 19:12 redrathnure

disable automatic set network channel in your router. i think it can be solve issue

Already tried it. No luck.

i tried to compile image, but mks PR is so bad

PR? Do you mean few latest commits from https://github.com/makerbase-mks/armbian-build?

yes

ils15 avatar Dec 12 '22 19:12 ils15

I identified at least three problems with this dongle (rtl8188eu 0x0bda:0x8179).

1 - It do not fare well with wireless router auto channel selection (like channel=acs_survey in OpenWrt).

Solution: Fix your channels in your router settings.

2 - The dongle is not detected after a complete clean boot, needs to be removed and reinserted in USB port.

3 - The dongle suddenly looses RX/TX power.

Solutions: add these lines to /etc/rc.local and reboot.

usb_modeswitch -v 0x0bda -p 0x8179 --reset-usb modprobe r8188eu rtw_power_mgnt=0

fbeltrao-br avatar Dec 12 '22 20:12 fbeltrao-br

@ils15 The adapter I'm using now is called "AVM FRITZ!WLAN Stick AC 860". I'm running it with the driver "firmware-linux-free" and it is currently running well on 5 GHZ.

great, can you check model in terminal using

sudo lshw -C network

grafik

garbean7 avatar Dec 12 '22 20:12 garbean7

I Found another problem with the dongle (rtl8188eu 0x0bda:0x8179).

On my fritzbox i had the 802.11b standard disabled. After enabling it, the dongle works without connection loss.

mrmainx avatar Dec 22 '22 09:12 mrmainx

Reading this post kind of helped. I also had continuous moonraker drops and reconnects with the Comfast wifi dongle that came with my MKS Pi V1.1. I am in a location in my home where there are no RJ45 connections. I will try a different brand of USB wifi dongles tomorrow and hope that it works.....if not, sadly MKS will push me back to Raspberry

Edit: I purchased a BrosTrend Linux USB WiFi Adapter dongle on Amazon and no more issues

formy2000 avatar Jan 06 '23 03:01 formy2000

Edit: I purchased a BrosTrend Linux USB WiFi Adapter dongle on Amazon and no more issues

how is the cpu usage? stays low?

I will try to mod my dongle to use a router antenna.

onolox avatar Feb 23 '23 21:02 onolox

Edit: I purchased a BrosTrend Linux USB WiFi Adapter dongle on Amazon and no more issues

how is the cpu usage? stays low?

I will try to mod my dongle to use a router antenna.

I have had no issues at all. CPU usage has been normal. I have two printers on separate MKS Pis running around the clock. I also have an MKS Pi on a polyformer and no issues there either. Basically the cheap wifi dongle they sell with it on AliExpress is unstable. At first I thought it was "a" bad dongle, but I tried all three that came with my Pis and the same results.

formy2000 avatar Feb 23 '23 23:02 formy2000

Edit: I purchased a BrosTrend Linux USB WiFi Adapter dongle on Amazon and no more issues

What's the chipset of it?

onolox avatar Feb 23 '23 23:02 onolox

Never buy a wifi dongle before checking if your kernel has the proper drivers. Even if the driver exist in the wild, you won't be able to compile because MKS or whoever built this image did not included the headers, and to make it worst, they used an EOL kernel.

fbeltrao-br avatar Feb 23 '23 23:02 fbeltrao-br

Hey, I bought a tp-link AC1300 Mini Wireless USB Adapter, also named tp-link Archer T3U, for around 18 bucks from Amazon. Just plug and play, works flawless. Got it recommended by Kaiser_E24 in the comments section https://3dpandme.com/2022/09/16/tutorial-mks-pi-klipper-install/comment-page-1/?unapproved=982&moderation-hash=47a08c453741638c05d9707fec751633#comment-982

mastercartman avatar Jun 04 '23 16:06 mastercartman

I had the same issue with super slow and unstable wifi with the provided wifi adapter. But I found a super old dongle in my drawer named "Edimax EW-7811UN" which works out of the box without any problems so far. You can get these used for very little money. Hope this helps.

Waffle0815 avatar Jun 17 '23 09:06 Waffle0815