Comments (6)
Afaik there is no mechanism built into artnet4j that would prevent this behaviour (only send every nth second). Maybe android is messing with the sockets. I think I can not really help you with that problem, but I'll let the issue open for others with artnet4j & android experience.
from artnet4j.
Hi, thanks for the provided video, would it also be possible to provide a minimal example which shows the problem? Without code it is difficult to help you with that.
from artnet4j.
ArtNetClient artnet=new ArtNetClient();
artnet.start();
artnet.getArtNetServer().addListener(
new ArtNetServerEventAdapter() {
@Override public void artNetPacketReceived(ArtNetPacket packet) {
dmxData = artnet.readDmxData(0, 0);
System.out.println("1:" + Byte.toUnsignedInt(dmxData[0]) + " 2:" + Byte.toUnsignedInt(dmxData[1]));
int a,b;
a=Byte.toUnsignedInt(dmxData[0])*20/255;
b=Byte.toUnsignedInt(dmxData[1])*20/255;
binding.textview1.setText("1:" + a + " 2:" + b);
binding.progressBar.setProgress(a);
binding.progressBar2.setProgress(b);
}
});
from artnet4j.
Does this behaviour happen only on android or is it possible to reproduce it on a computer as well?
To be honest, I can't find anything special in the code and I don't own an android phone. So it's a bit difficult to test.
from artnet4j.
It's impossible to try that on android studio because of the network adaptor isolated from the host.
It never hapens with other software.
What I think is that it stops reading as soon as artnet stop transmitting, but, artnet protocol can stay "mute" up to 3 seconds if notthing changes, it only talk when something change or, if not, it sends a confirm that is alive every 3 secs.
A workaround I found is to use a channel which I don't use and give it a sinewave, so values are always changing and the connecrion is always mantained.
from artnet4j.
No problem, in my app I only use the reciver, but this could be helpful for someone with my preblem.
BTW the workaround works fine (if you can control the artnetOut)
from artnet4j.
Related Issues (20)
- receive event HOT 6
- Broadcast is not enabled by default on socket
- DmxData Buffer doesn't go beyond 15 universes HOT 3
- Short and Long node names are created incorrectly
- discoverNode() should inform listeners if new node is not exactly the same as previously discovered node with same IP HOT 2
- Art-Net 4 node discovery is not fully supported
- Add module-info for java 9 modules HOT 1
- Add broadcast receive
- Artnet Packets not picked up by Madrix HOT 2
- Artnet Node disconnected automatically
- Issues with ArtNetClient Sequence IDs HOT 1
- Misundertandings Using the library HOT 1
- Invalid header message when receiving broadcast from MadMapper HOT 2
- Return ArtPollReply package
- ArtNetServer blocks when used as sender HOT 3
- Exceptions usually are swallowed HOT 7
- DmxData is not able to go to 255 because it is a byte. HOT 1
- Please release artnet4j into maven central HOT 2
- Add port selection HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from artnet4j.