Questions tagged [unetstack]

Questions on UnetStack underwater stack and network simulator

Questions related to the UnetStack underwater stack and network simulator.

118 questions
2
votes
2 answers

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:new String("hello"),…
moerot
  • 131
  • 5
2
votes
1 answer

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 gets stuck for sometime and this error appears…
Priyansh
  • 131
  • 5
2
votes
1 answer

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 scratch.
2
votes
1 answer

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 network lifetime in practice. I noticed the Scheduler…
2
votes
1 answer

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 ?
Priyansh
  • 131
  • 5
2
votes
1 answer

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 ?
Jay Patel
  • 1,374
  • 1
  • 8
  • 17
2
votes
2 answers

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 terminal reads: > bin/unet audio Native library…
manuignatius
  • 143
  • 8
2
votes
2 answers

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 can use for preliminary testing for other modem ?…
Jay Patel
  • 1,374
  • 1
  • 8
  • 17
2
votes
1 answer

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 like: phy.send(new…
moerot
  • 131
  • 5
2
votes
1 answer

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 calculate the distance between B and C that are…
Priyansh
  • 131
  • 5
2
votes
1 answer

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 coordinates to the nodes. How can i provide the…
Jay Patel
  • 23
  • 3
2
votes
1 answer

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 established to the modem at port 1100. I follow…
moerot
  • 131
  • 5
2
votes
2 answers

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 added to container of each node in the…
2
votes
1 answer

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]. Now how can node B extract the information from…
2
votes
1 answer

How to calculate Round Trip Time in Ping utility implementation in UnetStack

I had developed ping utility similar to the ping example available in UnetStack1.3 (/samples/ping) to ping a remote node over a multi-hop link, but unable to calculate the Round Trip Time (RTT), when I transmit ping packet using routing agent with…