View Issue Details

IDProjectCategoryView StatusLast Update
0012471MMW v4Framework: Scripts/Extensionspublic2015-01-28 00:08
ReporterLudek Assigned To 
PriorityhighSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version4.1 
Target Version4.1.6Fixed in Version4.1.6 
Summary0012471: Issue with SDB.Device.HandledDeviceList
DescriptionReported by user from ticket #BHZ-912-95744 :

I have an Android phone with a SD card in it. MM reports it as 2 devices (as below) and allows me to sync to each "device".

SPH-L710 - Phone
SPH-L710 - Card

But when I use the scripting function, "Set list = SDB.Device.HandledDeviceList" I have a problem.

The function returns a list of 2 device Ids as:

0:14b57303!USB@\\?\usb#vid_04e8&pid_6860#14b57303#{f33fdc04-d1ac-4e8e-9a30-19bbd4b108ae}$0
0:14b57303!USB@\\?\usb#vid_04e8&pid_6860#14b57303#{f33fdc04-d1ac-4e8e-9a30-19bbd4b108ae}$1

But the "Device Handle" is the same for both devices. And since most of the scripting functions to sync require a device handle, I can't get to both the phone and the card.
Additional Information #BHZ-912-95744
TagsNo tags attached.
Fixed in build1728

Relationships

related to 0011993 closedLudek Enhance SDBDevice class 
related to 0010625 closedLudek SDBDevice cannot be controlled from VB/JS scripts 

Activities

Ludek

2015-01-05 21:29

developer   ~0041586

Hi, I have just tested this and I see the same with my Samsung Galaxy S3.

Test code:



  Dim list : Set list = SDB.Device.HandledDeviceList
  If list.Count = 0 Then
    Call SDB.MessageBox( "No connected device", mtError, Array(mbOk))
    Exit Sub
  End If
    
  Dim txt
  Dim i : i = 0
  For i = 0 To list.Count-1
    txt = SDB.Device.Caption( list.DeviceHandle(i))
    Call SDB.MessageBox( txt, mtInformation, Array(mbOk))
  Next

Ludek

2015-01-05 22:00

developer   ~0041587

Fixed in 4.1.6.1726

peke

2015-01-09 19:01

developer   ~0041633

Verified 1726

Ludek

2015-01-27 10:43

developer   ~0041863

User from the ticket #BHZ-912-95744 indicated that it still does not work for him.

Fixed in 1728 and confirmed via the ticket #BHZ-912-95744

peke

2015-01-28 00:08

developer   ~0041872

Verified 1728 using users example from ticket.