コード例 #1
0
	continue
#Wait for the GSM/Audio module to send the OK signal

#########		
	

#########		
#The main loop
#########		

		
#The sensor reads the finger print in the desired format 
#and store it in a file the name of which is stored
	
print "Getting fingerprint..."
file = sensor.get("LES");
print "Fingerprint received"

#The data is processed differently for enrollment and query

if len(argv) > 2 and 'e' not in argv[1]:
    to_send = data_process.data_process(file)

else:
    to_send = data_process.data_process(file, True)

i = 0

#For every SMS to send

while i < len(to_send):
コード例 #2
0
ファイル: wrapper.py プロジェクト: Z-Gu/GSM_Project
#########

#########
#The main loop
#########

#Use try-except to capture and terminate on 'Ctrl-C' signal

try:
    while True:

        #The sensor reads the finger print in the desired format
        #and store it in a file the name of which is stored

        print "Getting fingerprint..."
        file = sensor.get(form)
        print "Fingerprint received"

        #The data is processed according to the format

        to_send = data_process.data_process(file, form, method)
        to_send = to_send.split(' ')
        for i in to_send:
            while (not send(i)):
                continue

        #Send the data

#		data_transmit.send(tty, to_send, form)

        break
コード例 #3
0
ファイル: wrapper.py プロジェクト: SimPrints/GSM_Project
#########

#########
# The main loop
#########

# Use try-except to capture and terminate on 'Ctrl-C' signal

try:
    while True:

        # The sensor reads the finger print in the desired format
        # and store it in a file the name of which is stored

        print "Getting fingerprint..."
        file = sensor.get(form)
        print "Fingerprint received"

        # The data is processed according to the format

        to_send = data_process.data_process(file, form, method)
        to_send = to_send.split(" ")
        for i in to_send:
            while not send(i):
                continue

                # Send the data

        # 		data_transmit.send(tty, to_send, form)

        break