Hi there Synapse developers and enthusiasts,
This is my first post and I just wanted to say that these forums have been quite helpful. I've been all over them checking out stuff.
Now I couldn't seem to find a straight answer in the forums to whether the RF100 modules could transparently serially communicate at 115200 baud or not. I know you can successfully configure them to do so but I'm not sure in reality if they can talk that fast.
So here's what I'm trying to do:
Establish a transparent serial link between my PC and a Arduino Uno in order to program it wirelessly. Note: The Arduino Uno bootloader sets up the communication speed to 115200 for serial programming.
Here's are my results:
I could not seem to upload code from my PC to the Uno with the Arduino-0022 IDE. For hardware I am using the PC usb port to Solarbotics Synapse-FTDI-adapter to RF100 engine and then to other RF100 engine to Solarbotics Synapse-Xbee apater board to Xbee-shield to Arduino Uno
Please note: I have tested this same hardware and software (configured to 57600 baud) with a Freeduino (bootloader communicates at 57600 baud) instead of the Uno and it works flawlessly.
Here is the code for the PC side:
Here is the code for the Arduino Uno side:
I have tried using flowControl(1, False, True) with the same negative results. I have also tried using both the RF100PC6 and RF100PD6 RF engines with the same results. Another thing I have tried is adjusting the NV Parameters with the following code injected just below the def startupEvent(): portion:
But it didn't seem to make a difference.
I have used my logic analyzer (with Ardunio-0022 IDE) to analyze the timing of the first few bits of serial data when i upload code and it seems that they are at the same timing (0.5s apart) as with the 57600 speed. I measure the timing between initial pulses with the Uno directly hooked up to my PC and the initial few responses are 0.2s apart.
I guess simply put my question is: Can the RF100 modules transparently serially communicate at 115200 baud or am I chasing a ghost?
This is my first post and I just wanted to say that these forums have been quite helpful. I've been all over them checking out stuff.
Now I couldn't seem to find a straight answer in the forums to whether the RF100 modules could transparently serially communicate at 115200 baud or not. I know you can successfully configure them to do so but I'm not sure in reality if they can talk that fast.
So here's what I'm trying to do:
Establish a transparent serial link between my PC and a Arduino Uno in order to program it wirelessly. Note: The Arduino Uno bootloader sets up the communication speed to 115200 for serial programming.
Here's are my results:
I could not seem to upload code from my PC to the Uno with the Arduino-0022 IDE. For hardware I am using the PC usb port to Solarbotics Synapse-FTDI-adapter to RF100 engine and then to other RF100 engine to Solarbotics Synapse-Xbee apater board to Xbee-shield to Arduino Uno
Please note: I have tested this same hardware and software (configured to 57600 baud) with a Freeduino (bootloader communicates at 57600 baud) instead of the Uno and it works flawlessly.
Here is the code for the PC side:
Code:
from synapse.switchboard import * from synapse.platforms import * otherNodeAddr = "\x00\x00\x00" #blanked out node address for obvious reasons @setHook(HOOK_STARTUP) def startupEvent(): initUart(1, 1) flowControl(1, False) crossConnect(DS_UART1, DS_TRANSPARENT) ucastSerial(otherNodeAddr) setPinDir(9, False) #Output writePin(9, True) #Set Low setPinDir(10, False) #Input monitorPin(10, True) #monitor changes to this pin. setRate(3) #1 ms monitoring of pin @setHook(HOOK_GPIN) def pinChg(pinNum, isSet): if (isSet == False): rpc(otherNodeAddr, 'writePin', 9, True) else: rpc(otherNodeAddr, 'writePin', 9, False)
Code:
from synapse.switchboard import * from synapse.platforms import * otherNodeAddr = "\x00\x00\x00" #blanked out node address for obvious reasons @setHook(HOOK_STARTUP) def startupEvent(): initUart(1, 1) # <= put your desired baud rate here! flowControl(1, False) crossConnect(DS_UART1, DS_TRANSPARENT) ucastSerial(otherNodeAddr) setPinDir(9, True) #Output writePin(9, True) #Set Low
Code:
NeedRestart=saveNvParam(13, 0, NeedRestart) NeedRestart=saveNvParam(14, 110, NeedRestart) NeedRestart=saveNvParam(15, 5, NeedRestart) if NeedRestart: reboot()
I have used my logic analyzer (with Ardunio-0022 IDE) to analyze the timing of the first few bits of serial data when i upload code and it seems that they are at the same timing (0.5s apart) as with the 57600 speed. I measure the timing between initial pulses with the Uno directly hooked up to my PC and the initial few responses are 0.2s apart.
I guess simply put my question is: Can the RF100 modules transparently serially communicate at 115200 baud or am I chasing a ghost?
Comment