$69 Gemtek Gateway: The Things Indoor Gateway


(bluesensing) #125

Any idea about reach in km’s / miles? Tested in real life?


(Arjan) #126

@humaxnerd or anyone having attached the UART: care to post some longer logs? (If only to see it indeed looks like the Basic Station logs, which would then probably use some Station to Packet Forwarder Protocol Bridge on TTN’s V2, which could also be the culprit of not getting all OTAA Join Accepts?)

Am I right to assume that TTN selected the TIG for the Join Accept downlink for the failures? Which gateway is selected upon success? And is it then always using the same SF on success? (Like: LMIC starts with SF7, likely to get the Join Accept in RX1, and increasing the SF after some failures; some other libraries simply always use SF12, often getting the Join Accept in RX2.)

Assuming all nodes nicely perform channel hopping: any details on differences in SF? And like @UdLoRa asked: what’s the differences in RSSI/SNR for the different nodes? (See also the details in TTN Console when clicking an item in the application/device’s Data page, or the gateway’s Traffic page.)

Well, given the shortage of EU868 devices, but not of US915, I’m quite sure that those won’t have to make any modification at all. :slight_smile:


(Lachlan Etherton) #128

Would you be able to clarify what you mean about the shortage? Did they hand out the US/AU915 version at the conference as well?

My main reason for asking about the mod was because I thought only the EU868 version was given out, therefore the mod would have to be done.

It’ll be interesting to see what the difference is between the two boards. If it was as simple as soldering the resistor in another spot, I don’t see why the US/AU915 is going to be released later in the year rather than now.


(Lachlan Etherton) #129

Just curious, how did you get this output? I understand what the pinouts are, but would you be able to explain these few things:

How did you read this data?
How did you connect the board via the pinouts to the computer? Was it an adapter of some type?
What software did you use?
Did you have to know which baud rate to use and if so, how’d you figure this out?

Would really appreciate it if you could answer those questions. At the moment, I’m not sure how you pulled it off.


(Arjan) #130

Yes. Also to people who wanted EU868. On Slack:

Unfortunately at the end I went to pick up my gateway to discover they only had the US 915 MHz available. The guy behind the counter suggested me to reflash the firmware to make it work on the 868 MHz band.

(But that advice seems bogus, given the solder pads.)

Just like with the The Things Gateway: https://www.thethingsnetwork.org/docs/gateways/gateway/faq.html#q-i-want-to-get-in-depth-insightread-debug-messages-of-my-gateway-is-that-possible

Or: Raspberry Pi to monitor serial output of a node or TNN Gateway, and alert on Slack or Telegram if the voltages match, but it seems they do:


(Tony Smith) #132

@ElectronicallyE, At the conference they said RS Online will start selling from next week. This may only be from their UK and US websites.


(Lachlan Etherton) #133

@TonySmith, this is for the US and EU.

Starting in February 2019, versions for EU and US are made available while India, Japan, China and Australia will follow in the first half of 2019. There are 4 different versions available - EU868, US915, AS923 and CN470.

Seeings Australia and United States use 915 MHz, I’m assuming they are referring to AS923 for the later release, not AU915.

The delay must mean that there are some hardware changes for AS923. I’ll be interested to see what these differences are.


(Dmth) #134

Updated the image with pinouts, in order to document your finding:
UART

@humaxnerd which Baudrate did you use? is it the same (115200@8N) as in https://www.thethingsnetwork.org/docs/gateways/gateway/faq.html#q-i-want-to-get-in-depth-insightread-debug-messages-of-my-gateway-is-that-possible ?

Although I really want to get a UART connection running to this thing I’m lacking time today, thus I cannot provide the logfiles requested by @arjanvanb in $69 Gemtek Gateway: The Things Indoor Gateway


(Humaxnerd) #135

I use 115200,8,n,1. You can use any terminal program. For example TeraTerm. For the connection to the computer I use a FTDI serial USB converter and you must set it to 3v3.
I will post some extra data captured from the serial port.


(Arjan) #136

For whoever is into some more investigation: the Kickstarter gateway also allows for entering commands using the UART. Of course, the TIG is quite different, and I cannot quickly find any references to something similar in the code, but: maybe! :female_detective:


(Humaxnerd) #137

Sadly I have the US version: Some extra data from the serial interface.

2019-02-03 12:20:31.029 [SYS:DEBU]   Free Heap: 19448 (min=17296) wifi=5 mh=7 cups=8 tc=4
2019-02-03 12:20:32.034 [SYS:DEBU]   Free Heap: 19448 (min=17296) wifi=5 mh=7 cups=8 tc=4
2019-02-03 12:20:32.243 [AIO:DEBU] ssl_tls.c:6546 MBEDTLS[1]: mbedtls_ssl_read_record() returned -30848 (-0x7880)
2019-02-03 12:20:32.247 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
2019-02-03 12:20:32.253 [AIO:DEBU] [2] WS connection shutdown...
2019-02-03 12:20:32.264 [TCE:VERB] Connection to MUXS closed in state 4
2019-02-03 12:20:32.272 [TCE:INFO] MUXS reconnect backoff 16s (retry 4)
2019-02-03 12:20:33.038 [SYS:DEBU]   Free Heap: 47696 (min=17296) wifi=5 mh=7 cups=8 tc=5
2019-02-03 12:20:34.042 [SYS:DEBU]   Free Heap: 47696 (min=17296) wifi=5 mh=7 cups=8 tc=5
2019-02-03 12:20:35.046 [SYS:DEBU]   Free Heap: 47696 (min=17296) wifi=5 mh=7 cups=8 tc=5
2019-02-03 12:20:36.049 [SYS:DEBU]   Free Heap: 47696 (min=17296) wifi=5 mh=7 cups=8 tc=5
2019-02-03 12:20:37.052 [SYS:DEBU]   Free Heap: 47696 (min=17296) wifi=5 mh=7 cups=8 tc=5
2019-02-03 12:20:38.057 [SYS:DEBU]   Free Heap: 47696 (min=17296) wifi=5 mh=7 cups=8 tc=5
2019-02-03 12:20:39.060 [SYS:DEBU]   Free Heap: 47696 (min=17296) wifi=5 mh=7 cups=8 tc=5
2019-02-03 12:20:40.064 [SYS:DEBU]   Free Heap: 47696 (min=17296) wifi=5 mh=7 cups=8 tc=5
2019-02-03 12:20:41.067 [SYS:DEBU]   Free Heap: 47696 (min=17296) wifi=5 mh=7 cups=8 tc=5
2019-02-03 12:20:42.070 [SYS:DEBU]   Free Heap: 47696 (min=17296) wifi=5 mh=7 cups=8 tc=5
2019-02-03 12:20:43.073 [SYS:DEBU]   Free Heap: 47696 (min=17296) wifi=5 mh=7 cups=8 tc=5
2019-02-03 12:20:44.076 [SYS:DEBU]   Free Heap: 47696 (min=17296) wifi=5 mh=7 cups=8 tc=5
2019-02-03 12:20:45.080 [SYS:DEBU]   Free Heap: 47696 (min=17296) wifi=5 mh=7 cups=8 tc=5
2019-02-03 12:20:46.083 [SYS:DEBU]   Free Heap: 47696 (min=17296) wifi=5 mh=7 cups=8 tc=5
2019-02-03 12:20:47.087 [SYS:DEBU]   Free Heap: 47696 (min=17296) wifi=5 mh=7 cups=8 tc=5
2019-02-03 12:20:48.090 [SYS:DEBU]   Free Heap: 47696 (min=17296) wifi=5 mh=7 cups=8 tc=5
2019-02-03 12:20:48.283 [any:INFO] cert. version     : 3
serial number     : ?????????????????????????
issuer name       : O=Digital Signature Trust Co., CN=DST Root CA X3
subject name      : C=US, O=Let's Encrypt, CN=Let's Encrypt Authority X3
issued  on        : 2016-03-17 16:40:46
expires on        : 2021-03-17 16:40:46
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic constraints : CA=true, max_pathlen=0
key usage         : Digital Signature, Key Cert Sign, 2019-02-03 12:20:48.321 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
2019-02-03 12:20:49.551 [TCE:VERB] Connecting to MUXS...
2019-02-03 12:20:49.555 [SYS:DEBU]   Free Heap: 31984 (min=17296) wifi=5 mh=7 cups=8 tc=3
2019-02-03 12:20:50.558 [SYS:DEBU]   Free Heap: 25232 (min=17296) wifi=5 mh=7 cups=8 tc=3
2019-02-03 12:20:50.791 [TCE:VERB] Connected to MUXS.
2019-02-03 12:20:51.105 [S2E:WARN] Unknown field in router_config - ignored: bcning (0x1EE5E245)
2019-02-03 12:20:51.109 [S2E:WARN] Unknown field in router_config - ignored: config (0xF7A3E35F)
2019-02-03 12:20:51.113 [S2E:WARN] Unknown field in router_config - ignored: protocol (0xFD309030)
2019-02-03 12:20:51.121 [S2E:WARN] Unknown field in router_config - ignored: regionid (0xE6FFB211)
2019-02-03 12:20:51.133 [S2E:WARN] Unknown field in router_config - ignored: upchannels (0x7FCAA9EB)
2019-02-03 12:20:51.153 [RAL:INFO] Lora gateway library version: Version: 4.1.1;
2019-02-03 12:20:51.157 [RAL:DEBU] SX1301 txlut table (0 entries)
2019-02-03 12:20:51.160 [RAL:VERB] SX1301 rxrfchain 0: enable=1 freq=902700000 rssi_offset=-166.000000 type=2 tx_enable=1 tx_notch_freq=0
2019-02-03 12:20:51.168 [RAL:VERB] SX1301 rxrfchain 1: enable=1 freq=903400000 rssi_offset=-166.000000 type=2 tx_enable=0 tx_notch_freq=0
2019-02-03 12:20:51.180 [RAL:VERB] SX1301 ifchain  0: enable=1 rf_chain=0 freq=-375000 bandwidth=0 datarate=0 sync_word=0/0
2019-02-03 12:20:51.191 [RAL:VERB] SX1301 ifchain  1: enable=1 rf_chain=0 freq=-175000 bandwidth=0 datarate=0 sync_word=0/0
2019-02-03 12:20:51.202 [RAL:VERB] SX1301 ifchain  2: enable=1 rf_chain=0 freq=25000 bandwidth=0 datarate=0 sync_word=0/0
2019-02-03 12:20:51.212 [RAL:VERB] SX1301 ifchain  3: enable=1 rf_chain=0 freq=375000 bandwidth=0 datarate=0 sync_word=0/0
2019-02-03 12:20:51.223 [RAL:VERB] SX1301 ifchain  4: enable=1 rf_chain=1 freq=-237500 bandwidth=0 datarate=0 sync_word=0/0
2019-02-03 12:20:51.234 [RAL:VERB] SX1301 ifchain  5: enable=1 rf_chain=1 freq=237500 bandwidth=0 datarate=0 sync_word=0/0
2019-02-03 12:20:51.245 [RAL:VERB] SX1301 ifchain  6: enable=0 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2019-02-03 12:20:51.255 [RAL:VERB] SX1301 ifchain  7: enable=0 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2019-02-03 12:20:51.266 [RAL:VERB] SX1301 ifchain  8: enable=0 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2019-02-03 12:20:51.276 [RAL:VERB] SX1301 ifchain  9: enable=0 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2019-02-03 12:20:51.286 [RAL:VERB] SX1301 LBT not enabled
2019-02-03 12:20:51.291 [RAL:INFO] Station device:  (PPS capture disabled)
INFO: FPGA supported features: [TX filter]  [Spectral Scan]  [LBT]
2019-02-03 12:20:55.665 [S2E:INFO] Configuring for region: US902 -- 923.0MHz..928.0MHz
2019-02-03 12:20:55.669 [S2E:VERB]   DR0  SF10/BW125
2019-02-03 12:20:55.672 [S2E:VERB]   DR1  SF9/BW125
2019-02-03 12:20:55.674 [S2E:VERB]   DR2  SF8/BW125
2019-02-03 12:20:55.677 [S2E:VERB]   DR3  SF7/BW125
2019-02-03 12:20:55.684 [S2E:VERB]   DR4  SF8/BW500
2019-02-03 12:20:55.687 [S2E:VERB]   DR5  undefined
2019-02-03 12:20:55.691 [S2E:VERB]   DR6  undefined
2019-02-03 12:20:55.696 [S2E:VERB]   DR7  undefined
2019-02-03 12:20:55.701 [S2E:VERB]   DR8  SF12/BW500 (DN only)
2019-02-03 12:20:55.706 [S2E:VERB]   DR9  SF11/BW500 (DN only)
2019-02-03 12:20:55.712 [S2E:VERB]   DR10 SF10/BW500 (DN only)
2019-02-03 12:20:55.717 [S2E:VERB]   DR11 SF9/BW500 (DN only)
2019-02-03 12:20:55.723 [S2E:VERB]   DR12 SF8/BW500 (DN only)
2019-02-03 12:20:55.728 [S2E:VERB]   DR13 SF7/BW500 (DN only)
2019-02-03 12:20:55.734 [S2E:VERB]   DR14 undefined
2019-02-03 12:20:55.738 [S2E:VERB]   DR15 undefined
2019-02-03 12:20:55.743 [S2E:VERB]   TX power: 30.0 dBm EIRP
2019-02-03 12:20:55.748 [S2E:VERB]   JoinEui list: 0 entries
2019-02-03 12:20:55.754 [S2E:VERB]   NetID filter: FFFFFFFF-FFFFFFFF-FFFFFFFF-FFFFFFFF
2019-02-03 12:20:55.761 [S2E:VERB]   Dev/test settings: nocca=0 nodc=0 nodwell=0
2019-02-03 12:20:55.774 [SYS:DEBU]   Free Heap: 19448 (min=17296) wifi=5 mh=7 cups=8 tc=4
2019-02-03 12:20:56.777 [SYS:DEBU]   Free Heap: 19448 (min=17296) wifi=5 mh=7 cups=8 tc=4
2019-02-03 12:20:57.781 [SYS:DEBU]   Free Heap: 19448 (min=17296) wifi=5 mh=7 cups=8 tc=4
2019-02-03 12:20:58.785 [SYS:DEBU]   Free Heap: 19448 (min=17296) wifi=5 mh=7 cups=8 tc=4
2019-02-03 12:20:59.789 [SYS:DEBU]   Free Heap: 19448 (min=17296) wifi=5 mh=7 cups=8 tc=4
2019-02-03 12:21:00.793 [SYS:DEBU]   Free Heap: 19448 (min=17296) wifi=5 mh=7 cups=8 tc=4
2019-02-03 12:21:01.797 [SYS:DEBU]   Free Heap: 19448 (min=17296) wifi=5 mh=7 cups=8 tc=4
2019-02-03 12:21:02.801 [SYS:DEBU]   Free Heap: 19448 (min=17296) wifi=5 mh=7 cups=8 tc=4
2019-02-03 12:21:03.805 [SYS:DEBU]   Free Heap: 19448 (min=17296) wifi=5 mh=7 cups=8 tc=4
2019-02-03 12:21:04.809 [SYS:DEBU]   Free Heap: 19448 (min=17296) wifi=5 mh=7 cups=8 tc=4
2019-02-03 12:21:05.813 [SYS:DEBU]   Free Heap: 19448 (min=17296) wifi=5 mh=7 cups=8 tc=4
2019-02-03 12:21:06.286 [SYN:INFO] Time sync qualities: min=1046 q90=1065 max=1069 (previous q90=2147483647)

Can the Basic Station software be used with RAK831 on RPI?
(Humaxnerd) #138

Output when AP starts:

2019-02-03 12:33:51.465 [SYS:DEBU] Start WiFi Scan
2019-02-03 12:33:51.762 [SYS:DEBU] Free Heap: 54208 (min=17544) wifi=0 mh=1 cups=8 tc=4
2019-02-03 12:33:52.765 [SYS:DEBU] Free Heap: 53432 (min=17544) wifi=0 mh=1 cups=8 tc=4
2019-02-03 12:33:53.769 [SYS:DEBU] Free Heap: 53432 (min=17544) wifi=0 mh=1 cups=8 tc=4
scandone
2019-02-03 12:33:53.896 [SYS:DEBU] mh_scanDoneCB: status=0
2019-02-03 12:33:53.898 [SYS:DEBU] SSID | CH @ RSSI | auth | b/g/n | wps
2019-02-03 12:33:53.901 [SYS:DEBU] xxxxxxxx | ch-01@-86 dBm | auth=4 | 1/1/1 | 1
2019-02-03 12:33:53.907 [SYS:DEBU] xxxxxxxxxxx | ch-02@-77 dBm | auth=4 | 1/1/1 | 1
2019-02-03 12:33:53.915 [SYS:DEBU] xxxxxxx | ch-02@-77 dBm | auth=0 | 1/1/1 | 0
2019-02-03 12:33:53.923 [SYS:DEBU] xxxxxxxxxxxxxxxx | ch-04@-90 dBm | auth=4 | 1/1/1 | 0
2019-02-03 12:33:53.931 [SYS:DEBU] xxxxxxxxxxxxx | ch-06@-84 dBm | auth=3 | 1/1/1 | 1
2019-02-03 12:33:53.939 [SYS:DEBU] xxxxxxxxxxxxx | ch-06@-89 dBm | auth=3 | 0/0/1 | 1
2019-02-03 12:33:53.947 [SYS:DEBU] xxx | ch-08@-63 dBm | auth=3 | 1/1/1 | 1
2019-02-03 12:33:53.955 [SYS:DEBU] xxxxxxx | ch-09@-94 dBm | auth=3 | 1/1/1 | 1
2019-02-03 12:33:53.963 [SYS:DEBU] xxxxxxxxxxxxx | ch-09@-92 dBm | auth=3 | 1/1/1 | 1
2019-02-03 12:33:53.971 [SYS:DEBU] xxxxxxx | ch-11@-88 dBm | auth=3 | 1/1/0 | 0
2019-02-03 12:33:53.979 [SYS:DEBU] xxxxxxxxxxxxxxxx | ch-11@-88 dBm | auth=4 | 0/0/1 | 1
2019-02-03 12:33:54.479 [SYS:INFO] mh_iniAP - Setting up AP mode SSID: MiniHub-800xxx
2019-02-03 12:33:54.482 [SYS:INFO] PW: xxxxxxx
del if0
usl
sul 0 0
mode : softAP(ce:50:e3:20:67:d0)
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
add if1
bcn 100
bcn 0
del if1
usl
sul 0 0
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
add if1
bcn 100
2019-02-03 12:33:54.624 [AIO:DEBU] [2] Connection listening…
2019-02-03 12:33:54.626 [WEB:INFO] Web server listening on port 80 (fd=2)…
2019-02-03 12:33:54.772 [SYS:DEBU] Free Heap: 46568 (min=17544) wifi=255 mh=6 cups=8 tc=4
2019-02-03 12:33:55.776 [SYS:DEBU] Free Heap: 46568 (min=17544) wifi=255 mh=6 cups=8 tc=4
2019-02-03 12:33:56.780 [SYS:DEBU] Free Heap: 46568 (min=17544) wifi=255 mh=6 cups=8 tc=4
2019-02-03 12:33:57.783 [SYS:DEBU] Free Heap: 46400 (min=17544) wifi=255 mh=6 cups=8 tc=4


(Arjan) #139

While you’re in EU868 you mean?


(Humaxnerd) #140

@arjanvanb Yes


#141

huh… Listen Before Talk is integrated ?


(Humaxnerd) #142

After the device reboot an connect to a Wifi network:

connected with ???, channel 8
dhcp client start…
1970-01-01 00:00:06.270 [SYS:DEBU] Free Heap: 54760 (min=53248) wifi=1 mh=3 cups=0 tc=0
ip:x.x.x.x,mask:255.255.255.0,gw:x.x.x.x
1970-01-01 00:00:07.274 [SYS:DEBU] Free Heap: 54760 (min=53248) wifi=5 mh=3 cups=0 tc=0
1970-01-01 00:00:07.283 [CUP:INFO] Stopping TC and starting CUPS
1970-01-01 00:00:07.285 [CUP:INFO] Starting a CUPS session
1970-01-01 00:00:07.297 [CUP:INFO] Connecting to CUPS … https://mh.sm.tc:7007 (try #1)
1970-01-01 00:00:07.310 [any:INFO] cert. version : 1
serial number : 01
issuer name : CN=Root CA, OU=TrackCentral (xxxxxxxx), O=TrackNet.io, C=CH
subject name : CN=Root CA, OU=TrackCentral (xxxxxxxx), O=TrackNet.io, C=CH
issued on : 2018-11-22 10:23:38
expires on : 2024-11-20 10:23:38
signed using : ECDSA with SHA256
EC key size : 256 bits
1970-01-01 00:00:07.338 [AIO:INFO] cups has no cert configured - running server auth and client auth with token
1970-01-01 00:00:07.377 [CUP:VERB] Retrieving update-info from CUPS https://mh.sm.tc:7007
1970-01-01 00:00:13.913 [SYS:DEBU] Free Heap: 26288 (min=26288) wifi=5 mh=7 cups=1 tc=0
1970-01-01 00:00:13.997 [AIO:DEBU] [2] HTTP connection shutdown…
1970-01-01 00:00:14.005 [SYS:INFO] sys_inState - Ignoring state transition: 5
1970-01-01 00:00:14.008 [CUP:INFO] Interaction with CUPS done (no updates) - next regular check in 1d
1970-01-01 00:00:14.011 [TCE:INFO] Starting TC engine
1970-01-01 00:00:14.029 [any:INFO] cert. version : 3


(Humaxnerd) #143

Also info at: https://doc.sm.tc/station/minihub.html?highlight=minihub
Looks like there is a HTTP API.


(Verkehrsrot) #144

Is there a way to detect if it is US or EU version without opening the device?


(Humaxnerd) #145

@Verkehrsrot not that I know.


(Dmth) #146

Hi, can you confirm, that the string (21) printed on the sticker above the AC Connector starts with:
TBMH100868

My guess: if its not 868 its the US Version.