-
Notifications
You must be signed in to change notification settings - Fork 8
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
Micronet network not detected with Teensy 4.0 #53
Comments
Maybe a frequency calibration is needed
…On Wed, 16 Nov 2022, 13:45 tvr256 ***@***.***> wrote:
Since the commit to reduce SPI delays ( #48
<#48> ) , the Micronet
network is no longer detected.
I'm running a Teensy 4.0, identical configuration to j-lang here : #11
<#11>
—
Reply to this email directly, view it on GitHub
<#53>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APUEFX2U3YQORMI5SNGYGP3WITJN5ANCNFSM6AAAAAASCGCFGU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I tried a calibration, but no network was detected ( terminal displayed ........................ instead of ........******......... ) |
@tvr256 : Can you give the git SHA1 ID from where the failure appears. |
Can you set currentOffset in Calibrate (CC1101Driver.cpp line 422) to a
value of 24 instead 0 and try again.
Am 16.11.22 um 14:03 schrieb tvr256:
…
c4c9692
<c4c9692>
works perfectly
0dc28f4
<0dc28f4>
(and anything newer) fails
—
Reply to this email directly, view it on GitHub
<#53 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEMWNTELTOIPQ2AZHQPQOELWITLSZANCNFSM6AAAAAASCGCFGU>.
You are receiving this because you commented.Message ID:
***@***.***>
|
I assume you mean currentFreqOff on line 422? I tried changing it to 24 but unfortunately it hasn't helped.
|
It seems the new faster SPI timings are too fast for CC1101. Are you flashing MicronetToNMEA with a CPU frequency of 600MHz or 24MHz ? |
I'm flashing to a Teensy 4.0. I believe the default frequency is 600MHz, I'm not sure how to change it? I replaced all 4 instances of |
Found it! If I change CPU frequency to 24MHz, it works perfectly with |
Can you try to set the CPU at 600MHz and to use |
I already tried that (see comment above) but sadly it didn't work. |
Sorry, I missed it. So, I will roll back the SPI speed-up. It is not stable enough. |
I pushed a fix in branch |
I've tested very quickly and it seems to be working well! I'll do some more testing as soon as I'm free. |
I want only confirm that the actual master branch is working for me with T3.6 and T4.1. |
I fear rtl-sdr would not help here. The issue is related to the timing between CS High and CS Low on SPI. What is new to me is that the timing optimization was working for you and for me, but not for tvr256' CC1101. It shows that we have disparities in the behavior of CC1101. We might have different versions of CC1101 on the market. |
OK. Two questions: What was your criteria for the different choices for the CS delay time to the different SPI commands? |
I've tested again this morning, and I can confirm the following: Latest Head 3b761a7 : 600MHz fails, 24MHz works |
Thanks ! I will merge the branch in master. @dwarning : To test, I run Sailaway sail simulator with OpenCPN on my PC which I connect to my MTN setup through Bluetooth (HC-06). MTN is configured to receive all data from HC-06 NMEA except magnetic heading and GNSS Data which are received from LSM303 & NEO-8M. I then just check that my displays can run a few hours. |
Since the commit to reduce SPI delays ( #48 ) , the Micronet network is no longer detected on my system. Rolling back to the previous commit fixes the issue.
I'm running a Teensy 4.0, my configuration (and the error) are identical to what @j-lang described here : #11
The text was updated successfully, but these errors were encountered: