Proximity_Monitor_scanning

9 posts / 0 new
Last post
prasanth.velliy...
Offline
Last seen:1 year 11 months ago
加入:2016-02-18 12:18
Proximity_Monitor_scanning

Hi Dialog
Q1: What are the functions related to scanning and connecting to Proximity reporter using the proximity monitor project ??
Q2: where i can see the advertising data received by Proximity monior peoject while debugging ??

Thank you Dialog

Device:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2015-06-08 11:34
Hi prasanth.velliyangiri,

Hi prasanth.velliyangiri,

The function that starts the scanning procedure is the app_inq(), that sends the scanning command over GTL and the device starts the scanning, every time that an advertising message is scanned the gapm_adv_report_ind_handler() is triggered and reports the advertising message info to your application (this one place you can check the advertising data of the received message) if the device isn't recorded the received data info are stored in the app_env.devices structure (so this is an other place that you can check the received data).

Regarding the connection, the function responsible is the app_connect() in the app.c file.

Thanks MT_dialog

prasanth.velliy...
Offline
Last seen:1 year 11 months ago
加入:2016-02-18 12:18
Hi Dialog

Hi Dialog
Thank you for your reply,
But i am not seeing any of the fucntions you have mentioned in proximity_monitor project ?? (This is the project i am using => SDK 5.0.4\SDK 5.0.4\DA1458x_SDK_5.0.4\DA1458x_SDK\5.0.4\projects\target_apps\ble_examples\prox_monitor_ext\Keil_5)

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2015-06-08 11:34
Hi prasanth.velliyangiri,

Hi prasanth.velliyangiri,

Thats because those function exist on the windows monitor application at the \DA1458x_SDK\5.0.4\projects\host_apps\windows\proximity\monitor directory, the proximity monitor is an external application (the 580 operates in fully embedded mode, no application on the 580, the application is located on an external MCU that communicates via UART and sends commands to the 580). You will have to download the code from the directory you mention into the 580 and run the windows application (mentioned above) in order to see things happening. You can find info about this is the UM-B-010 User Manual : Proximity Example in integrated and external Processor Solution.pdf.

Thanks MT_dialog

prasanth.velliy...
Offline
Last seen:1 year 11 months ago
加入:2016-02-18 12:18
Hi Dialog

Hi Dialog
Thank you for your reply.
Q1 : i want to to debugg Proximity_monitor_project how will i know the program sequence in debugging mode if app.c /app.h and related files are not present in the directory ?? do i have to run the host_proxm_sdk.vcxproj in VISUAL STUDIO C++ to knoe the sequence ??
Q2 : In Proximity_monitor_project , use of ble_dev devices[MAX_SCAN_DEVICES]; => structure for scanning multible devices and proxr_dev proxr_device[MAX_CONN_NUMBER]; => structure for connecting to multible devices , am i right ??
谢谢你的对话框茶m

prasanth.velliy...
Offline
Last seen:1 year 11 months ago
加入:2016-02-18 12:18
Hi Dialog

Hi Dialog
Thank you for your reply.
Q1 : i want to to debug Proximity_monitor_project how will i know the program sequence in debugging mode if app.c /app.h and related files are not present in the directory ?? do i have to run the host_proxm_sdk.vcxproj in VISUAL STUDIO C++ to know the sequence ??
Q2 : In Proximity_monitor_project , use of ble_dev devices[MAX_SCAN_DEVICES]; => structure for scanning multible devices and proxr_dev proxr_device[MAX_CONN_NUMBER]; => structure for connecting to multible devices , am i right ??
谢谢你的对话框茶m

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2015-06-08 11:34
Hi prasanth velliyangiri,

Hi prasanth velliyangiri,

Q1: I dont get what you mean, the proximity monitor project sends commands over UART as i ve mentioned in my previous post, what do you mean "how will i know the program sequence in bedugging mode". The way an external application runs is quite similar to an embedded solution, for example you send GAPM_SET_DEV_CONFIG_CMD from the app_set_mode, the command goes through UART and to the GTL interface and executes. What do you mean by the term "sequence" ? Can you please be more descriptive ?

Q2: The MAX_SCAN_DEVICES is the maximum amount of devices the monitor is going to report on its output, if the number of devices that appear simultaneously on the air is more that this define the extra device isn't listed in the output, the MAX_CONN_NUMBER is the maximum number of devices that the monitor will be able to establish connection.

Thanks MT_dialog

prasanth.velliy...
Offline
Last seen:1 year 11 months ago
加入:2016-02-18 12:18
Hi Dialog Team

Hi Dialog Team
Thank you for your reply.
(pls see the attachment)
Q1 : i want to see how proximity monitor making the connection with multible device , how will i check if app.c /app.h and associated files are not present in the project folder (SDK 5.0.4\SDK 5.0.4\DA1458x_SDK_5.0.4\DA1458x_SDK\5.0.4\projects\target_apps\ble_examples\prox_monitor_ext\Keil_5 ).

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2015-06-08 11:34
Hi prasanth_velliyangiri,

Hi prasanth_velliyangiri,

即使有附加的图片我不明白你的mean, i can see that you ve placed an app.c file in the prox_monitor_ext example and you are trying to issue a connection command from within the 580 in an external processor solution so i assume that you haven't fully understand the consept of the external processor. In the external solution all the application related commands are issued from an external processor and go to the 580 via UART, thats why there are no app_ files in the prox_monitor_ext application. If you would like to work the proximity monitor you will have to use it along with the windows monitor application. If you would like to catch the via breakpoints the commands that are executed in the 580, you can only do that in the profile applications the files that are located in the sdk_profiles folder disc_task.c proxm_task.c etc.

Thanks MT_dialog