Terrence Spencer

Forum Replies Created

Viewing 30 posts - 1 through 30 (of 45 total)
  • Author
    Posts
  • in reply to: Getting Lora Data to Azure IOT Hub #33575
    Terrence Spencer
    Participant

    Thank you Steve.

    1. Would you like me to create new topics for things like that so others can benefit, or just keep this one going?

    2. Should I open a new topic for: When I log in to mPower, the screen just sits there spinning. So what I do is just change the URL to the device’s IP address and I arrive at the home screen, authenticated and all is fine.

    in reply to: Getting Lora Data to Azure IOT Hub #33573
    Terrence Spencer
    Participant

    Steve I can’t find the timeout setting for the UI. Every time I switch back to the conduit to see if it has received any packets, I am logged out (within 1 minute or so).

    At one point, I was keying Device and App EUI data in and was logged out right in the middle of data entry.

    mPower 6.3.0

    in reply to: Getting Lora Data to Azure IOT Hub #33568
    Terrence Spencer
    Participant

    Steve reviewing your great video again I note that I need to set the following:

    FrequencySubBand
    NetworkName
    Passphrase

    In mPower v6.3.0 GUI, Under LoraWan/Network Settings I see where to set the FrequencySubBand.
    There appears to be several areas where I am able to set NetworkName and Passphrase.

    Would you mind telling me which area I should set them in for Lora?

    Thank you.

    in reply to: Getting Lora Data to Azure IOT Hub #33567
    Terrence Spencer
    Participant

    Thank you Steve.

    in reply to: Getting Lora Data to Azure IOT Hub #33565
    Terrence Spencer
    Participant

    I keep getting “You are blocked from entering information on this site…explain what you are trying to do…” messages when I try and post a comment.

    in reply to: Getting Lora Data to Azure IOT Hub #33564
    Terrence Spencer
    Participant

    Getting Started with LoRa Conduit AEP (LoRa Configuration)

    In Steve’s video he describes how to see if your sensor data is getting to the conduit buy hooking up a Lora node to the debug node in NodeRed.

    What is the equivalent test without the NodeRed app?

    Before I struggle to get data to Azure, I might as well see if the conduit is actually receiving my sensor data.

    in reply to: Getting Lora Data to Azure IOT Hub #33563
    Terrence Spencer
    Participant

    Oh, great. Thank you Jason.

    in reply to: Getting Lora Data to Azure IOT Hub #33561
    Terrence Spencer
    Participant

    Hmm, seems I am not allowed to edit the topic I just posted.

    I was going to add that I do NOT want to use LoraWAN, just Lora.

    in reply to: AEP v 1.1.2 #33553
    Terrence Spencer
    Participant

    Ok, opening ticket now.

    in reply to: AEP v 1.1.2 #33551
    Terrence Spencer
    Participant

    I tried to post the log file, but I guess it was too long, the forum system did not allow it.

    Is there a way I can upload the file so you can see the log?

    in reply to: AEP v 1.1.2 #33548
    Terrence Spencer
    Participant

    Well I have tried these versions after factory reset.

    1.2.2
    1.43
    1.62
    1.64
    1.74

    No luck.
    Ideas / suggestions?

    in reply to: AEP v 1.1.2 #33547
    Terrence Spencer
    Participant

    Attempted to upgrade to 1.2.2
    Rebooted the conduit after and now I can’t connect.
    My dhcp server shows 10.0.0.47 ip address which I have been using all along, but still can’t connect. http or https.

    in reply to: AEP v 1.1.2 #33546
    Terrence Spencer
    Participant

    Well so I did a factory reset.
    I did NOT go through the setup wizard.
    I attempted to apply the 1.6.4 bin file and got the error again.

    “An error occurred uploading the file. Please try again or select another file. Missing upgrade file. Files must be posted.”

    in reply to: AEP v 1.1.2 #33545
    Terrence Spencer
    Participant

    Well I attempted to apply the 1.6.4 bin file and it got alllllmost to the end and then the login prompt appeared.

    I logged in and told the system to reboot, which took a couple of minutes and when It finally rebooted, I am still on v1.1.2.

    in reply to: AEP v 1.1.2 #33544
    Terrence Spencer
    Participant

    hmm, got an error upgrading to 1.6.4.
    Clicked on it to copy and paste here, but the msg went away.

    Applying the file again to see if I can capture the error msg.

    in reply to: AEP v 1.1.2 #33543
    Terrence Spencer
    Participant

    Thank you Steve.

    in reply to: AEP v 1.1.2 #33541
    Terrence Spencer
    Participant

    Gateway
    Model Number MTCDT-210A
    Serial Number 18547167

    Accessory Card 1 (AP1)
    Model Number MTAC-LORA-915
    Serial Number 18475138
    Hardware MTAC-LORA-1.0

    in reply to: AEP v 1.1.2 #33540
    Terrence Spencer
    Participant

    SN: 18547167

    in reply to: FYI – mDot TTN Connect Example #14276
    Terrence Spencer
    Participant

    Ashu, I don’t need it now, but I will in the near future, thanks for posting that over on the mbed site.

    in reply to: Configure for TTN and Private cloud #12879
    Terrence Spencer
    Participant

    The things network poly-packet-forwarder can send packets to both

    That’s great news. Thanks.

    in reply to: Only one pass and that's it? #12875
    Terrence Spencer
    Participant

    Ok, thanks.

    in reply to: RF packets received by concentrator: 0 #12844
    Terrence Spencer
    Participant

    Ok, I got those coordinated and it looks like the concentrator is getting 100%.
    I don’t see any messages with my gateway eui at ttn.
    https://thethingsnetwork.org/api/v0/nodes/

    I do see my gateway at ttn.
    https://thethingsnetwork.org/api/v0/gateways/

    What log can I look in to see where the conduit failing?

    Ideas?

    Thank you.

    ##### 2016-06-01 23:22:56 GMT #####
    ### [UPSTREAM] ###
    # RF packets received by concentrator: 2
    # CRC_OK: 100.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
    # RF packets forwarded: 2 (44 bytes)
    # PUSH_DATA datagrams sent: 3 (571 bytes)
    # PUSH_DATA acknowledged: 0.00%
    ### [DOWNSTREAM] ###
    # PULL_DATA sent: 2 (100.00% acknowledged)
    # PULL_RESP(onse) datagrams received: 0 (0 bytes)
    # RF packets sent to concentrator: 0 (0 bytes)
    # TX errors: 0
    ### [GPS] ###
    # Invalid time reference (age: 1464823376 sec)
    # GPS *FAKE* coordinates: latitude 30.22829, longitudelgw_receive:1423: FIFO content: 1 9a 1 5 16
    lgw_receive:1438: [2 17]
    Note: LoRa packet
    lgw_receive:1423: FIFO content: 1 c0 1 5 16
    lgw_receive:1438: [7 17]
    Note: LoRa packet

    in reply to: RF packets received by concentrator: 0 #12828
    Terrence Spencer
    Participant

    Ah, good catch, thank you.

    this: was in response to my mDot code:
    Change your frequency sub band setting to 1 to match the frequencies setup on Conduit.
    static uint8_t config_frequency_sub_band = 1;
    Or modify conduit to use frequency sub band 4 to match mdot

    This was incase I decide to use the poly-packet-forwarder and my search and replace question correct?

    Either/or but not both.

    in reply to: RF packets received by concentrator: 0 #12821
    Terrence Spencer
    Participant

    Here is the mDot code:

    #include “mbed.h”
    #include “mDot.h”
    #include “MTSLog.h”
    #include <string>
    #include <vector>
    #include <algorithm>
    // these options must match the settings on your Conduit
    // TTN Keys
    static const uint8_t netowork_session_key_array[] = {0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C};
    static const uint8_t data_session_key_array[] = {0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C};
    // uncomment the following lines and edit their values to match your configuration
    //static const uint8_t network_address_array[] = {0x02, 0x01, 0xBA, 0x01}; // use yours based on http://thethingsnetwork.org/wiki/AddressSpace
    static std::vector<uint8_t> netowork_session_key (netowork_session_key_array, netowork_session_key_array + sizeof(netowork_session_key_array) / sizeof(uint8_t));
    static std::vector<uint8_t> data_session_key (data_session_key_array, data_session_key_array + sizeof(data_session_key_array) / sizeof(uint8_t));
    //static std::vector<uint8_t> network_address (network_address_array, network_address_array + sizeof(network_address_array) / sizeof(uint8_t));
    static uint8_t config_frequency_sub_band = 4;

    int main() {
    int32_t ret;
    mDot* dot;
    std::vector<uint8_t> data;
    std::vector<uint8_t> devID;
    std::string data_str = “Hello SSV”;

    // get a mDot handle
    dot = mDot::getInstance();

    dot->resetConfig();

    dot->setLogLevel(mts::MTSLog::INFO_LEVEL);

    // too lazzy to check all errors
    dot->setJoinMode(mDot::MANUAL);
    dot->setPublicNetwork(true);
    dot->setFrequencySubBand(config_frequency_sub_band);
    dot->setNetworkSessionKey(netowork_session_key);
    dot->setDataSessionKey(data_session_key);
    //dot->setNetworkAddress(network_address);

    // a higher spreading factor allows for longer range but lower throughput
    // in the 915 (US) frequency band, spreading factors 7 – 10 are available
    // in the 868 (EU) frequency band, spreading factors 7 – 12 are available
    logInfo(“setting TX spreading factor”);
    if ((ret = dot->setTxDataRate(mDot::SF_10)) != mDot::MDOT_OK) {
    logError(“failed to set TX datarate %d:%s”, ret, mDot::getReturnCodeString(ret).c_str());
    }

    // request receive confirmation of packets from the gateway
    logInfo(“enabling ACKs”);
    if ((ret = dot->setAck(0)) != mDot::MDOT_OK) {
    logError(“failed to enable ACKs %d:%s”, ret, mDot::getReturnCodeString(ret).c_str());
    }

    // save this configuration to the mDot’s NVM
    logInfo(“saving config”);
    if (! dot->saveConfig()) {
    logError(“failed to save configuration”);
    }
    //*******************************************
    // end of configuration
    //*******************************************

    // attempt to join the network
    logInfo(“joining network”);
    while ((ret = dot->joinNetwork()) != mDot::MDOT_OK) {
    logError(“failed to join network %d:%s”, ret, mDot::getReturnCodeString(ret).c_str());
    // in the 868 (EU) frequency band, we need to wait until another channel is available before transmitting again
    osDelay(std::max((uint32_t)1000, (uint32_t)dot->getNextTxMs()));
    }

    // format data for sending to the gateway
    for (std::string::iterator it = data_str.begin(); it != data_str.end(); it++)
    data.push_back((uint8_t) *it);

    printf(“Device ID {“);
    std::vector<uint8_t> deviceId;
    deviceId = dot->getDeviceId();
    for (std::vector<uint8_t>::iterator it = deviceId.begin() ; it != deviceId.end(); ++it) {
    printf(“0x%2.2X”,*it );
    printf(“%s”, it != (deviceId.end() -1 ) ? “, ” : ” ” );
    }
    printf(“}\r\n”);

    while (true) {
    // send the data to the gateway
    if ((ret = dot->send(data)) != mDot::MDOT_OK) {
    logError(“failed to send”, ret, mDot::getReturnCodeString(ret).c_str());
    } else {
    logInfo(“successfully sent data to gateway”);
    }

    // in the 868 (EU) frequency band, we need to wait until another channel is available before transmitting again
    osDelay(std::max((uint32_t)10000, (uint32_t)dot->getNextTxMs()));
    }

    return 0;
    }

    in reply to: RF packets received by concentrator: 0 #12818
    Terrence Spencer
    Participant

    Hey Jason, I am all over a non custom solution.
    I am in Texas, so 915.
    The mDot is using the mDot_lora_example_tnn_connect.

    Do you mean this from GitHub:

    https://github.com/Lora-net/packet_forwarder/tree/master/basic_pkt_fwd

    If I used the global_conf.json do I need to change anything.
    edit: this config is for 868 mhz. So there has to be a bunch of changes.
    or is it as easy as search and replace:
    “freq”: 868500000,
    for
    “freq”: 915??????????????????,

    https://github.com/Lora-net/packet_forwarder/blob/master/basic_pkt_fwd/global_conf.json

    I am pretty green at this config stuff.

    in reply to: Conduit AEP EUI #12781
    Terrence Spencer
    Participant

    How can I edit a previous post?

    edit:
    I finally discovered the edit link which html style is dimmed or not “active”.
    I would suggest making that link the standard blue style of all html links.
    Thanks.

    in reply to: Conduit won’t turn on #12545
    Terrence Spencer
    Participant

    Ok, thank you.

    in reply to: NodeRED, Application Handler & "Custom Node" #12530
    Terrence Spencer
    Participant

    I have an AEP, not mLinux. Can it be done with this model? I have been following.

    in reply to: NodeRED, Application Handler & "Custom Node" #12500
    Terrence Spencer
    Participant

    Any update on this topic?
    I need to do private/public processing.

    Packets that come in with my IDs need to go to Azure, those coming in from the public will go to TTN.

    Can it be done?
    What are the steps?

    in reply to: Mono on Conduit C# #12304
    Terrence Spencer
    Participant

    Thank you Jason.

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