set common information, update MagBlock.comminfo

        :param infostr: should be met one of the following options:

                            * infostr is a dict, {k1:v1, k2:v2}
                            * infostr is a string, with format like: "k1=v1, k2=v2"

def setCommInfo(infostr):
        """ set common information, update MagBlock.comminfo

        :param infostr: should be met one of the following options:

                            * infostr is a dict, {k1:v1, k2:v2}
                            * infostr is a string, with format like: "k1=v1, k2=v2"
        """
        if isinstance(infostr, dict):
            for k, v in infostr.items():
                MagBlock.comminfo[k] = v
        elif isinstance(infostr, str):
            for k, v in MagBlock.str2dict(infostr).items():
                MagBlock.comminfo[k] = v
        else:
            print("Information string ERROR.")