Coder Social home page Coder Social logo

Comments (5)

silseva avatar silseva commented on May 28, 2024

Hi!
We currently do not support the original SA868 firmware, this is why it fails to detect it. In the future we'll show an error message on the screen to inform the user about this.

from openrtx.

lyusupov avatar lyusupov commented on May 28, 2024

@silseva

We currently do not support the original SA868 firmware

It's Ok.
I mean that wrong or missing RF module should not block the boot sequence, right ?

Looks like we will stay in the loop all the time when there is no 'OK' response or baud rate of the poll is different from the baud rate of a module.
https://github.com/OpenRTX/OpenRTX/blob/master/platform/drivers/baseband/SA8x8.c#L98-L112

static inline void waitUntilReady()
{
    char buf[SA8X8_MSG_SIZE] = { 0 };

    while(true)
    {
        uartPrint("AT\r\n");
        int ret = k_msgq_get(&uart_msgq, buf, K_MSEC(250));
        if(ret != 0)
            printk("SA8x8: baseband is not ready!\n");

        if(strncmp(buf, "OK\r", SA8X8_MSG_SIZE) == 0)
            break;
    }
}

Shouldn't it be a timed loop instead ?

from openrtx.

silseva avatar silseva commented on May 28, 2024

Sure, it has to be changed to a timed loop. I did it yesterday but then the radio seems to hang somewhere else, I have to investigate more.

from openrtx.

lewisxhe avatar lewisxhe commented on May 28, 2024

@lyusupov The version you have also supports SA868 firmware written to openRTX, but it cannot be restored to the original firmware.

from openrtx.

lyusupov avatar lyusupov commented on May 28, 2024

@lewisxhe
Sure! But I am not ready to erase genuine SA868 firmware right now.
For the purpose of SoftRF project compatibility - I still need it until OpenRTX one will support the same functions that genuine firmware has.

from openrtx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.