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

Recommendations of the fencing event #87

Closed
huangpeizhi opened this issue Nov 23, 2016 · 10 comments
Closed

Recommendations of the fencing event #87

huangpeizhi opened this issue Nov 23, 2016 · 10 comments

Comments

@huangpeizhi
Copy link

Hi, @tidwall

In the fencing event, each ENTER and EXIT are belong to the same group, you can consider adding a unique identity in the event of recognition?
This can be avoided, while many fences ENTER/EXIT after the information storage, sorted in order to know each Member of the Group

thanks!

huangpeizhi

@tidwall
Copy link
Owner

tidwall commented Nov 23, 2016

In the fencing event, each ENTER and EXIT are belong to the same group, you can consider adding a unique identity in the event of recognition?

I can add a unique event_id for each message such as:

{
  "command":"set",
  "detect":"enter",
  "key":"fleet",
  "id":"bus1",
  "event_id":"8aa68be86f92512a0d7c6804",
  ...
}

Would this be helpful?

@huangpeizhi
Copy link
Author

I want is a set of events that are associated with the identification , in determining the entity in and out of the fence, the ENTER/EXIT event is associated.

image

@huangpeizhi
Copy link
Author

what is it combined of event_id?

@tidwall
Copy link
Owner

tidwall commented Nov 28, 2016

Sorry for the delayed response.

I think I understand now. So you would like to have your messages grouped by the "enter"/"exit" events?

Perhaps something like this:

{"group_id":"8aa68be86f92","key":"fleet","id":"bus1","detect":"enter",...}
{"group_id":"8aa68be86f92","key":"fleet","id":"bus1","detect":"inside",...}
{"group_id":"8aa68be86f92","key":"fleet","id":"bus1","detect":"inside",...}
{"group_id":"8aa68be86f92","key":"fleet","id":"bus1","detect":"exit",...}

{"group_id":"75a3ef68cc15","key":"fleet","id":"bus1","detect":"enter",...}
{"group_id":"75a3ef68cc15","key":"fleet","id":"bus1","detect":"inside",...}
{"group_id":"75a3ef68cc15","key":"fleet","id":"bus1","detect":"inside",...}
{"group_id":"75a3ef68cc15","key":"fleet","id":"bus1","detect":"exit",...}

This is a good idea and I think that it's possible, but I'll need to dig a little deeper before making promises.

@huangpeizhi
Copy link
Author

Yes, it is.
Because, in practice, many in/out is does not meet the requirements and need to remove certain conditions.

-:)

@huangpeizhi
Copy link
Author

Hi, @tidwall

Note the same machine multiple tile38 process,tile38 can't produce the same group_id,can refer to mongodb objectid.

tidwall added a commit that referenced this issue Dec 6, 2016
@tidwall
Copy link
Owner

tidwall commented Dec 6, 2016

I just pushed a build to master that groups with the key "group" and uses the BSON ObjectID format.

Let me know if this works for you.

@huangpeizhi
Copy link
Author

@tidwall,

Thank you very much, I've put the GROUPID in database, inspection data.
image

@tidwall
Copy link
Owner

tidwall commented Dec 7, 2016

That's great to hear. Let me know if there's anything you need.

@huangpeizhi
Copy link
Author

@tidwall ,
Running one day, no problem, i close the issue, if problems are found, then reopen.

thanks!

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

No branches or pull requests

2 participants