Cypress技术论坛
直播中

乔婧

8年用户 258经验值
私信 关注
[问答]

CY8CPLC20低压评估套件CY3275:数据传输时间过长

你好,
我最近开始对2个CY3255设备进行通信测试(低电压12 /24V PLC DEVKITS)。
我在示波器上显示了输出信号(FSK),并计算出在预期的时间内数据包没有被传输。
我修改的例子程序,为了给全39b包(1B(0xab)+ 6b头+数据+ 31b 1b CRC)。因此,大约需要130ms @ 2400bps被传送。
示波器显示我的包需要200ms发送。
TEK09003.PNG
74.8 K

以上来自于百度翻译


     以下为原文
  Hi,
    I rencently began some tests on 2 CY3275 devkits communicating together (low voltage 12/24V PLC devkits).
    I displayed the output signal (FSK) on an oscilloscope and figured out that the packet isn't transmitted within the expected time.
    I modified the example programs in order to send a full 39B packet (1B (0xAB) + 6B header + 31B data + 1B CRC). So it should take approximately 130ms @ 2400bps to be transmitted.
    The oscilloscope shows me that the packet takes 200ms to be transmitted.


回帖(8)

杨军

2019-1-17 13:58:58
用我从未使用过的一点盐来评价我的评论。
工具箱之前,但是在协议固件中有变量保持跟踪
由于电力线噪声的数据包重试?这可能是一个指标
表演的。
你总是可以把范围无限坚持看
电力线,以获得PK PK噪声随着时间的推移。
问候,Dana。

以上来自于百度翻译


     以下为原文
  Take my comments with a grain of salt as I have never used the
    kit before, but in the protocol firmware is there a variable keeping track
    of packet retrys due to power line noise ? That may be an indicator
    of performance.
     
    You could always put a scope on infinte persistance and look at the
    power line to get a handle on pk-pk noise over time.
     
    Regards, Dana.
举报

王琳

2019-1-17 14:05:57
我总是计算一个串行传输12位/字节,因为有开始和停止位和一个奇偶校验。当我把你的38个字节@ 2400波特,我得到195ms,这是相当接近你观察到的200毫秒。
鲍勃

以上来自于百度翻译


     以下为原文
  I always calculate a serial transmition with 12 bits / byte since there are start- and stop-bits and a parity as well. When I take your 38 bytes @2400 baud I get 195ms which is rather close to your observed 200ms.
     
    Bob
举报

杨军

2019-1-17 14:12:11
鲍伯,我一定漏掉了什么东西。
8位/字节+ 1 + 1 + 1站开始平价= 11位x 38字节×1 / 2400波特率= 174毫秒
问候,Dana。

以上来自于百度翻译


     以下为原文
  Bob, I must be missing something.
     
    8 bits/byte + 1 stop + 1 start + 1 parity = 11 bits x 38 bytes x 1 / 2400 baud = 174 mS
     
    Regards, Dana.
举报

杨军

2019-1-17 14:26:52
啊,我错过了2个停止位,而不是1个。
衰老正在迅速消失。
问候,Dana。

以上来自于百度翻译


     以下为原文
  Ah, I missed 2 stop bits vs 1.
     
    Senility is closing in rapidly.
     
    Regards, Dana.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分