<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Lopy and Matchx usage]]></title><description><![CDATA[<p dir="auto">I have setup a Matchx Gateway and activated it.   Now i want to use the         example at <a href="https://docs.pycom.io/chapter/tutorials/lopy/lorawan-otaa.html" target="_blank" rel="noopener noreferrer nofollow">https://docs.pycom.io/chapter/tutorials/lopy/lorawan-otaa.html</a>  but where do i get the app_eui and app_key from?  Do i have to use TTN?</p>
<pre><code>from network import LoRa
import socket
import time
import binascii

# Initialize LoRa in LORAWAN mode.
lora = LoRa(mode=LoRa.LORAWAN)

# create an OTAA authentication parameters
dev_eui = binascii.unhexlify('10 00 00 00 00 00 00 01'.replace(' ','')) 
app_eui = binascii.unhexlify('70 B3 D5 7E D0 00 81 BD'.replace(' ',''))
app_key = binascii.unhexlify('77 E7 AE FA 56 67 78 3D 5C 2F 4A E0 B9 F2     E3 FC'.replace(' ',''))

# join a network using OTAA (Over the Air Activation)
lora.join(activation=LoRa.OTAA, auth=(app_eui, app_key), timeout=0)

# wait until the module has joined the network
while not lora.has_joined():
        time.sleep(2.5)
        print('Not yet joined...')

# create a LoRa socket
s = socket.socket(socket.AF_LORA, socket.SOCK_RAW)

# set the LoRaWAN data rate
s.setsockopt(socket.SOL_LORA, socket.SO_DR, 5)

# make the socket blocking
# (waits for the data to be sent and for the 2 receive windows to expire)
s.setblocking(True)

# send some data
s.send(bytes([0x01, 0x02, 0x03]))

# make the socket non-blocking
# (because if there's no data received it will block forever...)
s.setblocking(False)

# get any data received (if any...)
data = s.recv(64)
print(data)</code></pre>
]]></description><link>https://forum.pycom.io/topic/2348/lopy-and-matchx-usage</link><generator>RSS for Node</generator><lastBuildDate>Sun, 11 Oct 2026 18:15:55 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/2348.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 Dec 2017 12:41:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Lopy and Matchx usage on Fri, 29 Dec 2017 14:08:00 GMT]]></title><description><![CDATA[<p dir="auto">I have setup a Matchx Gateway and activated it.   Now i want to use the         example at <a href="https://docs.pycom.io/chapter/tutorials/lopy/lorawan-otaa.html" target="_blank" rel="noopener noreferrer nofollow">https://docs.pycom.io/chapter/tutorials/lopy/lorawan-otaa.html</a>  but where do i get the app_eui and app_key from?  Do i have to use TTN?</p>
<pre><code>from network import LoRa
import socket
import time
import binascii

# Initialize LoRa in LORAWAN mode.
lora = LoRa(mode=LoRa.LORAWAN)

# create an OTAA authentication parameters
dev_eui = binascii.unhexlify('10 00 00 00 00 00 00 01'.replace(' ','')) 
app_eui = binascii.unhexlify('70 B3 D5 7E D0 00 81 BD'.replace(' ',''))
app_key = binascii.unhexlify('77 E7 AE FA 56 67 78 3D 5C 2F 4A E0 B9 F2     E3 FC'.replace(' ',''))

# join a network using OTAA (Over the Air Activation)
lora.join(activation=LoRa.OTAA, auth=(app_eui, app_key), timeout=0)

# wait until the module has joined the network
while not lora.has_joined():
        time.sleep(2.5)
        print('Not yet joined...')

# create a LoRa socket
s = socket.socket(socket.AF_LORA, socket.SOCK_RAW)

# set the LoRaWAN data rate
s.setsockopt(socket.SOL_LORA, socket.SO_DR, 5)

# make the socket blocking
# (waits for the data to be sent and for the 2 receive windows to expire)
s.setblocking(True)

# send some data
s.send(bytes([0x01, 0x02, 0x03]))

# make the socket non-blocking
# (because if there's no data received it will block forever...)
s.setblocking(False)

# get any data received (if any...)
data = s.recv(64)
print(data)</code></pre>
]]></description><link>https://forum.pycom.io/post/13931</link><guid isPermaLink="true">https://forum.pycom.io/post/13931</guid><dc:creator><![CDATA[misterlisty]]></dc:creator><pubDate>Fri, 29 Dec 2017 14:08:00 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Fri, 29 Dec 2017 16:56:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1981">@misterlisty</a><br />
Are you using MatchX’s own backend server? If so you to need to register a new device and get those values from there.</p>
]]></description><link>https://forum.pycom.io/post/13943</link><guid isPermaLink="true">https://forum.pycom.io/post/13943</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Fri, 29 Dec 2017 16:56:35 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Fri, 29 Dec 2017 23:07:49 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1514588838645-capture-resized.png" alt="0_1514588836432_Capture.PNG" class="img-responsive img-markdown" /></p>
<p dir="auto">Here is my matchx setup...</p>
]]></description><link>https://forum.pycom.io/post/13947</link><guid isPermaLink="true">https://forum.pycom.io/post/13947</guid><dc:creator><![CDATA[misterlisty]]></dc:creator><pubDate>Fri, 29 Dec 2017 23:07:49 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Sat, 30 Dec 2017 01:30:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1981">@misterlisty</a><br />
App is just short for Application, so use Application EUI and Application Key for app_eui and app_key respectively.</p>
]]></description><link>https://forum.pycom.io/post/13948</link><guid isPermaLink="true">https://forum.pycom.io/post/13948</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Sat, 30 Dec 2017 01:30:16 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Sat, 30 Dec 2017 01:40:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1981">@misterlisty</a><br />
Also to use the dev_eui you set you need to add it to the auth parameter like this:</p>
<p dir="auto"><code>lora.join(activation=LoRa.OTAA, auth=(dev_eui, app_eui, app_key), timeout=0)</code></p>
]]></description><link>https://forum.pycom.io/post/13950</link><guid isPermaLink="true">https://forum.pycom.io/post/13950</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Sat, 30 Dec 2017 01:40:44 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Sat, 30 Dec 2017 02:38:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/212">@jmarcelino</a> thank you, what about frequency?  Do i have to set this?  I'm in Austrlia.</p>
]]></description><link>https://forum.pycom.io/post/13952</link><guid isPermaLink="true">https://forum.pycom.io/post/13952</guid><dc:creator><![CDATA[misterlisty]]></dc:creator><pubDate>Sat, 30 Dec 2017 02:38:30 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Sat, 30 Dec 2017 08:56:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1981">@misterlisty</a></p>
<p dir="auto">Yes for Australia you need to set it, what’s your channel plan on the MatchX?</p>
]]></description><link>https://forum.pycom.io/post/13957</link><guid isPermaLink="true">https://forum.pycom.io/post/13957</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Sat, 30 Dec 2017 08:56:52 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Sat, 30 Dec 2017 13:04:23 GMT]]></title><description><![CDATA[<p dir="auto">ok..getting some activity now...but the code says it hasn't joined yet?</p>
<p dir="auto"><img src="/assets/uploads/files/1514639053810-capture-resized.png" alt="0_1514639054703_Capture.PNG" class="img-responsive img-markdown" /></p>
]]></description><link>https://forum.pycom.io/post/13962</link><guid isPermaLink="true">https://forum.pycom.io/post/13962</guid><dc:creator><![CDATA[misterlisty]]></dc:creator><pubDate>Sat, 30 Dec 2017 13:04:23 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Mon, 01 Jan 2018 00:48:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1981">@misterlisty</a><br />
At first sight that screenshot looks fine, you have an uplink (likely the join request) from the LoPy and then a downlink on 923.3Mhz which is the RX2 window so it should be the join accept reply.</p>
<p dir="auto">Do you have any option to use the RX1 window instead? That would be preferrable. I haven't used MatchX backend in months.</p>
<p dir="auto">The MatchX is also transmitting with some crazy power (30), try to have the nodes well apart otherwise the receiver on the LoPy will be overloaded.</p>
<p dir="auto">If that doesn't help pos the exact macPayload for both uplink and downlinks - you need to expand fields so I can understand exactly what's being sent.</p>
]]></description><link>https://forum.pycom.io/post/13972</link><guid isPermaLink="true">https://forum.pycom.io/post/13972</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Mon, 01 Jan 2018 00:48:59 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Mon, 01 Jan 2018 01:26:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/212">@jmarcelino</a>   Hope this helps :)</p>
<p dir="auto"><img src="/assets/uploads/files/1514769925219-lora2-resized.png" alt="0_1514769924638_lora2.PNG" class="img-responsive img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1514769946714-lora1-resized.png" alt="0_1514769946358_lora1.PNG" class="img-responsive img-markdown" /></p>
]]></description><link>https://forum.pycom.io/post/13974</link><guid isPermaLink="true">https://forum.pycom.io/post/13974</guid><dc:creator><![CDATA[misterlisty]]></dc:creator><pubDate>Mon, 01 Jan 2018 01:26:20 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Tue, 02 Jan 2018 10:06:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/212">@jmarcelino</a>  I'm now trying to use BDP instead but i get no indication of connection from MtachX anymore..any suggestion?</p>
<p dir="auto"><img src="/assets/uploads/files/1514887560902-capture-resized.png" alt="0_1514887564890_Capture.PNG" class="img-responsive img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1514887565738-capture2.png" alt="0_1514887571530_Capture2.PNG" class="img-responsive img-markdown" /></p>
<p dir="auto">Here is my code</p>
<pre><code>from network import LoRa
import socket
import time
import binascii
import struct

# Initialize LoRa in LORAWAN mode.
# lora = LoRa(mode=LoRa.LORAWAN, rx_iq=True, tx_power=14, power_mode=LoRa.ALWAYS_ON, public=True, tx_retries=1)

lora = LoRa(mode=LoRa.LORAWAN)
print(&quot;Lora send::-3&quot;)

print(&quot;DevEUI[&quot;,binascii.hexlify(lora.mac()).upper().decode('utf-8'),&quot;]&quot;)

# create an OTAA authentication parameters
# dev_eui = binascii.unhexlify('70 B3 D5 49 97 E4 4C 6E'.replace(' ','')) 
# app_eui = binascii.unhexlify('70 B3 D5 7E D0 00 81 BD'.replace(' ',''))
# app_key = binascii.unhexlify('77 E7 AE FA 56 67 78 3D 5C 2F 4A E0 B9 F2 E3 FC'.replace(' ',''))


# create an ABP authentication parameters
dev_eui = struct.unpack(&quot;&gt;l&quot;, binascii.unhexlify('AE A7 4C 1B'.replace(' ','')))[0]
# dev_eui = binascii.unhexlify('AE A7 4C 1B'.replace(' ',''))
app_eui = binascii.unhexlify('39 7E 7F A3 AB 51 CB 3B 60 18 3C 85 E6 B5 56 D6'.replace(' ',''))
app_key = binascii.unhexlify('9A 92 D8 3B 94 D2 6C DF 03 84 EF D3 59 47 14 85'.replace(' ',''))


print(&quot;Lora send::-2&quot;)

# set the 3 default channels to the same frequency
lora.add_channel(0, frequency=915200000, dr_min=0, dr_max=4)
lora.add_channel(1, frequency=915200000, dr_min=0, dr_max=5)
lora.add_channel(2, frequency=915200000, dr_min=0, dr_max=5)
# lora.add_channel(4, frequency=915800000, dr_min=0, dr_max=5)
# lora.add_channel(5, frequency=916000000, dr_min=0, dr_max=5)
# lora.add_channel(6, frequency=916200000, dr_min=0, dr_max=5)
# lora.add_channel(7, frequency=916400000, dr_min=0, dr_max=5)
# lora.add_channel(8, frequency=915600000, dr_min=0, dr_max=5)
# lora.add_channel(9, frequency=916600000, dr_min=0, dr_max=5)
print(&quot;Lora send::-1&quot;)


def lora_cb(lora):
    events = lora.events() 
    if events &amp; LoRa.RX_PACKET_EVENT:
        print('Lora packet received')
    if events &amp; LoRa.TX_PACKET_EVENT:
        print('Lora packet sent')

# lora.callback(trigger=(LoRa.RX_PACKET_EVENT | LoRa.TX_PACKET_EVENT), handler=lora_cb)

# join a network using OTAA (Over the Air Activation)
# lora.join(activation=LoRa.OTAA, auth=(dev_eui,app_eui, app_key), timeout=0)
lora.join(activation=LoRa.ABP, auth=(dev_eui,app_eui, app_key), timeout=0)
print(&quot;Lora send::0&quot;)
# remove all the non-default channels
##for i in range(0, 16):
##    lora.remove_channel(i)

# wait until the module has joined the network
while not lora.has_joined():
    time.sleep(5)
    print('Not yet joined...')

# remove all the non-default channels
for i in range(3, 16):
    lora.remove_channel(i)

# create a LoRa socket
s = socket.socket(socket.AF_LORA, socket.SOCK_RAW)

print(&quot;Lora send::1&quot;)

i = 0
while True:
    print(&quot;Lora send::1&quot;)
    # set the LoRaWAN data rate
    s.setsockopt(socket.SOL_LORA, socket.SO_DR, 5)
    print(&quot;Lora send::2&quot;)
    # make the socket blocking
    # (waits for the data to be sent and for the 2 receive windows to expire)
    s.setblocking(True)
    print(&quot;Lora send::3&quot;)
    # send some data
    count = s.send(bytes([i % 256]))
    print('Sent %s bytes' % count)
    print(&quot;Lora send::4&quot;)
    # make the socket non-blocking
    # (because if there's no data received it will block forever...)
    s.setblocking(False)
    print(&quot;Lora send::5&quot;)
    # get any data received (if any...)
    data = s.recv(64)
    print(&quot;Lora send::&quot;,data)
    i += 1</code></pre>
]]></description><link>https://forum.pycom.io/post/14005</link><guid isPermaLink="true">https://forum.pycom.io/post/14005</guid><dc:creator><![CDATA[misterlisty]]></dc:creator><pubDate>Tue, 02 Jan 2018 10:06:46 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Tue, 02 Jan 2018 10:22:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1981">@misterlisty</a> said in <a href="/post/14005">Lopy and Matchx usage</a>:</p>
<blockquote>
<p dir="auto">s.setsockopt(socket.SOL_LORA, socket.SO_DR, 5)</p>
</blockquote>
<p dir="auto">Data Rate 5 isn't valid for your region, that's for EU868. Aren't you receiving an error trying to set it?</p>
<p dir="auto">Try data rate 3:<br />
<code>s.setsockopt(socket.SOL_LORA, socket.SO_DR, 3)</code></p>
<p dir="auto">also your remove channel loop needs to remove up to channel 72, not just 16</p>
<pre><code>for i in range(3, 72):
    lora.remove_channel(i)
</code></pre>
<p dir="auto">Ideally you shouldn't set them all to the same frequency and should set channels 0 - 7 to match you frequency plan - the 8 frequencies your gateway is listen on. Can you post your frequency plan again from your gateway configuration? I think you posted it before but then removed it.</p>
]]></description><link>https://forum.pycom.io/post/14006</link><guid isPermaLink="true">https://forum.pycom.io/post/14006</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Tue, 02 Jan 2018 10:22:28 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Tue, 02 Jan 2018 11:09:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/212">@jmarcelino</a></p>
<pre><code>{
	&quot;SX1301_conf&quot;: {
		&quot;lorawan_public&quot;: true,
		&quot;clksrc&quot;: 1, /* radio_1 provides clock to concentrator */
		&quot;lbt_cfg&quot;: {
			&quot;enable&quot;: true,
			&quot;rssi_target&quot;: -81, /* dBm */
			&quot;chan_cfg&quot;:[ /* 8 channels maximum */
				{ &quot;freq_hz&quot;: 915200000, &quot;scan_time_us&quot;: 5000 },
				{ &quot;freq_hz&quot;: 915400000, &quot;scan_time_us&quot;: 5000 },
				{ &quot;freq_hz&quot;: 915600000, &quot;scan_time_us&quot;: 5000 },
				{ &quot;freq_hz&quot;: 915800000, &quot;scan_time_us&quot;: 5000 },
				{ &quot;freq_hz&quot;: 916000000, &quot;scan_time_us&quot;: 5000 },
				{ &quot;freq_hz&quot;: 916200000, &quot;scan_time_us&quot;: 5000 },
				{ &quot;freq_hz&quot;: 916400000, &quot;scan_time_us&quot;: 5000 },
				{ &quot;freq_hz&quot;: 916600000, &quot;scan_time_us&quot;: 5000 }
			],
			&quot;sx127x_rssi_offset&quot;: -7 /* dB */
		},
		&quot;antenna_gain&quot;: 2, /* antenna gain, in dBi */
		&quot;radio_0&quot;: {
			&quot;enable&quot;: true,
			&quot;type&quot;: &quot;SX1257&quot;,
			&quot;freq&quot;: 915600000,
			&quot;rssi_offset&quot;: -166.0,
			&quot;tx_enable&quot;: true,
			&quot;tx_freq_min&quot;: 915000000,
			&quot;tx_freq_max&quot;: 928000000
		},
		&quot;radio_1&quot;: {
			&quot;enable&quot;: true,
			&quot;type&quot;: &quot;SX1257&quot;,
			&quot;freq&quot;: 916300000,
			&quot;rssi_offset&quot;: -166.0,
			&quot;tx_enable&quot;: false
		},
		&quot;chan_multiSF_0&quot;: {
			&quot;desc&quot;: &quot;Lora MAC, 125kHz, all SF, 915.2 MHz&quot;,
			&quot;enable&quot;: true,
			&quot;radio&quot;: 0,
			&quot;if&quot;: -400000
		},
		&quot;chan_multiSF_1&quot;: {
			&quot;desc&quot;: &quot;Lora MAC, 125kHz, all SF, 915.4 MHz&quot;,
			&quot;enable&quot;: true,
			&quot;radio&quot;: 0,
			&quot;if&quot;: -200000
		},
		&quot;chan_multiSF_2&quot;: {
			&quot;desc&quot;: &quot;Lora MAC, 125kHz, all SF, 915.6 MHz&quot;,
			&quot;enable&quot;: true,
			&quot;radio&quot;: 0,
			&quot;if&quot;: 0
		},
		&quot;chan_multiSF_3&quot;: {
			&quot;desc&quot;: &quot;Lora MAC, 125kHz, all SF, 915.8 MHz&quot;,
			&quot;enable&quot;: true,
			&quot;radio&quot;: 0,
			&quot;if&quot;: 200000
		},
		&quot;chan_multiSF_4&quot;: {
			&quot;desc&quot;: &quot;Lora MAC, 125kHz, all SF, 916.0 MHz&quot;,
			&quot;enable&quot;: true,
			&quot;radio&quot;: 1,
			&quot;if&quot;: -300000
		},
		&quot;chan_multiSF_5&quot;: {
			&quot;desc&quot;: &quot;Lora MAC, 125kHz, all SF, 916.2 MHz&quot;,
			&quot;enable&quot;: true,
			&quot;radio&quot;: 1,
			&quot;if&quot;: -100000
		},
		&quot;chan_multiSF_6&quot;: {
			&quot;desc&quot;: &quot;Lora MAC, 125kHz, all SF, 916.4 MHz&quot;,
			&quot;enable&quot;: true,
			&quot;radio&quot;: 1,
			&quot;if&quot;: 100000
		},
		&quot;chan_multiSF_7&quot;: {
			&quot;desc&quot;: &quot;Lora MAC, 125kHz, all SF, 916.6 MHz&quot;,
			&quot;enable&quot;: true,
			&quot;radio&quot;: 1,
			&quot;if&quot;: 300000
		},
		&quot;chan_Lora_std&quot;: {
			&quot;desc&quot;: &quot;Lora MAC, 500kHz, SF8, 915.825 MHz&quot;,
			&quot;enable&quot;: true,
			&quot;radio&quot;: 0,
			&quot;if&quot;: 250000,
			&quot;bandwidth&quot;: 500000,
			&quot;spread_factor&quot;: 8
		},
		&quot;chan_FSK&quot;: {
			&quot;desc&quot;: &quot;FSK disabled&quot;,
			&quot;enable&quot;: false
		},
		&quot;tx_lut_0&quot;: {
			/* TX gain table, index 0 */
			&quot;pa_gain&quot;: 0,
			&quot;mix_gain&quot;: 8,
			&quot;rf_power&quot;: -6,
			&quot;dig_gain&quot;: 3
		},
		&quot;tx_lut_1&quot;: {
			/* TX gain table, index 1 */
			&quot;pa_gain&quot;: 0,
			&quot;mix_gain&quot;: 10,
			&quot;rf_power&quot;: -3,
			&quot;dig_gain&quot;: 3
		},
		&quot;tx_lut_2&quot;: {
			/* TX gain table, index 2 */
			&quot;pa_gain&quot;: 0,
			&quot;mix_gain&quot;: 9,
			&quot;rf_power&quot;: 0,
			&quot;dig_gain&quot;: 0
		},
		&quot;tx_lut_3&quot;: {
			/* TX gain table, index 3 */
			&quot;pa_gain&quot;: 0,
			&quot;mix_gain&quot;: 12,
			&quot;rf_power&quot;: 3,
			&quot;dig_gain&quot;: 0
		},
		&quot;tx_lut_4&quot;: {
			/* TX gain table, index 4 */
			&quot;pa_gain&quot;: 1,
			&quot;mix_gain&quot;: 8,
			&quot;rf_power&quot;: 6,
			&quot;dig_gain&quot;: 2
		},
		&quot;tx_lut_5&quot;: {
			/* TX gain table, index 5 */
			&quot;pa_gain&quot;: 1,
			&quot;mix_gain&quot;: 9,
			&quot;rf_power&quot;: 10,
			&quot;dig_gain&quot;: 0
		},
		&quot;tx_lut_6&quot;: {
			/* TX gain table, index 6 */
			&quot;pa_gain&quot;: 1,
			&quot;mix_gain&quot;: 11,
			&quot;rf_power&quot;: 11,
			&quot;dig_gain&quot;: 2
		},
		&quot;tx_lut_7&quot;: {
			/* TX gain table, index 7 */
			&quot;pa_gain&quot;: 1,
			&quot;mix_gain&quot;: 11,
			&quot;rf_power&quot;: 12,
			&quot;dig_gain&quot;: 1
		},
		&quot;tx_lut_8&quot;: {
			/* TX gain table, index 8 */
			&quot;pa_gain&quot;: 1,
			&quot;mix_gain&quot;: 11,
			&quot;rf_power&quot;: 13,
			&quot;dig_gain&quot;: 0
		},
		&quot;tx_lut_9&quot;: {
			/* TX gain table, index 9 */
			&quot;pa_gain&quot;: 1,
			&quot;mix_gain&quot;: 12,
			&quot;rf_power&quot;: 14,
			&quot;dig_gain&quot;: 1
		},
		&quot;tx_lut_10&quot;: {
			/* TX gain table, index 10 */
			&quot;pa_gain&quot;: 2,
			&quot;mix_gain&quot;: 8,
			&quot;rf_power&quot;: 16,
			&quot;dig_gain&quot;: 0
		},
		&quot;tx_lut_11&quot;: {
			/* TX gain table, index 11 */
			&quot;pa_gain&quot;: 2,
			&quot;mix_gain&quot;: 12,
			&quot;rf_power&quot;: 20,
			&quot;dig_gain&quot;: 2
		},
		&quot;tx_lut_12&quot;: {
			/* TX gain table, index 12 */
			&quot;pa_gain&quot;: 2,
			&quot;mix_gain&quot;: 14,
			&quot;rf_power&quot;: 23,
			&quot;dig_gain&quot;: 2
		},
		&quot;tx_lut_13&quot;: {
			/* TX gain table, index 13 */
			&quot;pa_gain&quot;: 2,
			&quot;mix_gain&quot;: 15,
			&quot;rf_power&quot;: 25,
			&quot;dig_gain&quot;: 0
		},
		&quot;tx_lut_14&quot;: {
			/* TX gain table, index 14 */
			&quot;pa_gain&quot;: 3,
			&quot;mix_gain&quot;: 11,
			&quot;rf_power&quot;: 26,
			&quot;dig_gain&quot;: 3
		},
		&quot;tx_lut_15&quot;: {
			/* TX gain table, index 15 */
			&quot;pa_gain&quot;: 3,
			&quot;mix_gain&quot;: 13,
			&quot;rf_power&quot;: 28,
			&quot;dig_gain&quot;: 0
		}
	},
	&quot;gateway_conf&quot;: {
		/* change with default server address/ports, or overwrite in local_conf.json */
		&quot;server_address&quot;: &quot;aux.matchx.io&quot;,
		&quot;serv_port_up&quot;: 1700,
		&quot;serv_port_down&quot;: 1700,
		/* adjust the following parameters for your network */
		&quot;keepalive_interval&quot;: 10,
		&quot;stat_interval&quot;: 30,
		&quot;push_timeout_ms&quot;: 100,
		/* forward only valid packets */
		&quot;forward_crc_valid&quot;: true,
		&quot;forward_crc_error&quot;: false,
		&quot;forward_crc_disabled&quot;: false,
		/* GPS configuration */
		&quot;gps_tty_path&quot;: &quot;/dev/ttyS1&quot;,
		/* GPS reference coordinates */
		&quot;ref_latitude&quot;: 0.0,
		&quot;ref_longitude&quot;: 0.0,
		&quot;ref_altitude&quot;: 0
	}
}
</code></pre>
]]></description><link>https://forum.pycom.io/post/14007</link><guid isPermaLink="true">https://forum.pycom.io/post/14007</guid><dc:creator><![CDATA[misterlisty]]></dc:creator><pubDate>Tue, 02 Jan 2018 11:09:56 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Tue, 02 Jan 2018 11:23:43 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1981">@misterlisty</a></p>
<p dir="auto">Please remove your all add_channel and remove_channel code and replace it with the following (yes remove_channel should be first). It should then match your gateway configuration. Also change the SO_DR to 3 as mentioned in my previous post. Do try OTAA and ABP if you can.</p>
<pre><code>for i in range(0, 72):
    lora.remove_channel(i)

# set the 8 channels for MatchX configuration
for channel in range(0,8):
    lora.add_channel(channel, frequency=915200000+channel*200000, dr_min=0, dr_max=3)
</code></pre>
]]></description><link>https://forum.pycom.io/post/14008</link><guid isPermaLink="true">https://forum.pycom.io/post/14008</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Tue, 02 Jan 2018 11:23:43 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Tue, 02 Jan 2018 13:25:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/212">@jmarcelino</a> I get an error if i try to remove channels upto 72</p>
]]></description><link>https://forum.pycom.io/post/14012</link><guid isPermaLink="true">https://forum.pycom.io/post/14012</guid><dc:creator><![CDATA[misterlisty]]></dc:creator><pubDate>Tue, 02 Jan 2018 13:25:36 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Tue, 02 Jan 2018 13:40:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1981">@misterlisty</a><br />
Is your LoPy configured configured for the EU868 region by any chance?</p>
<p dir="auto">It should have selected 915Mhz if you chose Australia during firmware upgrade.</p>
<p dir="auto">Please check with</p>
<pre><code>from network import LoRa
lora = LoRa()
lora.frequency()
</code></pre>
<p dir="auto">also are you running the latest firmware?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.pycom.io/post/14014</link><guid isPermaLink="true">https://forum.pycom.io/post/14014</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Tue, 02 Jan 2018 13:40:38 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Tue, 02 Jan 2018 15:15:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/212">@jmarcelino</a></p>
<pre><code>from network import LoRa
lora = LoRa()
lora.frequency()
</code></pre>
<p dir="auto">doesn't return anything...</p>
<p dir="auto">My firmware is MicroPython v1.8.6-834-g5677703c on 2017-11-13; FiPy with ESP32</p>
]]></description><link>https://forum.pycom.io/post/14026</link><guid isPermaLink="true">https://forum.pycom.io/post/14026</guid><dc:creator><![CDATA[misterlisty]]></dc:creator><pubDate>Tue, 02 Jan 2018 15:15:08 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Tue, 02 Jan 2018 15:18:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1981">@misterlisty</a><br />
Did you try it on the REPL?</p>
<p dir="auto">Try <code>print(lora.frequency())</code></p>
]]></description><link>https://forum.pycom.io/post/14027</link><guid isPermaLink="true">https://forum.pycom.io/post/14027</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Tue, 02 Jan 2018 15:18:47 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Tue, 02 Jan 2018 23:01:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/212">@jmarcelino</a> The result is 868000000</p>
<p dir="auto">Appears like it isn't Australia..i assume i have to reapply firmware?</p>
]]></description><link>https://forum.pycom.io/post/14037</link><guid isPermaLink="true">https://forum.pycom.io/post/14037</guid><dc:creator><![CDATA[misterlisty]]></dc:creator><pubDate>Tue, 02 Jan 2018 23:01:44 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Tue, 02 Jan 2018 23:19:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1981">@misterlisty</a></p>
<p dir="auto">Yes that’s set to EU868. We need to reset the device in Pycom’s database before you do a firmware upgrade to change the location. Please send me the MAC address of the WLAN via chat or email a request to <a href="mailto:support@pycom.io" target="_blank" rel="noopener noreferrer nofollow">support@pycom.io</a>.</p>
<p dir="auto">Thanks</p>
<pre><code>import binascii
binascii.hexlify(network.WLAN().mac(),':').decode()
</code></pre>
]]></description><link>https://forum.pycom.io/post/14038</link><guid isPermaLink="true">https://forum.pycom.io/post/14038</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Tue, 02 Jan 2018 23:19:25 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Wed, 03 Jan 2018 15:26:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/212">@jmarcelino</a> Here is my Mac &lt;removed&gt;</p>
<p dir="auto">How do you know what setting my fopy has?  DO you sedn this during firmware update?</p>
]]></description><link>https://forum.pycom.io/post/14047</link><guid isPermaLink="true">https://forum.pycom.io/post/14047</guid><dc:creator><![CDATA[misterlisty]]></dc:creator><pubDate>Wed, 03 Jan 2018 15:26:11 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Wed, 03 Jan 2018 15:30:53 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">We have no record of your board, so I guess you never updated it?</p>
<p dir="auto">We really recommend always updating all our boards first. The factory firmware tends to be very old - or set to the wrong region as yours was.</p>
<p dir="auto">In any case if you run the upgrade tool and choose Australia, then it should set to 915Mhz correctly and you can use the code I posted.</p>
<p dir="auto">The firmware update instructions are at: <a href="https://docs.pycom.io/chapter/gettingstarted/installation/firmwaretool.html" target="_blank" rel="noopener noreferrer nofollow">https://docs.pycom.io/chapter/gettingstarted/installation/firmwaretool.html</a></p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.pycom.io/post/14052</link><guid isPermaLink="true">https://forum.pycom.io/post/14052</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Wed, 03 Jan 2018 15:30:53 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Sat, 06 Jan 2018 10:44:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/212">@jmarcelino</a> I have connected a wire from GND to G23 and the fopy will not go into upgrade mode.  Its connected to a pysense board while i atempt this.  It just running my normal code...can i upgrade while connected to the pysense board?  Instructions suggest yes.</p>
]]></description><link>https://forum.pycom.io/post/14160</link><guid isPermaLink="true">https://forum.pycom.io/post/14160</guid><dc:creator><![CDATA[misterlisty]]></dc:creator><pubDate>Sat, 06 Jan 2018 10:44:37 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Sat, 06 Jan 2018 12:04:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1981">@misterlisty</a><br />
Yes you can use the PySense and you don't need the wire anymore.</p>
<p dir="auto">Make sure you update the Pysense firs, follow the steps here:<br />
<a href="https://docs.pycom.io/chapter/pytrackpysense/installation/firmware.html" target="_blank" rel="noopener noreferrer nofollow">https://docs.pycom.io/chapter/pytrackpysense/installation/firmware.html</a></p>
<p dir="auto">When you have the new firmware on the Pysense  load the  the Pycom Firmware Update tool and tick the box which says Pytrack/Pysense:</p>
<p dir="auto"><img src="/assets/uploads/files/1515239802017-screen-shot-2018-01-06-at-11.55.52-resized.png" alt="0_1515239801584_Screen Shot 2018-01-06 at 11.55.52.png" class="img-responsive img-markdown" /></p>
<p dir="auto">With this setup you don't need the jumper wire as the tool will use the Pysense to put the FiPy into programming mode.</p>
]]></description><link>https://forum.pycom.io/post/14161</link><guid isPermaLink="true">https://forum.pycom.io/post/14161</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Sat, 06 Jan 2018 12:04:14 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Sat, 06 Jan 2018 12:07:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/212">@jmarcelino</a> Will atempt update through pysense board shortly but it not upgrading the firmware if i use an USB adapter, connect G23 &amp; GND...its running the normal code instead of going in upgrade mode..any suggestion here?</p>
]]></description><link>https://forum.pycom.io/post/14163</link><guid isPermaLink="true">https://forum.pycom.io/post/14163</guid><dc:creator><![CDATA[misterlisty]]></dc:creator><pubDate>Sat, 06 Jan 2018 12:07:40 GMT</pubDate></item><item><title><![CDATA[Reply to Lopy and Matchx usage on Sat, 06 Jan 2018 12:29:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1981">@misterlisty</a><br />
It has to go into flash programming mode, it's a very low level <em>hardware</em> feature.</p>
<p dir="auto">Are you sure you are connecting GND and G23 (also called P2 on the pin map <a href="https://docs.pycom.io/chapter/datasheets/downloads/fipy-pinout.pdf" target="_blank" rel="noopener noreferrer nofollow">https://docs.pycom.io/chapter/datasheets/downloads/fipy-pinout.pdf</a> )</p>
<p dir="auto">Also when you use an USB adapter what exactly is your setup?</p>
<p dir="auto">In any case I think it will be easier to use the Pysense.</p>
]]></description><link>https://forum.pycom.io/post/14164</link><guid isPermaLink="true">https://forum.pycom.io/post/14164</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Sat, 06 Jan 2018 12:29:49 GMT</pubDate></item></channel></rss>