Home

BlinkRC User Manual

image

Contents

1. Unsigned byte that ranges from to 255 The third octet of the Netmask a b Unsigned byte that ranges from 0 to 255 The second octet of the Netmask d Unsigned byte that ranges from to 255 The fourth octet of the Netmask Example Message 0x42 0x47 0x01 0x11 OxFF OxFF 0x00 0x00 where a 255 OxFF b 255 FF c 0 0x00 and d 0 0x00 Set Gateway Message BYTES TYPE DESCRIPTION VALUE RANGE 2 unsigned char message start BG 1 unsigned char message version 0x01 1 unsigned char command code 0x12 4 unsigned char gateway address 1 255 1 255 1 255 1 255 The Set Gateway Message sets the network gateway that the BlinkRC uses The BlinkRC may require power cycle in order for this setting to take effect Data Format Unsigned byte that ranges from 0 to 255 The first octet of the Gateway a b Unsigned byte that ranges from 0 to 255 The second octet of the Gateway Unsigned byte that ranges from 0 to 255 The third octet of the Gateway d Unsigned byte that ranges from 0 to 255 The fourth octet of the Gateway l Example Message 0x42 0x47 0x01 0x12 OxA8 0x01 0x01 where a 192 OxCO b 168 OxA8 c 1 0x01 and d 1 0x01 Set Connection Mode BYTES TYPE DESCRIPTION VALUE RANGE 2 unsigned char message start BG 1 unsigned char message version 0x01 1 unsigned char command code 0x13 1 unsigned char infrastructure
2. BlinkRC 802 11b g WiFi Servo Controller with Analog Feedback N BLINK GEAR BlinkRC User Manual 21 December 2010 Hardware Version 1 1 Manual Version 2 0 Copyright 2010 Blink Gear LLC All rights reserved http blinkgear com ts 5 T THIS DOCUMENT IS PROVIDED BY BLINK GEAR LLC AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL BLINK GEAR LLC BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES LOSS OF USE DATA OR PROFITS OR BUSINESS INTERRUPTION HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENT EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE Introduction Thank you for purchasing BlinkRC BlinkRC is a RC vehicle WiFi receiver that s not just a WiFi receiver You see BlinkRC has an open messaging protocol for interfacing its three PWM outputs and two analog inputs That means you can write your own code to control BlinkRC Any scripting or programming language that sup ports UDP messaging will suffice It s as easy as B G 1 2 3 1 Remove the board from the packagi
3. adhoc 0 1 Description The Set Connection Mode message tells the BlinkRC to either create an Ad Hoc wireless network with the SSID it has saved or to attempt to join an existing Infrastructure wireless network using the SSID and security creden tials it has saved The BlinkRC may require a power cycle in order for this setting to take effect Data Format a Unsigned byte ranging from 0 to 1 A value of 1 causes the BlinkRC to create an Ad Hoc wireless net work value of 0 causes the BlinkRC to attempt to join an existing Infrastructure wireless network 0x42 0x47 0x01 0x13 0x01 where a 1 indicating that the BlinkRC should create its own Ad Hoc wireless network i Network Reset Message BYTES TYPE DESCRIPTION VALUE RANGE 2 unsigned char message start BG 1 unsigned char message version 0 01 1 unsigned char command code Description The Network Reset Message causes the BlinkRC to power cycle its onboard wifi module Data Format None Example Message 0x42 0x47 0x01 Hardware Reset You can apply a hardware reset by shorting the reset jumper contacts together before applying power Then keeping them shorted apply power to the BlinkRC board and the LED will slowly flash red as it performs the necessary operations After approximately 6 seconds the LED will turn green and all settings including WiFi SSID will be reset to the fa
4. ctory defaults Hardware Specification zedune 1047284 euuequy 3 35 ndur ndur and3no THO iF mdur saje 1 5 BLINK GEAR TA N Ground Power Signal
5. cycle in order for this setting to take effect Data Format a 32 single byte character string that is the new SSID All 32 bytes must be sent Unused bytes should be set to zero Example Message 0x42 0x47 0x01 OxOE 0x42 Ox6C 0x69 Ox6E 0x47 0x65 0x61 0x72 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 where BlinkGear 0x42 Ox6C 0x69 0x47 0x65 0x61 0x72 and the remaining 23 bytes are 0x00 Set Network Key Message BYTES TYPE DESCRIPTION VALUE RANGE 2 unsigned char message start BG 1 unsigned char message version 0x01 1 unsigned char command code OxOF 32 unsigned char network key alphanumeric Description The Set Network Key Message sets the security key or pass phrase that the BlinkRC uses to connect to secured wireless networks The BlinkRC is able to connect to networks that use 128 bit WEP encryption or WPA or WPA2 encryption The BlinkRC may require a power cycle in order for this setting to take effect Data Format a 32 single byte character string that is the key or pass phrase All 32 bytes must be sent Unused bytes should be set to zero Example Message 0x42 0x47 0x01 OxOF 0x70 0x61 0x73 0x73 0x70 0x68 0x72 0x61 0x73 0x65 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 where passphrase 0x70 0x61 0x73 0x73 0x70 0x68 0
6. le the message code to control the servos is 0x40 and it has three bytes of data Since the character is 66 in ASCII 0x42 in hexadec imal and the character G is 71 in ASCII 0x47 in hexadecimal and the message version is one the first four bytes of a servo control message would be 0x42 0x47 0x01 0x40 If the three bytes of data being sent in the servo are 0x7 0x8 0x9 then the total servo control message would be 0x42 0x47 0x01 0x40 0x07 0x08 0x09 The BlinkRC will respond to any valid BlinkGear message listed below with an Analog to Digital ADC Message The ADC Message follows the same format as the various control messages All messages are message version one unless otherwise stated Servo Control Message BYTES TYPE DESCRIPTION VALUE RANGE 2 unsigned char message start BG 1 unsigned char message version 0 01 1 unsigned char command code 0x40 1 char channel 1 percent 100 1001 1 char channel 2 percent 100 100 1 channel 3 percent 100 1001 Description This message controls the signal sent to the three servo control pins Data Format a Signed byte ranging from 100 to 100 Determines the effort of the servo or speed controller connected to servo channel 1 b Signed byte ranging from 100 to 100 Determines the effort of the servo or speed controller connected to servo channel 2 c Signed byte ranging from 100 to 100 Determines the effort of the servo or speed controller c
7. ng 2 Take the cover off of your RC car Remove all the PWM connectors from your Electronic Speed Control ESC Generally there will be either two or three connections 3 If one of the above connections is a dedicated power connection plug that into the first slot on the board with the black wire facing the outside If neither are dedicated power plug the wire coming from the motor into the first slot 4 Plug the remaining wires motor and or steering into the second and third slots Always make sure the black wire faces the outside 5 Turn on your iPhone 6 Go to Settings Turn on Airplane Mode This will prevent calls from interrupting your driving 7 Go to Wi Fi Find your device s wireless network BlinkGearXX where XX represent the two digits at the end of your device s MAC address Configure the network to be Static Give yourself an IP address be tween 192 168 1 2 ans 192 168 1 255 excluding 192 168 1 88 the device s default IP Give yourself a Netmask of 255 255 255 0 8 Exit to the main screen and start your app 9 You re ready to drive 10 If you re not driving you might need to switch which channels control throttle and steering on the second screen iPhone Controller To obtain the iPhone controller log into Apple s App Store and search for BlinkRC The app is com pletely free Python Sample Code The following Python code causes all PWM output channels to move to either extreme 100 to 100 fo
8. onnected o servo channel 3 Example Message 0x42 0x47 0x01 0x40 OxCE 0x00 0x32 where a 50 b 0 0x00 and c 50 0x32 Analog to Digital Message BYTES TYPE DESCRIPTION VALUE RANGE 2 unsigned char message start BG 1 unsigned char message version 0x01 1 unsigned char command code 0x06 1 unsigned char channel 1 analog 1 255 1 unsigned char channel 2 analog 1 255 1 unsigned char temperature 1 255 This is message gives the values of the analog to digital input pins The BlinkRC sends this message in response to any valid BlinkGear message it receives Data Format a Unsigned byte ranging from 1 to 255 Describes the voltage measured on ADC pin 1 b Unsigned byte ranging from 1 to 255 Describes the voltage measured on ADC pin 2 c Unsigned byte ranging from 1 to 255 Describes the voltage measured on the on board microcontrol ler s internal temperature sensor Example Message 0x42 0x47 0x01 0x06 0x14 0x28 where a 10 b 20 0x14 and 40 0x28 Antenna Mode Message BYTES TYPE DESCRIPTION VALUE RANGE 2 unsigned char message start BG 1 unsigned char message version 0x01 1 unsigned char command code Ox0D 1 unsigned char use external 0 1 false true Description This message controls whether the BlinkRC uses its built in antenna or the external antenna connector The BlinkRC may require being
9. power cycled before this setting takes effect Data Format a Unsigned byte that ranges from 0 to 1 O tells the BlinkRC to use its on board antenna 1 tells the BlinkRC to use the external antenna connector Example Message 0x42 0x47 0x01 Ox0D 0x00 where a 0 0x00 to indicate that the BlinkRC should use its built in antenna Timeout Delay Message BYTES TYPE DESCRIPTION VALUE RANGE 2 unsigned char message start BG 1 unsigned char message version 0x01 1 unsigned char command code 0x35 1 unsigned char 50 per second delay 0 250 Description If the BlinkRC has not received a Servo Control Message for a long enough period of time it will set the servo outputs to a default value This is to ensure that any device connected to the BlinkRC will enter a known state if wireless communications are lost The Timeout Delay Message determines how long the BlinkRC will go without receiving a Servo Control before setting the servo outputs to their default values Each time the BlinkRC is turned on the Timeout Delay is set to one second Data Format a Unsigned byte that ranges from 0 to 250 Each tick is two hundredths of a second Example Message 0x42 0x47 0x01 0x35 0 7 where 125 0x7D 2 5 seconds Timeout Default Message BYTES TYPE DESCRIPTION VALUE RANGE 2 unsigned char message start BG 1 unsigned char message version 0x01 1 unsigned char command code 0x34 1 cha
10. r five iterations It will simultaneously print out the incoming analog data from the board s two analog inputs import sys struct from socket import setup a listening UDP socket udp_rx_sock socket AF_INET SOCK_DGRAM udp_rx_sock bind 8088 udp_rx_sock settimeout 0 02 20 ms timeout setup a transmit UDP socket host 192 168 1 88 port 8088 addr host port udp_tx_sock socket AF_INET SOCK_DGRAM udp_tx_sock connect addr setup version number and send a servo command message id 0x40 version 0x01 msgld 0x40 for runs in 5 for val in range 100 100 valid range for servo positions include 100 100 w 0 at center chi val ch2 val ch3 val pack the data into a string with the BG magic word header data 5 struct pack gt BBbbb version msgld chi ch2 ch3 send the data udp_tx_sock sendto data addr wait for a2d reply try rxdata addr udp_rx_sock recvfrom 16 except pass else print rxdata addr r Android Controller Coming soon Feel free to make your own and sell it in the Droid App Store Blackberry Controller Coming soon Feel free to make your own and sell it in Balckberry App World Messaging Protocol The BlinkRC is controlled via UDP messages Each message begins with the characters BG followed by a single byte for the message version and a single byte for the message code For examp
11. r channel 1 100 0 1 char channel 2 100 0 1 char channel 3 100 0 Description If the BlinkRC has not received a Servo Control Message for a long enough period of time it will set the servo outputs to a default value The Timeout Default Message sets the defaults that the servo ouputs will be set to Each time the BlinkRC is turned on the Timeout Defaults are set to all zeros Be very careful when setting Timeout Defaults as loss of communication can result in unwanted behavior on the part of any device connected to the BlinkRC s servo outputs Data Format a Signed byte that ranges from 100 to 100 This is the default timeout servo output for servo channel 1 b Signed byte that ranges from 100 to 100 This is the default timeout servo output for servo channel 2 c Signed byte that ranges from 100 to 100 This is the default timeout servo output for servo channel 3 0 42 0x47 0x01 0x34 0x00 0x00 where a 20 OxEC b 0 0x00 and c 0 0x00 Set SSID Message BYTES TYPE DESCRIPTION VALUE RANGE 2 unsigned char message start BG 1 unsigned char message version 0x01 1 unsigned char command code 32 unsigned char ssid alphanumeric Description The Set SSID Message changes the Service Set IDentifier that the BlinkRC uses to communicate wirelessly The SSID can be thought of as the name of the wireless network The BlinkRC may require a power
12. x72 0x61 0x73 0x65 and the remaining 22 bytes are 0x00 Set IP Address Message BYTES TYPE DESCRIPTION VALUE RANGE 2 unsigned char message start BG 1 unsigned char message version 0x01 1 unsigned char command code 0x10 4 unsigned char ip address 1 255 1 255 1 255 1 255 Description The Set IP Address Message sets the IP address that the BlinkRC uses The BlinkRC may require a power cycle in order for this setting to take effect Data Format Unsigned byte that ranges from 0 to 255 The first octet of the IP address Unsigned byte that ranges from 0 to 255 The third octet of the IP address a b Unsigned byte that ranges from 0 to 255 The second octet of the IP address d Unsigned byte that ranges from 0 to 255 The fourth octet of the IP address 0x42 0x47 0x01 0x10 OxA8 0x01 0x58 where a 192 b 168 c 1 0x01 and d 88 0x58 Set Netmask Message BYTES TYPE DESCRIPTION VALUE RANGE 2 unsigned char message start BG 1 unsigned char message version 0x01 1 unsigned char command code 0x11 4 unsigned char netmask address 1 255 1 255 1 255 1 255 The Set Netmask Message sets the netmask that the BlinkRC uses The BlinkRC may require power cycle in order for this setting to take effect Data Format Unsigned byte that ranges from 0 to 255 The first octet of the Netmask

Download Pdf Manuals

image

Related Search

Related Contents

デカピンク取扱説明書  1 - Sony Asia Pacific  Pelco IM10LW10-1V surveillance camera  Control Panel User Manual 1. Introduction  40 years of continuous innovation    Strainoptics Laser GASP®-CS  HP S1933  Micro Cornucopia  取扱説明書 - KYOCERA Connector Products  

Copyright © All rights reserved.
Failed to retrieve file