rn-42 #999
Replies: 17 comments
-
Posted at 2014-04-12 by DrAzzy What is the goal? If you're just trying to control espruino over Bluetooth, you can solder an hc-05 onto the bottom of the espruino board, pair with it and connect via the ide. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-04-13 by Loop I know. But I had a rn-42 instead of a hc05 ;-) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-04-14 by @gfwilliams Do you think it's pin compatible with the HC-05? You can also do |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-04-14 by Loop It's not pin compatible (I actually have a photo of how I wired it, but I never managed to understand how to upload to this forum). And yes, I could put the serial there.. but I need it for midi input instead. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-04-16 by Pat Hi Loop, on the photo front create an account on something like photobucket (photobucket.com). Free. Upload the photo there. Grab the link from photobucket and paste in to the popup that appears when you click image. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-04-16 by @gfwilliams Photo upload should work (by clicking 'upload a file'), but there was a longstanding bug where you couldn't post an image in the first post of a conversation. That actually got fixed yesterday it seems ;) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-04-16 by Pat Yes, that works (I just tried) but to embed an image in the reply itself the "Image" button wants to point to an http:// address. Would be much more convenient if it could grab an image from the local device and upload it somewhere ! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-04-16 by Loop Cool! Enjoy the wiring photo in all its dubious glory!Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-04-16 by Pat Lovely :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-08-08 by stephaneAG hi there ! aside note on the RN42:
( I am currently looking for a way to use an original Espruino board as a bluetooth hid device additionally to a serial one & then remembered it didn't support that, contrary to Pico, WiFi & Puck :/ - so the option of switching between spp & hid is quite nice although we're locked to the supported hid report descriptors .. ) hoping this helps someone ;) *don't know yet what this stands for ( consumer report ? .. ) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-08-08 by @gfwilliams Wow, that new firmware sounds great! If you get it working, some kind of module that exposed the functionality would be great (you might even be able to make the API the same as it is for Puck.js/etc) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-14 by stephaneAG Hi there ! From what I can read in https://www.forward.com.au/pfod/ArduinoProgramming/FioV3/RN-HID-User%20Guide-1.1r.pdf ( pages 3, 6, 7, 8, 9, 10, 11 & above - total 17 pages ), we could write a module somewhat working as the AT one ( putting the device in command mode if not already to alter some of its params & then back to other mode - be it serial or serial+spp, and also surely wrapping stuff with helpers depending on the hid report descriptor chosen ? .. ) It seems they advise to use a "consumer report" to report additional keys, & also to support "keymap registers" ( page 11 for both ) On the "gamepad" thing, after digging a little, I stumbled upon this, which is perfect for some of us ;) Be sure to check this video for an explanation of the relationship between hc05, rn42 & cie ;) nb: I'll investigate the subject as soon as I'm done writing a usb gamepad hid report for Espruino ;) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-15 by stephaneAG back :) a quick update on the subjetc: I just finished writing a USB HID GamePad module ( yaaaaaayyyyy! ^^ ), and I'll digg that RN42 thing as soon as can do. this being said, I now better grasp some stuff from the data provided: using the RN42 HID firmware & sending a 'raw' hid report is done as ( p7 of their manual at https://cdn.sparkfun.com/datasheets/Wireless/Bluetooth/RN-HID-User-Guide-v1.0r.pdf):
to the contrary, USB HID ( & maybe Espruino's bluetooth HID )
One good thing to do 'd be summarizing the REALLY interesting parts from their doc to gain a huge amount of scroll time & cie .. ;) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-18 by @gfwilliams So you wrote something that creates a new |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-24 by stephaneAG Sorry, I just edited the above code excerpts to better reflect what has to be tried on the RN42 setup and the puck.js setup. Ex: possible choices of "interfaces":
the "gamepad higher level helper" could be close to the draft I wrote for another subject on the forums ( http://forum.espruino.com/conversations/325589/ ) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-25 by @gfwilliams Yeah, that's a tricky one. I'd maybe just do:
Then you can do:
for the RN-42? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-10-05 by stephaneAG Hi there ! On the RN42 subject, some readers of this topic may found the following useful: cheers ++ |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-04-12 by Loop
I had one around, (exactly this: https://www.sparkfun.com/products/12574) and tried interfacing. It's been pretty easy, I just connected pin 11 to 3.3v, pin 12 to GND, pin 13 to A2 and pin 14 to A3 and that was it.
With this code I can echo stuff written to the corresponding serial port on the pc.
Beta Was this translation helpful? Give feedback.
All reactions