bastibl / gr-ieee802-15-4

IEEE 802.15.4 ZigBee Transceiver
https://www.wime-project.net
GNU General Public License v3.0
270 stars 87 forks source link

IEEE 802.15.4 Block is Missing #77

Closed fafrincs closed 3 months ago

fafrincs commented 5 months ago

A few months ago, I worked on a project involving IEEE 802.15.4—ZigBee, and at that time, everything was functioning correctly. However, now, all of a sudden, even after building the 'ieee802_15_4_CSS_PHY.grc' and 'ieee802-15-4_OQPSK_PHY.grc' blocks, the IEEE 802.15.4 Phy block is not showing up. I don't know what the reason could be. Any help would be appreciated."

bastibl commented 5 months ago

Maybe you just need to restart GNU Radio Companion (or refresh the blocks)?

fafrincs commented 5 months ago

1 2 I restarted GNU Radio, even the PC, and also tried on a different computer. The block is missing everywhere even after compiling the CSS and OQPSK PHY layer blocks. Have there been any changes made in the latest version?

bastibl commented 5 months ago

The PHY block is generated from the PHY flowgraph. Open the PHY flowgraph, click build, reopen GRC, and open the transceiver flowgraph.

fafrincs commented 5 months ago

Hi,

I am still unable to solve the issue. I am using GNU Radio version 3.10.1.1 on Ubuntu 22.04.4 LTS. If you see the screenshots above, you can see that after building the PHY flowgraph, the Python files are generated. However, even after building the flowgraph, when I am trying to reopen the transceiver_OQPSK.grc file, the IEEE802.15.4 OQPSK PHY block is missing.

bastibl commented 5 months ago

These files (the py and yaml file) should go to /home/misty/.grc_gnuradio. Not sure why they end up in the module. Maybe try copying them manually.

fafrincs commented 5 months ago

I followed your instructions and manually copied the files using the command: " cp /home/misty/Downloads/gr-ieee802-15-4-maint-3.10/examples/ieee802_15_4_CSS_PHY.grc /home/misty/.grc_gnuradio" and I did this for the rest of the py and yaml files. However, despite copying the files, the issue still persists.

bastibl commented 5 months ago

You are trying to run the OQPSK transceiver, which needs the OQPSK PHY (not the CSS PHY).

You are supposed to copy the generated .py and .yaml files in ~/.grc_gnuradio.

netspooky commented 3 months ago

Hello, I just ran into this issue and fixed it with the following steps on Ubuntu 22.04:

I'm not sure why, but my gnuradio-companion was ignoring ~/.gnuradio. Thankfully it tells you the block paths it's reading from at start up in the terminal. I looked at both paths and the one I picked was the one with all the other generated blocks from the build.

Hope this helps!

fafrincs commented 3 months ago

I solved the issue I was having. Sorry for informing you so late. When I installed GNU Radio on Ubuntu, the _.grcgnuradio directory was not created in _/home/misty/.grcgnuradio for some reason. To fix this, I manually created the _.grcgnuradio folder in that path (you need to enable the 'show hidden folders' option to see it). After reopening the flowgraph and clicking 'build', all the necessary .py and .yaml files were automatically generated in the _.grcgnuradio directory, resolving the issue.

Thank you, @bastibl and @netspooky, for your response.

bastibl commented 3 months ago

Thanks for the heads-up.