Whenever user makes modifications to the underlying protocol source codes in NetSim and links it with the tool, it may affect:
In order to perform device specific code modifications (a set of routines or conditions that needs to be executed only for a specific type of devices (Eg: Gateways, Sensors, User Equipments etc)), you may use one or a combination of the following parameters:
enum enum_DeviceType
{
Not_Device=0,
/* Node 5-layer device */
NODE=1,//Wired or wireless
CPE=1,//Wired
MOBILESTATION=1,//Wireless
UE=1,//Wireless LTE user equipment
SUBSCRIBER=1,//wireless
SENSOR=1,//Wireless
SINKNODE=1,//Wireless
PANCOORDINATOR=1,//Wireless
/***Intermediate Device***/
enum enum_MACProtocol
{
MAC_PROTOCOL_NULL=0,
/***WIRELESS***/
MAC_PROTOCOL_IEEE802_11 = MAC_LAYER*100+1,//WLAN
MAC_PROTOCOL_IEEE802_15_4,//Zigbee
MAC_PROTOCOL_IEEE802_16,//Wi-Max
MAC_PROTOCOL_IEEE802_22,//Cognitive Radio
/***WIRED***/
MAC_PROTOCOL_IEEE802_3,//Ethernet
MAC_PROTOCOL_P2P,//Point to point link
5. Interface details