SRF Stick Setup Information =========================== Guide written by Ramsey El-Naggar 18/1/2016 =========================================== Note this guide is not complete, and may contain unnecessary steps, but this worked for my group, and should work no matter the initial configuration of your SRF stick / Arduino. Plug the SRF stick into a USB port on your dice machine. Connect your Arduino to the computer via the microUSB wire. The USB ports are numbered in order as the devices are plugged into the DiCE PC First device connected: ttyACM0 Second device connected: ttyACM1 Run the following on terminal: $ screen /dev/ttyACMX 115200 (where X is the port number for your SRF stick) Enter command mode by typing either +++ or ~~~ (do not press enter). Once you are in command mode you should see OK. Note that you automatically exit command mode after 5 seconds of no commands. Also, the default settings for screen mean you cannot see what you type. For this to work, I think you have to do it in one session, so if you run out of time, start again (the ATAC command confirms settings and ATWR command writes settings). Press enter after each command and press ctrl-a shift-c to clear the output after every command, so you can confirm that a command has worked by receiving OK (if you receive ERR, you have entered the command incorrectly, if you do not receive OK, you have exited command mode). After getting into command mode, execute the following commands to reset the SRF stick to factory settings: ATRE ATAC ATWR ATDN Now enter command mode again - it will be +++ this time: ATID00XX (where XX is your group number) ATAC ATRP1 ATAC ATCNXX (where XX is the hexidecimal number for your group's frequency) ATAC ATWR ATDN Now exit screen (ctrl-a k) and reset your Arduino radio device to factory default: $ screen /dev/ttyACMX 115200 (where X is the port number for you Ardunio USB connection) Enter command mode (+++ or ~~~) and execute the following commands: ATRE ATAC ATWR ATDN Enter command mode (now +++) and execute the following commands: ATID00XX (where XX is your group number) ATAC ATRP1 (enables remote programming - ie programming your arduino via rf) ATAC ATCNXX (where XX is the hexidecimal number for your group's frequency) ATAC ATBD 1C200 <--- This step is only for the Arduino, not the stick. ATAC ATWR ATDN Here is an Arduino script to test this has worked: #include #include void setup() { SDPsetup(); } void loop() { helloWorld(); while (!Serial.find("TEST")); Serial.println("Message received!"); } Program your Arduino, and disconnect it. Then open a screen for you SRF stick port. Press the reset button on your Ardunio. You should see "hello world" on the screen for you SRF stick port. Type in TEST into the screen (you won't be able to see this). You should see "Message received!".