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. In GXSerial Data Is Not Receiving At Port

in GXSerial data is not receiving at port

By satishjyoti1998 , 6 July, 2024
Forums
Gurux.Serial

import gurux_dlms
import gurux_common
import gurux_serial
import gurux_net
from gurux_dlms import*
from gurux_common import*
from gurux_serial import*
from gurux_net import*
import serial
import time

client = GXDLMSClient()
client.useLogicalNameReferencing = True

client.clientAddress = 16
client.serverAddress = 1

media = GXSerial(port="COM12")
media.baudRate = 9600
media.open()
#media.addListner(self)
media.getSynchronous()
p = ReceiveParameters()
p.eop = '\n'
p.waitTime = 1000
media.send("Hello!")
time.sleep(2)
media.receive(p)
ret = p.reply
print(ret)

media.close()

satishjyoti1998

2 years ago

data is not receiving at port

data is not receiving at port

Profile picture for user Kurumi

Kurumi

2 years ago

Hi, You have set '\n' as end…

Hi,
You have set '\n' as end of packet, but have not sent it.
Try this:

media.send("Hello!\n")

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200
  • Mon, 06/15/2026 - 08:52
    gurux.dlms.c 9.0.2606.1501

New forum topics

  • Service not known error on gprs communication
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin