Quantcast
Channel: The Things Network - Latest posts
Viewing all 116642 articles
Browse latest View live

Wifi/BLE Paxcounter Project with ESP32 boards

$
0
0

Sorry, the same problem at the moment. Worked a few days ago.


Kerlink problem of disconnection w/o reconnection

$
0
0

I’m using a Kerlink GW with last firmware and semtech packet forwarder. After a couple of days the gateway disconnect and it did not reconnect until rebooting it.

The log for spf is:
Nov 20 19:45:37 Wirnet local1.notice spf: I/ Programming FPGA with spectral scan firmware
Nov 20 19:45:39 Wirnet local1.notice spf: *** Beacon Packet Forwarder for Lora Gateway ***
Nov 20 19:45:39 Wirnet local1.notice spf: Version: 3.1.0-klk16
Nov 20 19:45:39 Wirnet local1.notice spf: *** Lora concentrator HAL library version info ***
Nov 20 19:45:39 Wirnet local1.notice spf: Version: 4.1.3-klk8;
Nov 20 19:45:39 Wirnet local1.notice spf: ***
Nov 20 19:45:39 Wirnet local1.notice spf: INFO: Little endian host
Nov 20 19:45:39 Wirnet local1.notice spf: I/ Using default Gateway EUID: XXXXXXXXX
Nov 20 19:45:39 Wirnet local1.notice spf: INFO: found global configuration file global_conf.json, parsing it
Nov 20 19:45:39 Wirnet local1.notice spf: INFO: found local configuration file local_conf.json, parsing it
Nov 20 19:45:39 Wirnet local1.notice spf: INFO: redefined parameters will overwrite global parameters
Nov 20 19:45:39 Wirnet local1.notice spf: INFO: [main] TTY port /dev/nmea open for GPS synchronization
Nov 20 19:45:39 Wirnet local1.notice spf: INFO: FPGA supported features: [TX filter] [Spectral Scan]
Nov 20 19:45:42 Wirnet local1.notice spf: INFO: [main] concentrator started, packet can now be received
Nov 20 19:45:42 Wirnet local1.notice spf: INFO: Disabling GPS mode for concentrator’s counter…
Nov 20 19:45:42 Wirnet local1.notice spf: INFO: host/sx1301 time offset=(1542743140s:297897µs) - drift=-522490711µs
Nov 20 19:45:42 Wirnet local1.notice spf: INFO: Enabling GPS mode for concentrator’s counter.
Nov 20 19:45:42 Wirnet local1.notice spf: Could not bind

This looks like the described solution related to cellular communication (my case) but poly_pkt_fwd is not used in my configuration. I’ve tried killing execute_spf script and relaunch it but it is not changing anything (basically the spf is restarting itself).

Do you have any solution ?
Sincerely,
Paul

Can Australian users agree on using a single frequency plan?

$
0
0

OK, I’m new to LoRaWan but can anybody tell me if there is a list of frequencies used by communities in Australia? More importantly, if I am buying gear, what device frequency should get?

PNI Placepod

$
0
0

Hi @gregorwolf,

yes, the placepod works with TTN. A few days ago I received an offer from unitronic to swap our placepod for a new version with a new firmware. As far as I understood the new version, it should be even easier to register the device to TTN and the protocol will be easier to understand.

Kerlink problem of disconnection w/o reconnection

$
0
0

Sounds like
killall -kill spf may do the job

Can Australian users agree on using a single frequency plan?

Wifi/BLE Paxcounter Project with ESP32 boards

Wifi/BLE Paxcounter Project with ESP32 boards

$
0
0

Right, but why this Error:

Archiving .pioenvs\ttgov21new\libef6\libWire.a
sCrc\wifiscan.cpp: In function ‘void wifi_sniffer_packet_handler(void*, wifi_promiscuous_pkt_type_t)’:ompiling .pioenvs\ttgov21new\libb8e\U8g2_ID942\clib\u8g2_box.c.o

src\wifiscan.cpp:16:9: error: ‘wifi_ieee80211_packet_t’ does not name a type
const wifi_ieee80211_packet_t *ipkt =
^
src\wifiscan.cpp:18:9: error: ‘wifi_ieee80211_mac_hdr_t’ does not name a type
const wifi_ieee80211_mac_hdr_t *hdr = &ipkt->hdr;
^
src\wifiscan.cpp:25:24: error: ‘hdr’ was not declared in this scope
mac_add((uint8_t *)hdr->addr2, ppkt->rx_ctrl.rssi, MAC_SNIFF_WIFI);
^
*** [.pioenvs\ttgov21new\src\wifiscan.cpp.o] Error 1


Wifi/BLE Paxcounter Project with ESP32 boards

$
0
0

I had to add the include path to wifiscan.h to remove these errors and produce new ones:
My addition to include to platformio.ini:

build_flags =
    -include include/wifiscan.h

Now I get these errors:

Compiling .pioenvs\ttgov2\FrameworkArduino\WString.cpp.o
C:\Users\drasv\.platformio\packages\framework-arduinoespressif32\cores\esp32\WMath.cpp: In function 'unsigned int makeWord(unsigned char, unsigned char)':
C:\Users\drasv\.platformio\packages\framework-arduinoespressif32\cores\esp32\WMath.cpp:65:55: error: ambiguating new declaration of 'unsigned int makeWord(unsigned char, u
nsigned char)'
unsigned int makeWord(unsigned char h, unsigned char l)
^
In file included from ./include\hash.h:4:0,
from <command-line>:0:
C:\Users\drasv\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:162:10: note: old declaration 'uint16_t makeWord(byte, byte)'
uint16_t makeWord(byte h, byte l);
^
*** [.pioenvs\ttgov2\FrameworkArduino\WMath.cpp.o] Error 1
 [ERROR] Took 71.92 seconds

I am lost.

Wifi/BLE Paxcounter Project with ESP32 boards

$
0
0

Unfortunately i cannot reproduce this in my IDE (Windows 10, Visual studio code, Platformio), code in current repo master branch (commit b921731) compiles without errors.

I made some changes in platformio.ini, i assume that this causes trouble may be with IDEs using Linux or Atom?

Please open issue, maybe someone else can fix this. I this it’s minor detail, maybe in some path settings in platformio.ini

Multitech Conduit AP

$
0
0

Hi Kersing,

I have the Multitech AP, MTCAP-915-001L and I’ve been trying to connect it to TTN. What packet forwarder are you using to do this? I have edited the var/config/lora/local.conf.json & var/config/lora/local.conf.json files and am able to “start” the packet forwarder but in my applications and devices my device status is “never seen”. I’m very new to linux and would greatly appreciate any advice/help. Thank you.

-J

Multitech Conduit AP

$
0
0

Use the instructions on the TTN docs website to configure it and you should be good.

The LIBRARY basement part 7

Wifi/BLE Paxcounter Project with ESP32 boards

$
0
0

New features in Paxcounter v1.6.82:

  • now supports Bosch BME680 sensor (temp, pressure, humidity, voc).
    Next release shall also report BME680 IAQ (indoor air quality) scale value.
  • now has timesync for the node implemented, primary using GPS time, if not present using time sync over LoRaWAN network*

*) requires MAC command DevTimeReq, not supported on TTNv2 stack

The LIBRARY basement part 7


Not able to connect eu.thethings.network from Javascript Paho Socket

$
0
0

Hello,

I am able to connect through the mosquitto_sub but when I am using Paho Eclipse to connect the MQTT broker I am not able to connect I am getting an error AMQJSC0001E Connect timed out. I dont know Whats wrong with my code because its seems everything perfect. Here is the script what I used. Can any body help me how to solve this issues. Surely I am missing something.

var host = "eu.thethings.network";
var username = XXXXXXX";
var password = "ttn-account-v2.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
var topic = "/devices/+/up";
cleansession = "";
var port = 10;
var mqtt;
var reconnectTimeout = 2000;
function MQTTconnect() {
console.log("Connecting to "+ host + " " + port)
if (typeof path == "undefined") {
	path = '/devices/up';
}
mqtt = new Paho.MQTT.Client(
		host,
		Number(port),
		path,
		"piyush_" + parseInt(Math.random() * 100, 10)
);

    var options = {
        timeout: 3,
        useSSL: true,
        cleanSession: false,
        onSuccess: onConnect,
        onFailure: function (message) {
			console.log(message);
            $('#status').val("Connection failed: " + message.errorMessage + "Retrying");
            setTimeout(MQTTconnect, reconnectTimeout);
        }
    };
    mqtt.onConnectionLost = onConnectionLost;
    mqtt.onMessageArrived = onMessageArrived;
    if (username != null) {
        options.userName = username;
        options.password = password;
    }
    console.log("Host="+ host + ", port=" + port + ", path=" + path +  " username=" + username + " password=" + password);
	console.log(options);
    mqtt.connect(options);
}
function onConnect() {
	alert("connected");
    $('#status').val('Connected to ' + host + ':' + port + path);
    // Connection succeeded; subscribe to our topic
    mqtt.subscribe(topic, {qos: 0});
    $('#topic').val(topic);
}
function onConnectionLost(response) {
    setTimeout(MQTTconnect, reconnectTimeout);
    $('#status').val("connection lost: " + responseObject.errorMessage + ". Reconnecting");
};
function onMessageArrived(message) {
    var topic = message.destinationName;
    var payload = message.payloadString;
    $('#ws').prepend('<li>' + topic + ' = ' + payload + '</li>');
};
$(document).ready(function() {
    MQTTconnect();
});

Gemtek Indoor Femto LoRaWAN Gateway - Anyone else using one?

$
0
0

Is it using Semtech packet forwarder? can u please share the screen shot of device login? I am able to integrate the Gemtek Indoor LoRAWAN gateway with TTN

Clodpi LoRAWAN Indoor Gateway Integration

$
0
0

Friends, please find below the link for Clodpi LoRAWAN Indoor Gateway with ClodPi IoT Platform. In same line it can be easily integrated with TTN Network. I will share the link for the blog for the same. This Indoor gateway used the Semteck LoRA Packet forwarder only.

Wifi/BLE Paxcounter Project with ESP32 boards

$
0
0

I am using Windows 10, Atom, Platformio.

Sure, something is seriously messed-up and therefore the project is likely no more platform/IDE independant.

My workaround (dirty but effective):
1: In platformio.ini i added to the build_flags::

-include include/wifiscan.h

2: In the file WMath.cpp (my path: C:\Users<username>.platformio\packages\framework-arduinoespressif32\cores\esp32) I uncommented the following lines as these seem to conflict with the declaration and implementation of the arduino libraries:

// unsigned int makeWord(unsigned char h, unsigned char l)
// {
//     return (h << 8) | l;
// }

Now it compiles and I can continue. :grin:

I’ll make a issue and workaround so the real experts can work on a more solid solution.

Wifi/BLE Paxcounter Project with ESP32 boards

$
0
0

Paxcounter v1.6.82 on TTGO T-BEAM with additional Bosch BME680 MEMS I2C sensor Screenshot_20181121-081744

Viewing all 116642 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>