Replies: 7 comments 3 replies
-
That's not going to work, because the two modes require different configuration, once you enable one, you disable the other. This is the case for both SX127x and SX126x. |
Beta Was this translation helpful? Give feedback.
-
Thanks.
…On Sun, Oct 15, 2023 at 9:44 PM Jan Gromeš ***@***.***> wrote:
That's not going to work, because the two modes require different
configuration, once you enable one, you disable the other. This is the case
for both SX127x and SX126x.
—
Reply to this email directly, view it on GitHub
<#850 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRDHTXKVMPHNFVZNWX5LG3X7S3SBAVCNFSM6AAAAAA6BLH54SVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TEOBYGQ4DS>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I have primarily migrated from SX1276 to SX1262 radios for several reasons
unrelated to this discussion. As I mentioned in my post, I can switch
between LoRa and FSK modes by initializing a new radio with a begin or
beginFSK. However, battery drain caused by the time required for either
begin is a problem.
I just did a comparison of the time required for a begin for both SX1276
and SX1262 radios using an Arduino Pro Mini CPU. The SX1262 takes over 250
milliseconds while the SX1276 takes only 18 which I can live with. Since I
prefer to use the SX1262 radio, I wonder if the much longer SX1262 begin
time is necessary?
…On Sun, Oct 15, 2023 at 9:44 PM Jan Gromeš ***@***.***> wrote:
That's not going to work, because the two modes require different
configuration, once you enable one, you disable the other. This is the case
for both SX127x and SX126x.
—
Reply to this email directly, view it on GitHub
<#850 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRDHTXKVMPHNFVZNWX5LG3X7S3SBAVCNFSM6AAAAAA6BLH54SVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TEOBYGQ4DS>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I believe that I have debug commented out.
I am probably completely wrong but it seems that begin calls standby which
includes a 100 ms delay.
…On Tue, Oct 17, 2023 at 9:55 AM Jan Gromeš ***@***.***> wrote:
That's odd, do you perhaps have debug enabled by mistake? For me,
SX1268::begin takes about 34 ms on Arduino Uno.
—
Reply to this email directly, view it on GitHub
<#850 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRDHTT7H7PIBH7343KFRALX722ALAVCNFSM6AAAAAA6BLH54SVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGMBWGQYTI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
When I change the delay in standby from 100 to 10 ms, the begin goes from
250 ms to 78 ms. I can live with that.
…On Tue, Oct 17, 2023 at 10:32 AM Jan Gromeš ***@***.***> wrote:
That delay should only get triggered if the first call to standby fails.
You can try to comment it out, but as far as I can tell there should be
nothing taking 200+ ms.
—
Reply to this email directly, view it on GitHub
<#850 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRDHTVDTDJ4WNFBCOHE4JDX726KJAVCNFSM6AAAAAA6BLH54SVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGMBWG42DG>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
With the delay in standby set to 100 ms, the total begin is 256 ms. When I
change the delay to 10 ms, the begin goes to 76. I read the arithmetic to
show that the delay is included twice - 256 - (90 x 2) = 76. 90 x 2 is the
total delay reduction when going from 100 to 10.
…On Tue, Oct 17, 2023 at 10:38 AM Larry Plummer ***@***.***> wrote:
When I change the delay in standby from 100 to 10 ms, the begin goes from
250 ms to 78 ms. I can live with that.
On Tue, Oct 17, 2023 at 10:32 AM Jan Gromeš ***@***.***>
wrote:
> That delay should only get triggered if the first call to standby fails.
> You can try to comment it out, but as far as I can tell there should be
> nothing taking 200+ ms.
>
> —
> Reply to this email directly, view it on GitHub
> <#850 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABRDHTVDTDJ4WNFBCOHE4JDX726KJAVCNFSM6AAAAAA6BLH54SVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGMBWG42DG>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
Thanks.
…On Tue, Oct 17, 2023 at 11:17 AM Jan Gromeš ***@***.***> wrote:
That's interesting, thanks for investigating. My guess is that for some
reason, teh SX126x does not initialize correctly right away, hence why the
delay was getting triggered. Still strange it doesn't happen on my Uno
which should be pretty close to Pro Mini performance-wise.
I updated the library to only use 10 ms delay, there is no reason to wait
100 ms.
—
Reply to this email directly, view it on GitHub
<#850 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRDHTTSD3DWUCN4ZLZRRQTX73DRFAVCNFSM6AAAAAA6BLH54SVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGMBXGEYDO>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Is it possible to instatiate two logical radios - one LoRa and one FSK - connected to the same physical radio? I can do this now by issuing a new radio.begin for each mode. However, that takes a lot of time to switch and my application is battery powered which means battery use.
Beta Was this translation helpful? Give feedback.
All reactions