satellite-orbiter-net-device-lora.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2013 Magister Solutions Ltd.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Sami Rantanen <sami.rantanen@magister.fi>
19  */
20 
21 #ifndef SATELLITE_ORBITER_NET_DEVICE_LORA_H
22 #define SATELLITE_ORBITER_NET_DEVICE_LORA_H
23 
24 #include "lorawan-mac.h"
25 #include "satellite-channel.h"
26 #include "satellite-isl-arbiter.h"
27 #include "satellite-mac.h"
28 #include "satellite-phy.h"
31 
32 #include <ns3/error-model.h>
33 #include <ns3/mac48-address.h>
34 #include <ns3/net-device.h>
35 #include <ns3/output-stream-wrapper.h>
36 #include <ns3/traced-callback.h>
37 
38 #include <map>
39 #include <set>
40 #include <stdint.h>
41 #include <string>
42 #include <vector>
43 
44 namespace ns3
45 {
46 
56 {
57  public:
62  static TypeId GetTypeId(void);
63 
68 
74  void ReceivePacketUser(Ptr<Packet> packet, const Address& userAddress);
75 
81  void ReceivePacketFeeder(Ptr<Packet> packet, const Address& feederAddress);
82 
88  void ReceiveFromIsl(Ptr<Packet> packet, Mac48Address destination);
89 
97  virtual bool SendControlMsgToFeeder(Ptr<SatControlMessage> msg,
98  const Address& dest,
99  Ptr<SatSignalParameters> rxParams);
100 
106  virtual void ConnectUt(Mac48Address utAddress, uint32_t beamId);
107 
113  virtual void DisconnectUt(Mac48Address utAddress, uint32_t beamId);
114 };
115 
116 } // namespace ns3
117 
118 #endif /* SATELLITE_ORBITER_NET_DEVICE_LORA_H */
SatOrbiterNetDevice to be utilized in geostationary satellite.
SatOrbiterNetDeviceLora to be utilized in geostationary satellite.
virtual void DisconnectUt(Mac48Address utAddress, uint32_t beamId)
Disconnect a UT to this satellite.
void ReceivePacketUser(Ptr< Packet > packet, const Address &userAddress)
Receive the packet from the lower layers, in network regeneration on return link.
static TypeId GetTypeId(void)
Get the type ID.
void ReceivePacketFeeder(Ptr< Packet > packet, const Address &feederAddress)
Receive the packet from the lower layers, in network regeneration on forward link.
virtual bool SendControlMsgToFeeder(Ptr< SatControlMessage > msg, const Address &dest, Ptr< SatSignalParameters > rxParams)
Send a control packet on the feeder link.
void ReceiveFromIsl(Ptr< Packet > packet, Mac48Address destination)
Receive a packet from ISL.
virtual void ConnectUt(Mac48Address utAddress, uint32_t beamId)
Connect a UT to this satellite.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.