完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好,
我知道我的问题很简单,但我认为答案并不那么简单。 这是我的用例: 我想快速而频繁地在PC(客户端)和远程设备(服务器)之间交换少量数据 该 个人计算机 角色是打开到服务器套接字的TCP连接 - 启动和停止应用程序交换 - 处理数据。 该 远程设备 角色是提供Wifi AP - 收听套接字服务器 - 执行PC发送的命令 - 定期发送数据 我可以创建一个服务器套接字,使用SPI protocole,并在它们之间发送数据但是我发现非常讨厌WIND通知系统知道有未决数据。 是否可以禁用WIND通知(使用WIND掩码)并使用IRQ线仅在套接字服务器上收到应用程序数据时发出信号? 我的梦想是:一旦初始化结束,禁用通知并仅使用write和read socket命令来管理应用程序数据(正如我所说的透明桥接模式) 最好的祝福, #transparent-bridge#spwf04 #socket 以上来自于谷歌翻译 以下为原文 Hello, I know my question is simple but the answer, I think, is not as simple. Here is my use case: I would like to exchange a small amount of data between a PC (client) and a remote device (server) quickly and often The PC role is to- open a TCP connection to the server socket - start and stop application exchange - process the data. The remote device role is to- provide Wifi AP - listen to a socket server - execute the command send by the PC - send data periodically I'm okay to create a server socket, use SPI protocole, and send data between them BUT I find very annoying the WIND notifications system to know there is pending data. Is it possible to disable the WIND notifications (with the WIND mask) and to use the IRQ line to signal only when application data have been received on the socket server? My dream would be : once the initialisation is over, to disable the notification and only use write and read socket command to manage the application data (a transparent bridge mode as I said) Best regards, #transparent-bridge #spwf04 #socket |
|
相关推荐
8个回答
|
|
|
通过SPWF01Sx模块查看“数据模式”。一旦套接字服务器打开,客户端进入,就会有一个简单的p2p连接,没有AT命令和/或WIND通知。但:
- 没有SPI接口(仅通过UART的AT命令) - 仅1台服务器,仅支持1个客户端 - 其他... 以上来自于谷歌翻译 以下为原文 Take a look at 'Data Mode' over SPWF01Sx modules. Once socket server is open, and client is in, there is a simple p2p connection without AT commands and/or WIND notifications. But: - no SPI interface (only AT commands over UART) - only 1 server, supporting only 1 client - others... |
|
|
|
|
|
你好,
SPWF01Sx的数据模式与我想用SPWF04S完全相同,因为我需要为我的应用程序提供SPI的速度,UART太慢了。我想尽可能减少WIND通知流量,以免干扰应用程序进程。 我的问题主要是关于SPI的行为 '等待数据' WIND通知被禁用:SPWF04是否断言IRQ线以发信号通知套接字服务器中有数据? 交换应用程序数据时,我应该期待什么行为? 最好的祝福 以上来自于谷歌翻译 以下为原文 Hello, Data mode of SPWF01Sx is exactly the same thing I would like to do with the SPWF04SA because I need to the speed of the SPI for my application, UART is too slow. I would like to reduce WIND notifications traffic as much as possible to not interfere with the application process. My questions mainly concerns the behavior of the SPI when the 'Pending Data' WIND notifications are disabled:Does the SPWF04 assert the IRQ line to signal there is data in the socket server? What behavior should I expect when application data are exchange? Best regards |
|
|
|
|
|
“数据模式”不是SPWF04的一部分(因为现在允许多个客户端),如果禁用WIND,SPI将不会断言nHostINT。禁用无用的WIND,只保留您需要的WIND。
如果您不想连续轮询(AT + S.SOCKQ)传入数据,则需要WIND:55。 以上来自于谷歌翻译 以下为原文 'Data Mode' is not part of SPWF04 (since multiple clients are now allowed), and SPI will not assert nHostINT if WINDs are disabled. Disable unuseful WINDs, and only keep the ones you need. WIND:55 is needed if you don't want to continuously poll (AT+S.SOCKQ) for incoming data. |
|
|
|
|
|
好的,我看到我应该如何禁用WIND通知,但设备不会应用新的配置。
我尝试了第一个32 WINDS: 1)AT + S.SCFG,带'console_wind_off_low'0xFFFFFFFF 2) AT + S.WCFG 3)AT + S.RESET 然后模块不再与主机交互。 GPIO 10的LED(模块运行)停止闪烁并保持开启状态。 在WIND 2'重置'通知后我应该做些什么吗? 以上来自于谷歌翻译 以下为原文 Okay, I see how I am supposed to disable the WIND notifications, but the device does not apply the new config. I tried with the first 32 WINDS: 1) AT+S.SCFG with 'console_wind_off_low' 0xFFFFFFFF 2) AT+S.WCFG 3) AT+S.RESET Then the module doesn't interact anymore with the host. The LED of GPIO 10 (module running) stop blinking and stay ON. Should I do something more after the WIND 2 'Reset' notification? |
|
|
|
|
|
您使用STM32CubeExpansion_WIFI1作为外部主机应用程序吗?因为,在这种情况下,它希望一些WIND开始使用该模块(例如WIND:0)
以上来自于谷歌翻译 以下为原文 Are you using STM32CubeExpansion_WIFI1 as external host application? Because, in this case, it expects some WINDs to start using the module (e.g. WIND:0) |
|
|
|
|
|
我使用的是Texas Instrument的MSP430F2618(
http://www.ti.com/product/MSP430F2618 )作为主机MCU。 SPWF04SA安装在带有MCU和其他芯片的4层PCB上。如果有帮助,我可以给你发一个原理图。 以上来自于谷歌翻译 以下为原文 I am using a MSP430F2618 from Texas Instrument ( http://www.ti.com/product/MSP430F2618 ) as host MCU. The SPWF04SA is mounted on a 4 layers PCB with the MCU and some others chips. I can send you a schematic if it can help. |
|
|
|
|
|
我不知道如何帮助你使用那个微观。对不起。
典型的WIND日志包含: + WIND:1:上电:XXXXXX-XXXXXXX-SPWF04S +风:13:版权所有(c)2012-2017 STMicroelectronics,Inc。保留所有权利:SPWF04Sx + WIND:0:控制台活动+ WIND:32:WiFi硬件启动 由于你屏蔽了0到31个WIND,你应该只收到WIND:32 复位后,闪烁的LED开始闪烁(然后停止),或从不开始闪烁?在第一种情况下,控制台LED应该打开(在WIND:0之前,即使被屏蔽)和关闭(在WIND:0时);在第二种情况下,控制台LED永远不会变高。在第一种情况下,模块将因看门狗而重启;在第二种情况下,模块永远不会启动在这两种情况下,模块都会停止,因为SPI主控制器在nHostIRQ中断后没有给出时钟,或者SPI主控制器提供的时钟少于模块SPI头所需的时钟。 注意:如果需要执行恢复出厂设置(并恢复wind_off_low值),可以通过HW进行。启动时将GPIO0置为高电平。 以上来自于谷歌翻译 以下为原文 I don't know how to help you using that micro. I'm sorry. Typical WINDs log contains: +WIND:1:Poweron:xxxxxx-xxxxxxx-SPWF04S +WIND:13:Copyright (c) 2012-2017 STMicroelectronics, Inc. All rights Reserved:SPWF04Sx +WIND:0:Console active+WIND:32:WiFi Hardware Started Since you masked 0 to 31 WINDs, you should receive the only WIND:32 After reset, blinking LED starts blinking (and then it stops), or never starts blinking? In the first case, console LED should be on (before WIND:0, even if masked) and than off (at WIND:0 time); in the second case, console LED never goes high. In the first case module will reboot because of watchdog; in the second case module never starts. In both cases, module stops because SPI master is not giving the clock after an nHostIRQ interrupt, or SPI master gives less clocks than required by module's SPI header. Note: if you need to perform a factory reset (and restore wind_off_low value), you can do via HW. Put GPIO0 high at startup. |
|
|
|
|
|
不要担心微观,我明白了
我为您制作了在我的程序中实现的逐步初始化,包括LED的状态: SPWF04SA不再断言nHostIRQ线。我尝试使用console_wind_off_low的不同值,例如0x20000000,但它仍然是相同的行为。 看来,这是Reset命令的问题。我是否正确使用它? 谢谢你的帮助,我真的很感激 注意:原始帖子包含大量线程对话,只能迁移到第9级 以上来自于谷歌翻译 以下为原文 Don't worry for the micro, I got it I made you the step-by-step initialisation as implemented in my program, including LEDs' states: The SPWF04SA no longer assert the nHostIRQ line. I tried with different value for console_wind_off_low such 0x20000000 but it is still the same behavior. It seems, it is a problem with the Reset command. Do I use it correctly? Thank you for your help, I really appreciate it Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1476 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1531 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3678 浏览 1 评论
3871 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2485 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
757浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
688浏览 5评论
732浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
986浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
788浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-17 20:51 , Processed in 0.995896 second(s), Total 87, Slave 70 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2316