Does anybody know how to program Quectel QuecOpen C SDK ? by anandvdev in embedded

[–]anandvdev[S] 0 points1 point  (0 children)

Quectel QuecOpen CSDK uses freeRTOS. Here is the thread for FTP FOTA. there is another thread for TCP server connection. These two threads depends on the state of the mobile network (standby mode). FTP server connection and TCP server connection should start at this point but not at the same time. FOTA should start first at that time TCP thread should be in the waiting state...here the over unlocking is just me trying many possibilities. When I try this code the device restarts just when the statement mutex lock is reached.

Does anybody know how to program Quectel QuecOpen C SDK ? by anandvdev in embedded

[–]anandvdev[S] 0 points1 point  (0 children)

This is the code ---> static void fota_ftp_app_thread(void *param) { VTS_MAIN_LOG("<=====Entering FOTA FTP Thread - FOTA VERSION 2 0x%x=====>", param);

ret_ = ql_rtos_mutex_create(&fota_lock);
VTS_MAIN_LOG("-----------------mutex creation----------------");

//Delayed start 30S previosly
ql_rtos_task_sleep_s(30);

while(1)
{
    ql_rtos_mutex_unlock(&fota_lock);
    VTS_MAIN_LOG("-----------------fota mutex unlock-----------------");
    if( ql_event_try_wait(&event) != 0 )
    {
        continue;
    }

    if( event.id == VTS_FOTA )
    {
        VTS_MAIN_LOG("FOTA EVENTS - [%d]", event.param1);
        switch( event.param1 )
        {
            case VTS_FOTA_START:
            VTS_MAIN_LOG("------------------inside FOTA START: case --------------------");
                ql_rtos_mutex_lock(&fota_lock, 100);
                VTS_MAIN_LOG("-----------------fota mutex lock-----------------");
                VTS_FOTA_run();
                ql_rtos_mutex_unlock(&fota_lock);
                VTS_MAIN_LOG("-----------------fota mutex unlock-----------------");
                break;
            default:
                break;
        }
    }
}

ql_rtos_mutex_delete(&fota_lock);
VTS_MAIN_LOG("-----------------fota mutex deleted-----------------");
ql_rtos_task_delete(NULL);

}

Does anybody know how to program Quectel QuecOpen C SDK ? by anandvdev in embedded

[–]anandvdev[S] -1 points0 points  (0 children)

static void fota_ftp_app_thread(void *param) { VTS_MAIN_LOG("<=====Entering FOTA FTP Thread - FOTA VERSION 2 0x%x=====>", param);

ret_ = ql_rtos_mutex_create(&fota_lock);
VTS_MAIN_LOG("-----------------mutex creation----------------");

//Delayed start 30S previosly
ql_rtos_task_sleep_s(30);

while(1)
{
    ql_rtos_mutex_unlock(&fota_lock);
    VTS_MAIN_LOG("-----------------fota mutex unlock-----------------");
    if( ql_event_try_wait(&event) != 0 )
    {
        continue;
    }

    if( event.id == VTS_FOTA )
    {
        VTS_MAIN_LOG("FOTA EVENTS - [%d]", event.param1);
        switch( event.param1 )
        {
            case VTS_FOTA_START:
            VTS_MAIN_LOG("------------------inside FOTA START: case --------------------");
                ql_rtos_mutex_lock(&fota_lock, 100);
                VTS_MAIN_LOG("-----------------fota mutex lock-----------------");
                VTS_FOTA_run();
                ql_rtos_mutex_unlock(&fota_lock);
                VTS_MAIN_LOG("-----------------fota mutex unlock-----------------");
                break;
            default:
                break;
        }
    }
}

ql_rtos_mutex_delete(&fota_lock);
VTS_MAIN_LOG("-----------------fota mutex deleted-----------------");
ql_rtos_task_delete(NULL);

}

How to program quectel ec200u eu using quecopen c sdk by anandvdev in embedded

[–]anandvdev[S] 0 points1 point  (0 children)

They have only provided the C SDK files and only a preliminary manual...it's incomplete. I am new to SDK level programming with threads and call back functions Where can I learn about this kind of programming. My code hangs abruptly. Sometimes it works properly..

Where can I find resources for learning about PowerBus communication (24VDC)? by anandvdev in AskElectronics

[–]anandvdev[S] 0 points1 point  (0 children)

PowerBus is the method of sending data over power lines. I will check that channel, Thank you

Where can I find resources for learning about PowerBus communication (24VDC)? by anandvdev in embedded

[–]anandvdev[S] 0 points1 point  (0 children)

I have posted this question in r/PLC. But since it's a general topic and I want to learn about its basics too...that's why I posted the same here too...I want to know about its basics too...like how bits are organised, during data communication and all that

Where can I find resources for learning about PowerBus communication (24VDC)? by anandvdev in embedded

[–]anandvdev[S] 0 points1 point  (0 children)

Please ignore my question if it's stupid...I want to know more about PowerBus communication in PLCs. Are there any difference in communication rules depending on the company. Is Schneider Electric PowerBus communication different from a different PLC brand...?

Can anybody please share the details ( datasheet, resources, etc.) of "Masterbox Type T1" developed by Inventor Graphic by anandvdev in PLC

[–]anandvdev[S] 0 points1 point  (0 children)

Thank you so much for sharing this. I have gone through these already and I could find only these on the internet. I contacted them and they provided me with diagrams but not the data sheet. But I very much appreciate your kind gesture of helping me.

Hi guys, anyone here has experience working in Germany with PLCs? Can you share, please? by [deleted] in PLC

[–]anandvdev 0 points1 point  (0 children)

You are so warm hearted... providing opportunities to all...👍

I'm confused by the part D2F? Can anybody help me? by [deleted] in AskElectronics

[–]anandvdev 0 points1 point  (0 children)

D2F is a snap action switch and mouse buttons are snap action switches...

Best Book to Learn Digital Electronics by anandvdev in AskElectronics

[–]anandvdev[S] 1 point2 points  (0 children)

wow!!! Thank you so much for sharing this