aboutsummaryrefslogtreecommitdiffstats
path: root/apps/grgsm_decode
diff options
context:
space:
mode:
authorPiotr Krysik <ptrkrysik@gmail.com>2016-07-15 13:21:44 +0200
committerPiotr Krysik <ptrkrysik@gmail.com>2016-07-15 13:21:44 +0200
commit19028868cc9ccc09d3618c380a3959794aa99b32 (patch)
tree52b2671dc7deb80ceca4aaf85803ce0c42e69df6 /apps/grgsm_decode
parent6577ec215e502edde35ee1c35ca6c2d6e4038587 (diff)
parent4ac2251b9bd76648ccbaf55147b17604770c6eee (diff)
Merge branch 'development' of https://github.com/ptrkrysik/gr-gsm into development
Diffstat (limited to 'apps/grgsm_decode')
-rwxr-xr-xapps/grgsm_decode8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/grgsm_decode b/apps/grgsm_decode
index 89c03d3..14578d5 100755
--- a/apps/grgsm_decode
+++ b/apps/grgsm_decode
@@ -105,7 +105,9 @@ class grgsm_decoder(gr.top_block):
self.cch_decoder = grgsm.control_channels_decoder()
+ self.socket_pdu_server = blocks.socket_pdu("UDP_SERVER", "127.0.0.1", "4729", 10000) #added in order to avoid generating ICMP messages
self.socket_pdu = blocks.socket_pdu("UDP_CLIENT", "127.0.0.1", "4729", 10000)
+
if self.verbose:
self.message_printer = grgsm.message_printer(pmt.intern(""), True, True, False)
@@ -362,8 +364,8 @@ if __name__ == '__main__':
break
# open udp port 4729 to avoid icmp messages
- sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
- sock.bind(("localhost", 4729))
+ #sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
+ #sock.bind(("localhost", 4729))
# instanciate decoder
tb = grgsm_decoder(timeslot=options.timeslot, subslot=options.subslot, chan_mode=options.chan_mode,
@@ -379,4 +381,4 @@ if __name__ == '__main__':
tb.wait()
# we are done, close socket
- sock.close()
+ #sock.close()