dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 503 forks source link

Raspbee II under Windows (11) #7547

Closed PatcherMustermann closed 7 months ago

PatcherMustermann commented 9 months ago

Does the issue really belong here?

Is there already an existing issue for this?

Describe the bug

I would like to use the Raspbee II on Windows (11). However, I am not able to integrate it as a device in deConz.

I have tried the following parameters (x replaced by number): 01 - deconz -d COMx 02 - deconz -d "COMx" 03 - deconz -d \\.\COMx 04 - deconz -d "\\.\COMx" 05 - deconz --dev=COMx 06 - deconz --dev="COMx" 07 - deconz --dev=\\.\COMx 08 - deconz --dev="\\.\COMx" 09 - deconz --device=COMx 10 - deconz --device="COMx" 11 - deconz --device=\\.\COMx 12 - deconz --device="\\.\COMx"

I have run COM-Port monitoring and deConz does not even try to open the COM-Port. On Zigbee2MQTT (Windows), however, the Raspbee II works perfectly.

With the GCFFlasher_Win_V4_03_00 (Windows) I can establish a connection with the parameter "-d" (GCFFlasher.exe -d COMx -f xxx.bin.gcf). With the list function "-l", however, the Raspbee II is not displayed either.

Steps to reproduce the behavior

/

Expected behavior

/

Screenshots

No response

Environment

deCONZ Logs

No response

Additional context

No response

manup commented 9 months ago

Indeed the --dev parameter currently just works on Linux, so right know the best approach is to use the --auto-connect=1 (which is the default) and let deCONZ figure out the COM port. Note on Windows there is no RaspBee, do you mean ConBee?

PatcherMustermann commented 9 months ago

I mean realy the Raspbee II. I have successfully connect the Raspbee II to deconz on Windows with a trick, but for this I need a Conbee on the USB port. Why does the device parameter only work in Linux and not in Windows? I think for dresden elektronik is this not a big deal to change the source code for the deconz Windows version.

manup commented 9 months ago

Yeah I think adapting the code to also support --dev on Windows doesn't require much. I put it on schedule for v2.26.0-beta. Note however that you might also need to set the --baudrate=38400 to connect to RaspBee.

PatcherMustermann commented 9 months ago

That sounds good. Thank you very much!

Would the call of deconz with parameters look like this?: \path...\deconz.exe --dev=COMx --baudrate=38400

Edit: I have seen that the beta versions are not compiled. Would it be possible to get them compiled for Windows after integrating the Raspbee II?

manup commented 9 months ago

Yeah I guess the call looks right if it is connected to a USB serial converter.

All versions are also released for Windows like the latest beta v2.25.2. However build instructions needs to be updated for Windows since the stock Qt5 libraries need to be used, unfortunately the msys2 Qt5 libraries generate bogus virus warnings.

PatcherMustermann commented 9 months ago

I tried the releases v2.26.0-beta from yesterday and my problem is not fixed yet. Is this correct?

Screenshot 2024-02-13 103034

Mimiix commented 9 months ago

I tried the releases v2.26.0-beta from yesterday and my problem is not fixed yet. Is this correct?

Screenshot 2024-02-13 103034

Yes. Otherwise this issue would have been closed.

PatcherMustermann commented 9 months ago

Thanks for this information. Then I'll have to be patient a little longer.

PatcherMustermann commented 8 months ago

IMG_3337 I tested version 2.26.1 beta today and the parameter —dev=COMx worked fine. One thing that could be improved is to change the displayed name ConBee to Rasbee. Otherwise very good job - thank you!

github-actions[bot] commented 7 months ago

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

manup commented 7 months ago

Close as completed for now, the RaspBee device name needs some more additions in the firmware later on.