锐米LoRa无线模块评估与测试指南

版权申诉
0 下载量 129 浏览量 更新于2024-08-04 收藏 624KB PDF 举报
"锐米LoRa无线模块的评估与测试指南" 本文主要介绍了如何对锐米LoRa无线模块进行评估和测试,适用于从事LoRa网络相关技术工作的人员。LoRa是一种长距离、低功耗的无线通信技术,常用于物联网(IoT)应用。以下是对该文档关键知识点的详细说明: 1. **评估目的**: - 模块功能验证:检查LoRa无线模块是否能正常执行发送和接收数据的任务。 - 距离测试:确定两个模块之间的最大有效通信距离。 - 功耗测量:测定模块在发送和接收模式下的电流消耗,这对于低功耗应用至关重要。 2. **所需设备**: - PC机:用于运行评估软件和控制模块。 - LoRa无线模块:至少需要两个进行通信测试。 - UART转USB:将模块连接到PC的转换工具。 - PC评估软件:用于控制和监控模块的通信状态。 - STLINK仿真器:可选设备,用于模块的调试。 3. **搭建环境**: - 安装LoRa模块到USB转串口套件,并参照提供的接口定义和测试套装进行连接。 - 将两个模块分别连接到PC,通过评估软件进行通信配置和监控。 - 下载并使用评估软件,根据操作手册设置和操作模块。 4. **通信测试**: - 实施双向通信:模块1发送,模块2接收,然后互换角色,确保两个方向都能正常通信。 5. **故障排查**: - 常见问题及解决方案,如速率和频率不匹配、通信距离过远、信号干扰、固件不一致或硬件损坏。排查时应按照概率从高到低的顺序进行。 6. **LoRa特点**: - 点对点通信:LoRa模块之间的通信不需要复杂的网络配置,简化了部署步骤。 7. **注意**: - LoRa模块的固件版本应保持一致,以确保兼容性。 - 遇到硬件问题,可以联系锐米的售后客服寻求帮助。 通过以上步骤,技术人员可以全面评估锐米LoRa无线模块的性能,确保其在实际应用中的稳定性和可靠性。这种测试对于优化物联网解决方案,尤其是在远程、低功耗的场景下,显得尤为关键。

Build started: Project: template *** Using Compiler 'V6.19', folder: 'D:\Keil_v5\ARM\ARMCLANG\Bin' Build target 'Target 1' ../User/main.c(2): error: 'lora.h' file not found #include "lora.h" ^~~~~~~~ 1 error generated. compiling main.c... LoRa.c(8): error: use of undeclared identifier 'RCU_AF' rcu_periph_clock_enable(RCU_AF); ^ LoRa.c(9): error: call to undeclared function 'gpio_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] gpio_init(LORA_UART_GPIO, GPIO_MODE_AF_PP, GPIO_OSPEED_50MHZ, LORA_UART_GPIO_PIN_TX); ^ LoRa.c(9): error: use of undeclared identifier 'GPIO_MODE_AF_PP' gpio_init(LORA_UART_GPIO, GPIO_MODE_AF_PP, GPIO_OSPEED_50MHZ, LORA_UART_GPIO_PIN_TX); ^ LoRa.c(10): error: use of undeclared identifier 'GPIO_MODE_IN_FLOATING' gpio_init(LORA_UART_GPIO, GPIO_MODE_IN_FLOATING, GPIO_OSPEED_50MHZ, LORA_UART_GPIO_PIN_RX); ^ LoRa.c(23): error: use of undeclared identifier 'GPIO_MODE_IPU' gpio_init(LORA_AUX_GPIO, GPIO_MODE_IPU, GPIO_OSPEED_50MHZ, LORA_AUX_GPIO_PIN); ^ 5 errors generated. compiling LoRa.c... Usart.c(8): error: use of undeclared identifier 'RCU_AF' rcu_periph_clock_enable(RCU_AF); ^ Usart.c(9): error: call to undeclared function 'gpio_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] gpio_init(USART_UART_GPIO, GPIO_MODE_AF_PP, GPIO_OSPEED_50MHZ, USART_UART_GPIO_PIN_TX); ^ Usart.c(9): error: use of undeclared identifier 'GPIO_MODE_AF_PP' gpio_init(USART_UART_GPIO, GPIO_MODE_AF_PP, GPIO_OSPEED_50MHZ, USART_UART_GPIO_PIN_TX); ^ Usart.c(10): error: use of undeclared identifier 'GPIO_MODE_IN_FLOATING' gpio_init(USART_UART_GPIO, GPIO_MODE_IN_FLOATING, GPIO_OSPEED_50MHZ, USART_UART_GPIO_PIN_RX); ^ 4 errors generated. compiling Usart.c... ".\Objects\template.axf" - 10 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:01

2023-07-17 上传

arm-none-eabi-gcc -o "SENSOR_CB.elf" @"objects.list" -mcpu=cortex-m3 -T"C:\Users\WangBingqian\Desktop\SC10L151Cube\trunk\NO_FOTA_VERSION\STM32L151CBTXA_FLASH.ld" --specs=nosys.specs -Wl,-Map="SENSOR_CB.map" -Wl,--gc-sections -static --specs=nano.specs -mfloat-abi=soft -mthumb -Wl,--start-group -lc -lm -Wl,--end-group Core/Src/rs485.o: In function `get_sample_data_max_min_value': rs485.c:(.text.get_sample_data_max_min_value+0x0): multiple definition of `get_sample_data_max_min_value' Core/Src/lora_wan.o:lora_wan.c:(.text.get_sample_data_max_min_value+0x0): first defined here Core/Src/rs485.o: In function `computeMvScale': rs485.c:(.text.computeMvScale+0x0): multiple definition of `computeMvScale' Core/Src/lora_wan.o:lora_wan.c:(.text.computeMvScale+0x0): first defined here Core/Src/rs485.o: In function `computeMvScale_f': rs485.c:(.text.computeMvScale_f+0x0): multiple definition of `computeMvScale_f' Core/Src/lora_wan.o:lora_wan.c:(.text.computeMvScale_f+0x0): first defined here Core/Src/rs485.o: In function `generate_frag_data': rs485.c:(.text.generate_frag_data+0x0): multiple definition of `generate_frag_data' Core/Src/lora_wan.o:lora_wan.c:(.text.generate_frag_data+0x0): first defined here Core/Src/rs485.o:(.bss.frag_num+0x0): multiple definition of `frag_num' Core/Src/lora_wan.o:(.bss.frag_num+0x0): first defined here collect2.exe: error: ld returned 1 exit status make: *** [makefile:50: SENSOR_CB.elf] Error 1 "make -j4 all" terminated with exit code 2. Build might be incomplete.是什么错误

2023-06-09 上传

create LoRA network. base dim (rank): 64, alpha: 32 neuron dropout: p=None, rank dropout: p=None, module dropout: p=None create LoRA for Text Encoder: 72 modules. create LoRA for U-Net: 192 modules. enable LoRA for text encoder enable LoRA for U-Net Traceback (most recent call last): File "D:\lora_lian\sd-scripts\train_network.py", line 873, in <module> train(args) File "D:\lora_lian\sd-scripts\train_network.py", line 242, in train info = network.load_weights(args.network_weights) File "D:\lora_lian\sd-scripts\networks\lora.py", line 884, in load_weights info = self.load_state_dict(weights_sd, False) File "D:\lora_lian\python\lib\site-packages\torch\nn\modules\module.py", line 2041, in load_state_dict raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for LoRANetwork: size mismatch for lora_unet_mid_block_attentions_0_proj_out.lora_up.weight: copying a param with shape torch.Size([1280, 128, 1, 1]) from checkpoint, the shape in current model is torch.Size([1280, 64, 1, 1]). Traceback (most recent call last): File "D:\lora_lian\python\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "D:\lora_lian\python\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "D:\lora_lian\python\lib\site-packages\accelerate\commands\launch.py", line 1114, in <module> main() File "D:\lora_lian\python\lib\site-packages\accelerate\commands\launch.py", line 1110, in main launch_command(args) File "D:\lora_lian\python\lib\site-packages\accelerate\commands\launch.py", line 1104, in launch_command simple_launcher(args) File "D:\lora_lian\python\lib\site-packages\accelerate\commands\launch.py", line 567, in simple_launcher raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd) subprocess.CalledProcessError: Command '['D:\\lora_lian\\python\\python.exe', './sd-scripts/train_network.py', '--config_file', 'D:\\lora_lian\\toml\\autosave\\20230709-112914.toml']' returned non-zero exit status 1. Training failed / 训练失败

2023-07-10 上传