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. Max Request Speed

Max request speed

By jdols , 23 July, 2024
Forums
Gurux.Serial

Hi, I'm trying to make requests at the maximum speed that the bus allows me using the python library. At first I saw that it took 1.5 seconds to make 7 data requests when in other applications each request was resolved in 15 ms. I discovered that there was a time.sleep(0.1) in the _readThread function and when I removed it I went down to 300 ms. But I would like to go down more. Can you give me any more recommendations to increase speed? Thank you.

Profile picture for user Kurumi

Kurumi

1 year 12 months ago

Hi, This sleep is because…

Hi,

This sleep is because some of the USB to serial port controllers return right away if there is no data available on the serial port. This will cause the CPU to be 100%.

You can remove the sleep if you want to, but it might cause problems with other serial port controllers.

I'll check if the delay can be changed from 100ms to 10ms.

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