DSP Pan1740和UART问题

⚠️
嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程https://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
9 posts / 0 new
最后一篇
Gert186.
离线
最后一次露面:1 year 3 months ago
加入:2016-04-21 12:59
DSP Pan1740和UART问题

你好,
我想尽可能快地编程通过蓝牙上的连接UART。它有效,但现在我的问题。
According to the manual of connect two PAN1740 I disabled the HW Flow control and enabled the SW flow control. They connect to each other.
PAN1740直接连接到ATMEL控制器llers who makes the work.
The Problem is: I programed an Receive Interrupt on one Atmel and the Bluetooth module (PAN1740) always sends nonsense Data to the Atmel and the Interrupt happens every time.
废话的数据在十六进制11或13或两者中。
我不知道它来自哪里。
只有在两个PAN1740连接时才会发生。
Any Ideas about that?

A nother Question is to put the PAN1740 into Sleep mode with External connection to the Atmel. PIN 1.0 of PAN1740 is directly connected to the Atmel I/O. How can I program that if the PAN got an High at Pin 1.0 from the atmel that it will go sleep and a Low it will wake up?

Hope you can help me.
Thanks a lot

Device:
Gert186.
离线
最后一次露面:1 year 3 months ago
加入:2016-04-21 12:59
嗨,我解决了这个问题。它

嗨,我解决了这个问题。它是软件流控制,它在MicrocoCtroller上产生中断。
The next Problem is, if I would like to send data over DSPS without Flow Control The data is sending each 10ms
38400 baud

数据应该是T1,另外的随机值我相距另一侧:

T163
ük©Ø¬™[r¤ü¨~[rhøt163
T163
T163
T163
6(ÿ¨[r¤ü¨™[r¤ü¨> 3
T163
T163
T163
Ym¨™[V¤ü¨˜[R¤ø¨165
T165
T165
T163
#ñ¬™[i#Ñ_¬™[v¤Ü¨[| ... T163
T163
T165
T167
æ5)ÿ¨™+©Ø¨~©Ø¨~70
T167
T165
T163
rþ)éî5)ÿ¨[«¤豪[shøt167
T165
T167
T167
ý5ÿ¨[«¤¤¨™[¥!Á¨~65
T163
T163

What is the problem? If I sniff the TXD line of my microcontroller everything make what he should. but not on the other side....

Any Tips?

mt_dialog.
离线
最后一次露面:2个月1周前
职员
加入:2015-06-08 11:34
Hi gert186,

Hi gert186,

我假设您正在使用DSP参考设计,并且您正在通过Atmel处理器向580的UART发送数据,因为您已禁用HW流量控制,并且您已启用SW流量控制0x11和0x13是XONXOFF字节(控制流控制的实际字节)仅在两个设备连接时发送。

Also be aware that the DSPS needs h/w flow control in order to operate properly and be in sleep mode, there is no way to use DSPS with sleep and with no flow control since the external MCU will send data but it wont know if the 580 is sleeping or not.

在第一篇文章中重新调整第二个问题,DSP将自动设置设备的睡眠模式,如果它有数据发送它会保持清醒,如果不是它将进入睡眠模式并仅唤醒以保持连接活。如果您想在永久性睡眠中设置设备,您将必须手动断开远程设备并设置唤醒定时器以便从外部中断启动并启动广告,您将能够找到有关如何使用的信息UM-B-051-DA1458X软件平台参考的唤醒定时器.PDF在第10.7段中。

谢谢mt_dialog.

Gert186.
离线
最后一次露面:1 year 3 months ago
加入:2016-04-21 12:59
谢谢你的帖子。

谢谢你的帖子。
但我想切换SW和HW流量控制!那是问题吗 ?

mt_dialog.
离线
最后一次露面:2个月1周前
职员
加入:2015-06-08 11:34
Hi gert186,

Hi gert186,

是的,由于DSP,在睡眠模式下,仅使用HW流量控制时(即使使用SW流量控制设备将丢失数据),这是因为580通知通过切换来唤醒的外部MCU / PC它的RTS / CTS。如果外部设备发送数据,并且580不是唤醒,将有数据丢失。

谢谢mt_dialog.

Gert186.
离线
最后一次露面:1 year 3 months ago
加入:2016-04-21 12:59
I programmed everything now

我现在使用SW控制编程一切。像魅力一样。
我有一个I / O连接到PIN 1.0上的蓝牙模块
is it possible to bring the bluetoothmodul to sleep if a Low is on the pin and wake if a High?

mt_dialog.
离线
最后一次露面:2个月1周前
职员
加入:2015-06-08 11:34
Hi gert186,

Hi gert186,

如上所述,设备在每个连接间隔中唤醒,以便保持连接,如果保持设备睡眠并等待唤醒中断,这意味着它会丢失连接,如果它丢失了连接,这意味着下次将唤醒(从外部中断)唤醒它必须通过连接过程,以便与中央/外设重新连接。如果这是您想做的事情,那么您可以使用唤醒定时器模块并将其设置为启动外部中断,但我建议在睡觉前终止连接。

谢谢mt_dialog.

Gert186.
离线
最后一次露面:1 year 3 months ago
加入:2016-04-21 12:59
Many thanks,

Many thanks,

But what I realy want to do is to put the Bluetooth Module into sleep mode (extended) if it receives like SL4000!
"SL" for go into sleep
"4000" the time in seconds
"!" Termination sign.

I can put this functionality in the
user_sps_server_data_rx_ind_handler()。检查收到的内容。
然后将BLE放入扩展睡眠模式,如:

app_easy_gap_advertise_stop();
ARCH_BLE_EXT_WAKEUP_ON();

But I don't know how to configure the wake up timer?

有人可以帮助我。

最好的问候

mt_dialog.
离线
最后一次露面:2个月1周前
职员
加入:2015-06-08 11:34
Hi gert186,

Hi gert186,

要从开始,您只能在连接时接收数据而不是广告,因此它不是NESECCARY来调用APP_EASY_GAP_ADVERTES_STOP()函数,因此如果您想将设备放在永久睡眠中,您将不得不从中央设备断开连接通过调用app_easy_gap_disconnect(),只要设备断开连接,将触发.app_on_disconnect回调。因此,从该回调开始,您可以设置kenrel计时器以启动广告或设置唤醒中断。如果您刚刚断开设备,由于设备没有唤醒任何预定的消息,它将保持睡眠状态,只需配置设备即将唤醒。为了检查如何配置设备唤醒,您可以看一下BLE_APP_SLEEPMODE,您还可以找到关于唤醒定时器在UM-B-051软件平台参考文献中的文档.PDF在第10.7段中。

谢谢mt_dialog.