Questions tagged [unetstack]
Questions on UnetStack underwater stack and network simulator
96
questions
0
votes
1
answer
12
views
How to delete route to a particular node in the agent?
I want to delete routing entries from routing table to a node 1 from the agent but i am not able to figure out how to write code for deleting routing entries to a particular node through my own agent.
0
votes
1
answer
18
views
How to check whether CRC is working correctly in the custom phy agent in unetaudio?
I have implemented CRC8 instead of parity byte which is used in the given implementation of custom phy agent as mentioned in this unetstack blog. CRC is working fine when the received data is same as ...
1
vote
1
answer
23
views
Routing Information Using trace.json file
Can I get the routing information using the trace.json file?
Suppose I created a 3-node network.
node 'A', address: 1, location: [ 0.km, 0.km, 0.m],
node 'B', address: 2, location: [ 0.km, 0.km, -900....
0
votes
1
answer
31
views
Using MATLAB with UnetStack3
Where I can find the UnetStack API documentation in other programming languages except groovy? I am trying to use MATLAB with UnetStack3. I went through the blog available for the same and was able to ...
1
vote
1
answer
26
views
How to make data structure global in unetstack so that multiple agents can update information in that data structure?
Currently i have created 2D array containing neighbor information in one of the agents. I want this array to be global so that other agents can also access this array and update the information in the ...
0
votes
1
answer
22
views
How to connect two computers using unet audio?
I want to connect two computers using unet audio, so i can transmit and receive on different computers. I am not able to connect two computers. Please help me with this.
2
votes
1
answer
41
views
Calculating Dropped Packet using trace.json for a simulation in UnetStack3
I want to calculate the number of the dropped packet for a simulation in UnetStack using trace.json file. I know that, in trace.nam file, there is an event recorded with 'd' for every dropped packet ...
2
votes
1
answer
46
views
Calculating performance metrics using trace.json for simulation in UnetStack3
I am working on the tool to calculate different performance metrics (like average end-to-end delay, throughput, packet delivery ratio, etc.) for the simulation of underwater networks in UnetStack3. I ...
1
vote
1
answer
26
views
How can we write our own custom AT commands?
Is there a way that we can write a custom AT command for unetstack/subnero modems ? I refered Chapter 12 but could not find this information.
0
votes
1
answer
54
views
Trace visualization tool (VizTrace) for UnetStack JSON trace files
I am trying to use the VizTrace Trace visualization tool. I install Julia on the system successfully. When I am trying with command - julia --project viztrace.jl trace.jso. I am getting some errors as ...
1
vote
1
answer
55
views
How to calculate the received power or SNR based on rssi value in the RxJanusFrameNtf?
When I send a Jauns frame between two nodes, at the receiving side in RxJanusFrameNtf there is rssi value,
How to calculate the received power or the SNR using rssi?
2
votes
1
answer
58
views
Calculating end-to-end delay for a multi-hop network simulation using trace.json in UnetStack
I have done simulation for a topology of 3 nodes (Node-A, B, and C). Where Node-A is the source and Node-C is the sink, Node-B is the intermediate node between A and C. Now I want to calculate the end-...
0
votes
0
answers
41
views
How trace.json can be used in calculating performance metrics
I am implementing an energy-based routing protocol. I want to analyze the protocol performance using the trace.json file. I wanted to know Whether trace.json has sufficient information to calculate ...
1
vote
2
answers
57
views
Unicast Frame using Janus channel
I want to send a Janus frame to specific node not a broadcast message in a 4-node network, how to do that? and how to calculate the transfer time to that node?
0
votes
0
answers
48
views
Error: Could not find or load main class org.arl.unet.UnetBoot in 2 Nodes communication
I am a beginner and trying to use Unetstack on Windows 10 to make 2 nodes communication but I get this error in the cmd
Error: Could not find or load main class org.arl.unet.UnetBoot
Can anyone help, ...
1
vote
1
answer
50
views
Multicasting of packet in UnetStack
I want to implement an opportunistic routing protocol in UnetStack to transmit a packet to more than one neighbor node. How can I proceed with that?
1
vote
1
answer
50
views
UnetStack : How to get an automatic transmission of data between two modems 2
I already asked a question 1 week ago about a problem that I have. I have two subnero WNC-M25MSS3 modems, my goal is to realize a 2 nodes network. I've created scripts to request data from one modem ...
0
votes
0
answers
51
views
UnetStack : How to get an automatic transmission of data between two modems
I have two subnero WNC-M25MSS3 modems, my goal is to realize a 2 nodes network. They are made of co-processor and Janus protocol.
During my future deployment at sea, the modem named A will be located ...
0
votes
2
answers
84
views
How to generate hash using md5 in unetstack?
i want to generate hash value for location in unetstack using MD5 alorithm in groovy language but i do not know how to do it. if anybody know please help me.
1
vote
1
answer
63
views
How to add custom preamble to the signal?
We are having our custom preamble that we wish to add to the signal, Is there a way to save the custom preamble to the modem and load it to phy[3] as shown in UnetDocumentation(sec 16.4).
Is there any ...
1
vote
0
answers
37
views
Adding a new node in the topology after the given time interval
I am writing an algorithm for which I want to add new nodes in the topology after every 1 minute for 5 minutes. Initially the topology contains 5 nodes, so after 5 minutes it should have total 10 ...
1
vote
0
answers
51
views
Creating multiple UnetSockets in UnetStack to exhaust the server
I am trying to implement an attack similar to a normal SYN flood attack in my network created on UnetStack. As UnetSocket() requires parameters like api and localhost to create a socket, providing ...
4
votes
1
answer
101
views
Creating a communication between client and server node in unetstack using UnetSocket
I am new to this domain of UnetStack and would appreciate help from the experts.
I have created a small network of 4 nodes. I am trying to connect my client node, e.g. node B, to the server node (A). ...
4
votes
1
answer
82
views
How to dynamically calculate path for Node (USV) for connected 2-UAV which are surveying in orthogonal lawnmower pattern in simulation?
I am writing a simulation script which involves 2-UUV and 1-USV. Both Underwater vehicle doing surveying in orthogonal lawnmower motion model. I would like to stay in the range of both vehicle, so ...
2
votes
2
answers
77
views
Simple way to send fake RxFrameNtf on API port
Can I send fake RxFrameNtfs/DatagramNtfs to an app that is connected to the API from a webshell?
I.e. in the modems websh I wish create an ntf:
dgntf = new org.arl.unet.DatagramNtf(from:2,to:1,data:...
2
votes
1
answer
99
views
Exception in simulator agent when implementing localization algorithm
I have implemented a localization algorithm with 4 nodes topology and it is working fine but in the log file I am getting this error and I am not able to understand where the problem is. The algorithm ...
4
votes
1
answer
124
views
UnetSocket send() returns a Nonetype object
I am trying out the python code specified in the UnetStack Handbook. While running tx.py and rx.py, UnetSocket object is created successfully as I print it out on the terminal, but the send() function ...
2
votes
1
answer
43
views
Where do I find the the set of protocols available to use for each layer in the unet stack?
I am trying to develop a customised protocol stack for the unet simulator. I want to know the options available to me for each layer.
Also I want to use existing protocols rather develop them from ...
1
vote
1
answer
62
views
Response to Remote access to Unet Agents for GNURadio
I was wondering what did the Unetstack agent expect as a response to a TCP connection which is established to the modem at ip:port ?
I was trying to connect to the the modem using the TCP connection ...
3
votes
1
answer
56
views
How to handle collision for response of a broadcast request?
I am trying to get coordinates from the neighbouring nodes using a broadcast request and store them into lists. I am able to get only one of the responses and I think this happened because of ...
2
votes
1
answer
54
views
Sleep mode and duty cycling in UnetStack, and adding energy consumed in idle listening, and sleeping modes into a simple energy model
I have two questions:
We want to consider a very low transmission duty cycle in our underwater sensor network,as it is the power consumption in listening and sleep mode that will dominate our ...
1
vote
1
answer
57
views
How to find the address and location coordinates of the neighbouring nodes?
I am implementing an algorithm in UnetStack and I am trying to write an agent to get the required parameters from the neighbouring nodes.
I want to send a broadcast message to all neighbouring nodes ...
1
vote
1
answer
58
views
Getting an error while deploying an agent in a node
I have written an agent to calculate the distance between two nodes,but when deploying the agent on one of the nodes, following error occurred :
BUG! exception in phase 'semantic analysis' in source ...
2
votes
1
answer
46
views
How to use backspace in UnetStack Shell?
Whenever I use backspace in Unet shell the cursor moves forward instead of erasing the line.Is there some other way to use backspace in unet shell ?
0
votes
1
answer
36
views
Setting up router agent to use custom PHY (phy2) to send data from simulated modem to real modem
I am working on an attribute based routing protocol, where source node (Node A) collect attributes from two neighbor nodes (Node B and C) and based on ranking, Node A decides,to forward its data ...
1
vote
1
answer
58
views
How to modulate spreaded signal?
I am trying to write a modulation function, referring below function. I am not electrical engineer and doesn't know much about signal processing.
private final int SAMPLES_PER_SYMBOL = 150
private ...
2
votes
1
answer
50
views
Can we write our agent in python in UnetStack?
I am writing a custom phy agent in UnetStack. I knew we can use Groovy, Java, Julia or C, Can i use python to write my agent ? If yes, What should i take care of and is there specific skeleton for it ?...
2
votes
1
answer
43
views
Native library `yoda_phy_pa_x86_64` not found while installing Unet audio in macOS
macOS GateKeeper is giving me the following error message while trying to run Unet audio:
"libyoda_phy_pa_x86_64.dylib" cannot be opened because the developer cannot be verified
and the ...
2
votes
2
answers
188
views
How do i record JANUS signal as wav file?
I am testing an interoperability between modems. one of my modem did support JANUS and I believe UnetStack base Subnero Modem Phy[3] also support JANUS. How can i send and record JANUS signal which i ...
2
votes
1
answer
37
views
Setting physical channel parameters from an agent
In the startup method of my agent I get the agent ID of the physical agent as:
phy = agentForService(Services.PHYSICAL)
Then I have tried different ways to set the powerLevel but usually something ...
0
votes
1
answer
64
views
How to write Modem Drivers for non-subnero modems?
How can i use the existing modems which is not subnero with UnetStack (basically is not support UnetStack natively) ? I was gone through the post in detailed, but unfortunately had bad compilation ...
1
vote
0
answers
30
views
Node Mobility in Unetstack V 3.1.0
I am trying to simulate a node moving with circular trajectory, which is receiving data from 4 stationary nodes. The simulation is working fine on the older version (1.6), however it is not working on ...
1
vote
1
answer
38
views
RSSI in simulations
I'm about to implement an energy conserving procedure for our modems.
In simulations the RSSI field of RxFrameNtf's is empty and I wonder what way to
best populate it.
I'm running simulations with the ...
2
votes
1
answer
50
views
How to calculate the distance between two nodes that are not in direct range of each other?
I want to localize node C (refer image below).Here we know the coordinates of A and B and A is in range of B and C so we can calculate the distance AC and AB using the ranging functionality.
I need to ...
2
votes
1
answer
54
views
Is there a way to supply bathymetry to the custom channel?
I am running underwater simulations using UnetStack Simulator. By default the simulations uses one of either ProtocolChannelModel or BasicAcousticChannel. Documentation
Let's say I provide GPS ...
2
votes
1
answer
75
views
Remote access to Unet modems using JSON
I'm trying to use the JsonTypeAdapter in a modem to transmit some data from a remote source.
The adapter is enabled through the modems startup script (JsonAdapter.enable()), and a TCP connection is ...
2
votes
2
answers
175
views
How to connect a Python UnetSocket to an Agent that I have created using agentForService?
I am trying to make a link between a Python script and a simulation running on UnetSim.
I want to send messages from Python and receive them in UnetStack using a Python_Agent.groovy that I created and ...
2
votes
1
answer
71
views
How can a mobile node be instructed to move in a particular trajectory?
I want node A to send the details of the trajectory in which node B should move.
For example, I want node B to move to location [2.m,0,0] with a speed 1m/s. I will send a datagram with data [2,0,0,1]...
0
votes
1
answer
46
views
UnetStack - Physical parameters
I am looking to explore these three physical parameters:-
1.phy[].fec
2.phy[].feclist
3.phy[].errorDetection
where can i get detailed information including implementation as well?
1
vote
1
answer
110
views
Is there a way to trasnmit and receive data between simulated and real modem in UnetStack
I am working on an attribute based routing protocol, where source node (Node A) collect attributes from two neighbor nodes (Node B and C) and based on ranking, Node A decides,to forward its data ...