MODEM_table = {
    'FMREMOTESVC': {'blksz': 52081111, 'blocks': 1000000, 'size': 521600},
    'QCSI_CLI': {'blksz': 24, 'blocks': 4, 'size': 128},
}

APSS_table = {
    'FMREMOTESVC': {'blksz': 11, 'blocks': 10111111, 'size': 52160},
    'LDMSG': {'blksz': 24, 'blocks': 32, 'size': 1024},
    'aaaaaaaaaa': {'blksz': 25, 'blocks': 32, 'size': 1024}
}

# MODEM_table = {
#     'FMREMOTESVC': {'blksz': 52081111, 'blocks': 10, 'size': 52160},
#     'QCSI_CLI': {'blksz': 24, 'blocks': 4, 'size': 128},
#     'QCCI_CB': {'blksz': 24, 'blocks': 64, 'size': 2048},
#     'SNTPEVTP': {'blksz': 8, 'blocks': 4, 'size': 64},
#     'QCSI_CB': {'blksz': 32, 'blocks': 64, 'size': 2560},
#     'SOEVTP': {'blksz': 40, 'blocks': 10, 'size': 480},
#     'ALMSG': {'blksz': 40, 'blocks': 32, 'size': 1536},
#     'GPSEVTP': {'blksz': 1480, 'blocks': 256, 'size': 380928},
#     'NVREMOTESVC': {'blksz': 10288, 'blocks': 32, 'size': 329472},
#     'NVMSG': {'blksz': 32, 'blocks': 32, 'size': 1280},
#     'SCMSG': {'blksz': 24, 'blocks': 64, 'size': 2048},
#     'FLOGEVTP': {'blksz': 312, 'blocks': 32, 'size': 10240},
#     'UICCMSG': {'blksz': 16, 'blocks': 64, 'size': 1536},
#     'RFMSG': {'blksz': 8, 'blocks': 64, 'size': 1024},
#     'PCMSG': {'blksz': 32, 'blocks': 64, 'size': 2560},
#     'IMSWMSG': {'blksz': 16, 'blocks': 32, 'size': 768},
#     'SFSMSG': {'blksz': 24, 'blocks': 12, 'size': 384},
#     'QCCI_MSG': {'blksz': 48, 'blocks': 32, 'size': 1792},
#     'CFMSG': {'blksz': 40, 'blocks': 10, 'size': 480},
#     'M2MAMSG': {'blksz': 24, 'blocks': 12, 'size': 384},
#     'SODNS': {'blksz': 320, 'blocks': 17, 'size': 5576},
#     'QCCI_IND': {'blksz': 4152, 'blocks': 32, 'size': 133120},
#     'FMMSG': {'blksz': 32, 'blocks': 10, 'size': 400},
#     'SOCKP': {'blksz': 56, 'blocks': 2, 'size': 128},
#     'QCCI_CLI': {'blksz': 288, 'blocks': 16, 'size': 4736},
#     'M2MGMSG': {'blksz': 24, 'blocks': 12, 'size': 384},
#     'LDMSG': {'blksz': 24, 'blocks': 32, 'size': 1024}
# }

APSS_TX_table = {
    'FMREMOTESVC': {'blksz': 5208, 'blocks': 10, 'size': 52160},
    'QCSI_CLI': {'blksz': 24, 'blocks': 4, 'size': 128},
    'QCCI_CB': {'blksz': 24, 'blocks': 64, 'size': 2048},
    'SNTPEVTP': {'blksz': 8, 'blocks': 4, 'size': 64},
    'QCSI_CB': {'blksz': 32, 'blocks': 64, 'size': 2560},
    'SOEVTP': {'blksz': 40, 'blocks': 10, 'size': 480},
    'ALMSG': {'blksz': 40, 'blocks': 32, 'size': 1536},
    'GPSEVTP': {'blksz': 1480, 'blocks': 256, 'size': 380928},
    'NVREMOTESVC': {'blksz': 10288, 'blocks': 32, 'size': 329472},
    'NVMSG': {'blksz': 32, 'blocks': 32, 'size': 1280},
    'SCMSG': {'blksz': 24, 'blocks': 64, 'size': 2048},
    'FLOGEVTP': {'blksz': 312, 'blocks': 32, 'size': 10240},
    'UICCMSG': {'blksz': 16, 'blocks': 64, 'size': 1536},
    'RFMSG': {'blksz': 8, 'blocks': 64, 'size': 1024},
    'PCMSG': {'blksz': 32, 'blocks': 64, 'size': 2560},
    'IMSWMSG': {'blksz': 16, 'blocks': 32, 'size': 768},
    'SFSMSG': {'blksz': 24, 'blocks': 12, 'size': 384},
    'QCCI_MSG': {'blksz': 48, 'blocks': 32, 'size': 1792},
    'CFMSG': {'blksz': 40, 'blocks': 10, 'size': 480},
    'M2MAMSG': {'blksz': 24, 'blocks': 12, 'size': 384},
    'SODNS': {'blksz': 320, 'blocks': 17, 'size': 5576},
    'QCCI_IND': {'blksz': 4152, 'blocks': 32, 'size': 133120},
    'FMMSG': {'blksz': 32, 'blocks': 10, 'size': 400},
    'SOCKP': {'blksz': 56, 'blocks': 2, 'size': 128},
    'QCCI_CLI': {'blksz': 288, 'blocks': 16, 'size': 4736},
    'M2MGMSG': {'blksz': 24, 'blocks': 12, 'size': 384},
    'LDMSG': {'blksz': 24, 'blocks': 32, 'size': 1024}
}

BOOT_table = {
    'FMREMOTESVC': {'blksz': 5208, 'blocks': 10, 'size': 52160},
    'QCSI_CLI': {'blksz': 24, 'blocks': 4, 'size': 128},
    'QCCI_CB': {'blksz': 24, 'blocks': 64, 'size': 2048},
    'SNTPEVTP': {'blksz': 8, 'blocks': 4, 'size': 64},
    'QCSI_CB': {'blksz': 32, 'blocks': 64, 'size': 2560},
    'SOEVTP': {'blksz': 40, 'blocks': 10, 'size': 480},
    'ALMSG': {'blksz': 40, 'blocks': 32, 'size': 1536},
    'GPSEVTP': {'blksz': 1480, 'blocks': 256, 'size': 380928},
    'NVREMOTESVC': {'blksz': 10288, 'blocks': 32, 'size': 329472},
    'NVMSG': {'blksz': 32, 'blocks': 32, 'size': 1280},
    'SCMSG': {'blksz': 24, 'blocks': 64, 'size': 2048},
    'FLOGEVTP': {'blksz': 312, 'blocks': 32, 'size': 10240},
    'UICCMSG': {'blksz': 16, 'blocks': 64, 'size': 1536},
    'RFMSG': {'blksz': 8, 'blocks': 64, 'size': 1024},
    'PCMSG': {'blksz': 32, 'blocks': 64, 'size': 2560},
    'IMSWMSG': {'blksz': 16, 'blocks': 32, 'size': 768},
    'SFSMSG': {'blksz': 24, 'blocks': 12, 'size': 384},
    'QCCI_MSG': {'blksz': 48, 'blocks': 32, 'size': 1792},
    'CFMSG': {'blksz': 40, 'blocks': 10, 'size': 480},
    'M2MAMSG': {'blksz': 24, 'blocks': 12, 'size': 384},
    'SODNS': {'blksz': 320, 'blocks': 17, 'size': 5576},
    'QCCI_IND': {'blksz': 4152, 'blocks': 32, 'size': 133120},
    'FMMSG': {'blksz': 32, 'blocks': 10, 'size': 400},
    'SOCKP': {'blksz': 56, 'blocks': 2, 'size': 128},
    'QCCI_CLI': {'blksz': 288, 'blocks': 16, 'size': 4736},
    'M2MGMSG': {'blksz': 24, 'blocks': 12, 'size': 384},
    'LDMSG': {'blksz': 24, 'blocks': 32, 'size': 1024}
}

# BOOT_table = {}