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 10 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

  • 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
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin