You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The mosaik protocol handler can be used to access data from the Smart Grid co-simulation framework mosaik.

To connect odysseus and mosaik, the odysseus query has to run first and after that the simulation in mosaik can be started.


  • cleanStrings If set to true, all underscores (_) in attribute names are replaced by hyphen (-), so that they can be used in expressions.



mosaik = ACCESS({TRANSPORT = 'TCPServer', 
                SOURCE = 'Mosaik', 
                DATAHANDLER = 'KeyValueObject', 
                WRAPPER = 'GenericPush',
                OPTIONS =[
                    ['port', '5554'],
                    ['byteorder', 'LITTLE_ENDIAN']

///short version:
mosaikInput = MOSAIK({source = 'MosaikReceiver',
                   type = 'simapi'})
///                type = 'zeromq'})

Simulator in mosaik

To allow the connection in mosaik a simulator has to be created as follows:

Mosaik Simulator
sim_config = {’Odysseus’: 
	{’connect’: ’’ } 

odysseusModel = world.start(’Odysseus’, step_size=60)
odysseus = odysseusModel.Odysseus.create(1)
  • No labels