flyduino / kissfc-tx-lua-scripts

Kiss Lua configuration script for taranis
GNU General Public License v3.0
40 stars 14 forks source link

LUA script not working on Express LRS #53

Open julioghigi opened 3 years ago

julioghigi commented 3 years ago

I am using Express LRS with KISS and everything works fine, except by the LUA script. It won't load any number, just stay on "----". I took the same rx and put on a BF board and the BF LUA script is working fine, so I know thta the problem isn't the rx or radio system, just the LUA acript for kiss. Hope someone can solve this or at least tell me how to solve. Thanks in advance.

fedorcomander commented 3 years ago

What protocol is used by LRS? Crossfire? Sport?

On 15 May 2021, at 00:16, julioghigi @.***> wrote:

I am using Express LRS with KISS and everything works fine, except by the LUA script. It won't load any number, just stay on "----". I took the same rx and put on a BF board and the BF LUA script is working fine, so I know thta the problem isn't the rx or radio system, just the LUA acript for kiss. Hope someone can solve this or at least tell me how to solve. Thanks in advance.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/flyduino/kissfc-tx-lua-scripts/issues/53, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQBCCUWOOCPDYDPLNAR5L3TNWONNANCNFSM445FYVFQ.

julioghigi commented 3 years ago

ELRS uses Crossfire protocol!

fedorcomander commented 3 years ago

then it should work. if its STRICTLY follows protocol.

On 15 May 2021, at 14:37, julioghigi @.***> wrote:

ELRS uses Crossfire protocol!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/flyduino/kissfc-tx-lua-scripts/issues/53#issuecomment-841652935, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQBCCQLHVPXXGJBHB2EBGDTNZTJ5ANCNFSM445FYVFQ.

julioghigi commented 3 years ago

Yeah I know, but it won't, BF lua script works normally, is there a way I can debug it? Like see what it is receiving and more?

fedorcomander commented 3 years ago

u can see in lua itself what is sent, and compare it with bf. ;) may be addresses are not ok?

On 15 May 2021, at 17:07, julioghigi @.***> wrote:

Yeah I know, but it won't, BF lua script works normally, is there a way I can debug it? Like see what it is receiving and more?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/flyduino/kissfc-tx-lua-scripts/issues/53#issuecomment-841677129, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQBCCT6YNN4XZFJG2RRTEDTN2EZJANCNFSM445FYVFQ.

sandrosov85 commented 3 years ago

Hello. Give me some help please! What address i shoud use or where i can get it?

If i right understand i need right value in this place:

LOCAL_DEVICE_ID = 0xEA -- transmitter REMOTE_DEVICE_ID = 0xC8 -- flight controller

in KissCF.lua file. Please confirm and make some help.

fedorcomander commented 3 years ago

I have LRS system on the way to me, will check when its here. Otherwise all is done based on PDF from trappy.

On 23 Aug 2021, at 14:10, sandrosov85 @.***> wrote:

Hello. Give me some help please! What address i shoud use or where i can get it?

If i right understand i need right value in this place:

LOCAL_DEVICE_ID = 0xEA -- transmitter REMOTE_DEVICE_ID = 0xC8 -- flight controller

Please confirm.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/flyduino/kissfc-tx-lua-scripts/issues/53#issuecomment-903707762, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQBCCQRF7CTMDB54SIBU5LT6I3ETANCNFSM445FYVFQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

julioghigi commented 3 years ago

Can you please provide me this PDF, I would love to try debug why LUA script don't work and try something.

sandrosov85 commented 3 years ago

This would be great...

fedorcomander commented 3 years ago

no idea. will debug when its here.


Cheers, Alex

On 23 Aug 2021, at 17:58, julioghigi @.***> wrote:

 Can you please provide me this PDF, I would love to try debug why LUA script don't work and try something.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

julioghigi commented 3 years ago

No idea if you can provide the PDF?

fedorcomander commented 3 years ago

ask trappy….

On 24 Aug 2021, at 00:09, julioghigi @.***> wrote:

No idea if you can provide the PDF?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/flyduino/kissfc-tx-lua-scripts/issues/53#issuecomment-904167786, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQBCCXOG6FJF6NNTZWTONLT6LBILANCNFSM445FYVFQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

sandrosov85 commented 3 years ago

Hello Alex! Thanks for your help. Can you send contact @trappy at somewhere?

I try to analize lua from BF and KISS. Can you explain about adresses?

Found in BF - betaflight-tx-lua-scripts/src/SCRIPTS/BF/MSP/crsf.lua

-- CRSF Devices local CRSF_ADDRESS_BETAFLIGHT = 0xC8 local CRSF_ADDRESS_RADIO_TRANSMITTER = 0xEA -- CRSF Frame Types local CRSF_FRAMETYPE_MSP_REQ = 0x7A -- response request using msp sequence as command local CRSF_FRAMETYPE_MSP_RESP = 0x7B -- reply with 60 byte chunked binary local CRSF_FRAMETYPE_MSP_WRITE = 0x7C -- write with 60 byte chunked binary

And found in kissfc-tx-lua-scripts/src/common/KissProtocolCF.lua

-- -- KISS/CF code -- Kiss version by Alex Fedorov aka FedorComander local toolName = "TNS|KISS Crossfire|TNE" LOCAL_DEVICE_ID = 0xEA -- transmitter REMOTE_DEVICE_ID = 0xC8 -- flight controller FC_REQUEST_COMMAND = 0x78 FC_RESPONSE_COMMAND = 0x79

FC_REQ & FC_RESP are different. Did you speak at about this adresses? This addresses needs to be edited for try to fix script???

And 1 more question about settings from pages (like PIDS). From bf i cant find addresses for ret and set values for pid setting. But in kissCF.lua in pages (like PIDS) i see different addresses in start of file. Example:

kissfc-tx-lua-scripts/src/128x64/KISS/pids.lua

read = 0x43,
write = 0x44,

Is all setting write at different addresses or it is way to make payload to sent to FC?

fedorcomander commented 3 years ago

look him up on tbs facebook group. he lives there.


Cheers, Alex

On 24 Aug 2021, at 10:34, sandrosov85 @.***> wrote:

 Hello Alex! Thanks for your help. Can you send contact @Trappy at somewhere?

I try to analize lua from BF and KISS. Can you explain about adresses?

Found in BF - betaflight-tx-lua-scripts/src/SCRIPTS/BF/MSP/crsf.lua

-- CRSF Devices local CRSF_ADDRESS_BETAFLIGHT = 0xC8 local CRSF_ADDRESS_RADIO_TRANSMITTER = 0xEA -- CRSF Frame Types local CRSF_FRAMETYPE_MSP_REQ = 0x7A -- response request using msp sequence as command local CRSF_FRAMETYPE_MSP_RESP = 0x7B -- reply with 60 byte chunked binary local CRSF_FRAMETYPE_MSP_WRITE = 0x7C -- write with 60 byte chunked binary

And found in kissfc-tx-lua-scripts/src/common/KissProtocolCF.lua

-- -- KISS/CF code -- Kiss version by Alex Fedorov aka FedorComander local toolName = "TNS|KISS Crossfire|TNE" LOCAL_DEVICE_ID = 0xEA -- transmitter REMOTE_DEVICE_ID = 0xC8 -- flight controller FC_REQUEST_COMMAND = 0x78 FC_RESPONSE_COMMAND = 0x79

FC_REQ & FC_RESP are different. Did you speak at about this adresses? This addresses needs to be edited for try to fix script???

And 1 more question about settings from pages (like PIDS). From bf i cant find addresses for ret and set values for pid setting. But in kissCF.lua in pages (like PIDS) i see different addresses in start of file. Example:

kissfc-tx-lua-scripts/src/128x64/KISS/pids.lua

read = 0x43, write = 0x44, Is all setting write at different addresses or it is way to make payload to sent to FC?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

fedorcomander commented 3 years ago

i will take a look when i have hw as i said earlier. sorry. dont have tome now to explain how all this works.


Cheers, Alex

On 24 Aug 2021, at 10:35, Alex Fedorov @.***> wrote:

look him up on tbs facebook group. he lives there.


Cheers, Alex

On 24 Aug 2021, at 10:34, sandrosov85 @.***> wrote:

 Hello Alex! Thanks for your help. Can you send contact @Trappy at somewhere?

I try to analize lua from BF and KISS. Can you explain about adresses?

Found in BF - betaflight-tx-lua-scripts/src/SCRIPTS/BF/MSP/crsf.lua

-- CRSF Devices local CRSF_ADDRESS_BETAFLIGHT = 0xC8 local CRSF_ADDRESS_RADIO_TRANSMITTER = 0xEA -- CRSF Frame Types local CRSF_FRAMETYPE_MSP_REQ = 0x7A -- response request using msp sequence as command local CRSF_FRAMETYPE_MSP_RESP = 0x7B -- reply with 60 byte chunked binary local CRSF_FRAMETYPE_MSP_WRITE = 0x7C -- write with 60 byte chunked binary

And found in kissfc-tx-lua-scripts/src/common/KissProtocolCF.lua

-- -- KISS/CF code -- Kiss version by Alex Fedorov aka FedorComander local toolName = "TNS|KISS Crossfire|TNE" LOCAL_DEVICE_ID = 0xEA -- transmitter REMOTE_DEVICE_ID = 0xC8 -- flight controller FC_REQUEST_COMMAND = 0x78 FC_RESPONSE_COMMAND = 0x79

FC_REQ & FC_RESP are different. Did you speak at about this adresses? This addresses needs to be edited for try to fix script???

And 1 more question about settings from pages (like PIDS). From bf i cant find addresses for ret and set values for pid setting. But in kissCF.lua in pages (like PIDS) i see different addresses in start of file. Example:

kissfc-tx-lua-scripts/src/128x64/KISS/pids.lua

read = 0x43, write = 0x44, Is all setting write at different addresses or it is way to make payload to sent to FC?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

sandrosov85 commented 3 years ago

Many thanks!