Home About Us Products News FAQ Contact

 Magnetic Stripe Card Reader FAQ
 
Home > FAQ > MSE-630T Dynamic Link Library Description

 

 

 

MSE-630t Dynamic Link Library Description
Please click here to download the DLL file and refer to our explanation as attached herewith below :
 
 
Initial function
1) Init_com(sett:pchar):integer
 
 Function:Initial serial port
 
 Return:Integer
     =    1:Success
          0:Communication failed。
         -1:Port is being occupied。
         -3:Invalid configuration 。
          
 parameter:
    sett: text  array,(to set the serial port).
       format:"1,9600,N,8,1" ------ (1=com1 or 2=com2),
                                   (9600=baud9600 OR 4800=baud4800
                                   OR 2400=baud2400 OR 1200=baud1200),
                                   Parity : (N=None or O=odd or E=Even ),
                                            (8= 8 bits 7= 7 bits),
                                            (1=1 stop bit OR 2=2 stop bits).  
       Ie.:"2,9600,O,7,1: " COM2, Baud rate 9600. Odd ,7 data bits,1 stop bit.”
        
 
Close serial port:
2)  close_com
  function:Close the opened port by “Init_com” function.
  Return:None
  Parameter:none
 
 
 
 
 
             
Operating functions
 
Function Link:integer;
 function: control communication .
 
Rerun: Integer
   = 1: Success communication
     -1: Can't open the selected COM port
     -2: Communication failure (not connected or not connected properly)
     -3: Port setting error.
parameter:none
 
 
 
_reset:integer;
 
function:Reset.
 
Return: Integer
   = -1: Can't open the selected COM port
     -2: Communication failure (not connected or not connected properly)
     -3: Port setting error.
parameter:none
 
 
W_card(wdata:pchar):integer;
 
Function:  encode
 
Return: Integer
   =  1: Write successfully
     -1: Can't open the selected COM port
     -2: Communication failure (not connected or not connected properly)
     -3: Port setting error.
     -4: Encoding error
    
 
Parameter:
 
 
 wdata : text array, (data to be encoded).
  format:"%xxxxxxxxxxxxxx?"        ------  write track 1(x=data) 
             ";xxxxxxxxxxxxxx?"     ------  write track 2(x=data)       
             "+xxxxxxxxxxxxxx?"     ------  write track 3(x=data)
             "%xxxxx?;xxxxxxx?"     ------  write track 1,2(x=data)
             ";xxxxx?+xxxxxxx?"     ------  write track 2,3(x=data)
             "%xxxxx?;xxxxxxx?+xxxxxx?"     write track 1,2,3(x=data)       
 
             1: track 1 = 76 alphanumeric characters
             2: track 2 = 37 numeric characters     
             3: track 3 = 104 numeric characters
            
       ie.:   W_card("%1111111111?")
                        -------- write:1111111111 into track 1
                                     
             W_card(";2222222222?")
                        -------- write:2222222222 into track 2
                                    
             W_card("+3333333333?")
                        -------- write:3333333333 into track 3
                                    
             W_card("%2222222222?;1111111111?")
                        -------- write:2222222222 into track 2 AND
                                     write:1111111111 into track 1
                                     
             W_card(";2222222222?+3333333333?")
                        -------- write:2222222222 into track 2 AND                                                                               
                                    write:3333333333 into track 3
 
             W_card("%1111111111?;2222222222?+3333333333?")
                        -------- write:1111111111 into track 1 AND
                               write:2222222222 into track 2 AND                                                                                  
                                     write:3333333333 into track 3                                      
                                    
                                     
 R_card(rdata:pchar;track:integer):integer;
 
Function: decode.
 
Return: Integer
   = -1: Decoded successfully,
     -2: Can't open the selected COM port
     -3: Communication failure (not connected or not connected properly)
     -4: Port setting error.
     -5: Reading error
    
 
    
Parameter:
 
 
 track: selecting tracks          
            --------  1: select track 1   
                       2:select track 2
                       3:select track 3
                       4:select track 1&2
                       5:select track 2&3
                       6:select track 1,2,&3      
 
 rdata: Decode Data Output Buffer(to store the returned data of every successful read)
         Text arrays, > 300 Bytes.
    
Format of a successful read:
    rdata = "%xxxxxxx?"       ------- return track 1 data(while track=1)
    rdata = ";xxxxxxx?"           ------- return track 2 data(while track=2)          
    rdata = "+xxxxxxx?"           ------- return track 3 data(while track=3)
    rdata = "%xxxxxxx?;xxxxxxx?"   ------- return track 1&2 data(while track=4)
    rdata = ";xxxxxxx?+xxxxxxx?"   ------- return track 2&3 data(while track=5)
rdata = "%xxxxxxx?;xxxxxxx?+xxxxxxx?"  return track 1&2&3 data(while track=6)
         
                             
             
 
     track 1 = 76 alphanumeric characters
     track 2 = 37 numeric characters       
     track 3 = 104 numeric characters
            
     ie.:
             R_card(rdata,1)
                       -------- read data from track 1(stored in rdata)
                                    
             R_card(rdata,2)
                       -------- read data from track 2(stored in rdata)   
                                             
             R_card(rdata,3)
                       -------- read data from track 3(stored in rdata)
                                    
             R_card(rdata,4)
                       -------- read data from track 1&2(stored in rdata)
                                                                            
             R_card(rdata,5)
                       -------- read data from track 2&3(stored in rdata)
             R_card(rdata,6)
                       -------- read data from track 1,2,&3(stored in rdata)            

[FAQ Page]

Magstripe Product Index:

 
Swipe Card Reader | ISO & JIS-II combo |  Dual Side | Barcode Magstripe Combo | Encoder | OEM Module | Portable Magstripe  | FAQ

TYSSO Product Links:

Barcode Scanner | Magstripe Card Reader / Writer | POS Customer Display  |  POS Keyboard
Touchscreen POS System | Cash Drawer | Serial-Ethernet Converter | Links to Other Sites

 


 



 

 
Copyright 2004 Fametech Inc.(Tysso)                                                                                             Home | Products | Contact