# Data visible in the gateway console, but not the device's one

**URL:** <https://www.thethingsnetwork.org/forum/t/data-visible-in-the-gateway-console-but-not-the-devices-one/41706>\
**Category:** v2 Console\
**Created:** [November 27, 2020, 10:28pm UTC](https://www.thethingsnetwork.org/forum/t/data-visible-in-the-gateway-console-but-not-the-devices-one/41706 "2020-11-27T22:28:54Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmarcovitch](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/gmarcovitch/32/25844_2.png) [@gmarcovitch](https://www.thethingsnetwork.org/forum/u/gmarcovitch)\
**Post date:** [November 27, 2020, 10:28pm UTC](https://www.thethingsnetwork.org/forum/t/data-visible-in-the-gateway-console-but-not-the-devices-one/41706/1 "2020-11-27T22:28:54Z")

</div>

I am trying to link The Things Gateway and The Things Node together.

They are both successfully registered. I am using the Arduino program Basic from TheThingsNode library. The arduino monitor shows that data is being sent from the node, and the gateway console updates with new downlink data if I press a button or move the node.

On the device console I can see that the status is active and the frame count goes up, but nothing is showing up in the application data page. Any idea why ?

![Screen Shot 2020-11-27 at 5.22.54 PM](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/b/e/be1ea565c3e5f350017a32629f73591feea46695.png)  
 ![Screen Shot 2020-11-27 at 5.24.12 PM](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/6/a/6a58e566d209bc3bb213b84b970a8425c168c803.png)  
 ![Screen Shot 2020-11-27 at 5.24.46 PM](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/1/a/1a0f5c65ad5878107836a8f207f2fe1b1cb3ca99.png)  
 ![Screen Shot 2020-11-27 at 5.30.42 PM](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/5/4/54407183c3b44e4fff476d0e0e9dbf708e9b30af.png)

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [November 27, 2020, 10:54pm UTC](https://www.thethingsnetwork.org/forum/t/data-visible-in-the-gateway-console-but-not-the-devices-one/41706/2 "2020-11-27T22:54:35Z")

</div>

Please click-expand one of the messages from the device as shown by the gateway view.

It may be that it contains only network-level housekeeping traffic and no application data.

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [November 27, 2020, 10:59pm UTC](https://www.thethingsnetwork.org/forum/t/data-visible-in-the-gateway-console-but-not-the-devices-one/41706/3 "2020-11-27T22:59:34Z")

</div>

Do you have the application page open during transmissions? The console only shows ‘life’ traffic, that is traffic that arrives while the page is open.  
Is the application registered in the same region the gateway is registered?

---

<div class="post-metadata">

**Author:** ![gmarcovitch](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/gmarcovitch/32/25844_2.png) [@gmarcovitch](https://www.thethingsnetwork.org/forum/u/gmarcovitch)\
**Post date:** [November 28, 2020, 12:07am UTC](https://www.thethingsnetwork.org/forum/t/data-visible-in-the-gateway-console-but-not-the-devices-one/41706/4 "2020-11-28T00:07:43Z")

</div>

Could you elaborate on that ? I see that the device adress from received event matches the node. Here’s the data

# Uplink

## Dev Address

26022C93

Network: The Things Network

Net ID: 0x13

Region: World

## Physical Payload

40932C02260009000338E7E1CCD2065539237A

## Event Data

“lora”: {

“spreading\_factor”: 7,

“bandwidth”: 125,

“air\_time”: 51456000

},

“coding\_rate”: “4/5”,

“timestamp”: “2020-11-28T00:03:38.906Z”,

“rssi”: -71,

“snr”: 9.75,

“dev\_addr”: “26022C93”,

“frequency”: 904500000

}

{  
“gw\_id”: “thethingsnetwork\_gateway”,  
“payload”: “QJMsAiYACQADOOfhzNIGVTkjeg==”,  
“f\_cnt”: 9,  
“lora”: {  
“spreading\_factor”: 7,  
“bandwidth”: 125,  
“air\_time”: 51456000  
},  
“coding\_rate”: “4/5”,  
“timestamp”: “2020-11-28T00:03:38.906Z”,  
“rssi”: -71,  
“snr”: 9.75,  
“dev\_addr”: “26022C93”,  
“frequency”: 904500000  
}

---

<div class="post-metadata">

**Author:** ![gmarcovitch](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/gmarcovitch/32/25844_2.png) [@gmarcovitch](https://www.thethingsnetwork.org/forum/u/gmarcovitch)\
**Post date:** [November 28, 2020, 12:08am UTC](https://www.thethingsnetwork.org/forum/t/data-visible-in-the-gateway-console-but-not-the-devices-one/41706/5 "2020-11-28T00:08:20Z")

</div>

yes to both

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [November 28, 2020, 12:27am UTC](https://www.thethingsnetwork.org/forum/t/data-visible-in-the-gateway-console-but-not-the-devices-one/41706/6 "2020-11-28T00:27:15Z")

</div>

> [@gmarcovitch](#):
>
> QJMsAiYACQADOOfhzNIGVTkjeg==

That’s traffic on port 3, which should be application data.

Unless something got messed up the with keys or the session post-join…

---

<div class="post-metadata">

**Author:** ![gmarcovitch](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/gmarcovitch/32/25844_2.png) [@gmarcovitch](https://www.thethingsnetwork.org/forum/u/gmarcovitch)\
**Post date:** [November 30, 2020, 3:53pm UTC](https://www.thethingsnetwork.org/forum/t/data-visible-in-the-gateway-console-but-not-the-devices-one/41706/7 "2020-11-30T15:53:46Z")

</div>

I redid the activation procedure and that solved it.

---

<div class="post-metadata">

**Author:** ![shihabeldin](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/shihabeldin/32/25844_2.png) [@shihabeldin](https://www.thethingsnetwork.org/forum/u/shihabeldin)\
**Post date:** [December 1, 2020, 3:41pm UTC](https://www.thethingsnetwork.org/forum/t/data-visible-in-the-gateway-console-but-not-the-devices-one/41706/8 "2020-12-01T15:41:20Z")

</div>

Hi. May I know how did you redo the activation procedure? Because I am facing the same problem

---

<div class="post-metadata">

**Author:** ![gmarcovitch](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/gmarcovitch/32/25844_2.png) [@gmarcovitch](https://www.thethingsnetwork.org/forum/u/gmarcovitch)\
**Post date:** [December 2, 2020, 2:08pm UTC](https://www.thethingsnetwork.org/forum/t/data-visible-in-the-gateway-console-but-not-the-devices-one/41706/9 "2020-12-02T14:08:54Z")

</div>

Try deleting your specific application in the console : console → application → setting → delete application. Then follow the activation video below. Hope that helps !

[![](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/b/7/b75850622a2da5b8d82c6b636cd6215699199aaf.jpeg "How to: The Things Node Activation") ](https://www.youtube.com/watch?v=tapK6EINx1k)

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [December 2, 2020, 4:15pm UTC](https://www.thethingsnetwork.org/forum/t/data-visible-in-the-gateway-console-but-not-the-devices-one/41706/10 "2020-12-02T16:15:48Z")

</div>

You probably shouldn’t delete the application, but just force the device to re-join.

---

<div class="post-metadata">

**Author:** ![shihabeldin](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/shihabeldin/32/25844_2.png) [@shihabeldin](https://www.thethingsnetwork.org/forum/u/shihabeldin)\
**Post date:** [December 2, 2020, 6:12pm UTC](https://www.thethingsnetwork.org/forum/t/data-visible-in-the-gateway-console-but-not-the-devices-one/41706/11 "2020-12-02T18:12:47Z")

</div>

Thank you for your reply

---

<div class="post-metadata">

**Author:** ![shihabeldin](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/shihabeldin/32/25844_2.png) [@shihabeldin](https://www.thethingsnetwork.org/forum/u/shihabeldin)\
**Post date:** [December 2, 2020, 6:14pm UTC](https://www.thethingsnetwork.org/forum/t/data-visible-in-the-gateway-console-but-not-the-devices-one/41706/12 "2020-12-02T18:14:21Z")

</div>

I am using a LoRa gateway not the things network gateway. Is this still applicable to a non TTN node? If it is, how do I force the device to re-join? Thank you

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [December 2, 2020, 6:40pm UTC](https://www.thethingsnetwork.org/forum/t/data-visible-in-the-gateway-console-but-not-the-devices-one/41706/13 "2020-12-02T18:40:34Z")

</div>

> [@shihabeldin](#):
>
> Is this still applicable to a non TTN node? If it is, how do I force the device to re-join? Thank you

No one can help you unless you identify the specific node you are using.

First do a search for that node, and also for guidance from the manufacturer of that node or the software running on it. Often entirely removing power or re-flashing would force a re-join (it really shouldn’t but developers tend to be lazy and not actually implement the rather challenging requirements of the LoRaWAN spec).

If you don’t find any information on forcing your particular node to re-join, and you are in fact trying to use it with TTN, then please create a new topic titled “How do I force node \_\_\_\_ to do an new OTAA join?” where the \_\_\_\_ is the specific identify of your node hardware and software.

(If you aren’t using the node with TTN, then I’m afraid the question isn’t really on topic and you need to use support resources from the manufacturer or network provider)

---

<div class="post-metadata">

**Author:** ![shihabeldin](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/shihabeldin/32/25844_2.png) [@shihabeldin](https://www.thethingsnetwork.org/forum/u/shihabeldin)\
**Post date:** [December 3, 2020, 2:30am UTC](https://www.thethingsnetwork.org/forum/t/data-visible-in-the-gateway-console-but-not-the-devices-one/41706/14 "2020-12-03T02:30:28Z")

</div>

Thank you for your reply.

I made the node using Arduino and LoRa shield. Currently, I’m using ABP not OTAA.

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [December 3, 2020, 2:34am UTC](https://www.thethingsnetwork.org/forum/t/data-visible-in-the-gateway-console-but-not-the-devices-one/41706/15 "2020-12-03T02:34:37Z")

</div>

That’s not a meaningful response.

Specific LoRa hardware.

Specific code used, as a link to the _exact_ version.

And have you tried simply re-flashing the sketch???

---

<div class="post-metadata">

**Author:** ![shihabeldin](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/shihabeldin/32/25844_2.png) [@shihabeldin](https://www.thethingsnetwork.org/forum/u/shihabeldin)\
**Post date:** [December 3, 2020, 6:58am UTC](https://www.thethingsnetwork.org/forum/t/data-visible-in-the-gateway-console-but-not-the-devices-one/41706/16 "2020-12-03T06:58:53Z")

</div>

Cytron LoRa-RFM Shield, this is the LoRa shield  
915MHz LoRa Gateway Raspberry Pi Hat for the gateway.

This is the Arduino Code  
#include \<lmic.h\>  
#include \<hal/hal.h\>  
#include \<SPI.h\>  
#define Offset 0.00 // calibration for pH at standard value

static const PROGMEM u1\_t NWKSKEY[16] = { FILLMEIN }; //Network session key with ttn  
static const u1\_t PROGMEM APPSKEY[16] = { FILLMEIN }; //Application key with ttn  
static const u4\_t DEVADDR = { 0x26041D70} ; //device address in ttn  
void os\_getArtEui (u1\_t\* buf) { }  
void os\_getDevEui (u1\_t\* buf) { }  
void os\_getDevKey (u1\_t\* buf) { }  
static osjob\_t sendjob;

const unsigned TX\_INTERVAL =10;//transmission interval at time=1min  
const lmic\_pinmap lmic\_pins = {  
.nss = 10,  
.rxtx = LMIC\_UNUSED\_PIN,  
.rst = 7,  
.dio = {2, 5, 6},  
}; //LoRa pin mapping

void onEvent (ev\_t ev) // controls the events occuring during the transmission  
{  
Serial.print(os\_getTime());  
Serial.print(": ");  
switch (ev) {  
case EV\_SCAN\_TIMEOUT:  
Serial.println(F(“EV\_SCAN\_TIMEOUT”));  
break;  
case EV\_BEACON\_FOUND:  
break;  
case EV\_BEACON\_MISSED:  
break;  
case EV\_BEACON\_TRACKED:  
break;  
case EV\_JOINING:  
break;  
case EV\_JOINED:  
break;  
case EV\_RFU1:  
break;  
case EV\_JOIN\_FAILED:  
break;  
case EV\_REJOIN\_FAILED:  
break;  
case EV\_TXCOMPLETE:  
if (LMIC.txrxFlags & TXRX\_ACK)  
Serial.println(F(“Received ack”));  
if (LMIC.dataLen) {  
Serial.println(F(“Received “));  
Serial.println(LMIC.dataLen);  
Serial.println(F(” bytes of payload”));  
}  
os\_setTimedCallback(&sendjob, os\_getTime() + sec2osticks(TX\_INTERVAL), do\_send);  
break;  
case EV\_LOST\_TSYNC:  
break;  
case EV\_RESET:  
break;  
case EV\_RXCOMPLETE:  
break;  
case EV\_LINK\_DEAD:  
break;  
case EV\_LINK\_ALIVE:  
break;  
default:  
break;  
} }

float t, turbidity, volt;  
float p; // testing  
int tempPin = 3; // testing  
uint16\_t temp;

float read\_pH(int ph) //converts pH sensor reading to a pH value from 0-14  
{  
float voltage2= ph \* (5.0 / 1023.0);  
float pHValue = 3.5\*voltage2+Offset;  
return pHValue;  
}

void do\_send(osjob\_t\* j)  
{  
// Check if there is not a current TX/RX job running  
if (LMIC.opmode & OP\_TXRXPEND)  
{  
Serial.println(F(“OP\_TXRXPEND, not sending”));  
} else  
{  
p = analogRead(A1); // reads the analog data from A1  
for(int i=0; i\<800; i++) //The voltage from the sensor is quite noisy  
{  
int sensorvalue = analogRead(A0);  
volt += sensorvalue \* (5.0 / 1023.0);  
//so I take 800 samples of data from turbidity sensor and then average  
//Convert the analog reading （0~1023） to a voltage (0 ~ 5V)  
}

```
float pHlevel= read_pH(p);
float ntu;                         
  ntu = -1120.4*square(volt)+5742.3*volt-4352.9; // Calculate the current NTU

```

// converting voltage from turbidity sensor to NTU  
uint16\_t n = ntu ;

uint16\_t pHV = (pHlevel\* 100) ;

```
temp=analogRead(tempPin);
float mv = ( temp/1023.0)*5000; 
float tempc = mv/10 ;  
uint16_t tempy=tempc;

```

/\* temp=DHT.read11(dht\_apin); // getting temperature value from pin  
uint16\_t tempy=temp; //showing and storing the value  
// val = analogRead(tempPin); // testing  
//temp=analogRead(tempPin); \*/

```
byte payload[6]; // testing

payload[0] = highByte(n);
payload[1] = lowByte(n);

payload[2] = highByte(tempy);
payload[3] = lowByte(tempy); 
   
payload[4] = highByte(pHV);
payload[5] = lowByte(pHV);
LMIC_setTxData2(1, payload, sizeof(payload), 0);
Serial.println(F("Packet queued"));

```

}  
}  
void setup() {  
Serial.begin(115200);  
Serial.println(F(“Starting”));  
os\_init();  
LMIC\_reset();  
#ifdef PROGMEM  
uint8\_t appskey[sizeof(APPSKEY)];  
uint8\_t nwkskey[sizeof(NWKSKEY)];  
memcpy\_P(appskey, APPSKEY, sizeof(APPSKEY));  
memcpy\_P(nwkskey, NWKSKEY, sizeof(NWKSKEY));  
LMIC\_setSession (0x1, DEVADDR, nwkskey, appskey);  
#else  
LMIC\_setSession (0x1, DEVADDR, NWKSKEY, APPSKEY);  
#endif  
#if defined(CFG\_us915)  
LMIC\_selectSubBand(1);  
#elif defined(CFG\_au915)  
LMIC\_selectSubBand(3);  
#endif  
LMIC\_setLinkCheckMode(0);  
LMIC\_setAdrMode(false);  
LMIC.dn2Dr = DR\_SF9;  
LMIC\_setDrTxpow(DR\_SF7, 14);  
do\_send(&sendjob);  
}  
void loop()  
{  
os\_runloop\_once();  
} // where the loop runs once

> [@cslorabox](#):
>
> And have you tried simply re-flashing the sketch???

Yes I did. But nothing seemed to work
