Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for STKNX #61

Open
aibtech opened this issue Jun 3, 2020 · 17 comments
Open

Add support for STKNX #61

aibtech opened this issue Jun 3, 2020 · 17 comments
Labels
enhancement New feature or request

Comments

@aibtech
Copy link

aibtech commented Jun 3, 2020

Would it be possible to add support for Bit interface (STKNX) transceiver and STM32G071 or any STM32 configured with CubeMX?

@thelsing
Copy link
Owner

thelsing commented Jun 3, 2020

Everything is possible ;)
In #45 is some inital support for STM32 (with some issues).
There is currently no support for STKNX, You would need to add a new DataLinkLayer for it.

@thelsing
Copy link
Owner

thelsing commented Jun 3, 2020

I guess the easiest way to add STM32 support would be to use STMdiuno.

@leoujz
Copy link

leoujz commented Jun 18, 2020

Use STMdiuno, It works, I have tested it with stm32f103c8t6 and stm32f030c8t6, storing data to eeprom or internal flash, you need add a STM32Platform class similar with other already integrated platform, and do some work, not that difficult please have a try.

@thelsing
Copy link
Owner

@leoujz can you share your work please?

@leoujz
Copy link

leoujz commented Jun 18, 2020

I could send my code by mail, if anyone need it. But it needs sometime to tidy the code and structure, I think it's not ready to create a pull request

@leoujz
Copy link

leoujz commented Jun 18, 2020

Besides,
(1) I add a knx enabled state check every 10 seconds for tpuart data link layer
(2) fix a bug when group object has enabled read_init when downloading by ETS
(3) fix a bug that invalid very large address reported by ETS, which is caused by the MemoryReference
(4) bug about some dpt, I forgot which one.

Any one need it can email me, it's not ready to create a pull request, because I add too many debugging codes and other modifications unrelated to the repository. Damn, no time to tidy them.

@leoujz
Copy link

leoujz commented Jun 18, 2020

I could send my code by mail, if anyone need it. But it needs sometime to tidy the code and structure, I think it's not ready to create a pull request

That would be great. Can you please send it chaiphrom.nik (at) gmail.com?

already sent

@thelsing
Copy link
Owner

Can you just put the repository in your github account? This way interested persons can just grab the bits they want.

@thelsing
Copy link
Owner

There is a stm32 platfrom implementation here: https://github.com/etrinh/knx/blob/master/src/stm32_platform.cpp

@thelsing
Copy link
Owner

I just merged the stm32 platform. Feel free to test it.

@etrinh
Copy link
Contributor

etrinh commented Jun 22, 2020

I have not finished to test my stm32 implementation. At least it compiles and I can communicate with my NCN5130. I am still struggling with my homemade hardware to communicate with the bus. I have not yet opportunity to program my device or check EEPROM access :(.
I will for sure make a pull request when I will have something working ;). At least, integration is very straightforward and is just couple of lines. It shouldn't be of any difficulty to anyone who have a working testbench ;)

@leoujz
Copy link

leoujz commented Jun 24, 2020

Besides,
(1) I add a knx enabled state check every 10 seconds for tpuart data link layer
(2) fix a bug when group object has enabled read_init when downloading by ETS
(3) fix a bug that invalid very large address reported by ETS, which is caused by the MemoryReference
(4) bug about some dpt, I forgot which one.

Any one need it can email me, it's not ready to create a pull request, because I add too many debugging codes and other modifications unrelated to the repository. Damn, no time to tidy them.

I already created a pull request to add the modifications to the latest master branch

@etrinh
Copy link
Contributor

etrinh commented Jun 27, 2020

Pull request #71 made to fix a bug in eeprom handling - forgotten variable initialization.

@thelsing thelsing changed the title Add support for STKNX and STM32F091 Add support for STKNX Aug 31, 2020
@thelsing thelsing added the enhancement New feature or request label Aug 31, 2020
@apiesse
Copy link

apiesse commented Feb 10, 2021

Would this help?
I'm thinking of buying some stknx chips/eval, whit some indications I can try to integrate the library as a secondary datalink layer....

@thelsing
Copy link
Owner

Its possible but not trivial to use this code. Mainly because there are no freertos libs available in my stack. So you need to add some abstraction for timers to platform.h/cpp. Queue-implementations are already available in the stack.

@apiesse
Copy link

apiesse commented Feb 12, 2021

If I'm not wrong, at least for the ESP32/ESP8266 we can use the idf-provided timers functions (same functions used by that library).
No idea about the arduino platform, but I imagine something similar is available also there. As well as on the STM32 platform which might use STM32 CubeMX.
What do you think about it?

If you or someone else is willing to assist in abstracting the datalink layer so that we can have both TPUART and STKNX I can try to integrate the STKNX library on esp32 platform (for starters).

@caiservass
Copy link

Hi all,

I wanted to check in to see if there have been any recent updates regarding the compatibility of the STKNX chip with this library. Is there any progress, or are there any planned updates or forks addressing this?

Additionally, I’m looking to test the STKNX chip with a board like the Raspberry Pi Pico, but I’ve been unable to find any schematics or documentation on how to connect the chip to a dev board.

If anyone has experience with this setup or can provide a schematic or guidance on connecting the STKNX chip to the Pico (or any other board), it would be greatly appreciated.

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants