Jose Gato Luis

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: STM32 with Conduit Network Server #22304
    Jose Gato Luis
    Participant

    ok @Jason, I think I have the answer…. the demo I was trying in the node was developed for a Semtech board, and my device is the P-NUCLEO-LRWAN1 (by ST). It seems to be the same Lora extension board, but not the same Nucleo board. Maybe it would work with some modifications I dont know.

    Using the firmware/demo directly from ST it worked easily, but it is a hard pain the obligation of using some specific IDEs (propietary and only available in windwos) they support.

    Thanks for everything

    in reply to: STM32 with Conduit Network Server #22259
    Jose Gato Luis
    Participant

    Not sure if the device is transmiting, this is algo something I trying to guess in this thread:

    https://os.mbed.com/questions/79829/VT100-emulation-in-Linux/?compage=1#c29275

    about the hardware details:

    19228879
    00:80:00:00:A0:00:11:01
    MTAC-LORA-1.0
    MTAC-LORA-868
    Multi-Tech System

    I think it is better to way if I have any response from mbed community to ensure I have correctly configured the node 😉

    in reply to: STM32 with Conduit Network Server #22256
    Jose Gato Luis
    Participant

    Added, but I dont see a difference:

    Is it receiving packages from the node? Do you recommed me to upgrade gateway firmware?

    INFO: Start of downstream thread
    
    ##### 2018-01-05 17:42:32 GMT #####
    ### [UPSTREAM] ###
    # RF packets received by concentrator: 0
    # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
    # RF packets forwarded: 0 (0 bytes)
    # PUSH_DATA datagrams sent: 0 (0 bytes)
    # PUSH_DATA acknowledged: 0.00%
    ### [DOWNSTREAM] ###
    # PULL_DATA sent: 3 (0.00% acknowledged)
    # PULL_RESP(onse) datagrams received: 0 (0 bytes)
    # RF packets sent to concentrator: 0 (0 bytes)
    # TX errors: 0
    ##### END #####
    
    ##### 2018-01-05 17:43:02 GMT #####
    ### [UPSTREAM] ###
    # RF packets received by concentrator: 0
    # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
    # RF packets forwarded: 0 (0 bytes)
    # PUSH_DATA datagrams sent: 0 (0 bytes)
    # PUSH_DATA acknowledged: 0.00%
    ### [DOWNSTREAM] ###
    # PULL_DATA sent: 3 (0.00% acknowledged)
    # PULL_RESP(onse) datagrams received: 0 (0 bytes)
    # RF packets sent to concentrator: 0 (0 bytes)
    # TX errors: 0
    ##### END #####
    
    ##### 2018-01-05 17:43:32 GMT #####
    ### [UPSTREAM] ###
    # RF packets received by concentrator: 1
    # CRC_OK: 0.00%, CRC_FAIL: 100.00%, NO_CRC: 0.00%
    # RF packets forwarded: 1 (70 bytes)
    # PUSH_DATA datagrams sent: 1 (309 bytes)
    # PUSH_DATA acknowledged: 0.00%
    ### [DOWNSTREAM] ###
    # PULL_DATA sent: 3 (0.00% acknowledged)
    # PULL_RESP(onse) datagrams received: 0 (0 bytes)
    # RF packets sent to concentrator: 0 (0 bytes)
    # TX errors: 0
    ##### END #####
    
    ##### 2018-01-05 17:44:02 GMT #####
    ### [UPSTREAM] ###
    # RF packets received by concentrator: 0
    # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
    # RF packets forwarded: 0 (0 bytes)
    # PUSH_DATA datagrams sent: 0 (0 bytes)
    # PUSH_DATA acknowledged: 0.00%
    ### [DOWNSTREAM] ###
    # PULL_DATA sent: 3 (0.00% acknowledged)
    # PULL_RESP(onse) datagrams received: 0 (0 bytes)
    # RF packets sent to concentrator: 0 (0 bytes)
    # TX errors: 0
    ##### END #####
    
    ##### 2018-01-05 17:44:32 GMT #####
    ### [UPSTREAM] ###
    # RF packets received by concentrator: 0
    # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
    # RF packets forwarded: 0 (0 bytes)
    # PUSH_DATA datagrams sent: 0 (0 bytes)
    # PUSH
    
    in reply to: STM32 with Conduit Network Server #22254
    Jose Gato Luis
    Participant

    Sorry I dont understand what do you mean with mtac-lora private, I see the log but all my config is set to public. I dont see a thing about synch_word

    ok, here it is my global_conf.json

    thank you ver much for your quick responses…

    root@mtcdt:/var/config/lora# cat global_conf.json 
    {
    	"SX1301_conf": {
    		"antenna_gain": 0,
    		"chan_FSK": {
    			"bandwidth": 125000,
    			"datarate": 50000,
    			"enable": true,
    			"if": 300000,
    			"radio": 1
    		},
    		"chan_Lora_std": {
    			"bandwidth": 250000,
    			"enable": true,
    			"if": -200000,
    			"radio": 1,
    			"spread_factor": 7
    		},
    		"chan_multiSF_0": {
    			"enable": true,
    			"if": -400000,
    			"radio": 1
    		},
    		"chan_multiSF_1": {
    			"enable": true,
    			"if": -200000,
    			"radio": 1
    		},
    		"chan_multiSF_2": {
    			"enable": true,
    			"if": 0,
    			"radio": 1
    		},
    		"chan_multiSF_3": {
    			"enable": true,
    			"if": -400000,
    			"radio": 0
    		},
    		"chan_multiSF_4": {
    			"enable": true,
    			"if": -200000,
    			"radio": 0
    		},
    		"chan_multiSF_5": {
    			"enable": true,
    			"if": 0,
    			"radio": 0
    		},
    		"chan_multiSF_6": {
    			"enable": true,
    			"if": 200000,
    			"radio": 0
    		},
    		"chan_multiSF_7": {
    			"enable": true,
    			"if": 400000,
    			"radio": 0
    		},
    		"clksrc": 0,
    		"lbt_cfg": {
    			"enable": false,
    			"rssi_target": 160
    		},
    		"lorawan_public": true,
    		"radio_0": {
    			"enable": true,
    			"freq": 867500000,
    			"rssi_offset": -162,
    			"tx_enable": true,
    			"tx_freq_max": 870000000,
    			"tx_freq_min": 863000000,
    			"type": "SX1257"
    		},
    		"radio_1": {
    			"enable": true,
    			"freq": 868500000,
    			"rssi_offset": -162,
    			"tx_enable": false,
    			"type": "SX1257"
    		},
    		"tx_lut_0": {
    			"dig_gain": 0,
    			"mix_gain": 11,
    			"pa_gain": 0,
    			"rf_power": -6
    		},
    		"tx_lut_1": {
    			"dig_gain": 0,
    			"mix_gain": 13,
    			"pa_gain": 0,
    			"rf_power": -3
    		},
    		"tx_lut_10": {
    			"dig_gain": 0,
    			"mix_gain": 15,
    			"pa_gain": 2,
    			"rf_power": 16
    		},
    		"tx_lut_11": {
    			"dig_gain": 0,
    			"mix_gain": 10,
    			"pa_gain": 3,
    			"rf_power": 20
    		},
    		"tx_lut_12": {
    			"dig_gain": 0,
    			"mix_gain": 12,
    			"pa_gain": 3,
    			"rf_power": 23
    		},
    		"tx_lut_13": {
    			"dig_gain": 0,
    			"mix_gain": 13,
    			"pa_gain": 3,
    			"rf_power": 25
    		},
    		"tx_lut_14": {
    			"dig_gain": 0,
    			"mix_gain": 15,
    			"pa_gain": 3,
    			"rf_power": 26
    		},
    		"tx_lut_15": {
    			"dig_gain": 0,
    			"mix_gain": 15,
    			"pa_gain": 3,
    			"rf_power": 27
    		},
    		"tx_lut_2": {
    			"dig_gain": 0,
    			"mix_gain": 9,
    			"pa_gain": 1,
    			"rf_power": 0
    		},
    		"tx_lut_3": {
    			"dig_gain": 0,
    			"mix_gain": 10,
    			"pa_gain": 1,
    			"rf_power": 3
    		},
    		"tx_lut_4": {
    			"dig_gain": 0,
    			"mix_gain": 12,
    			"pa_gain": 1,
    			"rf_power": 6
    		},
    		"tx_lut_5": {
    			"dig_gain": 0,
    			"mix_gain": 10,
    			"pa_gain": 2,
    			"rf_power": 10
    		},
    		"tx_lut_6": {
    			"dig_gain": 0,
    			"mix_gain": 11,
    			"pa_gain": 2,
    			"rf_power": 11
    		},
    		"tx_lut_7": {
    			"dig_gain": 0,
    			"mix_gain": 11,
    			"pa_gain": 2,
    			"rf_power": 12
    		},
    		"tx_lut_8": {
    			"dig_gain": 2,
    			"mix_gain": 12,
    			"pa_gain": 2,
    			"rf_power": 13
    		},
    		"tx_lut_9": {
    			"dig_gain": 0,
    			"mix_gain": 13,
    			"pa_gain": 2,
    			"rf_power": 14
    		}
    	},
    	"gateway_conf": {
    		"forward_crc_disabled": false,
    		"forward_crc_error": true,
    		"forward_crc_valid": true,
    		"gateway_ID": "00800000A0001101",
    		"keepalive_interval": 10,
    		"push_timeout_ms": 100,
    		"serv_port_down": 20000,
    		"serv_port_up": 20000,
    		"server_address": "52.3.215.147",
    		"stat_interval": 30
    	}
    }
    
    in reply to: STM32 with Conduit Network Server #22250
    Jose Gato Luis
    Participant

    After some diggin I have enabled the paquet forwareder, the firmaware in my gateway is 3.2.0, so the instructions are different.

    This is the log I get:

    
    setup_sx125x:721: Note: SX125x #1 PLL start (attempt 1)
    lgw_start:1120: Note: calibration started (time: 3000 ms)
    lgw_start:1141: Note: calibration finished (status = 175)
    WARNING: problem in calibration of radio B for image rejection
    Info: Initialising AGC firmware...
    Info: loading custom TX gain table
    Info: putting back original RADIO_SELECT value
    lgw_receive:1423: FIFO content: 1 10 0 7 71
    lgw_receive:1438: [8 16]
    Note: LoRa packet
    
    lgw_receive:1423: FIFO content: 1 91 0 7 19
    lgw_receive:1438: [2 17]
    Note: LoRa packet
    
    lgw_receive:1423: FIFO content: 1 ba 0 7 98
    lgw_receive:1438: [8 16]
    Note: LoRa packet
    lgw_receive:1423: FIFO content: 1 62 1 7 b7
    lgw_receive:1438: [4 17]
    Note: LoRa packet
    *** Basic Packet Forwarder for Lora Gateway ***
    Version: 1.4.1
    *** Lora concentrator HAL library version info ***
    Version: 1.7.0; Options: ftdi sx1301 sx1257 full mtac-lora private;
    ***
    INFO: Little endian host
    INFO: found global configuration file /var/config/lora/global_conf.json, parsing it
    INFO: /var/config/lora/global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
    INFO: radio 0 enabled, center frequency 867500000
    INFO: radio 1 enabled, center frequency 868500000
    INFO: Lora multi-SF channel 0>  radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
    INFO: Lora multi-SF channel 1>  radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
    INFO: Lora multi-SF channel 2>  radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
    INFO: Lora multi-SF channel 3>  radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
    INFO: Lora multi-SF channel 4>  radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
    INFO: Lora multi-SF channel 5>  radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
    INFO: Lora multi-SF channel 6>  radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
    INFO: Lora multi-SF channel 7>  radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
    INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7
    INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
    INFO: /var/config/lora/global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
    INFO: gateway MAC address is configured to 00800000A0001101
    INFO: server hostname or IP address is configured to "52.3.215.147"
    INFO: upstream port is configured to "20000"
    INFO: downstream port is configured to "20000"
    INFO: downstream keep-alive interval is configured to 10 seconds
    INFO: statistics display interval is configured to 30 seconds
    INFO: upstream PUSH_DATA time-out is configured to 100 ms
    INFO: packets received with a valid CRC will be forwarded
    INFO: packets received with a CRC error will be forwarded
    INFO: packets received with no CRC will NOT be forwarded
    INFO: [main] concentrator started, packet can now be received
    
    INFO: Start of downstream thread
    
    ##### 2018-01-05 16:23:45 GMT #####
    ### [UPSTREAM] ###
    # RF packets received by concentrator: 2
    # CRC_OK: 0.00%, CRC_FAIL: 100.00%, NO_CRC: 0.00%
    # RF packets forwarded: 2 (138 bytes)
    # PUSH_DATA datagrams sent: 2 (613 bytes)
    # PUSH_DATA acknowledged: 0.00%
    ### [DOWNSTREAM] ###
    # PULL_DATA sent: 3 (0.00% acknowledged)
    # PULL_RESP(onse) datagrams received: 0 (0 bytes)
    # RF packets sent to concentrator: 0 (0 bytes)
    # TX errors: 0
    ##### END #####
    
    ##### 2018-01-05 16:24:15 GMT #####
    ### [UPSTREAM] ###
    # RF packets received by concentrator: 1
    # CRC_OK: 0.00%, CRC_FAIL: 100.00%, NO_CRC: 0.00%
    # RF packets forwarded: 1 (152 bytes)
    # PUSH_DATA datagrams sent: 1 (418 bytes)
    # PUSH_DATA acknowledged: 0.00%
    ### [DOWNSTREAM] ###
    # PULL_DATA sent: 3 (0.00% acknowledged)
    # PULL_RESP(onse) datagrams received: 0 (0 bytes)
    # RF packets sent to concentrator: 0 (0 bytes)
    # TX errors: 0
    ##### END #####
    
    ##### 2018-01-05 16:24:45 GMT #####
    ### [UPSTREAM] ###
    # RF packets received by concentrator: 1
    # CRC_OK: 0.00%, CRC_FAIL: 100.00%, NO_CRC: 0.00%
    # RF packets forwarded: 1 (183 bytes)
    # PUSH_DATA datagrams sent: 1 (458 bytes)
    # PUSH_DATA acknowledged: 0.00%
    ### [DOWNSTREAM] ###
    # PULL_DATA sent: 3 (0.00% acknowledged)
    # PULL_RESP(onse) datagrams received: 0 (0 bytes)
    # RF packets sent to concentrator: 0 (0 bytes)
    # TX errors: 0
    ##### END #####
    
    ##### 2018-01-05 16:25:15 GMT #####
    ### [UPSTREAM] ###
    # RF packets received by concentrator: 0
    # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
    # RF packets forwarded: 0 (0 bytes)
    # PUSH_DATA datagrams sent: 0 (0 bytes)
    # PUSH_DATA acknowledged: 0.00%
    ### [DOWNSTREAM] ###
    # PULL_DATA sent: 3 (0.00% acknowledged)
    # PULL_RESP(onse) datagrams received: 0 (0 bytes)
    # RF packets sent to concentrator: 0 (0 bytes)
    # TX errors: 0
    ##### END #####
    
    ##### 2018-01-05 16:25:45 GMT #####
    ### [UPSTREAM] ###
    # RF packets received by concentrator: 0
    # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
    # RF packets forwarded: 0 (0 bytes)
    # PUSH_DATA datagrams sent: 0 (0 bytes)
    # PUSH_DATA acknowledged: 0.00
    
    in reply to: STM32 with Conduit Network Server #22245
    Jose Gato Luis
    Participant

    I guess so. In Lorawan-Lib file board.h

    
    #include "mbed.h"
    #include "system/timer.h"
    #include "debug.h"
    #include "system/utilities.h"
    #include "sx1272-hal.h"
    
    #define USE_BAND_868
    
    extern SX1272MB2xAS Radio;

    If you see the logs in the network server this is something I dont understand:

    14:43:47:356|TRACE| Gateway 00:80:00:00:a0:00:11:01 seen
    14:43:47:357|INFO| Parsing 1 rx packets
    14:43:47:358|WARNING| Recv'd frame failed CRC check
    14:43:51:679|TRACE| Parse downstream message 12 bytes
    in reply to: STM32 with Conduit Network Server #22240
    Jose Gato Luis
    Participant

    Well, I should add I am using this in Europe, so @Jason, how should I configure it? which frenquencysubband?

    in reply to: STM32 with Conduit Network Server #22237
    Jose Gato Luis
    Participant

    I am having a similar issue, or at least, I am using the same platform combination: Multitech Conduit mlinux and P-NUCLEO-LRWAN1.

    The configuration for the network server is the following:

    
    {
            "lora": {
                    "netID": "010203",      /* netID for beacon packets */
                    "frequencyBand": "868", /* US="915", EU="868" */
                    "channelPlan": "EU868", /* added at hand (jose.gato) according t
                    "frequencySubBand": 7,  /* Sub-band for US operation, 1-8 */
                    "rx1DatarateOffset": 0, /* Datarate offset for mote rx window 1
                    "rx2Datarate": 12,              /* Datarate for mote rx window 2
                    "maxTxPower": 14,       /* Max Tx power (dBm), -6 to 26 */
                    "frequencyEU": 869500000 /* center freq for extra EU channels (H
            },
            "udp": {
                    "appPortUp": 1784, /* port for user-developed application use */
                    "appPortDown": 1786 /* port for user-developed application use *
            },
            "addressRange": {
                    "start": "00:00:00:01", /* address range used for mDots */
                    "end": "FF:FF:FF:FE"
            },
            "network": {
                    "public": true,    /* set to false for private LoRa network with
                    "eui": "cb4f12499f32373b", /* 8 hex byte */
                    "key": "943ac2f9df30a24a84aa6ecb2a36ccbe", /* 16 hex byte, netwo
                    "leasetime": 0  /* time until mDot join expires (minutes) or 0 f
            },
            "log" : {
                    "console" : true,
                    "syslog" : false,
                    "level" : 100, /* error=10, warn=20, info=30, debug=50, trace=60
                    "path": "/var/log/lora-network-server.log"
            },
            "mqtt": {
                    "enabled": true
            }
    }
    

    The lora node is using an mbed lorawan example (https://os.mbed.com/teams/Semtech/code/LoRaWAN-demo-72/) with the following configuration:

    #define OVER_THE_AIR_ACTIVATION                     1
    #define LORAWAN_PUBLIC_NETWORK                      true
    #define IEEE_OUI                                    0x11, 0x22, 0x33
    #define LORAWAN_DEVICE_EUI                          { 0xBE, 0x7A, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC8 }
    #define LORAWAN_APPLICATION_EUI                     { 0xCB, 0x4F, 0x12, 0x49, 0x9F, 0x32, 0x37, 0x3B }
    #define LORAWAN_APPLICATION_KEY                     { 0x94, 0x3A, 0xC2, 0xF9, 0xDF, 0x30, 0xA2, 0x4A, 0x84, 0xAA, 0x6E, 0xcB, 0x2A, 0x36, 0xCC, 0xBE}

    DEVICE_EUI comming from the video in this thread
    APPLICATION_EUI is the same than eui in the network server
    APPLICATION_KEY is the same than key in the network server

    The only things I see in the log is:

    14:43:31:283|TRACE| Parse downstream message 12 bytes
    14:43:31:284|TRACE| Gateway 00:80:00:00:a0:00:11:01 seen IP address 127.0.0.1:49355
    14:43:41:479|TRACE| Parse downstream message 12 bytes
    14:43:41:480|TRACE| Gateway 00:80:00:00:a0:00:11:01 seen IP address 127.0.0.1:49355
    14:43:47:355|TRACE| Parse upstream message 301 bytes
    14:43:47:356|TRACE| Gateway 00:80:00:00:a0:00:11:01 seen
    14:43:47:357|INFO| Parsing 1 rx packets
    14:43:47:358|WARNING| Recv'd frame failed CRC check
    14:43:51:679|TRACE| Parse downstream message 12 bytes
    14:43:51:680|TRACE| Gateway 00:80:00:00:a0:00:11:01 seen IP address 127.0.0.1:49355

    Nothing received through MQTT, I dont know if at least I am receiving a join request.

    The output from the lora node does not say too much:
    lora node output

Viewing 8 posts - 1 through 8 (of 8 total)