View unanswered posts | View active topics It is currently Thu Jul 27, 2017 4:49 pm



Reply to topic  [ 40 posts ]  Go to page 1, 2, 3, 4  Next
 RF Module serial protocol for sync, board and LED control 
Author Message
Penny Fixer

Joined: Thu Feb 03, 2011 5:40 am
Posts: 13
Location: Mexico
Credits: 0
Post RF Module serial protocol for sync, board and LED control
While searching Google for more information about using the RF module as the wireless receiver for the computer I came across the following posts:

viewtopic.php?f=13&t=138&start=20
viewtopic.php?f=13&t=3119

With the information provided by yaywoop I started my own research on the board and I found ways to control the board the rest of the functions of the board.

This includes the ability to control all the LEDs on the board, turn on/off the radio transceiver, turn off all controllers, etc.

The project was based off a PIC 16f628A micro that I had lying around. It can be modified to any other type of microcontroller. If you need to reduce the ROM size then you can delete all the RS232 functions and that should lighten it up.

In the attached file you will find all the necessary information and files to build your own interface. There are also trace captures of all the commands I sent to the board and the responses it generated in some of the cases.

The firmware will allow you to send any custom command to the RF module by connecting the micro to the computer using the serial port (RS232).

To build it just like in the files all you need is a PIC16F628A, a 10K pullup resistor, and 2x1N4001 Diodes, and of course, a way to program the micro.

You are welcome to change anything in the source code, use a different MCU, remove functions etc...
If you make any new discoveries please do share with the rest so we can benefit from them. My email is on my profile here and on the documents on the attached file.since I wasn't able to figure out what all the commands did (and the responses the board generated), and some parts of the code could be more efficient. Maybe you'll have more luck/creativity than I did.

I hope this helps everyone out that that has an extra board lying around!.
Don't forget to give credit where credit is due, that said, special thanks to yaywoop for his initial research on the board.

Good Luck
Alex Martinez
Mexico.


EDIT 2011/05/03

Original schematic had the power pins swapped. The corrected version is attached below. Always verify connections with a multimeter and if possible another source. Thanks for the tip boo2011.



Attachments:
File comment: Rev 1.1 Contains:
-Source Code
-Schematics
-Documentation with the list of commands
-Signal Traces
-Corrected swapped power pins.

Xbox 360 RF Module 1.1.zip [2.19 MiB]
Downloaded 5772 times
File comment: DEPRECIATED. Download Rev 1.1
Contains:
-Source Code
-Schematics
-Documentation with the list of commands
-Signal Traces
BEWARE: POWER PINS ARE SWAPPED!!!

Xbox 360 RF Module.zip [2.27 MiB]
Downloaded 2052 times

 
 


Last edited by anonimoan on Wed May 04, 2011 3:14 am, edited 2 times in total.

Fri Feb 04, 2011 12:37 am
Profile WWW
Newbie

Joined: Mon Apr 04, 2011 11:00 pm
Posts: 2
Credits: 0
Post Re: RF Module serial protocol for sync, board and LED contro
Just had to log in and say 'you Sir are pure Win!' :)
and credit to the others who started you down this road

My situation is very similar to yours

apart from I write in Assembler for PIC (never did make the jump to C ;)
and was wondering if you could post the rest of the compiler files
from your C code, I would be interested in looking at the
compiled assembly code file

My project is use the RF module on my original Xbox ;)

Thanks to everyone for their excellent work on this

'For those who are about to reverse-engineer... I salute you'

 
 


Mon Apr 04, 2011 11:08 pm
Profile
Penny Fixer

Joined: Thu Feb 03, 2011 5:40 am
Posts: 13
Location: Mexico
Credits: 0
Post Re: RF Module serial protocol for sync, board and LED contro
Hey, glad it's helping you out. I've pulled the files, and I think the most useful for you will be the main.lst file, and if I may, you should start looking into C, it makes some tasks easier, especially when you're running out of time (or creativity). Personally I use assembly only where I need efficiency, otherwise it's just C because I'm lazy.

Let me know if you need anything else.

Good Luck with your project and let me know how it goes.


Attachments:
File comment: Some of the files from the compile process, including the assembly listing.
Linker files.zip [10.66 KiB]
Downloaded 779 times

 
 
Mon Apr 04, 2011 11:46 pm
Profile WWW
Newbie

Joined: Mon Apr 04, 2011 11:00 pm
Posts: 2
Credits: 0
Post Re: RF Module serial protocol for sync, board and LED contro
Thanks for the files, much appreciated

I forgot to ask which PIC C compiler do you use ?


I'll keep you updated on my progress

----------------- EDIT ---------------------------
I have been playing with various C compilers free trials etc
and found that it would help if I could use your 16f628a.H file
as I am getting a few warnings and errors when compiling

I have tried various 16f628a.H files but it looks like your header file
is customised with your preferences

Nice coding style btw

Thanks again

----------------- EDIT ---------------------------

Doh! just read through your notes and saw the C CCS compiler you used :)


----------------- EDIT ---------------------------

Ok things are starting to make a little more sense now
I am updating your main.c file to work with the HI-Tech C compiler
while comparing between Hi-TECH C manual and CCS C examples and notes

It has definatley been awhile since I have done something like this
yet it's still so much fun !

 
 


Tue Apr 05, 2011 10:25 am
Profile
Penny Fixer

Joined: Thu Feb 03, 2011 5:40 am
Posts: 13
Location: Mexico
Credits: 0
Post Re: RF Module serial protocol for sync, board and LED contro
That's right, it's the CCS compiler.
I've never actually used the Hi-Tech compiler, it's supposed to be more efficient. Let me know how that works out and what modifications you did in order to make it work.

Cheers.

 
 


Tue Apr 05, 2011 8:35 pm
Profile WWW
Newbie

Joined: Mon May 02, 2011 7:41 pm
Posts: 1
Credits: 0
Post Re: RF Module serial protocol for sync, board and LED contro
Have you got the power connections in your schematics swapped around ?
they are switched on "RF-CON" compared to the install diagram that comes with SyncRF360.

 
 


Mon May 02, 2011 8:01 pm
Profile
Penny Fixer

Joined: Thu Feb 03, 2011 5:40 am
Posts: 13
Location: Mexico
Credits: 0
Post Re: RF Module serial protocol for sync, board and LED contro
boo2011 wrote:
Have you got the power connections in your schematics swapped around ?
they are switched on "RF-CON" compared to the install diagram that comes with SyncRF360.

You are completely right, I apologize for the error. Thank you for letting me know.

The correct schematic attached for download. I'll edit the first upload with the corrected files in a while. :!:


Attachments:
File comment: Corrected Schematic: Power pins were swapped on RF-CON.
schematic v1.1.png
schematic v1.1.png [ 47.56 KiB | Viewed 25883 times ]

 
 
Wed May 04, 2011 3:04 am
Profile WWW
True XboxExpert
User avatar

Joined: Mon Dec 22, 2008 11:16 pm
Posts: 3105
Location: /dev/null/
XBL-Tag: BOF Frankie
Credits: 0
Post Re: RF Module serial protocol for sync, board and LED contro
Also just wanted to say thanks, still remember how yaywoop started this back in the days, pretty cool what it has turned into :)

Will sticky it so its easier to find for people.

 
 
_________________
Image

Check out our new Buy/Sell/Trade Forum

"They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
Benjamin Franklin


Wed Jul 06, 2011 8:56 am
Profile YIM WWW
Newbie

Joined: Sun Jul 10, 2011 3:09 am
Posts: 1
Credits: 0
Post Re: RF Module serial protocol for sync, board and LED contro
Would this be possible to be ported to a 12F683 if all you want is to have a sync button?

 
 


Sun Jul 10, 2011 3:14 am
Profile
Penny Fixer

Joined: Thu Feb 03, 2011 5:40 am
Posts: 13
Location: Mexico
Credits: 0
Post Re: RF Module serial protocol for sync, board and LED contro
DragonPhyre wrote:
Would this be possible to be ported to a 12F683 if all you want is to have a sync button?


Yes, it is be possible.

You would need to remap the output pins to their new locations.

It will also be necessary to create an open collector driver (It's easy, you just need an NPN transistor and a resistor. Google it) because the data line is bidirectional. Also, depending on your open collector design, you may need to invert the output line (this can be done by code).

You could skip using an open collector output and just drive the RF module directly because if no custom commands are sent, then the RF module will only output data during power-up, and the 2 sec delay prevents that both devices drive the line at the same time, but if the MCU or RF module gets damaged, then you can't say that I didn't warn you.

I have attached source code and HEX files for 'slim' versions that will work without the extra features (custom commands and serial communication). This allows it to compile on smaller devices and provide sync via a push button. Everything else stays the same. This is for both the 16F628a and 12F683 MCUs.

For the 12F683 MCU, the pins have been remapped to GP0(Sync Button), GP1(Data Out) and GP2 (Clk).

I have not tested the codes. I'm pretty certain that the 16F628A version will work, but I have never used the 12F683. I followed the CCS guidelines to configure the ports as required, but still, I'm working blind here.
Both files compiled without errors or warnings. Use the files with caution.

If anyone tests any of the codes, please let me know if they work.
Cheers.


Attachments:
File comment: HEX Files for slim version (12F683/16F628A). Output is NOT inverted on either file.
HEX Files.zip [1.64 KiB]
Downloaded 676 times
File comment: Slim version for 12F683 (C source only)
main slim 12f683.c [6.36 KiB]
Downloaded 668 times
File comment: Slim version for 16F628a (C source only)
main slim 16f628.c [5.57 KiB]
Downloaded 564 times

 
 
Mon Jul 11, 2011 5:16 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 40 posts ]  Go to page 1, 2, 3, 4  Next

Who is online

Registered users: Baidu [Spider], Google [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Xbox Repair Guide

Please select the number of (red) lights that your ring of light shows:

0 red lights
0
 
1 red light
1
 
2 red lights
2
 
3 red lights

4 red lights
4
 


or

Error codes

Go straight to the Error code list/ Database!

 
Search: