Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FrSky Taranis X-Lite Pro - FCC/LBT firmware
#16
(12-Jun-2021, 12:33 AM)kafie1980 Wrote: I have a copy of the script from about 2 years ago. I am not sure if this is the latest or if anything has changed.

Run the lua script attached but please make a proper backup of your radio before you proceed to do anything. You need to be careful and know what you are doing.

Copy it to notepad and save it as "ISRM mode.lua" and follow the instructions at https://blog.seidel-philipp.de/change-fr...lua-script

Code:
---- #########################################################################
---- #                                                                       #
---- # Copyright (C) OpenTX                                                  #
-----#                                                                       #
---- # License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html               #
---- #                                                                       #
---- # This program is free software; you can redistribute it and/or modify  #
---- # it under the terms of the GNU General Public License version 2 as     #
---- # published by the Free Software Foundation.                            #
---- #                                                                       #
---- # This program is distributed in the hope that it will be useful        #
---- # but WITHOUT ANY WARRANTY; without even the implied warranty of        #
---- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         #
---- # GNU General Public License for more details.                          #
---- #                                                                       #
---- #########################################################################

--local mode = -1

local EU = Bitmap.open("ISRM/img/eu.png")
local FCC = Bitmap.open("ISRM/img/fcc.png")

local function redrawPage()
 lcd.clear()
 lcd.drawFilledRectangle(0, 0, LCD_W, 40, TITLE_BGCOLOR)
 lcd.drawText(1, 5,"  ISRM MODE", MENU_TITLE_COLOR + MIDSIZE)


 lcd.drawText(130, 130, "EU-LBT", CENTER)
 lcd.drawText(350, 130, "FCC", CENTER)    
    
  if mode == 0 then



lcd.drawFilledRectangle(30, 70, 200, 145, TITLE_BGCOLOR)
lcd.drawRectangle(30, 70, 200, 145, 0 )
lcd.drawText(130, 130, "EU-LBT", MENU_TITLE_COLOR + CENTER)  
 else
lcd.drawRectangle(30, 70, 200, 145, 0 )
 end
 
 if mode == 1 then


lcd.drawFilledRectangle(250, 70, 200, 145, TITLE_BGCOLOR)
lcd.drawRectangle(250, 70, 200, 145, 0);
lcd.drawText(350, 130, "FCC", MENU_TITLE_COLOR + CENTER)  
 else
lcd.drawRectangle(250, 70, 200, 145, 0);
 end

if mode == -1 then
 lcd.drawText(LCD_W/2, LCD_H - 30, "READING MODE", CENTER)
 else
 lcd.drawText(LCD_W/2, LCD_H - 30, "CHECK YOUR COUNTRY LAW!", CENTER)
 end  


end

local function modeRead()
 return accessTelemetryPush(0, 0, 0x17, 0x30, 0x0C40, 0xA0AA5555)
end

local function modeWrite(value)
 if 0 == value then
   command = 0xA0AA5555
 else
   command = 0xA1AA5555
 end
 return accessTelemetryPush(0, 0, 0x17, 0x31, 0x0C40, command)
end


local function telemetryPop()
 physicalId, primId, dataId, value = sportTelemetryPop()
 if primId == 0x32 and dataId >= 0X0C40 and dataId <= 0X0C4F then
   mode = math.floor(value / 0x1000000) - 0xA0
 end
end

local function runPage(event)

    
if event == EVT_EXIT_BREAK then
   return 2
 elseif event == EVT_PLUS_FIRST or event == EVT_ROT_RIGHT or event == EVT_PLUS_REPT or event == EVT_RIGHT_FIRST or event == EVT_MINUS_FIRST or event == EVT_ROT_LEFT or event == EVT_MINUS_REPT or event == EVT_LEFT_FIRST then
   local newmode
   if mode == 0 then
     newmode = 1
   else
     newmode = 0
   end
   mode = -1
   modeWrite(newmode)
 else
   if mode == -1 then
     modeRead()
   end
   telemetryPop()
 end
 redrawPage()
 return 0

end

-- Init
local function init()
end

-- Run
local function run(event)

 if event == nil then
   error("Cannot run as a model script!")
   return 2
 end

 return runPage(event)
end

return { init=init, run=run }
Else simply email FrSKY and ask them for a copy of their latest script.

Updated script: I found a newer version of the script that you can download from Github: https://github.com/Hobby4life/ISRM-Mode-Changer

I own a FrSKY Xlite S myself but walked away from the FrSKY ecosystem. Why can't they provided instructions to switch from FCC to LBT or vice versa like other radio manufacturers like TBS do?

I've followed these instructions, but when I execute the script I get the message:
Code:
Reading mode...
and I can't select neither LBT/EU nor FCC...
How can I fix this issue?
Reply
Login to remove this ad | Register Here
#17
(14-Jun-2021, 09:35 AM)Trial4life42 Wrote: I've followed these instructions, but when I execute the script I get the message:
Code:
Reading mode...
and I can't select neither LBT/EU nor FCC...
How can I fix this issue?

I think it is not detecting the internal RF module for some reason.

Did you try the script on the github link I posted as an update to that post?

Did you disconnect the controller from the PC/Companion?

Is your External RF mode set to OFF on the Radio under the Setup page? And only the internal isrm module active? You can check this on the Version Page under Modules / RX Versions.

Here is a video in French with English subtitles walking you through the process on a different radio but using OpenTX:

Reply
#18
(14-Jun-2021, 10:40 AM)kafie1980 Wrote: I think it is not detecting the internal RF module for some reason.

Did you try the script on the github link I posted as an update to that post?

Did you disconnect the controller from the PC/Companion?

Is your External RF mode set to OFF on the Radio under the Setup page? And only the internal isrm module active?

The problem was that I was trying to change the mode while still in the "Sim" model, which of course had both the internal and external modules turned off ROFL
I tryied with the "Default" model and it worked! Now the ISRM mode shows "EU".

Thank you all for the help!
Reply
#19
(14-Jun-2021, 10:50 AM)Trial4life42 Wrote: The problem was that I was trying to change the mode while still in the "Sim" model, which of course had both the internal and external modules turned off ROFL
I tryied with the "Default" model and it worked! Now the ISRM mode shows "EU".

Thank you all for the help!

Thanks for the last 30 minutes of stress I just went through pulling my radio out of my bag and getting the lions in and copying the script over and testing if the script had failed to work due to some version update  ROFL

And then I decided to provide some additional steps to the previous post and found a video to guide you through.

All good as long as you sorted it out Smile
Reply
#20
(14-Jun-2021, 03:21 AM)bffigjam Wrote: Hi Snow,

Should I add this LUA script along with all of the pre-V2 firmware I have hosted on my website?

Yes please. The more places the script exists the better. It clearly has a GPL licence so FrSky can't start crying wolf about distribution rights.

I did email them asking for a copy but it comes as no surprise that I haven't heard anything back. I won't hold my breath.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  ELRS Module with Taranis X Lite NYCDiesel 10 197 1 hour ago
Last Post: NYCDiesel
  Help LiteRadio 3 Pro CC2500 SD Card Content? Sersandy 0 98 02-May-2024, 08:45 AM
Last Post: Sersandy
  Spectrum USB programmer to update Frsky rx? baevans11 8 290 23-Apr-2024, 01:24 PM
Last Post: baevans11
  Announcement TBS Crossfire / Tracer 6.33 Firmware Released SnowLeopardFPV 84 42,440 15-Apr-2024, 11:27 AM
Last Post: SnowLeopardFPV
  Help Frsky XM+ Firmware versions Steak-9 3 177 26-Mar-2024, 01:28 PM
Last Post: Steak-9


Login to remove this ad | Register Here