Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Recommended Posts

Posted
On 8/6/2022 at 8:06 AM, ppeterr said:

@ABDULLAH258 - not sure about this at all, and not sure if your using this code.

 

But when i read at github @Phenix (your code i think?)

This looks important.

 

- Did the naming of the device change ?

- Did you lock the device in the mobile APP?

 

 

Yes I am using 10der code I didn't change the name of it but I unlock The device 

Posted
1 hour ago, Phenix said:

 

 

Watch from 1min30

 

 

 

Hi @ppeterr not my code done by 10der

@Phenix Thank you for that 

Ok I will reconnect it to the ethernet again 

I was Trying to edit the code to bypass the part of eth0 i did it but give me another error in (upvalue of myIP) and it keep going with this every time I put condition to bypass error it give me another error.

connected to ethernet again will be easier thank you.

  • Like 1
Posted
4 minutes ago, ABDULLAH258 said:

Yes I am using 10der code I didn't change the name of it but I unlock The device 

 

The error tells me that the code doesnt recieve a IP from an ethernet port.

So, i hope you can fix this by putting back the ethernet converter, and use that

instead of wifi.

 

[DEBUG] [QUICKAPP1613]: ./include/manager.lua:97: attempt to index a nil value (field 'eth0')

  • Like 1
  • Thanks 1
Posted
51 minutes ago, ppeterr said:

 

So, when i look at the video, posted above.

It states "you need to be connected to ethernet". So maybe put back that ethernet converter back?

@ppeterr Ok Thank you for your answer I will do this now

Posted
59 minutes ago, ABDULLAH258 said:

@ppeterr Ok Thank you for your answer I will do this now

Yes the code does not work when connected to wifi, you also did not tell us that you changed the code- so would be helpful to tell us the full story at the start to better diagnose the issue.

 

suggest you restore the code and connect to Ethernet to see if it solves the issue - let us know how you get on?

  • Thanks 1
Posted
1 hour ago, Phenix said:

Yes the code does not work when connected to wifi, you also did not tell us that you changed the code- so would be helpful to tell us the full story at the start to better diagnose the issue.

 

suggest you restore the code and connect to Ethernet to see if it solves the issue - let us know how you get on?

@Phenix I reconnect to the ethernet remove the QA which I modify and reinstall it as native and it directly read my rm4 then I reconfigure my Quick apps working with rm4 and all restore to normal.

I try to edit at manage file this code at line 97 

Please login or register to see this code.

I verify network.networkConfig.eth0 is not nil by

Please login or register to see this code.

after that I give another error in line 130

Please login or register to see this code.

I try at this a lot to define above (myIP) but it doesn't work after this I put before it I see it at

Please login or register to see this link.

Please login or register to see this code.

it disappear and another error of (txMsgTab) came in line 269

Please login or register to see this code.

 

Posted (edited)

@ABDULLAH258

 

Is there a reason why you want it to work with wifi ?

I would always recomend using ethernet.

Edited by ppeterr
  • Like 1
  • Thanks 1
Posted
8 minutes ago, ppeterr said:

@ABDULLAH258

 

Is there a reason why you want it to work with wifi ?

I would always recomend using ethernet.

I connect my HC3 always to ethernet but It was easier for HC3 lite to connect it through wifi but now I will connect it always to ethernet.

Thank you for your help.?

  • Like 2
  • 4 weeks later...
Posted (edited)

@Phenix thanks for the QA & Config file. I've managed to get them both up and running (trying to connect a series of ceiling fans), but when I try to learn using the RM4 Pro (on Ethernet) it doesn't pick up anything and then returns FAILED!.

 

Would this be because I have the devices already set-up on the Broadlink app?

 

p.s. using

Please login or register to see this link.

.

Edited by James T Fletcher
Posted

It appears some are having a problem with RF - have you tried to learn the RF code with Broadlink Manager as per video below?

 

 

  • 5 months later...
Posted

Hello @Phenix I always have the same problem with BroadLink manager. 

it never read my BroadLink I already setup virtual machine with Linux and working with docker to learn from browser in Linux.

I just want to know if there is any solution for my problem when I press scan it gives me that in picture.

Please login or register to see this image.

/monthly_2023_02/image.png.53add85ad2a15f1c9c0f7a60d5790b24.png" />

Posted

@ABDULLAH258currently on vacation- will reply soon

  • 1 month later...
Posted

Good afternoon! I bought an RS4 Pro and also can't run QA. When you click the Discover button, an error appears: "Error: discovery msg - incorrect size"

 

And when you try to scan the device in the Broadlink Manager program, an error also comes out: "Writing compatible device not detected!"

 

 

Firmware version RM4 Pro:  V62093

 

Do you have any suggestions in which direction to look: how to find and fix the error?

Please login or register to see this attachment.

Please login or register to see this attachment.

Dear ABDULLAH258@, have you been able to solve your similar problem?

Posted

HC3 is connected via Ethernet (Wi-fi is off)
The lock button is disabled in the Broadlink app

Posted

Looking at some online forums, did you try to deactivate firewall and antivirus software? run in administrator mode?

Just now, Phenix said:

Looking at some online forums, did you try to deactivate firewall and antivirus software? run in administrator mode?

not wise but appeared to work for some. I dont have an issue so cant troubleshoot this for you - sorry

  • 3 weeks later...
Posted
On 3/27/2023 at 7:18 PM, brv29a said:

Please login or register to see this attachment.

Dear ABDULLAH258@, have you been able to solve your similar problem?

@brv29a Unfortunately I didn't find any solution I disable antivirus and deactivated firewall but nothing happen

Posted

The "learn" function seems to be missing in the Broadlink HUB FQA available for download here. Is the FQA with that function downloadable somewhere? Thank you very much for your answer :-) .

Posted
On 4/20/2023 at 9:45 PM, raphael02 said:

The "learn" function seems to be missing in the Broadlink HUB FQA available for download here. Is the FQA with that function downloadable somewhere? Thank you very much for your answer :-) .

I added the following "learn" functions myself to the posted hub FQA (LearnIRCode (instead "learn" and GetLearnedIRCode can then be used in the "control" FQA to learn and acquire the code):

 

 

function RM4:LearnIRCode(func)
    local payload = makeEmptyTable(16)
    payload[1] = 0x04
    payload[2] = 0x00
 
    payload[3] = 0x03
 
    self:sendPacket(
        0x6a,
        payload,
        function(actionResult, errCode, payload)            
            func(actionResult, errCode, payload)
        end
    )
end
 
function RM4:GetLearnedIRCode(func)
    local payload = makeEmptyTable(16)
    payload[1] = 0x04
    payload[2] = 0x00
    payload[3] = 0x04
 
    self:sendPacket(
        0x6a,
        payload,
        function(actionResult, errCode, payload)            
            func(actionResult, errCode, payload)
        end
    )
end
 
 
function QuickApp:LearnIRCode(ipAddress, deviceType)
 
    local device = nil
    if deviceType and deviceType == 0x51da then
        device = RM4(ipAddress)
        self:debug("RM4")
    else
        device = RM3(ipAddress)
    end
 
    device:auth(
        function(authResult, errCode, payload)
            --print("AUTH", authResult, errCode, dump(payload))
            if authResult then
                device:LearnIRCode(
                    function(actionResult, errCode, payload)
--            print("AUTH", authResult, errCode, dump(payload))
                    end
                )
            else
                self:error("Can`t auth device " .. ipAddress)
            end
       end
    )
end
 
function QuickApp:GetLearnedIRCode(ipAddress, deviceType)
 
    local device = nil
    if deviceType and deviceType == 0x51da then
        device = RM4(ipAddress)
        self:debug("RM4")
    else
        device = RM3(ipAddress)
    end
 
    device:auth(
        function(authResult, errCode, payload)
            --print("AUTH", authResult, errCode, dump(payload))
            if authResult then
                device:GetLearnedIRCode(
                    function(actionResult, errCode, payload)
--                   print("AUTH", authResult, errCode, dump(payload))
 
             local strOut = ""
             for i, plelement in ipairs(payload) do
             --strOut = strOut .. string.char(plelement)
 
               -- *** Cut first 6 data elements (prefix 152 0 4 0 0 0 (dec)) form learned code, each valid code starts with 2600 (hex) and edns with 000d05 (hex) ***
               if (> 6) then
                 -- *** Convert returned data from number to ASCII data ***
                 strOut = strOut .. toHex(string.char(plelement))
               end
             end
 
             print ("Learned code: ", strOut)
           end
                )
            else
                self:error("Can`t auth device " .. ipAddress)
            end
       end
    )
end

 

 

 

 

 

 

3 minutes ago, raphael02 said:

I added the following "learn" functions myself to the posted hub FQA (LearnIRCode (instead "learn" and GetLearnedIRCode can then be used in the "control" FQA to learn and acquire the code):

 

 

function RM4:LearnIRCode(func)
    local payload = makeEmptyTable(16)
    payload[1] = 0x04
    payload[2] = 0x00
 
    payload[3] = 0x03
 
    self:sendPacket(
        0x6a,
        payload,
        function(actionResult, errCode, payload)            
            func(actionResult, errCode, payload)
        end
    )
end
 
function RM4:GetLearnedIRCode(func)
    local payload = makeEmptyTable(16)
    payload[1] = 0x04
    payload[2] = 0x00
    payload[3] = 0x04
 
    self:sendPacket(
        0x6a,
        payload,
        function(actionResult, errCode, payload)            
            func(actionResult, errCode, payload)
        end
    )
end
 
 
function QuickApp:LearnIRCode(ipAddress, deviceType)
 
    local device = nil
    if deviceType and deviceType == 0x51da then
        device = RM4(ipAddress)
        self:debug("RM4")
    else
        device = RM3(ipAddress)
    end
 
    device:auth(
        function(authResult, errCode, payload)
            --print("AUTH", authResult, errCode, dump(payload))
            if authResult then
                device:LearnIRCode(
                    function(actionResult, errCode, payload)
--            print("AUTH", authResult, errCode, dump(payload))
                    end
                )
            else
                self:error("Can`t auth device " .. ipAddress)
            end
       end
    )
end
 
function QuickApp:GetLearnedIRCode(ipAddress, deviceType)
 
    local device = nil
    if deviceType and deviceType == 0x51da then
        device = RM4(ipAddress)
        self:debug("RM4")
    else
        device = RM3(ipAddress)
    end
 
    device:auth(
        function(authResult, errCode, payload)
            --print("AUTH", authResult, errCode, dump(payload))
            if authResult then
                device:GetLearnedIRCode(
                    function(actionResult, errCode, payload)
--                   print("AUTH", authResult, errCode, dump(payload))
 
             local strOut = ""
             for i, plelement in ipairs(payload) do
             --strOut = strOut .. string.char(plelement)
 
               -- *** Cut first 6 data elements (prefix 152 0 4 0 0 0 (dec)) form learned code, each valid code starts with 2600 (hex) and edns with 000d05 (hex) ***
               if (> 6) then
                 -- *** Convert returned data from number to ASCII data ***
                 strOut = strOut .. toHex(string.char(plelement))
               end
             end
 
             print ("Learned code: ", strOut)
           end
                )
            else
                self:error("Can`t auth device " .. ipAddress)
            end
       end
    )
end

 

 

 

 

 

 

The returned code is already hex, so it doesn't has to be base64 decoded and converted to hex before sending.

  • Like 1
Posted

Have the same problem with RM4 Pro firmware v62093. Have you found solution?

 

On 3/27/2023 at 8:18 PM, brv29a said:

Good afternoon! I bought an RS4 Pro and also can't run QA. When you click the Discover button, an error appears: "Error: discovery msg - incorrect size"

 

And when you try to scan the device in the Broadlink Manager program, an error also comes out: "Writing compatible device not detected!"

 

 

Firmware version RM4 Pro:  V62093

 

Do you have any suggestions in which direction to look: how to find and fix the error?

Please login or register to see this attachment.

Please login or register to see this attachment.

Dear ABDULLAH258@, have you been able to solve your similar problem?

 

  • 2 weeks later...
Posted

@brv29a you need to downgrade RM 4pro firmware from v62093 to v62092. it worked for me. 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...