跳到正文
UC WorkRoom· 来源· @ucworkroom1 · X·· 8 小时前AI 评分13
正文 · 原文

So that's only one part of a bigger mechanism, right? So you have your trigger and then you have your alert.

They demoed this functionality in a game they dubbed Infection Game.

IMPORTANT R-Universe !!!!

Public Events Microbit-Epidemic

Micro:Bit - Used to Create AI

It's packed with Inputs, Outputs, Sensors & Radio Communication Features.

https://microbit.org/

💻📻💉📈 PROXIMITY-DRIVEN EPIDEMIC OVER BLUETOOTH

This project is an epidemiology-themed game, in which each player is a human wearing a micro:bit computer & one game-master administers the game.

DOCUMENTATION

https://github.com/mrc-ide/public-events-microbit-epidemic

The game is based on the well-known S-I-R Epidemiology models, where a person is either Susceptible to an infection, Infected (and/or Infectious) with that disease, or they have Recovered (or are Removed) from the game.

The game-master manually seeds an epidemic, causing one or more players to become Infected.

The MICRO:BITS SPREAD THE DISEASE TO EACH OTHER BY PROXIMITY, using their simple BLUETOOTH RADIO.

Live Analysis of the epidemic can be displayed as the game progresses, including epicurves & network graphs.

Each MICRO:BIT is labelled with a number so that the human can see where they fit on the network graph; who has infected them & who they infected.

Each game setup by the game-master has various parameters to describe the range of the infection, the required exposure time that causes an infection & the number of victims a new infection might cause.

Other variations of the game can include prizes for the best super-spreader, or the longest survivor & a further twist involves one of the Micro:Bits becoming a doctor who can cure other infected MICRO:BITS.

https://github.com/mrc-ide/public-events-microbit-epidemic/blob/master/docs/INTRO.md

IMPLEMENTATION

The "Infrastructure" methods used TO MAKE THE EPIDEMIC WORK.

https://github.com/mrc-ide/public-events-microbit-epidemic/blob/master/docs/IMPLEMENTATION.md

SEEDING THE EPIDEMIC

An infection is seeded from the laptop, which sends via serial to the master a message containing the victim id & an indication of how the victim should make their contacts.

The master then broadcasts this on the RADIO (REGISTERED group), & the susceptible victim (who by definition is also listening on the REGISTERED group) hears the message, matches their id with the ID in the message & acts accordingly.

INFECTION

When a minion is infected, it broadcasts a message every second to anyone who listens, at the transmision power set in the parameters offering to contact (and if susceptible, infect) them.

Minions keep a count of the number of infection offers they have received from each potential victim & once the exposure threshold is reached, the "contact" replies to the potential infector accepting their offer.

The infector will receive more replies from potential victims than it wants, so therefore it replies to confirm contact with each victim.

The infector recovers & the contacts it made who were susceptible becoming infected.

REPORTING INFECTION STATUS

When a susceptible minion becomes infected, it broadcasts the relevant data to the master every second until the master replies with an acknowledgement.

The master forwards the infection data over serial to the laptop; a CSV file gets appended to & the slideshow visualisations are updated.

RECOVERY

An INFECTED MINION has made all its contacts, it recovers: it stops broadcasting offers to infect other minions & ignores any further victim offers that it receives.

It broadcasts its recovery to the master, until it receives an acknowledgement & the master forwards it to the laptop for updating the CSV file & the Slideshow visualisations.

RESET THE EPIDEMIC

The laptop sends a message to the master, telling it to reset the micro:bits & start another Epidemic.

The master broadcasts this to the MICRO:BITS & the micro:bits re-broadcast the message once, before reseting & returning to the UNREGISTERED radio group.

They start broadcasting their willingness to be part of the next epidemic game.

https://github.com/mrc-ide/public-events-microbit-epidemic/blob/master/docs/IMPLEMENTATION.MD

来源:UC WorkRoom · x.com