16 posts / 0 new
Last post
Rony
Offline
Last seen:4 years 8 months ago
Master
加入:2014-05-15 15:02
串口服务

你have a version of the Serial Port Service than can run in the Basic SDK?

JE_Dialog
Offline
Last seen:4天3小时前
Staff
加入:2013-12-05 14:02
Hello Rony, I will have to

Hello Rony, I will have to check on the final release : let me come back to that.

BR JE_Dialog

JE_Dialog
Offline
Last seen:4天3小时前
Staff
加入:2013-12-05 14:02
Hello Rony, there is a

你好,罗尼,有个解决办法。在基本套件的UART实现上有一些限制,这意味着使用外部USB到UART电缆cna可以克服这个问题。

The cable we used to connect the Basic DK’s serial port was a FTDI USB-RS232 TTL cable (part no: TTL-232R-3V3).

此外,还应对源代码进行一些更改,以便将正确的管脚连接到UART:

In the “periph_setup.c” file

In the “GPIO_reservations” function, lines:

(51) RESERVE_GPIO( UART1_TX, GPIO_PORT_0, GPIO_PIN_4, PID_UART1_TX);

(52) RESERVE_GPIO( UART1_RX, GPIO_PORT_0, GPIO_PIN_5, PID_UART1_RX);

should point to the correct port and pins that will be connected to the FTDI cable.

Also, in the “set_pad_functions” function, lines:

(68) GPIO_ConfigurePin( GPIO_PORT_0, GPIO_PIN_4, OUTPUT, PID_UART1_TX, false );

(69)GPIO\ U配置引脚(GPIO\ U端口\ U 0,GPIO\ U引脚\ U 5,输入,PID\ U UART1\ U RX,false);

应指向正确的端口和引脚。此外,“INPUT”值应更改为“INPUT\u PULLUP”。

BR JE_Dialog

Rony
Offline
Last seen:4 years 8 months ago
Master
加入:2014-05-15 15:02
OK. I will try it and report.

OK.
我将试一试和报告。

JE_Dialog
Offline
Last seen:4天3小时前
Staff
加入:2013-12-05 14:02
Hello Rony, i just checked

Hello Rony, i just checked with the development team : it will work fine with the BASIC kit as long as you have it running as a 2 wire UART (and not 4 wire). BR JE_Dialog.

Rony
Offline
Last seen:4 years 8 months ago
Master
加入:2014-05-15 15:02
I will start by simulating

I will start by simulating the uart and filling the input fifo myself to check the amount of data I can xmit every second through the ble.
When that works I will add the uart interface which I am already using with my amateur implementation.
I also use 2 wires.
Thanks

Rony
Offline
Last seen:4 years 8 months ago
Master
加入:2014-05-15 15:02
不幸的是,它甚至没有

不幸的是,它甚至没有start.
我在第120行找到了一个断点:hardfault\u handle.c。

119:if ((GetWord16(SYS_STAT_REG) & DBG_IS_UP) == DBG_IS_UP)
120:u asm(“BKPT#0\n”);
121: else
122: while(1);

Any clue?

JE_Dialog
Offline
Last seen:4天3小时前
Staff
加入:2013-12-05 14:02
你好,罗尼,我有个电话

你好,罗尼,我有个电话with the develoment team tomorrow to clear up the issue : 4 wire implementation is fine, but as per email, 2 wire I'm getting conflicting feedback. BR JE_Dialog

JE_Dialog
Offline
Last seen:4天3小时前
Staff
加入:2013-12-05 14:02
Hello Rony,

Hello Rony,

here is the feedback i have on running the DSPS with 2 wire on BASIC kit :

When running the DSPS keil application without a UART cable connected the software will run into the fault handler. The reason of the failure is that UART RX signal is in an undefined state. This is solved by changing the configuration of the pin from INPUT to INPUT_PULLUP:
In file: periph_setup.c,

Function: set_pad_functions():

GPIO_ConfigurePin(GPIO_PORT_0,GPIO_PIN_5,INPUT_PULLUP,PID_UART1_RX,false);//将UART RX设置为INPUT_PULLUP

//GPIO_ConfigurePin( GPIO_PORT_0, GPIO_PIN_5, INPUT, PID_UART1_RX, false );

还有两件事需要注意:

When testing between a DSPS device role and the Android phone application the tool does not recognize the default BDaddress.

Workaround:

In file: nvds.c; .NVDS_TAG_BD_ADDRESS

解决方法:将值更改为其他值

The issue will be fixed in the next revision of the Android application

3)

When transmitting the value "0x00" from DSPS-device (PC terminal +DevKit) to android, The value 0x00 and following data will not be displayed if the total number of bytes is smaller than 8-byte.

The root cause of this is in the DSPS device firmware and will be fixed for the next release.

BR JE_Dialog

Rony
Offline
Last seen:4 years 8 months ago
Master
加入:2014-05-15 15:02
Made some progress.

Made some progress.
我可以发送串行数据,我可以在DSPS应用程序中看到它,但在使用Blueloupe应用程序时看不到它。
Is there a reason for that or am I missing something?
Thanks

MHv_Dialog
Offline
Last seen:4 days 22 hours ago
Staff
加入:2013-12-06 15:10
Hi Rony,

Hi Rony,

When the central side DSPS is active, it will immediately connect to the peripheral when the peripheral starts advertising. BlueLoupe is not intended for eavesdropping, so it will not display any details of a connnection between two other entities. If you stop the central device, you should see theperipheral advertis immediately.

Rony
Offline
Last seen:4 years 8 months ago
Master
加入:2014-05-15 15:02
I am trying to connect

I am trying to connect without DSPS in the Android side but using our app or BlueLoupe.
BlueLoupe can connect all right but gets no notifications.
I can see the data with Software I got from Nordic being updated on handle=18 but not through the notifications.
你have a short code to show us how to get the data?

fordp
Offline
Last seen:5 years 9 months ago
加入:2014-03-13 12:04
嗨,我在试着弄这个

嗨,我想让这个演示运行在基本的太。你有更好的关于如何进行的信息吗?

fordp
Offline
Last seen:5 years 9 months ago
加入:2014-03-13 12:04
I have the demo working on

我有演示工作的基本使用说明,从星期五,2014年12月5日。谢谢。
This demo is lacking documentation and proper support for the basic.

Cheers.

JE_Dialog
Offline
Last seen:4天3小时前
Staff
加入:2013-12-05 14:02
Hello fordp, as the

Hello fordp, as the documentation indicates, it only supoprts the EXPERT kit right now. There is a workaround for BASIC as outlined, but its not in the documentatin yet. We're working on updating this, so thanks for the feedback. BR JE_Dialog

imalamoud
Offline
Last seen:4 days 21 hours ago
加入:2014-11-16 21:34
Hello,

Hello,

I would like to replicate the demo of SPS using the BASIC kit and TTL-232R-3V3 cable.

您能提供更多关于如何引导套件(SPS主机)并将TTL-232R-3V3连接到该套件的详细信息吗?

Thank you in advance.