bantolph / uknx

micropython KNX Library designed to interface with the Siemens BCU
GNU General Public License v3.0
0 stars 1 forks source link

Complete example #1

Open fmafma opened 3 months ago

fmafma commented 3 months ago

Hi!

A few years ago, I developped pKNyX, a complete framework to write KNX applications in Python:

https://framagit.org/fma38/pknyx ¹

The stack and DTP are mainly a port from a Java framework (I can't remind which one). The rest is my own work.

I built some applications on top of it, and most of them are working fine for many years, 24/7/365! But as the framework is pretty large, it requires a complete machine running CPython.

Today, I would like to switch some of these applications on microcontrollers. Mainly RPi Pico running Micropython. So I need something lighter. I would also like to have something acting as a real device, connected to the KNX Bus, not relying on ethernet. I just ordered three 5WG1117-2AB12 to play with ;o)

That's why I'm very interested in uknx. Unfortunately, I'm not sure to clearly understand how to use it in a complete app. Do you have a document describing how different objects are related to each other? Also, could you provide a more complete example how to use uknx?

I would love to merge uknx and pKNyX, providing something easy to use and light enough to run on Micropython devices.

Thanks,

-- Frédéric

¹ the link to pKNyX documentation does not work anymore, as I was unable to make Trac running on my new server; I would like to migrate the Trac wiki code to Framagit, but I don't know how to retreive infos from Trac database. If you know how to do that, I would be very interrested!

fmafma commented 3 months ago

In fact, there is a wiki Trac export of the doc (but not nicely formated):

https://framagit.org/fma38/pKNyX/-/raw/master/doc/pknyx.odt?ref_type=heads