Iwant to use ti dlms cosem lib. I design my own electronic card which has msp430f6779 mcu. And I downloaded my code on this card. Then I downloaded Kalkitech client software. But I could not communicate with my card.Is there any one who already tried this. How I should ask requests?
Have you got it working? I am also trying to get it working on the F6779 EVM.... When ever I try to download and debug the sample application the debugger shows that the program is downloaded then it shows error about two missing files and then the it shows "Target Execution Stopped". Has anyone got it working?
As far as my understanding of the code all the available ports are initialized for DLMS communication... So if you connect Gurux DLMS Director on any port you should receive acknowledgement from the library.... Have you confirmed that the Serial Data is received by the controller?
So you are able to debug this sample? Which version are you using 4.0 or 4.0.6? I have tried both and both give the problem of missing files. The strange thing is that I can Download the compiled r43 file on the controller and there it works fine... I tried to establish a connection from GuruX and I can see that the packet from GuruX is received on the controller and it sends a reply. GuruX tell that the checksum is not correct. I think there is some problem in receiving the data as I am communicating via IR and the data gets corrupted due to non-alignment of the LED's. Tomorrow I will try to do some more testing to find out if the reply is correct or not. But definitely the library replied.....
So you can debug the application without any problem? I mean by pressing the Download and Debug in IAR studio the program is downloaded and the pointer goes to main? Whenever I try it asks for replacement of some missing files and if I skip or provide any alternate file the execution is always stopped. Are you sure you never encountered this problem? How did you supply the missing files?
My first problem was that I couldn't debug the (unchanged) code from TI. I tested both the v4.0 and v4.0.6. It always said that "Target Execution Stopped" after downloading the file. So yesterday I downloaded the latest version of IAR embedded studio (6.1) and voila it worked the first time. So now that I was able to debug I started to connect it from client side.
I downloaded the GuruX DLMS director and tried to connect by creating a new Manufacturer. I could see some communication (via a Serial Port sniffer software) but in the end Gurux DLMSDirector replied in "Connection is permanently Rejected. No reason given." So then I downloaded manufacturers list from gurux and then I selected the following settings.
I have tested this on both A0 and A1. I do have the EVM board on which the serial port is connected to A0. In my own board I have connected it on A1. It is working on both the boards. If you are not getting a Serial Receive interrupt on your controller then I think there is some issue in the cabling. First step will be to send some random data via hyper terminal on the serial port and see if you get any interrupt. If there is still no interrupt then check the cables or USB-Serial converter etc.
Now here is my problem. I still couldnt get any answer from my board. I use uscıA0 and I saw that I can get interrupts. I solved my interrupt problem. But My card still does not answer. When I debug step by step after I get uart interrupt, I saw that my program could not find some source files. And my program seeking this file in this directory "D:\Work\Costumer Cods\LnG_DLMS\DLMS\server\.. " which I have not such a directory. Can you tell me what can I do about that?
Hey man good news! At least I solved this problem.Now I can communicate my card via Gurux and Kalkitech. The reason was my msp430 mcu. I use msp430f6779 and there is no init cods for this mcu. I just init my mcu uscı and now I can communicate.
I also get the same File missing error but I skip it and it works fine... I am using the v4.6 large model. Please insert a breakpoint on the transmit ISR i.e case 4 in the switch statement inside the ISR. Check if it is ever hit.If the receive ISR is hit but the transmit is never hit then there is some problem with the packet received.
Now if the meter is receiving this code it should reply and you should definitely get the Transmit ISR fired. Try this and reply back. The default code given by TI without any modification definitely reply to this packet. My email address is
imar...@gmail.com
Have you got any more success with this? I have tried every thing and I seem to have hit a blind alley and I don't know where to move forward.... I also get the same 5 Obis codes from the controller. These are the 5 that are available to the Public Client. For other codes we need to connect using Low Authentication or High authentication. Have you got any success on that?
Thanks for the reply... Yes I have also checked it and if I change the association type of any object to PC (Public client) then I can read it from Gurux. But the problem is that we definitely need to connect using other associations for this library to work as Public Client doesn't have access to write. In the SLAA 614 it is mentioned...
So we should be able to connect to this library using Low Security (Meter Reader MR) and High security (Utility Setting US) association. But I don't know what the password is for us to connect to this library. Also what will be the client address and Server address for the other associations.... Have you figured it out?
Have you found the default password for this library? I tried many variations but I failed.... Each time the library rejects my request with authentication failure messages.
One more thing that I want to ask is that how will I add this library to my existing project? I am using the Implementation of a Three-Phase Electronic Watt-Hour Meter Using the MSP430F677x SLAA577 code. I have heavily modified it and now I want to add the DLMS functionality to this code. Have you tried it or tried to add the library to any existing project?
Here is my question, When I try to access in High Authentication, I can connect the device but I could not read objects and I got a frame reject error which says Get Objects failed.Frame Rejected.Can you tell me how can I access?( For example I want to change time zone information. )
Thanks for the reply.... I had been stuck at this for the last 3-4 days. With your help now I can connect to the library using Low Authentication by using client address as 20 and password 00000000. I am really really grateful to you for this favor.
When I tried connecting using high authentication at address 30 I get connected but I get the error Access Error: Device Reports scope of access violated. while trying to read. Also note that for High Authentication (Client Address:30) I can connect using any password. It always connects but the same error is produced each time...
Error[Pe020]: identifier "_C_STD_BEGIN" is undefined C:\Program Files\IAR Systems\Embedded Workbench 6.5\430\inc\dlib\c\inttypes.h 13
and I get about 80 more errors of similar sort. Do you know anything about these errors?
In high authentication I get same error. I think it might because of Gurux so I tried Kalkitech but this demo version of Kalkitech does not include High Authentication. So for now I am trying to solve with Gurux. If you get any solution about this problem please let me know.
Finally I have succeeded in combining the DLMS library with the energy meter library and was able to communicate some live basic parameters(like voltage and current and energy) in Low Authentication mode. So now I am also looking at the problem of high authentication.
I have seen this post, and I have stucked with same problem in HLS association... I'm working with kalkitech client, and I'm able to establish HLS association, but then when I'm reading some objects I'm getting acces violated error...
3a8082e126