Open augustohernandez opened 2 weeks ago
Please refer to ESP32_Test
Thank you very much for the answer, but I already know how to do that, what I want is to send a TPDO manually
De: Sicris Rey Embay @.> Enviado: sábado, 6 de julio de 2024 4:27 Para: sicrisembay/CANopenNode_ESP32 @.> Cc: Augusto Hernández Elvira @.>; Author @.> Asunto: Re: [sicrisembay/CANopenNode_ESP32] First example (Issue #1)
Please refer to ESP32_Testhttps://github.com/sicrisembay/CANopenNode_ESP32_Test/tree/main/examples/build_test
— Reply to this email directly, view it on GitHubhttps://github.com/sicrisembay/CANopenNode_ESP32/issues/1#issuecomment-2211612754, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIKSQBEWJH3ICWKZXE5BALDZK5P3FAVCNFSM6AAAAABKJIU6NCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJRGYYTENZVGQ. You are receiving this because you authored the thread.Message ID: @.***>
Hi, very nice to have a version of the CANopenNode library on ESP32.
Could you give some basic initial example, such as sending a TPDO? Something similar to the STM32 library...
I'm trying something very simple: Thanks in advance!
include "freertos/task.h"
include "CANopen.h"
include "CANopenNode_ESP32.h"
include "301/CO_PDO.h"
include "OD.h"
void app_main(void) { printf("Running CANopenNode_ESP32: low-power-comm-module...\n");
// Initialize CANopenNode_ESP32 if (!CO_ESP32_init()) { printf("Error initializing CANopenNode\n"); return; }
while (1) {
OD_set_u32(OD_find(OD, 0x6000), 0x00, 123, false);
//Submit TPDO request //CO_TPDOsendRequest(&canopenNodeESP32.canOpenStack->TPDO[0]); CO_TPDOsendRequest(&????->TPDO[0]);
vTaskDelay(pdMS_TO_TICKS(10));
} }