An electronic device , comprising a radio frequency system, the radio frequency system comprising a multiway switch , an antenna system , and a radio frequency circuit , the multiway switch comprising: n T ports and four P ports, each T port being coupled with all of the four P ports, n being an integer and 4≤n≤12; the multiway switch is coupled, through said T ports, with the radio frequency circuit and, through said P ports, with the antenna system of the electronic device to implement a preset function of the electronic device , the antenna system comprising four antennas corresponding to the four P ports, and the preset function being a function of transmitting a sounding reference signal, SRS, through the four antennas in turn; and each P port is coupled with one antenna of the four antennas, and any two P ports of the four P ports are coupled with different antennas of the four antennas; wherein the electronic device is operable in at least one mode of: a single-frequency single-transmit mode, a single-frequency dual-transmit mode, a dual-frequency single-transmit mode, and a dual-frequency dual-transmit mode, when n=4 or n=5; the electronic device is operable in at least one mode of: a single-frequency dual-transmit mode, a dual-frequency single-transmit mode, and a dual-frequency dual-transmit mode, when n=6; the electronic device is operable in at least one mode of: a dual-frequency single-transmit mode and a dual-frequency dual-transmit mode, when n is equal to one of 7, 8 ,9 ,10; the electronic device is operable in a dual-frequency dual-transmit mode, when n=11 or n=12; wherein the four antennas comprise a first antenna, a second antenna, a third antenna, and a fourth antenna; these four antennas are all operable at a fifth generation new radio (5G NR) frequency band; or the first antenna and the fourth antenna are antennas operable at a long term evolution (LTE) frequency band and a 5G NR frequency band, and the second antenna and the third antenna are antennas only operable at the 5G NR frequency band. n T ports and four P ports, each T port being coupled with all of the four P ports, n being an integer and 4≤n≤12; the multiway switch is coupled, through said T ports, with the radio frequency circuit and, through said P ports, with the antenna system of the electronic device to implement a preset function of the electronic device , the antenna system comprising four antennas corresponding to the four P ports, and the preset function being a function of transmitting a sounding reference signal, SRS, through the four antennas in turn; and each P port is coupled with one antenna of the four antennas, and any two P ports of the four P ports are coupled with different antennas of the four antennas; wherein the electronic device is operable in at least one mode of: a single-frequency single-transmit mode, a single-frequency dual-transmit mode, a dual-frequency single-transmit mode, and a dual-frequency dual-transmit mode, when n=4 or n=5; the electronic device is operable in at least one mode of: a single-frequency dual-transmit mode, a dual-frequency single-transmit mode, and a dual-frequency dual-transmit mode, when n=6; the electronic device is operable in at least one mode of: a dual-frequency single-transmit mode and a dual-frequency dual-transmit mode, when n is equal to one of 7, 8 ,9 ,10; the electronic device is operable in a dual-frequency dual-transmit mode, when n=11 or n=12; wherein the four antennas comprise a first antenna, a second antenna, a third antenna, and a fourth antenna; these four antennas are all operable at a fifth generation new radio (5G NR) frequency band; or the first antenna and the fourth antenna are antennas operable at a long term evolution (LTE) frequency band and a 5G NR frequency band, and the second antenna and the third antenna are antennas only operable at the 5G NR frequency band. <EOS>