Skip to main content

#error "USE_AT_FLOWCONTROL needs HW Flow Control Enabled"

5 months ago

#error "USE_AT_FLOWCONTROL needs HW Flow Control Enabled"

Posted bymarios0 points 13 replies
0 upvotes

Hello Dialog !

I'm trying to build Codeless SDK 6.380.12.6 the selected DA14586 target

与硬件流控制在用户设置为NONE_periph_setup.h

I'm geting the folowing build error in keil:

compiling user_periph_setup.c...
..\src\platform\user_periph_setup.c(100): error: #35: #error directive: "USE_AT_FLOWCONTROL needs HW Flow Control Enabled"
#error "USE_AT_FLOWCONTROL needs HW Flow Control Enabled"
..\src\platform\user_periph_setup.c: 0 warnings, 1 error

please help me to fix this issue

Thanks in advance,

Marios

5 months ago

PM_Dialog

Hi Marios,

Can you please indicate why you need to compile the project without the HW Flow control? There is an AT command (AT+FLOWCONTROL) in order to enable/disable the Flow control. Please see the user guide :

http://lpccs-docs.dialog-semiconductor.com/UM-140-DA145x-CodeLess/atcommands.html

Additionally, if you are planning to use extended sleep mode so to reduce the power consumption, then the UART flow control is required.

Thanks, PM_Dialog

5 months ago

marios 0 points

Hello Dialog !

Codeless SDK 6.380.12.6

We have big problem with the codeless software we have send the AT+FLOWCONTROL and replys invalid comand !

AT+SLEEP=0 Replys ok

ATE=0 Replys ok

AT+ADVSTOP Replys ERROR

AT+CENTRAL Replys ERROR

AT+GAPCONECT Replys CONNECTED OK

Also we have problem with device name in SMART CONSOLE app we see Device name ''CodeLess'' and third party app BLE SCANER, LIGHT BLUE AND our APP we see device name ''CLV2''

please send in my E-Mail:marloskroust@yahoo.grthe source code that you have used to test on your Development kit to test it.

I have DA14586 PRO development kit

we have seriours problem and we need also to call you via skype,zoom or viber.

Help us we trying this two months and it's not working properly as suppose to be !

Send me the proper software that supports all the AT commands.

Thanks in advance,

Marios

5 months ago

PM_Dialog

Hi Marios,

Please check out the user guide and section 9:

http://lpccs-docs.dialog-semiconductor.com/UM-140-DA145x-CodeLess/atcommands.html

In section 9.1 and table 8, you will find the supported AT commands across different product lines/ As you can see, all the AT commands are supported for DA14586. The AT+FLOWCONTROL is also supported. So, please let me know how you call the specific command from the serial terminal, so that I can replicate it.

Please check out lines 945 and 978 in the user_codeless.c file. The “CLv2” is stored into the adverting data and the “Codeless” into scan response data.

The Smart Consoles takes care of the scan response data, so that’s why the “CodeLess” device name Is appeared. This is application specific. Some other BLE generic application don’t sent a scan request to read the scan response data, and as a result the “CLv2” will appear because it’s stored into the advertising data.

TheDA14585-DA14531 Codeless AT Commandv6.380.12.6 supports all the AT commands for DA14586 as mentioned in the user guide too.

Can you please indicate which DK are you using and share an image with the jumpers/wires configuration?

Thanks, PM_Dialog

5 months ago

marios 0 points

Hello PM_Dialog !

Thanks for your quick reply !

we have finally send tha AT+FLOWCONTROL=0,0,0 Thanks !

Now we want to set the Bluetooth address of codeless device with AT command how we can achieve that ?

which is the proper command that have to send to change the Bluetooth Address of the codeless Device

also we have changed the bluetooth advertising name through at command but after system reset command ATR the codeless looses this setting.

Thanks in advance,

Marios

4 months ago

PM_Dialog

Hi Marios,

There isn’t any available AT command for setting the Device BD address. However, there two ways to change it :

Thanks, PM_Dialog

4 months ago

marios 0 points

Hello PM_Dialog!

Thanks for your quick reply!

Could you please help us to add this function because we don't have too much knowledge in depth in codeless to achieve it we have already produce 1.500 DA14586 custom boards and we schedule 3000 until end of January

Thanks in advance,

Marios

4 months ago

PM_Dialog

Hi Marios,

The device will start advertising with the CFG_NVDS_TAG_BD_ADDRESS BD Address. The specific address will be stored into the nvds_data_storage. The BD address is loaded by custom_nvds_get_func() into the stack. So, you will have to create a custom AT Command and modify dynamically the BD address.

The following example shows how to change the device address in every advertising event. You can take it as a reference.

http://lpccs-docs.dialog-semiconductor.com/SW_Example/SDK6/DA14531_Power_optimized_dynamic_advertising/description.html

Why do you need to have n AT command for changing the BD address? Do you need it for the production?

Thanks, PM_Dialog

4 months ago

marios 0 points

Thanks for your quick reply !

yes we need to change Bluetooth adress for production. what options dowe have to achive this ?

Also can we change the default SPI PIN from CS P 2_3 to P 0_3 ?

Thanks in advance,

Marios

4 months ago

marios 0 points

Hello PM_Dialog!

We want also to measure the current of our custom board please correct me if something is wrong for this function we must connect the VBAT3V to p_0_2 Gpio to get the status of the battery with the AT COMMAND AT+ADC=2 as described in the attached document.

Also I want to ask if the AT+BATT also works with this setup

Thanks in advance,

Marios

4 months ago

MHv_Dialog

Hi Marios,

AT+BATT will measure the battery voltage internally in the chip. You do not need to connect any ADC port to the battery for this to work.

It is unclear what you mean by measuring the current. Are you referring to just measure the current in the lab, or are you trying to measure the current as part of the application?

The former can be done using the PRO devkit. If you are using the latest PRO devkit (app 3.5 x 4 inches), power your board from J2 pin 3. On the older PRO kit (app 5 x 2.5 inches), power your custom board from J5 pin 23. Alternatively, you can use a precision ammeter or a source meter (quite expensive)

我asuring current as part of your application will require extra circuitry and the use of an analog port.

/MHv

4 months ago

marios 0 points

Hello Dialog!

We wish you Happy Christmas!

We have a set of two DA14586 with codeless firmware.

We send the below AT Commands to enter the peer device in binary mode

ATE=0

AT+SLEEP=O

AT+FLOWCONTROL=0

AT+ADVSTOP

AT+CENTRAL

AT+GAPCONNET= // Here we enter the specific BD address of peer device at the end of it which parameter have to put (Private or Random) ?

AT+BINREQ //After sending that command we didn't get any reply from peer as would be for example OK.

The AT+BINREQACK is an internal reply AT command from peer to host ?

and we must get Ok ??

We didn't get any reply!!

After that we are ready start just send anything of string data ?

We have tried send data but nothing has received in the peer side!

Also peer device must also at

在+睡眠= 0吗?

ATE=0

AT+FLOWCONTROL=0 ?

Thanks in advance,

Marios

4 months ago

poonam 0 points

Hello folks,

In my device (DA14586) I am also facing the same troble.

But by using the instruction from this forum I solved it easily.ome tvchatiw

So thanks.

Love from romania.

4 months ago

marios 0 points

Hello PM_Dialog !

Thanks for your quick reply !

When we are sending the AT+BINREQ command the CodeLess Doesn't entering in binary mode because we don't get the reply of BINREQACK from peer device.

The devices are already connected with AT+GAPCONNECT

Thanks in advance,

Marios