help wanted for porting Open62541 Library (OPC UA)

User avatar
Gfast2
Posts: 182
Joined: Fri Aug 11, 2017 1:52 am

help wanted for porting Open62541 Library (OPC UA)

Postby Gfast2 » Tue Nov 28, 2017 1:33 pm

Hi ESP-IDF,

really really long story...

I put really many efforts to port Open62541 on ESP-IDF.

Here is what I've achieved:

https://github.com/Gfast2/open62541_port

But the connection is "nearly establisch", but still no 100%, I stucked here for days... :oops:

If some one is interested in, please drop in! This don't need extra hardware. Setup your WIFI in "make menuconfig" you are good to go.

under /main are open62541.h/.c which I got compiled from version 0.2 of this library's source. I did pay a lot to even get these two files.

Related disscussion are:

https://github.com/espressif/esp-idf/issues/921

If you do let it up and running. use a OPC UA client to checkout the running Server:

https://www.unified-automation.com/prod ... xpert.html


Gfast2

User avatar
Gfast2
Posts: 182
Joined: Fri Aug 11, 2017 1:52 am

Re: help wanted for porting Open62541 Library (OPC UA)

Postby Gfast2 » Tue Nov 28, 2017 1:37 pm

What I've got here is:

Code: Select all

I (3804) event: sta ip: 192.168.178.30, mask: 255.255.255.0, gw: 192.168.178.1
V (3804) event: exit default callback
I (3814) APP_MAIN: SYSTEM_EVENT_STA_GOT_IP
I (3814) APP_MAIN: Got IP: 192.168.178.30

I (3824) APP_MAIN: Fire up OPC UA Server.
I (3824) OPC UA: UA_ServerNetworkLayerTCP: sizeof(ServerNetworkLayerTCP): 40
I (3864) OPC UA: newsock is created.
I (3864) OPC UA: passed bind()
[01/01/1970 00:00:03.750] info/network	TCP network layer listening on opc.tcp://192.168.178.30:4840
I (3874) OPC UA: passed listen()
I (3874) OPC UA: server->config.networkLayersSize: 1
I (3884) OPC UA: jobs: 0
I (3884) OPC UA: ServerNetworkLayerTCP_getJobs() get called
I (3884) OPC UA: sizeof(UA_Job):16
I (3894) OPC UA: (size_t)(layer->mappingsSize):0
W (3894) OPC UA: UA_Job *js size: 0
E (3904) OPC UA: UA_Job *js malloc() failed.
I (3904) OPC UA: jobsSize statement get executed.
I (3914) OPC UA: jobs: 0
I (3914) OPC UA: jobsSize: -2147287040
I (3924) OPC UA: UA_JOBTYPE_BINARYMESSAGE_NETWORKLAYER: 2
I (3924) OPC UA: k:0
Guru Meditation Error: Core  1 panic'ed (LoadProhibited)
. Exception was unhandled.
Register dump:
PC      : 0x40116b5d  PS      : 0x00060130  A0      : 0x80116c55  A1      : 0x3ffd9450  
0x40116b5d: UA_Server_run_iterate at /home/gfast2/workspace/open62541_port/main/./open62541.c:18737

A2      : 0x3ffbb324  A3      : 0x00000000  A4      : 0x3f40af44  A5      : 0x00000000  
A6      : 0x80030000  A7      : 0x00000000  A8      : 0x00000000  A9      : 0x3ffd9430  
A10     : 0x00000f5e  A11     : 0x3ffb716c  A12     : 0x3f40e3bc  A13     : 0x0000001f  
A14     : 0x00000001  A15     : 0x00000005  SAR     : 0x00000004  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000000  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xfffffffe  

Backtrace: 0x40116b5d:0x3ffd9450 0x40116c52:0x3ffd9490 0x4010b7a5:0x3ffd94b0
0x40116b5d: UA_Server_run_iterate at /home/gfast2/workspace/open62541_port/main/./open62541.c:18737

0x40116c52: UA_Server_run at /home/gfast2/workspace/open62541_port/main/./open62541.c:18737

0x4010b7a5: opcua_task at /home/gfast2/workspace/open62541_port/main/./app_main.c:52


Entering gdb stub now.

Who is online

Users browsing this forum: No registered users and 82 guests