Friday 8 December 2017 photo 1/1
|
Rn42 I Rm Pdf Download >>> http://tinyurl.com/yby4b9bo
If you don't have a built-in Bluetooth adapter in your computer, you can still experiment with the RN42.you'll just need two modulesOpen mode will disable authentication and allow connection without a passcode or verification of any kindBy default, the RN42 is set as a slave device (0).Example: Set Module to Master Mode (1)Set / Get NameSet Syntax: SN, Get Syntax: GN Read current name or set a unique name for the Bluetooth device.Example: Set module name to 'MyDevice'Set / Get Remote AddressSet Syntax: SR, Get Syntax: GR Read or set the address of the remote device you intend to communicate with.Example: Set Remote Address to '00066663D0BF'Set / Get UART Baud RateSet Syntax: SU, Get Syntax: GU Change the UART baud rateExample: Change UART baud rate to 57,600 bpsSet / Get Transmit Power SettingSet Syntax: SY, Get Syntax: GY Read or set the transmit power for the RN42Need to reboot module for setting to take effectExample: Set Transmit Power to -5 dBmRestore Factory DefaultSet Syntax: SF,1 Get Syntax: noneRestores all settings to factory default values except for the module nameExample: Restore Factory SettingsInquery ScanSyntax: IN , is the scan time in seconds is the desired COD you are scanning for and is an optional parameterExample: Perform a 10 Second Scan for Any Bluetooth DeviceConnectConnect to Known Address Syntax: C, Connect to Remote Address Stored in Memory Syntax: C Displays "Trying" after sending the Connect commandCan check connection status using GK command (see below)Example: Connect to Address 000666674655Get Connection StatusGet Syntax: GK Returns 1,0,0 if connectedReturns 0,0,0 if not connectedExample: Check Connection StatusRebootSyntax: R,1 Perform software reboot of the deviceDevice needs to be rebooted after changing configuration for the changes to be applied.Example: Reboot the DeviceSet / Get Pin Direction (GPIO07)Set Syntax: S, Get Syntax: G is a 2-byte valueFirst byte of contains the GPIO mask (only pins set to '1' will be written)Second byte of contains the value to write to the pin (1=output, 0=input)This setting will be lost when power is removedExample: Set GPIO3 as input and GPIO4 as outputSet / Get Pin Value (GPIO07)Set Syntax: S&, Get Syntax: G& is a 2-byte valueFirst byte of contains the GPIO mask (only pins set to '1' will be written)Second byte of contains the value to write to the pinFor outputs, a value of 1 will set the pin level high, a value of 0 will set the pin level low.For inputs, a value of 1 will set the pull-up resistor, a value of 0 will set the pull-down resistor.Example: Set GPIO2 high level (assuming GPIO2 is configured as output ahead of time)Set / Get Pin Value (GPIO811)Set Syntax: S*, Get Syntax: G* is a 2-byte valueFirst byte of has no effectSecond byte of contains the value to write to the pin (lsb corresponds to GPIO8)GPIO811 can only be used as outputs, but G* can still be used to read the current valueA value of 1 will set the pin level high, a value of 0 will set the pin level low.Example: Set GPIO811 highConnecting to Remote DevicesAlright, it's time to get our hands dirty.Authentication SettingBy default, SSP authentication is enabled on the RN42 moduleAt the bottom of the readout, we see the Other Settings sectionYou'll need to change the authentication setting to a value of either 0 (for Open Mode) or 4 (for Pin Code mode)
This page is meant to help familiarize you with these modulesYou may need to wait for the USB driver to finish installing.Use the following serial settings:Baud: 115,200 (use 9600 if jumper 4 is set)Data Bits: 8Parity: NoneStop Bits: 1Flow Control: NoneYou can leave transmit delay set to zero.Press OK to apply your changes.You should be ready to communicate with your module over UARTAlso, within the "Terminal Setup" dialog box, I like to set the New-line Receive setting to CR+LFI would recommend not using the GPIO if you don't need toEnglish Advanced SearchShopping CartLog In PRODUCTS Semiconductors - ICs Active RF Power Splitters Attenuators - Active Attenuator - Digitally Controlled Attenuator - Evaluation Boards Attenuator - Variable Voltage Detector/Controller Encoder/Decoder Linear ICs Amplifier - Op Amps Amplifier - Special Purpose Comparator Data Converters Converter - ADC Converter - DAC Miscellaneous Converter DC to DC Converter Digital Potentiometer Driver ICs and Modules Bias Driver GaN Gate Driver Gate Driver Gate Driver Evaluation Product Gate Driver IC LED Driver IC MOSFET Driver IC Plug-and-Play IGBT Driver Transformer Driver Interface - Audio/Video Interface - Miscellaneous Interface - Transceiver Linear ICs - Evaluation Board Linear ICs, Other Multiplier/Divider Video IC Voltage Reference Voltage Regulator Memory EEPROM Memory Microphone IC Multi-Function ICs Multi-Function IC Evaluation Kit Multi-Function Receiver IC Multi-Function Transceiver Multi-Function Tuner IC Optoelectronics Cable Driver Cable Equalizer CDR/Reclocker Crosspoint Switch Digital Isolator Laser Driver Multifunction CDR-Crosspoint Optical Limiting Amplifier Optical Modulator Driver Photocoupler (Optocoupler) TIA Module VOIP Processor Power Management IC Processors Digital Signal Processors Digital Signal Processor - Development Tool Digital Signal Processor IC Microcontrollers Microcontroller - Development Tool Microcontroller IC Microprocessors Microprocessor - Development Tool RF Amplifiers Amplifiers - (75 Ohm) Broadband/CATV Broadband/CATV (75 Ohm) Drop Amplifier Broadband/CATV (75 Ohm) Line Amplifier Broadband/CATV (75 Ohm) LNA Broadband/CATV (75 Ohm) MiscIf you don't use pull-ups and connect Vcc directly to one of these pins, it will be fine as long as they are configured as inputsThat way when you send a command to the RN42, it will send a newline before displaying a response.RN42 UART CommandsI know you want to start wireless transmission right away without even having to think, but just tap the brakes for a minuteYou simply confirm you want to pair with the slave, and begin wirelessly transmittingdata (you may need to enter the default pin 1234 to pair with the device).but what if you're not using your computer's built-in Bluetooth adapter? If you have two RN42 modules that you want to automatically connect to each other, the default authentication setting will cause problems
The green LED on the eval kit will blink 2-3 times very quickly on power-up indicating that it's watching for the rest of the sequence.Toggle GPIO4 low.Toggle GPIO4 high.Toggle GPIO4 low.Toggle GPIO4 highYou don't need to worry about interfacing with any USB/UART bridge cableHowever, a microcontroller could also be used as the host controller for the RN42If you are using a microcontroller or FPGA to control the RN42, this gives you the opportunity to increase your I/O countTo enable automatic communication with no host controller configuration, externally drive PIO3 and PIO6 high on one device and only PIO3 on the second deviceAll Rights Reserved Terms of Use Privacy Policy Terms of Sale Help Site Map I would recommend using the RN-42-EK board to evaluate the module since it comes with an on-board USB interfaceThe SF command will reset all settings except the module's Bluetooth NameIn the example above, two PC terminal programs were used as the hosts and ASCII characters were used as the data 87c6bb4a5b
Annons
Camera info
Camera C (Typ 112)
Focal length 6 mm
Aperture f/2.8
Shutter 1/200 s
ISO 80