Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

FTDI VINICULUM VDRIVE2 problem in DATA MODE

Status
Not open for further replies.

ironhyde123

New Member
WE are using VDRIVE2 with Firmware Ver 03.66VDAPF.We are interfacing it with our USB device which is a fingerprint sensor Morphosmart MSO CBM.Details of the Slave Device (fingerprint sensor):
- Communication Class Device in accordance with USB Device Class Specifications version 2.0
- The Device use full speed transfer rate of 12Mbits/s
- Compatible with USB 1.1 and USB 2.0 hosts and hubs
WE tested our sensor with a GET DESCRIPTOR string using the command mode. We are getting desired response when we send the 'DRD' command. But, on our application we don't want the command interface. We want to send/receive data transparently (i.e. w/o using any commands).
The GET DESCRIPTOR string is a data that we send to the sensor , after which the sensor replies:
SYNCïÿìName: CBM
Mobi5 Serial Number: 0944

This is our GET DESCRIPTOR string (18 Bytes):
$53$59$4E$43$04$00$00$00$FB$FF$FF$FF$05$01$00$2F$45$4E
In the above string $53 is a hex value, so we are sending 18 bytes written above in HEX format. We send these values using a Windows XP PC serial PORT. On the PC we are using Terminal v1.9b software (Bray++) and we send hex data using the transmit macros field in Terminal software.
Now while testing, we used the device in command mode initially. Selected the device SC 1 and then pulled the DATAREQ line (pin 36 of VNC1L) low (0V), after that the DATAACK line also became low. So now vdrive2 is in DATA MODE. But, now if we send the GET DESCRIPTOR string then we DON'T get the desired response. Rather we don't get any response from the device. Thus, we fail to interface the sensor in data mode.

But the same can be done successfully using command mode only and the following is the device log:
Command mode successful trial log:
Commands:
ipa
qp2
qd 0
qd 1
sc 1
dsd 18
%%%%%%%% Comment: send the GET DESCRIPTOR string (18 Bytes) using the transmit macros field in Terminal software. %%%%%%%%%%%%
drd

Responses:
D:\>
$10 $00
D:\>
$01 $20 $81 $10 $00 $00 $00 $10 $01 $02 $00 $02 $02 $01 $9B $07 $47 $00 $00 $01 $01 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00
D:\>
$01 $20 $83 $40 $02 $40 $03 $00 $01 $02 $01 $0A $00 $00 $9B $07 $47 $00 $00 $01 $01 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00
D:\>
$40
SYNCïÿìName: CBM
Mobi5 Serial Number: 0944D:\>

Our objective is to interface without using any commands after we select the device (i.e. after sc 1). We want to send our data (for eg. the GET DESCRIPTOR string ) directly to the sensor and get the response from the sensor without using any commands. P.S.:We have also tried the VCDC firmware and failed in a similar manner i.e. we didn't get any reply from the sensor.
 
I've tried a new method which works fine (atleast for the GET DESCRIPTOR string) on both Firmwares 3.66 and 3.68. I have upgraded to firmware Ver 03.68VDAP. So, henceforth I'll be using only Ver 03.68VDAP. Actually I found both the firmwares gave similar responses to my commands. In this new method we switch Vdrive2 in DATA MODE after a DSD byte 0x0D.
I have attached some terminal logs below.
We start the vdrive2 in command mode, then select device SC 1, then use a DSD 18 command to tell the Vdrive2 that we r gonna send it 18 bytes. Now the LED of Vdrive2 blinks until 18 bytes have been received. then we switch to datamode by manually asserting the DATAREQ# line LOW. We get the ACK. Now we send our GET DESCRIPTOR string (18 Bytes) and hurray..we get the response from the sensor instantaneously i.e WITHOUT using a DRD command.
But now my problem is that I can't switch Vdrive2 back in the command mode; I've tried it and the vdrive2 acts dumb. I want to give the sensor different commands which range from 15 bytes to 120 bytes (some which include biometric templates can be upto max. 250 Bytes. So, to change the DSD size value, I need to switch back to command mode! I'm also talking with FTDI support, but they are a little bit slow...

Following are some terminal logs:
################################################## ################################################## ################################
############SESSION 5
#after DSD 50 , manually s/w to DATA MODE ; the DATAREQ# line asserted LOW...success!
**************$$$$OUTPUT OF PC serial PORT i.e. FROM vdrive2 UART**************:
þþ
Ver 03.68VDAPF On-Line:
Device Detected P2
D:\>
D:\>
D:\>
: 00000000-0
SerialNumber: 0000Version: 08.00.d-CCïProduct Name: CBM
Mobi5 Serial Number: 0811C744527
MSO OEM Serial Number: 0813M740377
MSO OEM Product ID: 251606824
Total flash size : 1048576 o 1024 Ko
0
SerialNumber: 0000
Mobi5 Serial Number: 0811C744527
MSO OEM Serial Number: 0813M740377
MSO OEM Product ID: 251606824
Total flash size : 1048576 o 1024 Ko
Id: 00000000-0
SerialNumber: 0000.d-CSYNCïÿÿÿìct Name: CBM
Mobi5 Serial Number: 0811C744527
MSO OEM Serial Number: 0813M740377
MSO OEM Product ID: 251606824
Total flash size : 1048576 o 1024 Ko
: 00000000-0
SerialNumber: 0000Version: 08.00.d-CSYNCïÿÿÿìct Name: CBM
Mobi5 Serial Number: 0811C744527
MSO OEM Serial Number: 0813M740377
MSO OEM Product ID: 251606824
Total flash size : 1048576 o 1024 Ko
: 00000000-0
SerialNumber: 0000Version: 08.00.d-CSYNCïÿÿÿìct Name: CBM
Mobi5 Serial Number: 0811C744527
MSO OEM Serial Number: 0813M740377
MSO OEM Product ID: 251606824
Total flash size : 1048576 o 1024 Ko
: 00000000-0
SerialNumber: 0000Version: 08.00.d-C


**************$$$$INPUT using Terminal v1.9b PC PC software i.e. TO vdive2 UART**************:
ipa
sc 1
dsd 50
//COMMENT: manually s/w to DATA MODE ; the DATAREQ# line asserted LOW
SYNC
SYNC
SYNC
SYNC
SYNC
SYNC

################################################## ################################################## ################################
############SESSION 4
#after DSD 18 , manually s/w to DATA MODE ; the DATAREQ# line asserted LOW...success!
**************$$$$OUTPUT OF PC serial PORT i.e. FROM vdrive2 UART**************:
ü
Ver 03.68VDAPF On-Line:
Device Detected P2
D:\>
$01 $20 $81 $10 $00 $00 $00 $10 $01 $02 $00 $02 $02 $01 $9B $07 $47 $00 $00 $01 $01 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00
D:\>
$01 $20 $83 $40 $02 $40 $03 $00 $01 $02 $01 $0A $00 $00 $9B $07 $47 $00 $00 $01 $01 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00
D:\>
D:\>
D:\>
: 00000000-0
SerialNumber: 0000 08.00.d-CSYNCïÿÿÿìct Name: CBM
Mobi5 Serial Number: 0811C744527
MSO OEM Serial Number: 0813M740377
MSO OEM Product ID: 251606824
Total flash size : 1048576 o 1024 Ko
: 00000000-0
SerialNumber: 0000Version: 08.00.d-CSYNCïÿÿÿìct Name: CBM
Mobi5 Serial Number: 0811C744527
MSO OEM Serial Number: 0813M740377
MSO OEM Product ID: 251606824
Total flash size : 1048576 o 1024 Ko
: 00000000-0
SerialNumber: 0000Version: 08.00.d-C

**************$$$$INPUT using Terminal v1.9b PC PC software i.e. TO vdive2 UART**************:
ipa
qd 0
qd 1
sc 1
DSD 18
//COMMENT: manually s/w to DATA MODE ; the DATAREQ# line asserted LOW
SYNC
SYNC
SYNC


################################################## ################################################## ################################
############SESSION 3
#after DSD 100 , manually s/w to DATA MODE ; the DATAREQ# line asserted LOW...FAILED!
**************$$$$OUTPUT OF PC serial PORT i.e. FROM vdrive2 UART**************:
þ
Ver 03.68VDAPF On-Line:
Device Detected P2
D:\>
D:\>
Command Failed

**************$$$$INPUT using Terminal v1.9b PC software i.e. TO vdive2 UART**************:

ipa
sc 1
dsd 100
//COMMENT: manually s/w to DATA MODE ; the DATAREQ# line asserted LOW
SYNC
SYNC
SYNC
SYNC
SYNC
SYNC
SYNC
SYNC
SYNC
SYNC


################################################## ################################################## ################################
############SESSION 2
#in data mode SINCE RESET...the DATAREQ# line GROUNDED before power ON...FAILED!
**************$$$$OUTPUT OF PC serial PORT i.e. FROM vdrive2 UART**************:
ü
Ver 03.68VDAPF On-Line:
Device Detected P2


**************$$$$INPUT using Terminal v1.9b PC software i.e. TO vdive2 UART**************:
SYNC
SYNC
SYNC
SYNC
SYNC


################################################## ################################################## ################################
############SESSION 1
#FirmV 3.68upgrade..enter DATA MODE after SC 1...after SC 1 , manually s/w to DATA MODE ; the DATAREQ# line asserted LOW...FAILED!
**************$$$$OUTPUT OF PC serial PORT i.e. FROM vdrive2 UART**************:
ü
Ver 03.68VDAPF On-Line:
D:\>
Device Detected P2
$00 $00
D:\>
$10 $00
D:\>
$01 $20 $81 $10 $00 $00 $00 $10 $01 $02 $00 $02 $02 $01 $9B $07 $47 $00 $00 $01 $01 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00
D:\>
$01 $20 $83 $40 $02 $40 $03 $00 $01 $02 $01 $0A $00 $00 $9B $07 $47 $00 $00 $01 $01 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00
D:\>
D:\>




**************$$$$INPUT using Terminal v1.9b PC software i.e. TO vdive2 UART**************:
ipa
qp1
qp2
qd 0
qd 1
sc 1
//COMMENT: manually s/w to DATA MODE ; the DATAREQ# line asserted LOW
SYNC
SYNC
SYNC
SYNC
SYNC
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top