This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/WL1835MOD: ti-processor-sdk-linux-am335x-evm-03.00.00.04 + wg7833(wifi+bluetooth)+AM335xBluetopiaLinuxProduction-4.2.1.0.1.0 bluetooth stack.+ bluetooth throughput issue.

Part Number: WL1835MOD

Tool/software: Linux

Hi All,

we are working with ti-processor-sdk-linux-am335x-evm-03.00.00.04 + wg7833(wifi+bluetooth)+AM335xBluetopiaLinuxProduction-4.2.1.0.1.0 bluetooth stack

1.I'm trying to test ftpm profile .I got below error

root@am335x-evm:~# cd BluetopiaPM/bin/
root@am335x-evm:~/BluetopiaPM/bin# ./SS1
SS1BTPM  SS1Tool
root@am335x-evm:~/BluetopiaPM/bin# ./SS1BTPM &
root@am335x-evm:~/BluetopiaPM/bin# ./LinuxFTPM_CLT

******************************************************************
* Command Options: 1) Initialize                                 *
*                  2) Cleanup                                    *
*                  3) QueryDebugZoneMask                         *
*                  4) SetDebugZoneMask                           *
*                  5) SetDebugZoneMaskPID                        *
*                  6) ShutdownService                            *
*                  7) RegisterEventCallback,                     *
*                  8) UnRegisterEventCallback,                   *
*                  9) QueryDevicePower                           *
*                  10)SetDevicePower                             *
*                  11)QueryLocalDeviceProperties                 *
*                  12)SetLocalDeviceName                         *
*                  13)SetLocalClassOfDevice                      *
*                  14)SetDiscoverable                            *
*                  15)SetConnectable                             *
*                  16)SetPairable                                *
*                  17)StartDeviceDiscovery                       *
*                  18)StopDeviceDiscovery                        *
*                  19)QueryRemoteDeviceList                      *
*                  20)QueryRemoteDeviceProperties                *
*                  21)AddRemoteDevice                            *
*                  22)DeleteRemoteDevice                         *
*                  23)UpdateRemoteDeviceAppData                  *
*                  24)DeleteRemoteDevices                        *
*                  25)PairWithRemoteDevice                       *
*                  26)CancelPairWithRemoteDevice                 *
*                  27)UnPairRemoteDevice                         *
*                  28)QueryRemoteDeviceServices                  *
*                  29)QueryRemoteDeviceServiceSupported          *
*                  30)QueryRemoteDevicesForService               *
*                  31)QueryRemoteDeviceServiceClasses            *
*                  32)AuthenticateRemoteDevice                   *
*                  33)EncryptRemoteDevice                        *
*                  34)ConnectWithRemoteDevice                    *
*                  35)DisconnectRemoteDevice                     *
*                  36)SetRemoteDeviceLinkActive                  *
*                  37)CreateSDPRecord                            *
*                  38)DeleteSDPRecord                            *
*                  39)AddSDPAttribute                            *
*                  40)DeleteSDPAttribute                         *
*                  41)EnableBluetoothDebug                       *
*                  42)RegisterAuthentication                     *
*                  43)UnRegisterAuthentication                   *
*                  44)PINCodeResponse                            *
*                  45)PassKeyResponse                            *
*                  46)UserConfirmationResponse                   *
*                  47)ChangeSimplePairingParameters              *
*                  48)SendRawHCICommand                          *
*                  49)Connect                                    *
*                  50)Disconnect                                 *
*                  51)dir                                        *
*                  52)cd                                         *
*                  53)mkdir                                      *
*                  54)rmdir                                      *
*                  55)del                                        *
*                  56)put                                        *
*                  57)get                                        *
*                  58)mkfile                                     *
*                  59)abort                                      *
*                  60)ldir                                       *                                    
*                  Help, Quit.                                   *                                    
******************************************************************                                    
FTPM>Initialize 1                                                                                     

BTPM_Initialize() Success: 0.
DEVM_RegisterEventCallback() Success: 5.
FTPM>SetDevicePower 1

echo 117 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio117/direction
echo 0 > /sys/class/gpio/gpio117/value
echo 1 > /sys/class/gpio/gpio117/value
echo 0 > /sys/class/gpio/gpio117/value
echo 1 > /sys/class/gpio/gpio117/value
BT COMM PORT (/dev/ttyS1): 1
Changing HCI baud rate to 3000000
Status: Executing BTS Script /lib/firmware/TIInit_11.8.32.bts.
Status: BTS Script successfully executed.
DEVM_PowerOnDevice() Success: 0.
FTPM>
Device Powered On.
FTPM>RegisterAuthentication

DEVM_RegisterAuthentication() Success: 5.
FTPM>Connect 7802F8CF877A 1 0

FTPM_Open_Remote_File_Server() was successful.
FTPM>
Remote Device Properties Changed.
BD_ADDR:       7802F8CF877A
Device Flags:  0x800001CD
Connect State: TRUE
FTPM>
etFTPMConnectConfirmation, FTPConnectionID: 0x0001, Status 0x0002
BD_ADDR: 7802F8CF877A

FTPM>
Remote Device Properties Changed.
BD_ADDR:       7802F8CF877A
Device Flags:  0x80000185
Connect State: FALSE
FTPM>dir

You must open an FTP Client before issuing this command.
Function Error.

 

2.Any one tried please suggest me.

 

Thanks

veera

  • Veera - Which device is acting as FTP server in your above example?
  • Hi Hari,

    1.Mobile act as a server.On mobile in bluetooth list showing wl18xx .Its paired .But if i want to transfer a file.from mobile this case blutooth device name not showing in bluetooth devices list.

    2.Why its not showing file transfer list.Any bluetooth ftp server needed in mobile ? or no need?

    3.while LINUXDEVM testing also i'm getting below error.

    DEVM>QueryRemoteDeviceServices 7802F8CF877A 0 78

    Attempting Query Remote Device 7802F8CF877A For Services.
    DEVM_QueryRemoteDeviceServices() Success: 78, Total Number Service Bytes: 1267.
    Returned Service Data (78 Bytes):
    3604F035300900000A0001000009000135031918010900043513350619010009001F3509190007090001090005090005350319100235300900000A00010001090001350319180009000435133506
    DEVM_ConvertRawSDPStreamToParsedSDPData() Failure: -10056, Unable to Parse Service Data.

    4. How can I test ftpm on target board.



    Thanks
    veera

  • Hi
    Any update?

    Thanks
    veera
  • I tried on our setup with 'Medieval software' FTP on mobile phone. It gets paired, but refuses to connect.. We, need to debug more and will get back..

    Thanks
  • Hi Hari,
    Thanks for your reply. Medivel software means?

    Thanks
    veera

  • It is a mobile app developer.. We, tested FTPM between two WL18xx BT devices on AM335x. The demo illustrates that configuration.
  • Hi Hari,

    Thanks for your reply.

    Its working? Means file transfer happend? from mobile to am335x target board?

    Thanks

    veera

  • Hi Hari,

    1.I installed  medieval software bluetooth in android mobile.

    2.I saw bluetooth options FTP,OPP,PBAM profile.Previous we dont have the options in my mobile.

    3.When we paired with wl18xx target board and mobile its paring.

    4.When we are trying to connect with ftp with mobile and target board.ftp loading up to 31 counts.

    5.Increment counting time on target we observed upto 31 times observed sniff status : true/false==> whats the reason? status is true/false

    6.After complition of ftp 31 counts means its loaded 100%.Then on mobile i'm getting below picture message.Did you faced same issue? or for yours working?

    7.Set connectable,set discoverable,set pairable also done but still showing same?Then what could be the reason?

    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x8000019D
    Sniff State  : FALSE
    FTPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001BD
    Sniff State  : TRUE (500 ms)

    Thanks

    veeranjaneyulu

  • Hi Hari,
    Any update?

    Thanks
    veera
  • Veera, Did, not get a chance to try due to vacations and other priorities. Will, look into next week and get back. In the mean time, can you try FTPM between two WL18xx devices.

    Thanks
  • Hi Hari,

    Thanks for your reply.

    we tested with OPPM server profile .we send audio,video,mobile contacts,some pdf from mobile to target .Target board has received .If we try with same procedure from target board to mobile unable to send data.

    Followed below link.OPPM server mode its working.what ever send data from mobile we received on target board.

    Is it possible to send video and audio,some pdf from target board to mobile via bluetooth by using OPPM client role?

    2.OPPM server is working .What we send data from mobile all file are recieved on target board.If i want to send same file from target board to mobile via bluetooth.

    Thanks

    veera

  • Is the mobile's OPPM server configured to accept? Please take btsnoop logs on mobile and see where it is failing, when WL18xx BT is OPPM client.
  • Hi Hari,

    Thanks for your reply.

    Actually we have only one board Thats why we did not get output so we are trying with mobile blue-tooth  and target board.

    1.From mobile i sent data that time target board acts as a OPPM_SRV mode.working fine.we calculated transferring data throughput from mobile to target board.

    throughput=total sendingfile size/Transferring time.

    we got 150kbps throughput in different distances.

    2.Same way we need to calculate throughput while transferring data from target board to mobile .

    3.Target board acts as a OPPM_CLT .That time im facing below error.in my android mobile i enable bts snoop logs.

    root@am335x-evm:~#
    root@am335x-evm:~# cd BluetopiaPM/bin/
    root@am335x-evm:~/BluetopiaPM/bin#
    root@am335x-evm:~/BluetopiaPM/bin# ./SS1BTPM &
    root@am335x-evm:~/BluetopiaPM/bin# ./LinuxOPPM

    ******************************************************************
    * Command Options: 1) Initialize                                 *
    *                  2) Cleanup                                    *
    *                  3) QueryDebugZoneMask                         *
    *                  4) SetDebugZoneMask                           *
    *                  5) ShutdownService                            *
    *                  6) RegisterEventCallback,                     *
    *                  7) UnRegisterEventCallback,                   *
    *                  8) QueryDevicePower                           *
    *                  9) SetDevicePower                             *
    *                  10)QueryLocalDeviceProperties                 *
    *                  11)SetLocalDeviceName                         *
    *                  12)SetLocalClassOfDevice                      *
    *                  13)SetDiscoverable                            *
    *                  14)SetConnectable                             *
    *                  15)SetPairable                                *
    *                  16)StartDeviceDiscovery                       *
    *                  17)StopDeviceDiscovery                        *
    *                  18)QueryRemoteDeviceList                      *
    *                  19)QueryRemoteDeviceProperties                *
    *                  20)AddRemoteDevice                            *
    *                  21)DeleteRemoteDevice                         *
    *                  22)DeleteRemoteDevices                        *
    *                  23)PairWithRemoteDevice                       *
    *                  24)CancelPairWithRemoteDevice                 *
    *                  25)UnPairRemoteDevice                         *
    *                  26)QueryRemoteDeviceServices                  *
    *                  27)RegisterAuthentication                     *
    *                  28)UnRegisterAuthentication                   *
    *                  29)PINCodeResponse                            *
    *                  30)PassKeyResponse                            *
    *                  31)UserConfirmationResponse                   *
    *                  32)ChangeSimplePairingParameters              *
    *                  33)RegisterServer                             *
    *                  34)UnRegisterServer                           *
    *                  35)ConnectionRequestResponse                  *
    *                  36)ParseRemoteObjectPushServices              *
    *                  37)ConnectRemoteDevice                        *
    *                  38)Disconnect                                 *
    *                  39)Abort                                      *
    *                  40)PushObject                                 *
    *                  41)PullBusinessCard                           *
    *                  42)EnableBluetoothDebug                       *
    *                  Help, Quit.                                   *
    ******************************************************************
    OPPM>1 1

    BTPM_Initialize() Success: 0.
    DEVM_RegisterEventCallback() Success: 5.
    OPPM>9 1

    echo 117 > /sys/class/gpio/export
    echo out > /sys/class/gpio/gpio117/direction
    echo 0 > /sys/class/gpio/gpio117/value
    echo 1 > /sys/class/gpio/gpio117/value
    echo 0 > /sys/class/gpio/gpio117/value
    echo 1 > /sys/class/gpio/gpio117/value
    BT COMM PORT (/dev/ttyS1): 1
    Changing HCI baud rate to 3000000
    Status: Executing BTS Script /lib/firmware/TIInit_11.8.32.bts.
    Status: BTS Script successfully executed.
    DEVM_PowerOnDevice() Success: 0.
    OPPM>
    Device Powered On.
    OPPM>QueryRemoteDeviceServices 7802F8CF877A 1

    Attempting Query Remote Device 7802F8CF877A For Services.
    DEVM_QueryRemoteDeviceServices() Success: 0, Total Number Service Bytes: 0.
    OPPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001CD
    Connect State: TRUE
    OPPM>ConnectRemoteDevice 7802F8CF877A 5
    Remote Device 7802F8CF877A Services Status: BR/EDR, SUCCESS.
    OPPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001CD
    Serv. Known  : TRUE
    OPPM>0

    OPPM_Connect_Remote_Device: Function Successful. ClientID: 1
    OPPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x80000185
    Connect State: FALSE
    OPPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001CD
    Connect State: TRUE
    OPPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001DD
    Encrypt State: TRUE
    OPPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001FD
    OPPM>
    OPPM Connection Status:
       Client ID: 1
       Remote Device Address: 7802F8CF877A
       Status: 5
    OPPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001DD
    OPPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x80000185
    Connect State: FALSE
    Encrypt State: FALSE
    OPPM>[  302.561258] EXT4-fs (mmcblk0p2): error count since last fsck: 5
    [  302.567235] EXT4-fs (mmcblk0p2): initial error at time 1497349014: ext4_wait_block_bitmap:494
    [  302.575839] EXT4-fs (mmcblk0p2): last error at time 1497349056: ext4_put_super:780

    OPPM>
    OPPM>ConnectRemoteDevice 7802F8CF877A 5 0

    OPPM_Connect_Remote_Device: Function Successful. ClientID: 2
    OPPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001CD
    Connect State: TRUE
    OPPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001DD
    Encrypt State: TRUE
    OPPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001FD
    OPPM>
    OPPM Connection Status:
       Client ID: 2
       Remote Device Address: 7802F8CF877A
       Status: 5====> is correct?
    OPPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x800001DD
    OPPM>
    Remote Device Properties Changed.
    BD_ADDR:       7802F8CF877A
    Device Flags:  0x80000185
    Connect State: FALSE
    Encrypt State: FALSE
    OPPM>PullBusinessCard 1 Uday.vcf

    OPPM_Pull_Business_Card_Request() Failure: -26704 (OPPM Device Not Connected).
    Function Error.

    If connection happen what about the status ?(0==> connection ok right? if i got an other values what about the status ?)

    How to know the status is 2 ie connection refused righ?==> which header file status values defined? Can you please suggest me?

    we tried pulled a contact from mobile through oppm profile.with MEDIEVAL Bluetooth software.

    Thanks

    veera