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 3544 times)
vaolaritei
Junior Member
**




Posts: 62
RFID reader
06/21/10 at 9:02am
 
i want to read rfid tag to rs232, and i don't know wich are tx rx on board, and if i can put camera and this reader + 1 compas to i2c.
At this moment i don't know sure what i must buy, but i want to know if this it's posible, and same documention about blackfin and boards to take myself conclusion Smiley
Back to top
 
 
WWW good4u_tomi   IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: RFID reader
Reply #1 - 06/21/10 at 9:17am
 
Interface signal list is found here -  
    http://www.surveyor.com/blackfin/bfin-srv1-signals.txt
 
I think you will find RFID readers with I2C interface.  That is probably the easiest interface.
Back to top
 
 

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




Posts: 62
Re: RFID reader
Reply #2 - 06/23/10 at 10:12am
 
Hy, i want ask If anyone has already implemented this function, please explain me how i must write this function in firmware.  
 Thank you
Back to top
 
 
WWW good4u_tomi   IP Logged
vaolaritei
Junior Member
**




Posts: 62
Re: RFID reader
Reply #3 - 06/25/10 at 9:05pm
 
I want to try my rfid reder/writer(RWD-QT) on blackFin.  
I want to ask you if can you explaine me, who pins number i must use to try this reader in picoC  
 
void init_uart1(int baudrate): initializes 2nd Blackfin UART
          5       TX1/TMR6            2nd UART TX or timer 6 pwm/ppm  
          6        RX1/TMR7           2nd UART RX or timer 7 pwm/ppm
 
 
int input1(): return single character from read of uart1
 
I must to stick on BlackFin J4 face.
Back to top
 
« Last Edit: 06/25/10 at 9:15pm by vaolaritei »  
WWW good4u_tomi   IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: RFID reader
Reply #4 - 06/25/10 at 9:19pm
 
Yes - that's correct.  Note that signal1() checks if any characters are waiting.
Back to top
 
 

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




Posts: 62
Re: RFID reader
Reply #5 - 06/25/10 at 9:20pm
 
Back to top
 
 
WWW good4u_tomi   IP Logged
vaolaritei
Junior Member
**




Posts: 62
Re: RFID reader
Reply #6 - 06/30/10 at 8:42am
 
Hi, do you can say if the uart2 it's implemented in firmware functions? i saw that is in picoC,but i need this in a direct conection.
I need to control and pin connection UART CTS. I found in a document Blackf_HRM.pdf (pag.1044) as possible by checking a registry HWAIT. So it's possible to control or not?
Back to top
 
 
WWW good4u_tomi   IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: RFID reader
Reply #7 - 06/30/10 at 9:09am
 
Blackfin UARTs don't directly support hardware flow control.  This has to be controlled in software using GPIO signals.  We implement hardware flow control on UART0 using GPIO-H0 and H6, but we didn't implement hardware flow control for UART1.
Back to top
 
 

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




Posts: 62
Re: RFID reader
Reply #8 - 06/30/10 at 12:11pm
 
it's ok but do you can update the last firmware with an function like uart1_write(... / parameter)
i will apreciate that. I will try tomorow to add a function to the firmware. (at me is 22.11 pm) Smiley
Back to top
 
 
WWW good4u_tomi   IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: RFID reader
Reply #9 - 06/30/10 at 12:13pm
 
Take a look at uart.c - the uart1 functions are already built into the core firmware.
Back to top
 
 

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




Posts: 62
Re: RFID reader
Reply #10 - 06/30/10 at 10:58pm
 
I saw it, but i ask if you can add in srv.c an enter int the switch main.c loop like for "V"(version). Smiley I wiil try today to compile the firmware and add this futures.
 
to add a function to firmware i must declare it in srv.h than put in srv.c and in main.c i will make an gate for this function?
If i want to use one GPIO for TTL/..  in/out who i must declare it in my fct or it's allredy declare and who i can use it.
Thanks
Back to top
 
« Last Edit: 07/01/10 at 12:01am by vaolaritei »  
WWW good4u_tomi   IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: RFID reader
Reply #11 - 07/01/10 at 7:06am
 
A better approach is to put new functions in myfunc.c and myfunc.h.  Then any command that starts with '%' is routed to processing by myfunc.c.  You can test this by sending the '%h' command.  Then if changes occur to the rest of the SRV-1 firmware, you only need to update myfunc.c and myfunc.h.
 
Back to top
 
 

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




Posts: 62
Re: RFID reader
Reply #12 - 07/06/10 at 12:46pm
 
Hello,
 I try to makean UART connection with my RFID reader on pin 5,6, 28 (CTS), but when i run this code in picoC i get an error at init^(9600);
 
 
maybe i have an error and i can't see it code:
 
init_uart1(9600);
 iodir(0x3D)
int CTS=1;
int p=0;
 
void uart()
{
  CTS=(ioread()&0x1);
  if(CTS==1)
   {
     p=input1();
      printf("%d:",p)
    }
  if(CTS==0)
  {
    output1('z');
    delay(10);
  }
}
 
void main()
{
     int i=0;
     while(i<1000)
     {
     uart();
      i++;
     }
}
 
void main();
Back to top
 
 
WWW good4u_tomi   IP Logged
vaolaritei
Junior Member
**




Posts: 62
Re: RFID reader
Reply #13 - 07/06/10 at 12:46pm
 
please help me in that  problem.
Back to top
 
 
WWW good4u_tomi   IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: RFID reader
Reply #14 - 07/06/10 at 12:54pm
 
What version of firmware are you running ?  init_uart1() should be defined.  
 
Also, get rid of the "void" declaration at the very end where you execute main().
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
Pages: 1 2 
Send Topic Print