o-gs / dji-firmware-tools

Tools for handling firmwares of DJI products, with focus on quadcopters.
GNU General Public License v3.0
1.53k stars 422 forks source link

Phantom 3 Std RF power / FCC mod #40

Open mefistotelis opened 7 years ago

mefistotelis commented 7 years ago

Creating separate issue for P3C FCC to avoid mixing subjects.

@ferraript commented on Jan 18

regarding FCC vs CE mode, I believe this video instruction should help

@ferraript commented on Jan 24

I just found out in DJI GO 2.4.3 sources interesting class regarding FCC and CE mode: DataRcSetPowerMode.java it's used in one another class only, \dji\a\d\a.java here is interesting method, onEventBackgroundThread, that checks, if ProductType is P3S or P34K and if HomePoint coordinates are set if so, there is link to the most interesting class, \dji\a\f\a.java, where is an array of GPS coordinates and radiuses of CE areas (there is Australia, Japan, India, South Africa and Europe) if HomePoint is inside any CE area, mode is set to CE, otherwise mode is set to FCC

so it would be interesting to know, that if we add P3X and P3A to that first condition and change the CE areas coordinates, if really Phantom uses FCC mode then

@rulppa commented on Feb 1

`RC Firmware must be changeable too.

Some limitations was added with RC Firmwares 1.6 and newer. Output Power is reduced from 25mW to 10mW in CE Mode.` ->

I have few modded remotes, one with 1.5.8 and other one with latest FW, i will measure the output with immersion rc RF-meter to confirm both remotes connected to 1.7.6 AC.

@MrBurnsAT commented on Feb 1

U can downgrade Ur RC to 1.5.8, 1.5.7 or 1.4.3 ;-)

So u should have full 25mW power

I downgraded Mine to 1.4.3 because um using Old Litchi Version 2.3.1

With newer Firmwares than 1.4.3 this Old Litchi Versions wont work

@ferraript commented on Feb 1

@rulppa: that would be great it will finally reveal if those talks were true by the way, where are you from? I'm thinking about you could test if my DJI GO hack for FCC/CE works

@rulppa commented on Feb 1

@ferraript: i will measure tomorrow, got new ESC-board for new motor p3p today, swapping now and it's getting late. I'm from europe. I guess you are from italy? Forza ferrari, go kimi go lol. Did you notice any difference with your hack? If i test it, i will test it with stock gl300b, other remotes are modded and stock one is more sensitive for these kind of tests.

@ferraript commented on Feb 1

@rulppa, I'm just Ferrari fan from Slovakia so you are in CE area too, fine I can send you my DJI GO apk then for testing

@rulppa commented on Feb 1

@ferraript: Can't test .apk, i have only iOS devices, sorry.

@MrBurnsAT commented on Feb 1

@ferraript I can Test it!

Austria ;-)

And i only have Andoids

@ferraript commented on Feb 2

@rulppa: that's pity :(

@MrBurnsAT: greetings to Austria :) yeah, you can test it, but do you also have some sort of RF meter just like rulppa does? because I don't believe that the CE/FCC setting is easily distinguishable for example, I never had problems with my P3A to go to distance 5 km (in CE mode)

@notsolowki commented on Feb 2

what changes did you make to the app ferraript

@ferraript commented on Feb 2

@notsolowki: I made changes I wrote few posts ago (on Jan 24) as I am from Europe and I have P3A, I changed european radius to few meters and I replaced P3S for P3A in the condition if you look into the code, I believe you'll understand

@rulppa commented on Feb 2

Measured GL300A and B model radios, without GPS-lock, both 0.72-0.76mW. I will measure again during weekend, with GPS lock. Tested with RC 1.5.8 only, 1.7.6 doesnt seem to work with 1.6 radio.

@notsolowki commented on Feb 3

ferraript i bet you can test the output power at the antennas connector on the circuitbaord

@ferraript commented on Feb 3

sorry, I don't intend to dismantle RC and after all, I have no tools for measuring something like that

@rulppa commented on Feb 3

I'm testing directly from the RC circuit board with SMA-connectors, i will do the test with GPS lock today. IF it's full power with 1.5.8 (also in CE mode) i should see the same 0.72-0.76mW. (according to OP it should be)

@notsolowki commented on Feb 3

hey ferraript, could you make it so that dji go 3 could send the settings to the drone?

@ferraript commented on Feb 3

@notsolowki I thought you were using 2.4.2 :) I looked into 3.0.1 sources and it looks like it works the same way like in 2.4.3 (which I use) so, do you want some specific version or you'll be fine with 3.0.1?

@notsolowki commented on Feb 4

3.0.1 or 3.1.1 would be fine

@KennethMcNutt commented on Feb 5

This is how they modded The p3S...Ce ,Fcc, up 27db was though it's wifi Ftp, telnet (console) ..

modding log - Click to expand
Read this from bottom to top..
01:10 Log Filename: log201701201904.txt
01:10 
01:10 ============================================
01:10 Restart your RC & Aircraft and Enjoy New Mod
01:10 ============================================
01:10 
01:10 Credit to: Ojcze Nasz, SingLag, Argonaise & www.phantompilots.com
Disconnected.
Disconnecting.
01:10 c
01:10
BusyBox v1.22.1 (2015-11-16 16:28:58 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
/ # 
01:10 chmod 775 /sbin/watchlog.sh
Connected.
Connecting to 192.168.1.2.
Disconnected.
Disconnecting.
01:09 wlan0 ESSID: "KenP3S"
Access Point: 60:60:1F:05:E0:BD
Mode: Master Channel: 10 (2.457 GHz)
Tx-Power: 24 dBm Link Quality: 70/70
Signal: -27 dBm Noise: -89 dBm
Bit Rate: 55.2 MBit/s
Encryption: WPA2 PSK (CCMP)
Type: nl80211 HW Mode(s): 802.11abgn
Hardware: unknown [Generic MAC80211]
TX power offset: unknown
Frequency offset: unknown
Supports VAPs: yes PHY name: phy0
wlan0.sta1 ESSID: unknown
Access Point: 00:00:00:00:00:00
Mode: Master (VLAN) Channel: 10 (2.457 GHz)
Tx-Power: 24 dBm Link Quality: 70/70
Signal: -10 dBm Noise: -89 dBm
Bit Rate: 52.0 MBit/s
Encryption: none
Type: nl80211 HW Mode(s): 802.11abgn
Hardware: unknown [Generic MAC80211]
TX power offset: unknown
Frequency offset: unknown
Supports VAPs: yes PHY name: phy0
/ # 
01:09 iwinfo
01:09
BusyBox v1.22.1 (2015-11-16 16:28:58 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
/ # iw reg set BO
/ # iw dev wlan0 set txpower limit 2400
/ # 
01:09 iwinfo
01:09 iw dev wlan0 set txpower limit 2400
01:09 iw reg set BO
Connected.
Connecting to 192.168.1.1.
Disconnected.
Disconnecting.
01:09 ==================
01:08 File upload OKE
01:08 Checking file ... 
01:07 Update djiled.sh on Aircraft
01:06 Final process ...
01:06 hmod 775 /sbin/watchlog.sh
/ # 
01:06 File upload OKE
01:06 Checking file ... 
01:06 c
01:06
BusyBox v1.22.1 (2015-11-16 16:28:58 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
/ # 
01:06 chmod 775 /sbin/watchlog.sh
Connected.
Connecting to 192.168.1.2.
Disconnected.
Disconnecting.
01:06 Update djiled.sh on RC
01:05 / # 
01:05 Final process ...
01:05 hmod 775 /sbin/watchlog.sh
01:05 c
01:05 chmod 775 /sbin/watchlog.sh
01:04 Supports VAPs: yes PHY name: phy0
/ # 
01:04 wlan0 ESSID: "KenP3S"
Access Point: 60:60:1F:05:E0:BD
Mode: Master Channel: 10 (2.457 GHz)
Tx-Power: 17 dBm Link Quality: 70/70
Signal: -27 dBm Noise: -89 dBm
Bit Rate: 54.9 MBit/s
Encryption: WPA2 PSK (CCMP)
Type: nl80211 HW Mode(s): 802.11abgn
Hardware: unknown [Generic MAC80211]
TX power offset: unknown
Frequency offset: unknown
Supports VAPs: yes PHY name: phy0
wlan0.sta1 ESSID: unknown
Access Point: 00:00:00:00:00:00
Mode: Master (VLAN) Channel: 10 (2.457 GHz)
Tx-Power: 17 dBm Link Quality: 70/70
Signal: -11 dBm Noise: -89 dBm
Bit Rate: 52.0 MBit/s
Encryption: none
Type: nl80211 HW Mode(s): 802.11abgn
Hardware: unknown [Generic MAC80211]
TX power offset: unknown
Frequency offset: unknown
01:04 winfo
01:04 i
01:04 iwinfo
01:03 BusyBox v1.22.1 (2015-11-16 16:28:58 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
/ # 
01:03 ==================
01:03 Telnet ready ...
Connected.
Connecting to 192.168.1.1.
01:03 Aircraft Ready ...
01:03 RC Ready ...
Disconnected.
Disconnecting.
01:40 
01:40 Please proceed to STEP 2
01:40 
01:39 File upload OKE
01:39 Checking file ... 
01:39 Upload watchlog.sh to aircraft
01:38 File upload OKE
01:38 Checking file ... 
01:38 Upload watchlog.sh to RC
01:37 File upload OKE
01:37 Checking file ... 
01:37 Configure Telnet to Aircraft
01:36 File upload OKE
01:36 Checking file ... 
01:36 Configure Telnet to RC
01:35 Aircraft Ready ...
01:35 RC Ready ...
I found this in the 1.8.8 Pro bin. : (the pro has no visible wifi) I am looking for a way to Make this type of mod for the PRo/ Avd :) Wifi configuration file ##########################################.## Empty lines and lines starting with # are ignored.# ap: SoftAP mode.# sta: Station mode.# p2p: Enable Wifi Direct Support for peer-to-peer connectibity.WIFI_MODE=ap.# GPIO pin to enable or disable WiFi.#WIFI_EN_GPIO=95..##### STA mode configuration ##########################################.# SSID.ESSID=amba_boss.# Passphrase. Leave empty at no security mode; please edit wpa_supplicant.conf when your AP cannot be detected.PASSWORD=1234567890.# Device Name for AMBA Discovery Protocol (optional).STA_DEVICE_NAME=amba-1..##### Wifi Direct configuration ##########################################.# Find devices with correct name prefix and automatically connect at startup.P2P_AUTO_CONNECT=no.# Auto-connect with devices if the name prefix matches.P2P_CONNECT_PREFIX=amba.## Do not enable this optional field unless you are certain.# please provide a unique name amoung multiple devices to prevent confusion.#P2P_DEVICE_NAME=amba-1.## Do not enable this optional field unless you are certain.# Set the default P2P GO Intent.#P2P_GO_INTENT=0.## Do not enable this optional field unless you are certain.# Specify P2P operating channel.#P2P_OPER_CHANNEL=1.## Do not enable this optional field unless you are certain.# Default mode for HT40 enable when operating as GO.#P2P_GO_HT40=0..##### SoftAP configuration ##########################################.# SSID (1 ~ 32 characters).AP_SSID=amba_boss.# IP address.LOCAL_IP=174.168.42.1.# IP subnet mask.LOCAL_NETMASK=255.255.255.0.# IP pool starting address of DHCP server.DHCP_IP_START=174.168.42.2.# IP pool end address of DHCP server.DHCP_IP_END=174.168.42.6.# Wifi channel number, set 0 to use Auto Channel Selection.AP_CHANNEL=0.# Maximum number of stations allowed in station table.AP_MAXSTA=5.# If you say yes here, all WPA/WEP settings will be ignored.AP_PUBLIC=no.# WPA Passphrase (8 ~ 63 characters).AP_PASSWD=1234567890..##### Advanced WPA configuration ##########################################.## Do not modify this section unless you are certain.# This is a bit field, bit0 = WPA, bit1 = WPA2.WPA_VERSION=2.# This is a space separated list of encryption algorithms, TKIP CCMP.WPA_PAIRWISE=CCMP..##### Advanced WEP configuration ##########################################.## Do not modify this section unless you are certain.# If you say yes here, AP_PASSWD, WPA_VERSION, WPA_PAIRWISE will be ignored.AP_WEP=no.# Bit fields of allowed authentication algorithms, bit 0 = Open System, bit 1 = Shared Key.AUTH_ALGS=1.# The key number to use when transmitting. It must be between 0 and 3, and the corresponding key must be set..WEP_DEFAULT_KEY=0.# A key may be a quoted string (5 or 13 characters) or unquoted hexadecimal digits (10 or 26 digits), depending on whether 64-bit or 128-bit WEP is used.WEP_KEY0=1234567890.WEP_KEY1="vwxyz".WEP_KEY2=0102030405060708090a0b0c0d.WEP_KEY3=".2.4.6.8.0.23".ÿÿÿÿÿÿ1...rª-ª........ .......G.......................r.......s×€V....
mefistotelis commented 7 years ago

Moving related posts.

@CirConFleX commented on jul 25

About the output power, I remember a message on phantompilots which explained how to switch to FCC zone with console : "Look for the setting "txpower". Depending on if your model is CE or FCC, it will be either 5 or 9. You can change this to a maximum of 15. Not sure how that will affect temperatures of the wireless unit.. but I've tried it with a value of 12 and got a huge increase in range. Edit the setting, save the file, then power-cycle the unit."

If it can help...

@pawelsky commented on jul 25

@CirConFleX That's for Phantom 3 Std, not Adv/Pro