Michael

Forum Replies Created

Viewing 30 posts - 1 through 30 (of 54 total)
  • Author
    Posts
  • in reply to: Persistence of a "join" #13021
    Michael
    Participant

    I’d like some clarification here…

    int32_t setLinkCheckCount(const uint8_t& count);

    How does the application know the Link Check has been performed and failed? Will the response to the “send” fail just like it would fail in other cases or is this a special case?

    in reply to: Persistence of a "join" #12849
    Michael
    Participant

    Excellent! I was unable to track down those functions on my own, sadly.
    (I guess the operative word for searching is “link” and not “join” 😉 )

    Thanks!

    in reply to: Persistence of a "join" #12838
    Michael
    Participant

    Bump

    in reply to: Join spreading factor #12837
    Michael
    Participant

    I seem to recall now seeing something that indicated the mDot might “join” using some random SF, but then subsequent messages would be sent at the user-specified SF.

    I cannot find this now… can someone point to it?
    Is it a Multitech thing or a LoRaWAN thing?

    Thanks

    in reply to: SPIFFS #12826
    Michael
    Participant

    Yes, I have opened a support case and gotten a response that seems to suggest I may have suffered a low-voltage condition during operation.

    I have operated (for short periods – 15-30 mins) from one of those external cellphone battery chargers (brick) but it was always fully charged at the time.

    Anyway, the support case provided some additional steps I will attempt to perform.

    in reply to: join attempts / not working #12825
    Michael
    Participant

    Yes, the rollback worked (thanks!)

    However…I had already considered that issue (of a bad library)…
    I had archived a set of source files from a project of a few weeks ago that contained older libraries and I couldn’t get those builds to connect either. (Over the weekend I did not have any access to the actual bins from that older project).

    I cannot explain that ATM but happy to be moving on.

    in reply to: ticker / timer #12798
    Michael
    Participant

    J-

    Goodness….

    I sort of misread which library you were concerned with and rolled back differently

    Now rtos: 117
    mbed: 111
    Libmdot: 14

    However…it seems to work now. I’ll dig a bit into it.

    Thanks.

    -M

    in reply to: ticker / timer #12797
    Michael
    Participant

    I had already rolled back to a different project using the same basic code. It had much older versions for mbed, rtos and libmdot

    That did not fix the join problem.

    I will try again.

    Perhaps the corrupted flash is an issue
    See: http://www.multitech.net/developer/forums/topic/lost-deviceid/

    in reply to: join attempts / not working #12793
    Michael
    Participant

    I loaded the AT command application , cleared the settings starting from scratch (hopefully) and was able to successfully join per the tutorial/example. I captured the settings using AT&V.

    Then I went back to my original binary and confirmed the joinNetwork() call never returns. (At that point I really don’t know if the “join” actually happened but the library/code for the joinNetwork() is somehow busted and never returns – doubtful though)

    Then, I again loaded the AT command app and ran AT&V – the settings left over from my (non-Joining) code look the same as the AT successful-joining code.

    I’ve stripped down my code to almost the barebones (working on that now…still), started with an online example (mDot_LoRa_Connect_Example) used older and newer libraries all to no avail.

    Any ideas?

    -Mike

    PS. I do have a gateway available (hence the successful AT-command joins)

    Here’s the debug output from my code


    [ERROR] File from flash wrong size. Expected 256 - Actual 128
    [INFO] Setting Config
    [INFO] Saving Config
    [INFO] Joining Network
    [INFO] TX Frequency: 902300000 SF: 10 BW: 125 kHz POW: 14 dBm

    in reply to: join attempts / not working #12791
    Michael
    Participant

    Can anyone answer why the mDot appears to stop after one attempt/ failure?

    in reply to: SPIFFS #12790
    Michael
    Participant

    Here’s a typical boot-up

    [ERROR] SPIFFS_read failed -10004
    [ERROR] File from flash wrong size. Expected 256 – Actual 128
    [INFO] Setting Config
    [INFO] setting Join mode
    [TRACE] Join Network – OTA
    [TRACE] Rx Channel Frequency: 923300000
    [TRACE] Tx High BW Frequency: 903000000
    [INFO] Saving Config
    [DEBUG] Saving config to flash
    [ERROR] SPIFFS_write failed -10015

    in reply to: SPIFFS #12789
    Michael
    Participant

    Hi Andrew,

    Yes, I looked up SPIFFS and saw it had something to do with the Flash file management, but I don’t do anything directly with it (other than to drag and drop my files to the mDot). Nor do I touch any of the pins you mention. (I don’t think they are even available physically unless I somehow damage the mDot board).

    I do see the problem on multiple mDots, (but not all of them) and it has only started recently.

    Thanks for your time/effort so far.

    Mike

    in reply to: ticker / timer #12786
    Michael
    Participant

    Understood. At least I have some idea *what* is in my way, if not *why* atm.

    My revisions are:

    libmdot: 14
    mbed: 117
    mbed-rtos: 121

    in reply to: Can no longer Join #12779
    Michael
    Participant

    Hmm…. what’s with the step:
    atz
    ?

    It clears all the values in the mDot now and when I try to join all the values have been reset: fsb=0, password is empty, etc.

    I don’t recall this happening previously.

    in reply to: SPIFFS #12777
    Michael
    Participant

    Here’s one (it appears in the Linux terminal window)
    [ERROR] SPIFFS_read failed -10004

    Here’s another

    [ERROR] SPIFFS_write failed -10015

    • This reply was modified 7 years, 11 months ago by Michael.
    in reply to: RTC initialization failed #12767
    Michael
    Participant

    Tried the power cycle but the SPIFFS error remains

    in reply to: RTC initialization failed #12764
    Michael
    Participant

    I also see this outputted on the debug port:

    “SPIFFS_write failed -10015”

    in reply to: RTC initialization failed #12763
    Michael
    Participant

    Anyone?

    This error seems to come and go in different builds. I haven’t been able to track it down.

    Only started happening after I did some updates to the mdot, mbed libmdot libraries

    in reply to: ticker / timer #12761
    Michael
    Participant

    First: Yes I am using the online compiler. How do I identify the versions you request? (I’ve very recently updated these…)

    Second: I worked on a simple main.cpp and I can now get the timer to fire as expected, blinking the LED. However as I add back in the rest of my code, it again fails.

    History: The “rest of the code” is based in great part on the mbed library for the Sparkfun weather station for which an implementation is my ultimate goal. The ticker used in that library is meant to allow the counting of the anemometer’s rotations in one second ( counts between one second ticks ). However that tick does not appear to be firing, so I implemented a simpler ticker in my main.cpp in an effort to understand its operation better. And that tick also did not work. That is, until I deleted the original ticker in the weather code:

    m_OneSecondTicker.attach_us<CAnemometer>(this, &CAnemometer::OneSecondTickerISR, 1000000);

    Is there something wrong with that construct?

    in reply to: ticker / timer #12748
    Michael
    Participant

    Hi Mike,

    Thanks for the follow-up.

    Yes, I’m using the UDK and have been able to flash the LED6 “manually” in the code (as mentioned previously). I chose that digital port and that LED specifically for that purpose (of flashing it). I wanted to first see if I can control the LED at all – and I can.

    Then I wanted to see if I could get a “ticker” to control it. I cannot.
    This is the crux of my problem. I cannot get “tickers” to “tick”.

    (Note: I have tried other experiments to verify the operation of the ticker that have failed – the LED is just the latest incarnation of those experiments and the easiest one to demonstrate)

    b/r
    Mike

    in reply to: ticker / timer #12744
    Michael
    Participant

    Compiles fine.

    I can flash the LED “manually”.

    So it works, too.

    I cannot get the timer-ticker to work. That’s my problem.

    -Mike

    in reply to: mDot with Sparkfun, part II #12740
    Michael
    Participant

    It appears the interrupts work OK, but the ticker does not. I started another thread.

    Thanks for reading.

    in reply to: mDot with Sparkfun, part II #12663
    Michael
    Participant

    Still looking for help…

    FYI

    The rain gauge input, which works, is on PC_13.

    The wind speed input, which does NOT work, is on PA_0

    in reply to: Error message #12646
    Michael
    Participant

    Any other ideas?

    in reply to: Error message #12493
    Michael
    Participant

    J-

    Tried it. Didn’t help.

    -M

    in reply to: Unreliable reads from AnalogIn from mbed lib #12492
    Michael
    Participant

    That’s depressing – I don’t have that voltage available. 3.3V, yes, but not 3.0V.

    OK, I’ll have to conjure up a scheme.

    Thanks.

    in reply to: Micro Developer Kit #12486
    Michael
    Participant

    I tried to buy from them but they said I needed to buy 10 of them.
    Apparently they were unwilling to buy ten themselves and sell me one.

    “Stocking” distributor does not apply.

    in reply to: Persistence of a "join" #12482
    Michael
    Participant

    Thanks Jason, that was quite informative.

    However, going forward I’m not using AT commands – I’m using the mbed library (libmDot.h) So, let me see if I understand this…

    If I join in automatic mode and ACKs “On” with`setJoinMode(mDot::AUTO_OTA);
    setAck( 1 );`
    and make no other changes, I’d expect the mDot to automatically attempt to “re-Join” after one missed ACK?

    And I can change the number of missed ACKs before the mDot attempts a re-Join with: setLinkCheckCount()

    Is that all correct?
    Is there another setting I should be concerned with for this arrangement – that is AUTO, and ACKs ON?

    Thanks.
    -Mike

    • This reply was modified 7 years, 11 months ago by Michael.
    • This reply was modified 7 years, 11 months ago by Michael.
    • This reply was modified 7 years, 11 months ago by Michael.
    in reply to: Persistence of a "join" #12468
    Michael
    Participant

    OK, thanks.

    Is there some example code illustrating a recommended way for a remote to maintain network connectivity in light of the above?

    in reply to: US Spreading factor – indeterminate setting? #12463
    Michael
    Participant

    Thanks. These enum entries were not in the version with which I was operating. Was sure I had updated the file but…
    :-/

    Mike

Viewing 30 posts - 1 through 30 (of 54 total)