Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial support for Snell Kahuna K360 Tally #589

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

peternewman
Copy link

@peternewman peternewman commented Aug 14, 2023

As yet untested with a real device, just lots of data dumps.

See also lots of exploration in https://github.com/peternewman/kahuna-tally/

At the moment if it gets two packets of data in one IP packet (e.g. when you make a cut), it only parses the first one. I've not been able to get packet to work in a for/while loop yet...

As yet untested with a real device
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello there peternewman 👋

Thank you for opening your first PR for the Tally Arbiter project!

We will review it soon!

TallyArbiter fosters an open and welcoming environment for all our contributors. Please adhere to our Code Of Conduct.

Comment on lines +36 to +45
this.last_heartbeat = Date.now();
this.heartbeat_interval = setInterval(() => {
if (Date.now() - this.last_heartbeat > 5000) {
clearInterval(this.heartbeat_interval);
logger(`Source: ${source.name} Snell K360 connection heartbeat timed out`, 'error');
// this.client.end();
// this.client.destroy();
// this.connected.next(false);
}
}, 1000);
Copy link
Author

@peternewman peternewman Aug 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied this from the AnalogWayLivecore but I see there's also some more central/higher level stuff done too so maybe this isn't required...

@JTF4
Copy link
Collaborator

JTF4 commented Dec 14, 2023

Been a bit and I've got a bit of time so I can finally check in on this project. Any luck with getting things to work?

@peternewman
Copy link
Author

Been a bit and I've got a bit of time so I can finally check in on this project. Any luck with getting things to work?

Hi @JTF4 ,

I assume you're asking in terms of getting it merged, rather than as a potential user of this PR?

I've got sidetracked with other bits, so haven't given this much work from my end and still haven't had a chance to test with real hardware yet. Replaying dummy data from a capture looks promising though.

This was my main blocker still, that it wouldn't match multiple instances of the packet within one chunk of data, which feels like it ought to be possible with that parser, and probably solved elsewhere in the codebase already?:

At the moment if it gets two packets of data in one IP packet (e.g. when you make a cut), it only parses the first one. I've not been able to get packet to work in a for/while loop yet...

@JTF4
Copy link
Collaborator

JTF4 commented Dec 25, 2023

Ahhhh. Where were you parsing that data in your code?

1 similar comment
@JTF4
Copy link
Collaborator

JTF4 commented Dec 25, 2023

Ahhhh. Where were you parsing that data in your code?

@josephdadams
Copy link
Owner

@peternewman did you ever get any further on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants