中移物联onenet NB IoT M5310模块资料


包含M5310的开发文档资料(AT指令集、设计参考手册、M5310通信流程示例等)、开发工具、onenet开发代码例程等。
资源截图
代码片段和文件信息
#include 
#include 
#include 
#include 
#include 

typedef enum
{
MIPL_DEBUG_LEVEL_NONE = 0
MIPL_DEBUG_LEVEL_RXL
MIPL_DEBUG_LEVEL_RXL_RXD
MIPL_DEBUG_LEVEL_TXL_TXD
} MIPL_DEBUG_LEVEL_E;

typedef unsigned char uint8;
typedef unsigned short uint16;
typedef unsigned uint32;

typedef struct
{
uint8 boot;
uint8 encrypt;
MIPL_DEBUG_LEVEL_E debug;
uint16 port;
uint32 keep_alive;
size_t uri_len;
char* uri;
size_t ep_len;
char* ep;
uint8 block1; //COAP option BLOCK1(PUT or POST)0-6. 2^(4+n)  bytes
uint8 block2; //COAP option BLOCK2(GET)0-6. 2^(4+n)  bytes
uint8 block2th; //max size to trigger block-wise operation0-2. 2^(8+n) bytes
} MIPL_T;

void usage( const char *name )
{
printf( “Usage: %s [OPTION]
“ name );
printf( “Launch a client.
“ );
printf( “version: v1.2
“ );
printf( “Options:
“ );
printf( “-b BOOT Set the bootstrap mode of the client.Default: 0
“ );
printf( “-d DEBUG Set the debug mode of the client.Default: 0
“ );
printf( “-e ENCRYPT Set the encrypt of the client.
“ );
printf( “-i URI Set the coap uri of the server to connect to. For example: coap://localhost:5683
“ );
printf( “-n NAME Set the endpoint name[imei;imsi] of the client.
“ );
printf( “-p PORT Set the local port of the client to bind to. Default: srand
“ );
printf( “-t TIME Set the lifetime of the client. Default: 300
“ );
printf( “-u BLOCK1 Set COAP option BLOCK1(PUT or POST)0-6. Default 5(512B)2^(4+n)
“);
printf( “-g BLOCK2 Set COAP option BLOCK2(GET)0-6. Default 5(512B)2^(4+n)
“);
printf( “-x BLOCK2TH Set max size to trigger block-wise operation0-2. Default 2(1024B)2^(8+n)
“);
printf( “
“ );
}

void output_buffer(unsigned char *buffer int lengthint index int flag)
{
int i = 0;
while ( i < length )
{
printf( “%02X“ buffer[i++] );
}
printf(“%d%d
“indexflag);
}
/*****************************************************************
       0               1               2               3 
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| boot | encrypt|     debug     |          local_port         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          life_time                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           host_len            |             host            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          ep_name_len          |      ep_name(imei;imsi)     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  coap_block1  |  coap_block2  |    block2th   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*****************************************************************/
void mipl_generate(char *buf size_t buflen

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-12-13 14:27  onenet m5310+stm32f103
     目录           0  2017-12-21 18:08  onenet m5310+stm32f103M5310文档资料
     文件     3460868  2017-12-21 18:08  onenet m5310+stm32f103M5310文档资料M5310 AT Command B657SP2-v2.4-B8-0929.pdf
     文件      256125  2017-06-09 10:01  onenet m5310+stm32f103M5310文档资料M5310参考设计V1.0.pdf
     文件     2434147  2017-06-09 10:01  onenet m5310+stm32f103M5310文档资料M5310硬件设计手册_V1.0.pdf
     目录           0  2017-12-21 18:15  onenet m5310+stm32f103M5310的使用例程
     文件     2725968  2017-12-21 18:15  onenet m5310+stm32f103M5310的使用例程M5310通信流程示例v2.2.0930.pdf
     文件      188473  2017-11-17 17:29  onenet m5310+stm32f103M5310的使用例程OneNET_config_v1.2.exe
     文件       18516  2017-11-20 10:46  onenet m5310+stm32f103M5310的使用例程README.docx
     文件        6596  2017-11-17 17:29  onenet m5310+stm32f103M5310的使用例程miplconf_generate_v1.2.c
     文件      976750  2017-11-20 14:45  onenet m5310+stm32f103NB_IOT开发板V2.1.PDF
     文件      782976  2017-11-21 12:29  onenet m5310+stm32f103OneNET-NB开发板V2.1硬件使用手册.pdf
     目录           0  2017-12-22 12:00  onenet m5310+stm32f103OneNET_M5310_COAP
     文件     1089536  2017-04-11 17:28  onenet m5310+stm32f103OneNET_M5310_COAPCOAP.IAB
     文件       10968  2017-04-11 17:28  onenet m5310+stm32f103OneNET_M5310_COAPCOAP.IAD
     文件      290816  2017-03-31 16:14  onenet m5310+stm32f103OneNET_M5310_COAPCOAP.IMB
     文件        3168  2017-04-06 23:37  onenet m5310+stm32f103OneNET_M5310_COAPCOAP.IMD
     文件         548  2017-11-29 22:31  onenet m5310+stm32f103OneNET_M5310_COAPCOAP.PFI
     文件         776  2017-11-29 22:31  onenet m5310+stm32f103OneNET_M5310_COAPCOAP.PO
     文件       51992  2017-11-21 09:16  onenet m5310+stm32f103OneNET_M5310_COAPCOAP.PR
     文件      289944  2017-04-09 21:52  onenet m5310+stm32f103OneNET_M5310_COAPCOAP.PRI
     文件     2121960  2017-04-18 16:39  onenet m5310+stm32f103OneNET_M5310_COAPCOAP.PS
     文件        6316  2017-11-29 20:04  onenet m5310+stm32f103OneNET_M5310_COAPCOAP.SearchResults
     文件      100189  2017-11-29 22:33  onenet m5310+stm32f103OneNET_M5310_COAPCOAP.WK3
     目录           0  2017-12-13 14:25  onenet m5310+stm32f103OneNET_M5310_COAPHal
     文件       12669  2017-11-16 14:58  onenet m5310+stm32f103OneNET_M5310_COAPHalBH1750.c
     文件        1709  2017-09-27 16:59  onenet m5310+stm32f103OneNET_M5310_COAPHalBH1750.h
     文件        4160  2017-11-23 16:04  onenet m5310+stm32f103OneNET_M5310_COAPHalBMP180.c
     文件         670  2017-09-27 17:00  onenet m5310+stm32f103OneNET_M5310_COAPHalBMP180.h
     文件        7063  2017-09-29 15:31  onenet m5310+stm32f103OneNET_M5310_COAPHalOLED.c
     文件         739  2017-09-29 14:11  onenet m5310+stm32f103OneNET_M5310_COAPHalOLED.h
............此处省略498个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)