dps / remarkable-keywriter

MIT License
212 stars 18 forks source link

Support for reMarkable 2 #14

Closed briankaemingk closed 3 years ago

briankaemingk commented 3 years ago

Any idea what it would take to support rm2? I have one, and I'd be happy to help with the development and testing, but I might need some tips to get started. Thanks!

briankaemingk commented 3 years ago

Update: it looks like one can use an external keyboard by hooking up to the pogo pin connectors, thanks to user ddvk I'll try to get the right connector, give this a try, and report back.

rjainms commented 3 years ago

Just checking in to see if you tried it. I followed the link to the Reddit thread which had some information, but not a link to the actual pogo accessory they used. (I'm not very familiar with pogo connectors, there seem to be multiple types and if you happen to have a link to an online store where I can buy one and try it myself that would be great). Thanks!

briankaemingk commented 3 years ago

Sure, happy to help. I haven't tried it, but so far, I bought the following:

In the next couple of days, once I get everything ready, I'll try it and report back...

rjainms commented 3 years ago

Thanks for the prompt response! This seems like hardware work is involved here, i.e., you get the Micro USB breakout, and the Pogo pins, connect them somehow and then attach the assembly to the rM2 somehow. I could be wrong, never tried anything like this before. I was thinking there would be some kind of existing hardware dongle that would go from the USB to Pogo (although that still leaves the issue of how to attach that securely to the device).

briankaemingk commented 3 years ago

Yeah, I'm new to all this stuff too. It looks like I can attach these parts together without soldering. I don't have my hands on them yet, but I tried to buy parts where the pins from the pogo adapter slide into the micro usb breakout. Then you can attach it all to a Micro USB OTG adapter like this one and hook it all up to a regular old USB keyboard.

I'm just trying to recreate the setup using the pics from the comments in this reddit post provided by this fine github user.

If you find an easier alternative, please let me know. Otherwise, I'll report back as well. Thanks!

rjainms commented 3 years ago

OK, makes sense, looking forward to what you find!

briankaemingk commented 3 years ago

Alright, so I got the parts, and they seem to fit fine, but I can't keep the connection with my hands, so I guess I'll have to solder the micro usb breakout to the pogo pin adapter. Never done that before, but I can pick up an iron for pretty cheap, so I'll give it a try and report back...

rjainms commented 3 years ago

Cool, thanks! And have you thought about how the assembly will stick to the device? Are the pins magnetized?

On Fri, Dec 25, 2020 at 6:12 AM briankaemingk notifications@github.com wrote:

Alright, so I got the parts, and they seem to fit fine, but I can't keep the connection with my hands, so I guess I'll have to solder the micro usb breakout to the pogo pin adapter. Never done that before, but I can pick up an iron for pretty cheap, so I'll give it a try and report back...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dps/remarkable-keywriter/issues/14#issuecomment-751254997, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPDM6JTYIESBAZU2UIAC2LSWSMTBANCNFSM4U3SSBWA .

briankaemingk commented 3 years ago

No they aren't magnetized.. Not sure, maybe some clips or rubber bands...

bennotkin commented 3 years ago

After years of looking on I just joined this game. Are y'all working with the pogo pins because you've found the usb-c port can't connect to a keyboard, or because you have other intentions?

briankaemingk commented 3 years ago

Correct. No source I've found has figured out how to get usb OTG connections work through the USB C port. More details here: https://remarkablewiki.com/tech/rm2_otg_pogo.

On Sat, Dec 26, 2020, 12:37 PM bennotkin notifications@github.com wrote:

After years of looking on I just joined this game. Are y'all working with the pogo pins because you've found the usb-c port can't connect to a keyboard, or because you have other intentions?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dps/remarkable-keywriter/issues/14#issuecomment-751389039, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXK2ZENYYIHLDBBPKM5IOLSWY3OPANCNFSM4U3SSBWA .

rjainms commented 3 years ago

Brian, for attaching the assembly to the device: it seems the edge near the pogo dots on the device is magnetized.

On Sat, Dec 26, 2020 at 12:51 PM briankaemingk notifications@github.com wrote:

Correct. No source I've found has figured out how to get usb OTG connections work through the USB C port. More details here.

On Sat, Dec 26, 2020, 12:37 PM bennotkin notifications@github.com wrote:

After years of looking on I just joined this game. Are y'all working with the pogo pins because you've found the usb-c port can't connect to a keyboard, or because you have other intentions?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/dps/remarkable-keywriter/issues/14#issuecomment-751389039 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACXK2ZENYYIHLDBBPKM5IOLSWY3OPANCNFSM4U3SSBWA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dps/remarkable-keywriter/issues/14#issuecomment-751394889, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPDM6LC3YLYMEVKHW36Y6LSWZEFPANCNFSM4U3SSBWA .

isman7 commented 3 years ago

Hi!

I'm also interested in hack this a little bit. As an electronic engineer I strongly recommend to solder everything, I've seen students spending hours debugging I2C communications because they only put through-hole connects attached and not soldered.

I've been looking for assembled versions of a pogo-to-usb adapter and neither found one. I'm now researching a for keyboards that had similar connectors. These seem pretty much the same kind of connector: https://www.google.com/search?q=chuwi+ubook+keyboard+pogo&tbm=isch&ved=2ahUKEwj87Nrj8YXuAhUFNxoKHePNCGgQ2-cCegQIABAA&oq=chuwi+ubook+keyboard+pogo&gs_lcp=CgNpbWcQA1DoJ1iCKmDGK2gAcAB4AIABUIgBlgGSAQEymAEAoAEBqgELZ3dzLXdpei1pbWfAAQE&sclient=img&ei=hO70X_yaBIXuaOObo8AG&bih=512&biw=1366&safe=active

I will be posting also updates if I can purchase some material.

briankaemingk commented 3 years ago

Sounds good! Please keep us updated. I'll post pictures as well when I get my materials and try it.

On Tue, Jan 5, 2021, 3:04 PM Ismael Benito notifications@github.com wrote:

Hi!

I'm also interested in hack this a little bit. As an electronic engineer I strongly recommend to solder everything, I've seen students spending hours debugging I2C communications because they only put through-hole connects attached and not soldered.

I've been looking for assembled versions of a pogo-to-usb adapter and neither found one. I'm now researching a for keyboards that had similar connectors. These seem pretty much the same kind of connector: https://www.google.com/search?q=chuwi+ubook+keyboard+pogo&tbm=isch&ved=2ahUKEwj87Nrj8YXuAhUFNxoKHePNCGgQ2-cCegQIABAA&oq=chuwi+ubook+keyboard+pogo&gs_lcp=CgNpbWcQA1DoJ1iCKmDGK2gAcAB4AIABUIgBlgGSAQEymAEAoAEBqgELZ3dzLXdpei1pbWfAAQE&sclient=img&ei=hO70X_yaBIXuaOObo8AG&bih=512&biw=1366&safe=active

I will be posting also updates if I can purchase some material.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dps/remarkable-keywriter/issues/14#issuecomment-754954860, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXK2ZCGZCGKIGGTFACVQKDSYOLJLANCNFSM4U3SSBWA .

briankaemingk commented 3 years ago

@isman7 do you happen to know which end the VBUS connection is on that keyboard? For the rM2, the VBUS connection is closest to the USB-C port. Would be somewhat unfortunate if one could connect the tablet, but it faced the wrong direction.

isman7 commented 3 years ago

No, I had no idea, I went to bed just thinking about that. I'll check it during the day.

El mié, 6 ene 2021 a las 1:26, briankaemingk (notifications@github.com) escribió:

@isman7 https://github.com/isman7 do you happen to know which end the VBUS connection is on that keyboard? For the rM2, the VBUS connection is closest to the USB-C port. Would be somewhat unfortunate if one could connect the tablet, but it faced the wrong direction.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dps/remarkable-keywriter/issues/14#issuecomment-754983295, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACIKATH2SILUHMJTY3WJ2CLSYOU47ANCNFSM4U3SSBWA .

isman7 commented 3 years ago

It's beeing really hard to find technical information of these Chinese tablets. However, some pics of the connectors could be seen here: https://www.notebookcheck.net/Chuwi-UBook-Pro-Tablet-Review-The-Microsoft-Surface-Pro-Clone.442700.0.html

For the purchases, I'm going for similar components (Delivering to Spain):

Notice I've found another pogo pins with magnets!

briankaemingk commented 3 years ago

Great!! Suppose it's a 50/50 chance for the keyboard.

Let us know when you get the parts and I'll do the same.

Best, Brian

On Wed, Jan 6, 2021, 10:19 AM Ismael Benito notifications@github.com wrote:

It's beeing really hard to find technical information of these Chinese tablets. However, some pics of the connectors could be seen here: https://www.notebookcheck.net/Chuwi-UBook-Pro-Tablet-Review-The-Microsoft-Surface-Pro-Clone.442700.0.html

For the purchases, I'm going for similar components (Delivering to Spain):

Notice I've found another pogo pins with magnets!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dps/remarkable-keywriter/issues/14#issuecomment-755470972, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXK2ZHPDU7FY2UKQZCZLULSYSSSTANCNFSM4U3SSBWA .

koenvervloesem commented 3 years ago

@isman7 I have bought your third link, the pogo pins between the two magnets. But I've tried it and they don't align to the magnet in the reMarkable 2. So the pins don't stick because the magnet is attracted by the magnet further at the side of the reMarkable 2.

isman7 commented 3 years ago

Ops. I've also bought some without magnets. They will in 20 days or so.

Thanks for the info!

El jue., 7 ene. 2021 21:00, Koen Vervloesem notifications@github.com escribió:

@isman7 https://github.com/isman7 I have bought your third link, the pogo pins between the two magnets. But I've tried it and they don't align to the magnet in the reMarkable 2. So the pins don't stick because the magnet is attracted by the magnet further at the side of the reMarkable 2.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dps/remarkable-keywriter/issues/14#issuecomment-756349393, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACIKATET7LM6AZG6W62GTIDSYYHGBANCNFSM4U3SSBWA .

briankaemingk commented 3 years ago

Very curious to see which of these all work... I should be able to try my hand at soldering the parts I ordered next week and will post an update. Glad we have an Electrical Engineer on our side!

On Thu, Jan 7, 2021 at 12:56 PM Ismael Benito notifications@github.com wrote:

Ops. I've also bought some without magnets. They will in 20 days or so.

Thanks for the info!

El jue., 7 ene. 2021 21:00, Koen Vervloesem notifications@github.com escribió:

@isman7 https://github.com/isman7 I have bought your third link, the pogo pins between the two magnets. But I've tried it and they don't align to the magnet in the reMarkable 2. So the pins don't stick because the magnet is attracted by the magnet further at the side of the reMarkable 2.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub < https://github.com/dps/remarkable-keywriter/issues/14#issuecomment-756349393 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACIKATET7LM6AZG6W62GTIDSYYHGBANCNFSM4U3SSBWA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dps/remarkable-keywriter/issues/14#issuecomment-756379325, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXK2ZHOE3PEYLFCN53S24DSYYNZLANCNFSM4U3SSBWA .

isman7 commented 3 years ago

Hey,

I have an unsuccessful attempt to connect a keyboard here. Some of the material arrived so inspired by this I mounted this:

However I'm stuck getting any voltage at the port. I'm following these instructions: https://remarkablewiki.com/tech/rm2_otg_pogo

And the main issues seems to be that when setting the power in manual mode, it doesn't change at all:

reMarkable: ~/ echo "OTG Supply" > /sys/otgcontrol/control/otg1_chargermode 
reMarkable: ~/ cat /sys/otgcontrol/control/otg1_chargermode 
Charger OTG Supply Off

Am I missing something from the software point of view? I also checked manually and there isn't any voltage at VBUS :(

briankaemingk commented 3 years ago

Confirming that you used the

echo 2 > /sys/otgcontrol/control/otg1_controllermode

command in the same session? I think that resets after a restart...

On Sun, Jan 10, 2021, 09:22 Ismael Benito notifications@github.com wrote:

Hey,

I have an unsuccessful attempt to connect a keyboard here. Some of the material arrived so inspired by this https://github.com/ddvk/remarkable2-recovery/issues/2#issuecomment-756469361 I mounted this:

https://user-images.githubusercontent.com/9478220/104128351-6e2b4b00-5367-11eb-9172-485db0ad4c39.png

https://user-images.githubusercontent.com/9478220/104128363-77b4b300-5367-11eb-9e06-8ef879b3ae21.png

https://user-images.githubusercontent.com/9478220/104128369-7be0d080-5367-11eb-8e1a-feffd815a239.png

However I'm stuck getting any voltage at the port. I'm following these instructions: https://remarkablewiki.com/tech/rm2_otg_pogo

And the main issues seems to be that when setting the power in manual mode, it doesn't change at all:

reMarkable: ~/ echo "OTG Supply" > /sys/otgcontrol/control/otg1_chargermode reMarkable: ~/ cat /sys/otgcontrol/control/otg1_chargermode Charger OTG Supply Off

Am I missing something from the software point of view? I also checked manually and there isn't any voltage at VBUS :(

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dps/remarkable-keywriter/issues/14#issuecomment-757502480, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXK2ZFN5UXELAJDL4AR4KTSZHH35ANCNFSM4U3SSBWA .

isman7 commented 3 years ago

Yes:

reMarkable: ~/ echo 2 > /sys/otgcontrol/control/otg1_controllermode
reMarkable: ~/ cat /sys/otgcontrol/control/otg1_controllermode 
2
reMarkable: ~/ echo "OTG Supply" > /sys/otgcontrol/control/otg1_chargermode                                                                           
reMarkable: ~/ cat /sys/otgcontrol/control/otg1_chargermode                                                                                           
Charger OTG Supply Off
reMarkable: ~/ echo 1 > /sys/otgcontrol/control/otg1_dr_mode                                                                                          
reMarkable: ~/ cat /sys/otgcontrol/control/otg1_dr_mode                                                                                               
1
reMarkable: ~/      

I also tried to modify it with nano and nothing changes. I suppose some process is avoiding it to change. Maybe it was the latest firmware update...

isman7 commented 3 years ago

Ok, so some logs from dmesg, I'm also reading a little bit the source of the driver.

[28774.817210] rm_otg_control otgcontrol1: otgcontrol_do_controller_mode_change_procedure: Change to manual or non-authenticated mode requires authentication of calling application
[28775.015416] max77818-charger max77818-charger: set MODE bits to 0x5
[28799.977003] max77818-charger max77818-charger: set MODE bits to 0xf
[28813.913871] ci_hdrc ci_hdrc.1: EHCI Host Controller
[28813.913917] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
[28813.937994] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[28813.940670] hub 1-0:1.0: USB hub found
[28813.940769] hub 1-0:1.0: 1 port detected
[28973.001055] max77818-charger max77818-charger: set MODE bits to 0xf
[29086.290380] rm_otg_control otgcontrol1: otgcontrol_change_otg_charger_mode_str: Unable to set OTG1 chargermode (invalid mode Charger OTG Supply On
[29086.290380] )
[29669.540123] rm_otg_control otgcontrol1: otgcontrol_change_otg_charger_mode_str: Unable to set OTG1 chargermode (invalid mode OTG_Supply
[29669.540123] )
[29712.922468] max77818-charger max77818-charger: set MODE bits to 0xf
isman7 commented 3 years ago

Ok! It's fixed!! You have to have the USB-C connected to a charger. Now I have power, but I have to fix the connector.

image

isman7 commented 3 years ago

So, I'm happy for today, I've checked that reproducing https://remarkablewiki.com/tech/rm2_otg_pogo this works, with the USB-C plugged, and returning to the default mode shuts down the power in the pogo pins. However, my first connector attempt is unstable. It seems I have generate some (miss) communication between the rm2 and the keyboard:

[31813.721884] usb usb1-port1: unable to enumerate USB device
[31828.466407] usb 1-1: new low-speed USB device number 6 using ci_hdrc
[31828.706359] usb 1-1: device no response, device descriptor read/64, error -71
[31829.066513] usb 1-1: device no response, device descriptor read/64, error -71
[31829.336446] usb 1-1: new low-speed USB device number 7 using ci_hdrc
[31829.577314] usb 1-1: device no response, device descriptor read/64, error -71
[31829.936452] usb 1-1: device no response, device descriptor read/64, error -71
[31830.056504] usb usb1-port1: attempt power cycle
[31830.546542] usb 1-1: new low-speed USB device number 8 using ci_hdrc
[31831.046500] usb 1-1: device not accepting address 8, error -71
[31831.196480] usb 1-1: new low-speed USB device number 9 using ci_hdrc
[31831.696505] usb 1-1: device not accepting address 9, error -71
[31831.703032] usb usb1-port1: unable to enumerate USB device
[32171.336754] brcmfmac: brcmf_run_escan: error (-25)
[32171.341621] brcmfmac: brcmf_cfg80211_scan: scan error (-25)
[32610.964364] usb 1-1: new low-speed USB device number 11 using ci_hdrc
[32611.204361] usb 1-1: device no response, device descriptor read/64, error -71
[32611.564445] usb 1-1: device no response, device descriptor read/64, error -71
[32615.264590] usb 1-1: new low-speed USB device number 13 using ci_hdrc
[32615.504601] usb 1-1: device no response, device descriptor read/64, error -71

So, in 10 days more or less my pogo pins will arrive so I will attempt further!

briankaemingk commented 3 years ago

Great news, I'll try to reproduce your steps this week and report back as well!

On Sun, Jan 10, 2021, 13:59 Ismael Benito notifications@github.com wrote:

So, I'm happy for today, I've checked that reproducing https://remarkablewiki.com/tech/rm2_otg_pogo this works, with the USB-C plugged, and returning to the default mode shuts down the power in the pogo pins. However, my first connector attempt is unstable. It seems I have generate some (miss) communication between the rm2 and the keyboard:

[31813.721884] usb usb1-port1: unable to enumerate USB device [31828.466407] usb 1-1: new low-speed USB device number 6 using ci_hdrc [31828.706359] usb 1-1: device no response, device descriptor read/64, error -71 [31829.066513] usb 1-1: device no response, device descriptor read/64, error -71 [31829.336446] usb 1-1: new low-speed USB device number 7 using ci_hdrc [31829.577314] usb 1-1: device no response, device descriptor read/64, error -71 [31829.936452] usb 1-1: device no response, device descriptor read/64, error -71 [31830.056504] usb usb1-port1: attempt power cycle [31830.546542] usb 1-1: new low-speed USB device number 8 using ci_hdrc [31831.046500] usb 1-1: device not accepting address 8, error -71 [31831.196480] usb 1-1: new low-speed USB device number 9 using ci_hdrc [31831.696505] usb 1-1: device not accepting address 9, error -71 [31831.703032] usb usb1-port1: unable to enumerate USB device [32171.336754] brcmfmac: brcmf_run_escan: error (-25) [32171.341621] brcmfmac: brcmf_cfg80211_scan: scan error (-25) [32610.964364] usb 1-1: new low-speed USB device number 11 using ci_hdrc [32611.204361] usb 1-1: device no response, device descriptor read/64, error -71 [32611.564445] usb 1-1: device no response, device descriptor read/64, error -71 [32615.264590] usb 1-1: new low-speed USB device number 13 using ci_hdrc [32615.504601] usb 1-1: device no response, device descriptor read/64, error -71

So, in 10 days more or less my pogo pins will arrive so I will attempt further!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dps/remarkable-keywriter/issues/14#issuecomment-757543156, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXK2ZGZK6IBXMNR7NITFF3SZIIKRANCNFSM4U3SSBWA .

rjainms commented 3 years ago

Awesome! Can you guys summarize the exact steps that need to be taken, please! Thanks Ravi

On Sun, Jan 10, 2021 at 1:16 PM briankaemingk notifications@github.com wrote:

Great news, I'll try to reproduce your steps this week and report back as well!

On Sun, Jan 10, 2021, 13:59 Ismael Benito notifications@github.com wrote:

So, I'm happy for today, I've checked that reproducing https://remarkablewiki.com/tech/rm2_otg_pogo this works, with the USB-C plugged, and returning to the default mode shuts down the power in the pogo pins. However, my first connector attempt is unstable. It seems I have generate some (miss) communication between the rm2 and the keyboard:

[31813.721884] usb usb1-port1: unable to enumerate USB device [31828.466407] usb 1-1: new low-speed USB device number 6 using ci_hdrc [31828.706359] usb 1-1: device no response, device descriptor read/64, error -71 [31829.066513] usb 1-1: device no response, device descriptor read/64, error -71 [31829.336446] usb 1-1: new low-speed USB device number 7 using ci_hdrc [31829.577314] usb 1-1: device no response, device descriptor read/64, error -71 [31829.936452] usb 1-1: device no response, device descriptor read/64, error -71 [31830.056504] usb usb1-port1: attempt power cycle [31830.546542] usb 1-1: new low-speed USB device number 8 using ci_hdrc [31831.046500] usb 1-1: device not accepting address 8, error -71 [31831.196480] usb 1-1: new low-speed USB device number 9 using ci_hdrc [31831.696505] usb 1-1: device not accepting address 9, error -71 [31831.703032] usb usb1-port1: unable to enumerate USB device [32171.336754] brcmfmac: brcmf_run_escan: error (-25) [32171.341621] brcmfmac: brcmf_cfg80211_scan: scan error (-25) [32610.964364] usb 1-1: new low-speed USB device number 11 using ci_hdrc [32611.204361] usb 1-1: device no response, device descriptor read/64, error -71 [32611.564445] usb 1-1: device no response, device descriptor read/64, error -71 [32615.264590] usb 1-1: new low-speed USB device number 13 using ci_hdrc [32615.504601] usb 1-1: device no response, device descriptor read/64, error -71

So, in 10 days more or less my pogo pins will arrive so I will attempt further!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/dps/remarkable-keywriter/issues/14#issuecomment-757543156 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACXK2ZGZK6IBXMNR7NITFF3SZIIKRANCNFSM4U3SSBWA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dps/remarkable-keywriter/issues/14#issuecomment-757545273, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPDM6IMX5S6GJ5HM5PCEBTSZIKJPANCNFSM4U3SSBWA .

briankaemingk commented 3 years ago

Sure, I just got it working, here's what I did...

You need the following:

  1. A micro USB breakout like this one
  2. A pogo pin adapter like this one, choose the male version
  3. A USB OTG adapter like this one
  4. Any USB keyboard
  5. Any soldering kit like this one
  6. A couple of rubber bands to help you connect it

Here are the steps:

  1. Once the first two items above arrive, solder the pogo pin adapter into the micro USB breakout keeping in mind that the port labeled VBUS on the USB breakout needs to be closer to the USB-C port on the tablet. If you get a pogo pin adapter that fits snugly, it might work without soldering, but it's pretty easy and cheap to do. I had never soldered before I tried this. The end result will be a connected piece like the below picture: hooked up piece
  2. Align the pogo pins on the piece you soldered to the pins on the tablet so that there is a firm connection; use a rubber band or some other creative way like this: attached
  3. Make sure your tablet is plugged in to power (see notes below), SSH into it and enter the following command: echo 2 > /sys/otgcontrol/control/otg1_controllermode
  4. Open the editor and type away on your rM2!!!

Notes:

  1. For some reason, while it initially seemed to be plugged in to work, like @isman7 discovered, I later unplugged it and discovered that it still worked; will have to keep playing around with that... UPDATE: It seems like you need to have it plugged in to initially work, but after you do the initial fix, it works without plugging it in.
  2. Keep in mind that the setting will reset every time you restart the device, so every time you restart it, you'll have to re-ssh and enter the command echo 2 > /sys/otgcontrol/control/otg1_controllermode; there may be a way to automatically switch this with a script like this, but I need to look into that--any help is appreciated here. UPDATE: If you're using a launcher like draft which you can install here, one way to force it to change the controller mode is to edit the launching script (which is swipeup.sh in the case of draft) to include the echo 2 > /sys/otgcontrol/control/otg1_controllermode line.

Enjoy! I'll close this issue, but the discussion can continue.

rjainms commented 3 years ago

Fantastic! I think you should do a blog post or something about this. Thanks Ravi

On Mon, Jan 11, 2021 at 3:40 PM briankaemingk notifications@github.com wrote:

Closed #14 https://github.com/dps/remarkable-keywriter/issues/14.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dps/remarkable-keywriter/issues/14#event-4193283851, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPDM6PND3CAV7PIJ4U62OTSZOD67ANCNFSM4U3SSBWA .

bennotkin commented 3 years ago

Is it conceivable to add our own magnets to the male pogo? I know the existing pins don’t line up right but, to those who’ve found the magnetic edge, could we make our own magnetic connection?

@rjainms

isman7 commented 3 years ago

Yep, just trying that tonight.

image image image

Using the female connector to act only as magnet. I ordered four pairs of connectors to Aliexpress and arrived during last week. I haven't connect any keyboard yet, but the connection seems more or less stable stable, tomorrow I will try to connect some keyboards.

My early conclusion using those internal magnets is that somehow you have to stabilize the VBUS / USB-C side. Gravity could be used to stabilize it, having some nice structure like the keyboards I sent previously in the thread.

Cheers,

briankaemingk commented 3 years ago

Very cool--please keep us posted when you try connecting the keyboards. Thanks for sharing!

isman7 commented 3 years ago

It works!

Now to launch remarkable-keywriter I have to explore a little bit more about launchers, etc. I don't want to break anything hehe

rm2-keyboard

briankaemingk commented 3 years ago

Wooohoooo!! For some reason, I can't load the video?--feel free to let me know if you have questions about getting the launcher working--it's a little more complicated with an rM2..

isman7 commented 3 years ago

Yep, same. I think I fixed it now, it's a gif!

Thanks for the help, I will let you know if I have any doubts, I will try it during the week.

briankaemingk commented 3 years ago

Looks great!!

  1. Is your usb keyboard plugged in?! It doesn't look like it from the gif, but I assume it is...
  2. I just bought your magnetized pogo pins. Can you send me a link to the breadboard/green circuit board that you're using? I'd like to be able to try that as well.
isman7 commented 3 years ago
  1. It's a Bluetooth one, is a Logitech K400, the dongle is plugged into the USB OTG, so really happy it worked with that keyboard.
  2. Sure, I have them since quite years (https://es.aliexpress.com/item/765383366.html?spm=a2g0s.9042311.0.0.274263c0B3HuXs), I've used the 5cm x 7 cm layout. But I would recommend something more like: https://es.aliexpress.com/item/4000315545230.html?, to simplify soldering. With the pogo connectors I have done some tricks. The female pogo pins are placed 5,5 * 0,1 in, measured directly onto the rm2. So instead of using the holes, I've used the pads:

image

I would go for something similar in the boards with the preprinted strips soldering the pogo pins as they were SMD components. Todo so, you first put some tin in the first pad, then you heat it and place the component, let it cold, then solder the rest. With these kind of boards having the strips, you will only have to solder the USB connector with some pins.

briankaemingk commented 3 years ago

Great, thanks, I'll try this with a dongle and with the new board and reach out with questions!

On Sun, Jan 31, 2021 at 10:30 AM Ismael Benito notifications@github.com wrote:

  1. It's a Bluetooth one, is a Logitech K400, the dongle is plugged into the USB OTG, so really happy it worked with that keyboard.
  2. Sure, I have them since quite years ( https://es.aliexpress.com/item/765383366.html?spm=a2g0s.9042311.0.0.274263c0B3HuXs), I've used the 5cm x 7 cm layout. But I would recommend something more like: https://es.aliexpress.com/item/4000315545230.html?, to simplify soldering. With the pogo connectors I have done some tricks. The female pogo pins are placed 5,5 * 0,1 in, measured directly onto the rm2. So instead of using the holes, I've used the pads:

[image: image] https://user-images.githubusercontent.com/9478220/106392383-c945e000-63f1-11eb-9fcb-1b5599f292d6.png

I would go for something similar in the boards with the preprinted strips soldering the pogo pins as they were SMD components. Todo so, you first put some tin in the first pad, then you heat it and place the component, let it cold, then solder the rest. With these kind of boards having the strips, you will only have to solder the USB connector with some pins.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/dps/remarkable-keywriter/issues/14#issuecomment-770418126, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXK2ZBJOBEEZOHRI7IS5E3S4WHTZANCNFSM4U3SSBWA .

briankaemingk commented 3 years ago

I just tried with this bluetooth keyboard and the provided dongle and it worked like a charm!!

@isman7 - I will get the magnetic pogo pins and a new board in the next few weeks and try it with those items.

tg-x commented 3 years ago

Correct. No source I've found has figured out how to get usb OTG connections work through the USB C port. More details here: https://remarkablewiki.com/tech/rm2_otg_pogo.

I tried switching the USB-C port to host mode, as described on that page:

It's also possible to change the dr mode of the USB-C port to OTG by executing: echo host > /sys/kernel/debug/ci_hdrc.1/role However, the VBUS will not be powered. A powered USB hub does not work if the control chip still uses host VBUS, which is required by the USB standard. A USB-OTG forking cable might work, this has yet to be tested.

Connected a crkbd with one of the Elite-C Pro Micro controllers connected to rM2, and the other one to a charger to power it. On the rM2 the port is switched to host mode and a 1-port hub shows up, but the keyboard is not detected.

Any ideas what else could be tried to get host mode working on the USB-C port?

briankaemingk commented 3 years ago

Hi, i don't have enough knowledge, but this github user might. Or you could post to the reddit community, someone will probably have an idea.

tg-x commented 3 years ago

Also tried the USB-C port with a Y-cable with external power, then both the rM2 and keyboard has power but the keyboard is still not detected. Seems there's more to it than just switching the port role.

tg-x commented 3 years ago

Update: USB-C OTG does work, but the wiki was wrong (fixed just now), port 0 has to be switched to host mode, not port 1.

Thus the following works with a USB OTG Y cable and external power:

echo host > /sys/bus/platform/devices/ci_hdrc.0/role

And to revert it to gadget mode:

echo gagdet > /sys/bus/platform/devices/ci_hdrc.0/role

tg-x commented 3 years ago

simple UI to switch USB mode: https://gist.github.com/tg-x/91c3af24311671544475b5b02c3877fb

briankaemingk commented 3 years ago

@tg-x thank you, I'll give this a try and may have questions for you, much appreciated!!

briankaemingk commented 3 years ago

@tg-x Have you tried it without power, per chance?

tg-x commented 3 years ago

sure, but it does not work. the usb-c port does not provide power, not even after switching it to host mode, hence the requirement for external power.

briankaemingk commented 3 years ago

Makes sense, thanks again. I'll try once I get my hands on a Y OTG cable.

On Sun, Feb 28, 2021 at 2:02 PM TG × ⊙ notifications@github.com wrote:

sure, but it does not work. the usb-c port does not provide power, not even after switching it to host mode, hence the requirement for external power.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/dps/remarkable-keywriter/issues/14#issuecomment-787531174, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXK2ZEWBMXF3V6O44PKVSLTBK4OVANCNFSM4U3SSBWA .