Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Porting Android To My Project, Any Help?

Porting Android to my project, any help?

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By hurani , 21 November, 2019
Forums
Gurux DLMS for Android

Hi all,
I have ported android project with bluetooth probe and I trying this, can you help me?
whats the problem?
[
var client = GXDLMSClient()
client.useLogicalNameReferencing = true
client.interfaceType = InterfaceType.HDLC
client.clientAddress = 16
client.serverAddress = 1
bt.send("/?!", true) //This Replies /HLY5\2AAAAAAA //True mean \n\r
var d = client.snrmRequest()
bt.send(d,false) //This doesnt work meter doesnt reply! //False mean without
]

whats the problem?
This form Director:
GXDLMSDirector 8.2.1911.1902
Log created 5:34:37 PM
17:34:39 Initializing serial connection.
17:34:40 IEC Sending:/?!<CR><LF>
17:34:41 HDLC received: /HLY5\2DDSD285<CR><LF>
17:34:41 BaudRate is : 9600
5:34:41 PM Moving to mode E.
06 32 35 32 0D 0A
5:34:44 PM Send SNRM request.
7E A0 07 03 21 93 0F 01 7E
<HDLC len="9" >
<TargetAddress Value="1" />
<SourceAddress Value="10" />
<FrameType Value="93" />
<Snrm>
</Snrm>
</HDLC>

5:34:44 PM
7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E
<HDLC len="1D" >
<TargetAddress Value="10" />
<SourceAddress Value="1" />
<FrameType Value="73" />
<PDU>
<Ua>
<MaxInfoTX Value="128" />
<MaxInfoRX Value="128" />
<WindowSizeTX Value="1" />
<WindowSizeRX Value="1" />
</Ua>
</PDU>
</HDLC>

17:34:44 Parsing UA reply succeeded.
5:34:44 PM Send AARQ request.
7E A0 2B 03 21 10 FB AF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF C5 E4 7E
<HDLC len="2A" >
<TargetAddress Value="1" />
<SourceAddress Value="10" />
<FrameType Value="10" />
<PDU>
<AssociationRequest>
<ApplicationContextName Value="LN" />
<InitiateRequest>
<ProposedDlmsVersionNumber Value="06" />
<ProposedConformance>
<ConformanceBit Name="Action" />
<ConformanceBit Name="SelectiveAccess" />
<ConformanceBit Name="Set" />
<ConformanceBit Name="Get" />
<ConformanceBit Name="MultipleReferences" />
<ConformanceBit Name="BlockTransferWithAction" />
<ConformanceBit Name="BlockTransferWithSetOrWrite" />
<ConformanceBit Name="BlockTransferWithGetOrRead" />
</ProposedConformance>
<ProposedMaxPduSize Value="FFFF" />
</InitiateRequest>
</AssociationRequest>
</PDU>
</HDLC>

5:34:44 PM
7E A0 37 21 03 30 6C 7C E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 BE 10 04 0E 08 00 06 5F 1F 04 00 00 10 1C 00 F0 00 07 DE 6A 7E
<HDLC len="36" >
<TargetAddress Value="10" />
<SourceAddress Value="1" />
<FrameType Value="30" />
<PDU>
<AssociationResponse>
<ApplicationContextName Value="LN" />
<AssociationResult Value="00" />
<ResultSourceDiagnostic>
<ACSEServiceUser Value="00" />
</ResultSourceDiagnostic>
<InitiateResponse>
<NegotiatedDlmsVersionNumber Value="06" />
<NegotiatedConformance>
<ConformanceBit Name="SelectiveAccess" />
<ConformanceBit Name="Set" />
<ConformanceBit Name="Get" />
<ConformanceBit Name="BlockTransferWithGetOrRead" />
</NegotiatedConformance>
<NegotiatedMaxPduSize Value="00F0" />
<VaaName Value="0007" />
</InitiateResponse>
</AssociationResponse>
</PDU>
</HDLC>

17:34:44 Parsing AARE reply succeeded.
5:35:03 PM Read object type Data index: 2
7E A0 19 03 21 32 6F D8 E6 E6 00 C0 01 C1 00 01 00 00 60 01 00 FF 02 00 89 A0 7E
<HDLC len="18" >
<TargetAddress Value="1" />
<SourceAddress Value="10" />
<FrameType Value="32" />
<PDU>
<GetRequest>
<GetRequestNormal>
<InvokeIdAndPriority Value="C1" />
<AttributeDescriptor>
<ClassId Value="0001" />
<InstanceId Value="0000600100FF" />
<AttributeId Value="02" />
</AttributeDescriptor>
</GetRequestNormal>
</GetRequest>
</PDU>
</HDLC>

5:35:03 PM
7E A0 1D 21 03 52 85 6F E6 E7 00 C4 01 C1 00 09 0B 32 30 31 36 32 30 35 32 38 38 37 AA 4D 7E
<HDLC len="1C" >
<TargetAddress Value="10" />
<SourceAddress Value="1" />
<FrameType Value="52" />
<PDU>
<GetResponse>
<GetResponseNormal>
<InvokeIdAndPriority Value="C1" />
<Result>
<Data>
<OctetString Value="3230313632303532383837" />
</Data>
</Result>
</GetResponseNormal>
</GetResponse>
</PDU>
</HDLC>

Profile picture for user Kurumi

Kurumi

6 years 6 months ago

Hi,

Hi,

The reason might be anything. I don't know what kind of data is sent over Bluetooth. As I have said before, we'll add Bluetooth support starting the end of this month and it's ready sometime next month.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin