-
Notifications
You must be signed in to change notification settings - Fork 90
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
Compatibility with Wizzilab stack #82
Comments
Hi, Glad to see you back! The main problem with the compatibility between this stack and Wizzilab is that this stack is still in development. The mode where we are constantly switching between channels at intervals instead of continuously scanning on one channel (which we call channel diversity) is not yet implemented in the master of this stack. However, we've been working on this in a separate branch, this branch is currently working but we are still testing it before pushing it to master. You could try this branch and let us know if you see any problems occurring. Channel diversity is tested only between oss-7 devices and on certain time-intervals so there could still be problems there and perhaps it's best to first test with two oss-7 devices before testing between oss-7 and Wizzilab but I'm very curious about the results, please let us know! Other issues I noticed in your code are:
If there are any other problems you encounter, please be sure to let us know! |
Thank you for the feedback. Unfortunately even with the correct subband_bitmap and scan period it still doesn't get picked up by the wizzigate or vice versa. Maybe I can get my hands on a spectrum analyzer to compare the signals. I will try the new branch now and report back later. BTW I believe the python repo is not updated yet, since it is missing
|
Connection with the Wizzigate is not possible without the new branch. I also updated PYD7A to the newest version including the file used in the new branch. Let me know if it works. |
Both the The gateway doesn't connect to $ PYTHONPATH=. python -u examples/unsolicited_response_logger.py -d /dev/cu.usbmodem14403
2020-03-12 14:34:24,958 modem.modem INFO starting read thread
2020-03-12 14:34:24,978 modem.modem INFO Sending command of size 17
2020-03-12 14:34:24,978 modem.modem INFO Waiting for response (max 10 s)
2020-03-12 14:34:35,021 modem.modem INFO Command timeout (tag 195)
2020-03-12 14:34:35,021 modem.modem WARNING Timed out reading node information The sensor crashes at the 14:48:10:720 [000] Device booted
14:48:37:781 assertion "e == SUCCESS" failed: file "dash7-ap-open-source-stack/stack/framework/components/fs/fs.c", line 261, functio In the debbugger I can see that it crashes on the assertion while trying to read Both cases are without |
Did you reload the cmake settings in the newest branch? DllStatusFile is set as a volatile file and needs room. That's why the cmake option for FRAMEWORK_FS_VOLATILE_STORAGE_SIZE changed from 57 to 85. I think in your case, this option is still at 57 resulting in an assert. To connect to the Wizzilab gateway, you need to enable the MODULE_D7AP_USE_CHANNEL_HOPPING option. |
Aah yes, rebuilding CMake helps. Now I have successful communication between OSS-7 device and gateway on multiple channels. It does seem like packets are missed. Success rate is maybe 1 in 4 tries: 16:17:01:203 [019] response payload:
16:17:01:200 [018] 42 31 35 34 00 4B 00 3D
16:17:01:198 [017] recv response @ 30 dB link budget from:
16:17:01:193 [016] Command failed, no ack received
16:16:29:918 [015] Command failed, no ack received
16:15:50:792 [014] Command completed successfully
16:15:20:272 [013]
16:15:14:742 [012] response payload:
16:15:14:740 [011] 42 31 35 34 00 4B 00 3D
16:15:14:737 [010] recv response @ 32 dB link budget from:
16:15:14:733 [009] Command failed, no ack received
16:14:41:151 [008] Command failed, no ack received
16:14:02:024 [007] Command failed, no ack received
16:13:22:897 [006] Command completed successfully Next step is to change the AP parameters again to match the wizzilab gateway. However as soon as I switch to NORMAL_RATE, the sensor_push app will crash. I am using the following settings:
And this is the stack trace: #0 __assert_func (
file=file@entry=0x8017564 "stack/framework/hal/chips/sx127x/sx127x.c",
line=line@entry=546, func=func@entry=0x801747c <__func__.10300> "fifo_level_isr", failedexpr=failedexpr@entry=0x8013fa4 "false")
at stack/framework/hal/platforms/NURTIO1/libc_overrides.c:72
#1 0x0800bbba in fifo_level_isr ()
at stack/framework/hal/chips/sx127x/sx127x.c:546
#2 0x0800de9c in scheduler_run ()
at stack/framework/components/scheduler/scheduler.c:385
#3 0x080078ea in main ()
at stack/framework/hal/platforms/NURTIO1/platf_main.c:117 Which means it detects an underflow
But I guess this hasn't been tested yet |
indeed, I've seen this happen before with rates higher than low rate but this hasn't been solved yet. I will be trying to fix this in the future but I'm too busy for this feature right now. Thank you for letting us know! |
Are there any LOG sources enabled in cmake? Maybe disabling all logging can already help with this? Do you have the possibility to adapt the Wizzilab AP to lo-rate btw? |
I will try to disable the LOG sources, see if that helps for normal rate. I have indeed tried configuring the wizzilab gateway and devices to Same AP. Rate, frequency bands, channel header, channel_index, subband_bitmap, scan_period. They're all the same. So I run the I must be missing something, but I am not fluent in dash7 yet. Maybe later when I am more familiar with this stack I could also look into helping improving things. Do you have something like a roadmap? Or contribution guidelines? We wanted to start out with an off-the-shelve gateway to save some development time initially. But it starts to look like we'll need to build an OSS7 gateway instead. Does Aloxy sell a gateway maybe? |
Any idea if the wizzilab Gateway requires network layer security by default? Can you turn it off?
That would be great. We need to make it easier for external contributions indeed, for now the roadmap is mostly internal. We are in the process of proposing the project to become part of Eclipse IoT umbrella, which will also means we need to improve procedures wrt contributors.
At the moment this is not the goal of Aloxy to do this. We only sell gateways as part of a solution for industrial IoT and connected to our IoT Hub. |
Resolve "radio in rx when waiting between CCA" Closes Sub-IoT#82 See merge request aloxy/oss-7!47
Hi, I am back working on DASH7! I am testing compatibility with the WGATE-WRT gateway by Wizzilab.
Therefor I am either trying to connect the
sensor_push
app with the WGATE-WRT gateway. Or create a gateway that accepts one of the wizzilab demo devices.According to Wizzilab, their gateway is configured with the following Access Profile:
The channel frequencies correspond to channel indices
200, 216, 239
. I am trying to create the FS that is compatible with these settings:Then in the gateway I am selecting access class
0x21
And in the sensor_push app I am trying to send on
0x21
However, in both directions I have no luck so far. Do you know if I am missing anything still?
When testing the gateway, I am running the
unsolicited_response_logger.py
.Also I realized wizzilab is running D7A 1.2 vs 1.1 of this stack. Is that compatible?
The text was updated successfully, but these errors were encountered: