<?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[Receiving downlink packets (e.g join-accept) does not work]]></title><description><![CDATA[<p dir="auto">Hi all, I am trying to sniff downlink packets (e.g. join-accept) by using the FiPy device, but I am not able to receive any data.</p>
<p dir="auto">As it is detailed here: <a href="https://www.thethingsnetwork.org/docs/lorawan/frequency-plans.html#eu863-870" target="_blank" rel="noopener noreferrer nofollow">https://www.thethingsnetwork.org/docs/lorawan/frequency-plans.html#eu863-870</a> I am using the &quot;869.525 - SF9BW125 (RX2 downlink only)&quot; frequency, SF and BW. (In order to do the tests I have another FiPy device, which connects to the TTN network (OTAA) and sends some UP packets repeatedly) - I have also tried to send some downlink packets from the TTN console.</p>
<p dir="auto">Same tests were done with other UP frequencies such as 868100000 and it worked well. Do you know what I am doing wrong?</p>
<p dir="auto">Thanks!</p>
<p dir="auto">Code in use:</p>
<pre><code>from network import LoRa
import binascii
import socket
import time

_frequency   = 869525000 
_tx_power    = 14
_bandwidth   = LoRa.BW_125KHZ
_sf          = 9
_preamble    = 8
_coding_rate = LoRa.CODING_4_5
_power_mode  = LoRa.ALWAYS_ON

lora = LoRa(mode=LoRa.LORA, frequency=_frequency, tx_power=_tx_power, bandwidth=_bandwidth,
    sf=_sf, preamble=_preamble, coding_rate=_coding_rate, power_mode=_power_mode)

print(&quot;[*] fq:%d sf:%d bw:%d&quot; % (_frequency, _sf, _bandwidth))

s = socket.socket(socket.AF_LORA, socket.SOCK_RAW)
s.setblocking(False)

while True:
    response=s.recv(1024)
    if len(response) &gt; 0:
        print(&quot;[*] Packet received: %s&quot; % binascii.hexlify(response))
        response = &quot;&quot;
</code></pre>
]]></description><link>https://forum.pycom.io/topic/5982/receiving-downlink-packets-e-g-join-accept-does-not-work</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 03:10:18 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/5982.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 17 May 2020 11:53:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Receiving downlink packets (e.g join-accept) does not work on Sun, 17 May 2020 11:53:30 GMT]]></title><description><![CDATA[<p dir="auto">Hi all, I am trying to sniff downlink packets (e.g. join-accept) by using the FiPy device, but I am not able to receive any data.</p>
<p dir="auto">As it is detailed here: <a href="https://www.thethingsnetwork.org/docs/lorawan/frequency-plans.html#eu863-870" target="_blank" rel="noopener noreferrer nofollow">https://www.thethingsnetwork.org/docs/lorawan/frequency-plans.html#eu863-870</a> I am using the &quot;869.525 - SF9BW125 (RX2 downlink only)&quot; frequency, SF and BW. (In order to do the tests I have another FiPy device, which connects to the TTN network (OTAA) and sends some UP packets repeatedly) - I have also tried to send some downlink packets from the TTN console.</p>
<p dir="auto">Same tests were done with other UP frequencies such as 868100000 and it worked well. Do you know what I am doing wrong?</p>
<p dir="auto">Thanks!</p>
<p dir="auto">Code in use:</p>
<pre><code>from network import LoRa
import binascii
import socket
import time

_frequency   = 869525000 
_tx_power    = 14
_bandwidth   = LoRa.BW_125KHZ
_sf          = 9
_preamble    = 8
_coding_rate = LoRa.CODING_4_5
_power_mode  = LoRa.ALWAYS_ON

lora = LoRa(mode=LoRa.LORA, frequency=_frequency, tx_power=_tx_power, bandwidth=_bandwidth,
    sf=_sf, preamble=_preamble, coding_rate=_coding_rate, power_mode=_power_mode)

print(&quot;[*] fq:%d sf:%d bw:%d&quot; % (_frequency, _sf, _bandwidth))

s = socket.socket(socket.AF_LORA, socket.SOCK_RAW)
s.setblocking(False)

while True:
    response=s.recv(1024)
    if len(response) &gt; 0:
        print(&quot;[*] Packet received: %s&quot; % binascii.hexlify(response))
        response = &quot;&quot;
</code></pre>
]]></description><link>https://forum.pycom.io/post/32752</link><guid isPermaLink="true">https://forum.pycom.io/post/32752</guid><dc:creator><![CDATA[dromero]]></dc:creator><pubDate>Sun, 17 May 2020 11:53:30 GMT</pubDate></item></channel></rss>