Welcome, Guest. Please Login.
Surveyor Corporation Surveyor SRV-1
Home Help Search Login

Surveyor Robotics Forum

Welcome to the user support forum for Surveyor SRV-1 robots, SRV-1 robot controllers and SVS stereo vision systems. To register for this forum, please send an email to support@surveyor.com which includes your desired forum user name, your registration email address, and a brief explanation of why you wish to join, and we will create a forum account for you.

Please note that there is a Search button in the forum toolbar for forum topics. Another effective search method for the entire surveyor.com site is to use Google, e.g. "xyz site://www.surveyor.com" where "xyz" is the search topic.



Pages: 1 2 
Send Topic Print
RFID reader (Read 3599 times)
vaolaritei
Junior Member
**




Posts: 62
Re: RFID reader
Reply #15 - 07/06/10 at 1:00pm
 
##Version - SRV-1 Blackfin w/picoC 1.0 16:27:20 - Apr  1 2010
I will try without void now
 
 
Can I use this function from firmare?Or it's not implementated yet?
 
i try but it still does'n work.
 
 
#?C##Xmodem success. Count: 384
 iodir(0x3D)
          ^
test.c:3: 'init_uart1' is undefined
leaving picoC
C##Xmodem success. Count: 384
 iodir(0x3D);
          ^
test.c:3: 'init_uart1' is undefined
leaving picoC
Back to top
 
« Last Edit: 07/06/10 at 1:20pm by vaolaritei »  
WWW good4u_tomi   IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: RFID reader
Reply #16 - 07/06/10 at 1:33pm
 
It seems likely you have an older version of firmware.
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
vaolaritei
Junior Member
**




Posts: 62
Re: RFID reader
Reply #17 - 07/06/10 at 2:53pm
 
i it still blockat this point CTS=(ioread(0x3d)&0x1) why him can't read from input?
RE: because him don't have anything on this port ,i  ask why you donot put at initialization this port in low.
 
2.how i can read from uart all the buffer it
 
init_uart1(9600);
//iodir(0X3D);
iodir(0b111101);
int CTS=1;
int p=0;
printf("am initializat intarea");
void uart()
{
printf("sunt in functia uart %s ","1");
  CTS=(ioread()&0x1);
  if(CTS==1)
   {
     p=input1();
      printf("input CTS1 p=%d: ",p);
    }
  if(CTS==0)
  {
 p=input1();
      printf(" input CTS0 p=%d: ",p);
 
 printf(" /z/ ");
    output1('z');
p=input1();
      printf(" input CTS02 p=%d: ",p);
//+++++
//here how i can read all the buffer because i thing that here i loose some data?
//______-----______
 
    delay(10);
  }
}
 
void main()
{
     int i=0;
     while(i<100)
     {
     uart();
      i++;
     printf("I:%d\n",i);
     }
}
 main();
 
Back to top
 
« Last Edit: 07/06/10 at 3:12pm by vaolaritei »  
WWW good4u_tomi   IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: RFID reader
Reply #18 - 07/06/10 at 5:02pm
 
I don't know what would be the problem.  Make certain you have the RFID TX signal connected to the Blackfin RX pin (#6) and the RFID RX signal connected to the Blackfin TX pin (#5).  You may need to use a scope to confirm that the signal lines are active.
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
vaolaritei
Junior Member
**




Posts: 62
Re: RFID reader
Reply #19 - 07/07/10 at 1:39am
 
i make this.
I have an CTS line who work in this mode:
when the rfid reader put 0 on this line i can send to him an command and i receive some bits. But have an variable message length. For this I keep the message into an srv buffer and i read him with  input1(); who read just an byte and return the hexa,or what read?
Back to top
 
 
WWW good4u_tomi   IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: RFID reader
Reply #20 - 07/07/10 at 7:39am
 
You should try to first test the RFID communication interface directly from your host computer to make certain the interface protocol works the way you think it should.  Once you are certain, it will be easier to debug the system with the Blackfin processor added to the communication path.
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
vaolaritei
Junior Member
**




Posts: 62
Re: RFID reader
Reply #21 - 07/07/10 at 12:01pm
 
look at this code:
 
init_uart1(9600);
iodir(0x00);// will set all the H10-15 port on input? i need just H11 on input  it's ok i put  (0xFD)
int citit=ioread();
if(!(citit&0x2)) // this will be execute if bit2 will be 0
{
output(0x53);//put on serial 'S' for the status of the rfid reader tehre it's an bit b1 and if b1==1 then I have an tag in the proximity
delay(600);//it's the maxim time until i will receive an answer
 
buffer=input1();// i read the serial
printf("Data: %2x.\n",buffer);//++++ and here i got S Data ff
                                          //            why i read the S if i send it to the reader to tx?
                                         // the good responds are something like: C0 or C4 or D6
 
 
}
else
{//that means CTS=1}
 
Back to top
 
 
WWW good4u_tomi   IP Logged
vaolaritei
Junior Member
**




Posts: 62
Re: RFID reader
Reply #22 - 07/07/10 at 12:13pm
 
i think that i dont read what the true value...because the baud rate.
Back to top
 
 
WWW good4u_tomi   IP Logged
Pages: 1 2 
Send Topic Print