maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   The Other Half (https://talk.maemo.org/forumdisplay.php?f=59)
-   -   DIP_TOH -- lots of toggles! -- sold out! (https://talk.maemo.org/showthread.php?t=93350)

d0n_Egg1 2014-08-25 06:06

Re: DIP_TOH -- lots of toggles! -- orders 8/12
 
if there is still one TOH available i would be interested in one too :D

dirkvl 2014-08-25 14:27

Re: DIP_TOH -- lots of toggles! -- orders 8/12
 
On the list.

First proto shell from Shapeways is on the way, should be pics/video in a few days!


Edit: next 6 PCBs are shipped (from US) and first case arrives tomorrow!

dirkvl 2014-08-26 16:52

Re: DIP_TOH -- lots of toggles! -- orders 8/12
 
Pics in Dropbox

Could these people please contact me about shipping and payment (e.g. address and paypal mail)? Also, let me know what colour you want!
info at funkyotherhalf.com

(1st batch)
-Rauha
-Kabouik
-MemphisX
-Koiruus
-MartinK

(2nd batch of 6)
-d0n_Egg1 -> Red
-carton
-Koiruus

(three more for sale)

kimmoli 2014-08-26 19:30

Re: DIP_TOH -- lots of toggles! -- orders 8/12
 
About the application: How would you like this to be configured?

It will be a daemon running as systemd service.

I was thinking that first approach would be simple; a directory with 12 shell script files which are:

sw1on.sh, sw1off.sh, sw2on.sh, sw2off.sh, ....

sw1on.sh is executed when dip 1 is turned on
sw2off.sh is executed when dip 2 is turned off

The UI would then be just for editing these scripts.

Daemon would run either as root or nemo, but there is issues with both accessing certain things of phone. Might need some consultation.

Comments?

cartron 2014-08-26 20:26

Re: DIP_TOH -- lots of toggles! -- taking orders!
 
Quote:

Originally Posted by dirkvl (Post 1436275)
Ordered 6 extra boards, will not make more than that. I consider all 12 owners to be 'testers', to see if feature has to be added to the infamous 'kitchensink TOH'

Okay, so first 6 DipTOHs for 45:
-me (R&D)
-Kimmo (R&D)
-Rauha
-Kabouik
-MemphisX
-JollaHQ

Next and last 6:
-Koiruus
-MartinK
-d0n_Egg1
-
-
-

Hi, I am interested as well by the next batch ! :)

Koiruus 2014-08-26 22:51

Re: DIP_TOH -- lots of toggles! -- orders 8/12
 
Quote:

Originally Posted by kimmoli (Post 1436882)
About the application: How would you like this to be configured?

Sounds nice to me. And I think that I wouldn't be changing the actions of the switches all time, so I think that just modifying script files would also be okay (if someone makes a tutorial :)) But a GUI would be nice.

dirkvl 2014-08-29 07:51

Re: DIP_TOH -- lots of toggles! -- orders 8/12
 
first 4 payment requests are out! cases are ordered and will arrive here in +-2 weeks, sent to new owners +-3weeks from now

if you are on the list, send an email to info at funkyotherhalf.com containing
- your paypal mail
- address
- preferred colour
(White, blue, red, purple, pink, yellow, green, orange, black (+3E), Alumide (+6E))

if you also want one, let me know, there are i believe 2 left.

asys3 2014-08-31 14:49

Re: DIP_TOH -- lots of toggles! -- orders 8/12
 
I would want one, too.
Could you please update the list to make sure I get one ? ;)

cartron 2014-08-31 19:27

Re: DIP_TOH -- lots of toggles! -- orders 8/12
 
@kimmoli: I like this approach, very simple and yet powerful.

dirkvl 2014-09-04 15:43

Re: DIP_TOH -- lots of toggles! -- orders 12/12 = full
 
which idiot ordered black??

http://oi61.tinypic.com/nv2m81.jpg

ordered all parts for all DipTOHs, will soon update list with people who ordered/payed/colour

dirkvl 2014-09-04 17:30

Re: DIP_TOH -- lots of toggles! -- orders 11/12
 
paid:
d0n_Egg1 -> Red
MemphisX -> White
Kabouik -> Pink
Koiruus -> Black
cartron -> Purple
asys3 -> Black
haliava -> Alumide

R&D
kimmo -> Purple
dirk -> Red
JollaHQ -> 2x Alumide


which adds up to 11, which means some people that showed interest previously have yet to send me their info. Rauha? MartinK?

ced117 2014-09-06 23:11

Re: DIP_TOH -- lots of toggles! -- orders 11/12
 
Do you still take orders ?

dirkvl 2014-09-07 06:32

Re: DIP_TOH -- lots of toggles! -- orders 11/12
 
Quote:

Originally Posted by ced117 (Post 1438458)
Do you still take orders ?

Y

please contact me about shipping and payment (e.g. address and paypal mail)? also, let me know what colour you want!
info at funkyotherhalf.com

ced117 2014-09-07 08:32

Re: DIP_TOH -- lots of toggles! -- orders 11/12
 
Ok dirkvl, will do that right away.
Thank you :)

dirkvl 2014-09-08 10:08

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
First batch is here! Looking really cool and pcb fits like a glove!

https://dl.dropbox.com/s/4nfkbw371c4...2013.03.10.jpg
https://dl.dropbox.com/s/7zirlsfxl9c...2013.04.23.jpg
https://dl.dropbox.com/s/mmm0tut6iln...2013.04.33.jpg

will have to wait for some extra capacitors and resistors, but these will all be sent this week!

cartron 2014-09-08 14:24

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
Nice!
Can't wait to receive mine!
How about the script part? Is that Kimmo taking care of that?

kimmoli 2014-09-08 14:55

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
Quote:

Originally Posted by cartron (Post 1438580)
How about the script part? Is that Kimmo taking care of that?

I'm taking care of it, as soon as i get my R&D part to tinker with.
Basics are done, so it should take only couple of nights + 1 to package everything in a shiny RPM.

cartron 2014-09-08 15:08

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
Quote:

Originally Posted by kimmoli (Post 1438584)
I'm taking care of it, as soon as i get my R&D part to tinker with.
Basics are done, so it should take only couple of nights + 1 to package everything in a shiny RPM.

Awesome, thanks for the update Kimmo!

Kabouik 2014-09-08 19:33

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
Mine is on all three pics. http://forum-images.hardware.fr/imag...flagadadim.gif

(And it's more pink than it seemed on Shapeways preview. :O)

dirkvl 2014-09-08 19:46

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
Quote:

Originally Posted by Kabouik (Post 1438616)
Mine is on all three pics. http://forum-images.hardware.fr/imag...flagadadim.gif

(And it'smore pink than it seemed on Shapeways preview. :O)

you wont believe it, but it is even moar pink in real life. alumide was a cool surprise, but the pink is also very impressive!

d0n_Egg1 2014-09-08 19:50

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
Quote:

Originally Posted by Kabouik (Post 1438616)
Mine is on all three pics. http://forum-images.hardware.fr/imag...flagadadim.gif

(And it'smore pink than it seemed on Shapeways preview. :O)

i like my red one :D
is a good contrast to my blue TOHOLED from kimmo :p

Kabouik 2014-09-08 20:19

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
Quote:

Originally Posted by dirkvl (Post 1438619)
you wont believe it, but it is even moar pink in real life. alumide was a cool surprise, but the pink is also very impressive!

Actually I really like the pink hue on the second pic, but the third one makes me think about her:

http://reho.st/http://www.zenzonefor...9&d=1389993008

I prefer the hue of the second pic! :Ð

dirkvl 2014-09-09 18:15

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
PCB file and BOM

Quote:

Casing:
https://www.shapeways.com/designer/v...sumprototyping
DipTOH_1.0.1

PCB: dip.brd

Electronics:
MCP23009-E/MG-ND
CAT24C02VP2IGT3A0SCT-ND
AT42QT1011-MAHCT-ND
MCP1703-SOT23
1mF 603 Capacitor x2
10pF 603 Capacitor
10k 603 Resistor
4K7 603 Resistor

MartinK 2014-09-09 20:25

Re: DIP_TOH -- lots of toggles! -- orders 11/12
 
Quote:

Originally Posted by dirkvl (Post 1438231)
paid:
d0n_Egg1 -> Red
MemphisX -> White
Kabouik -> Pink
Koiruus -> Black
cartron -> Purple
asys3 -> Black
haliava -> Alumide

R&D
kimmo -> Purple
dirk -> Red
JollaHQ -> 2x Alumide


which adds up to 11, which means some people that showed interest previously have yet to send me their info. Rauha? MartinK?

Oops! Looks like I overslept a bit! :-P I guess it is too late now ?

Kabouik 2014-09-15 09:52

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
Got mine this morning, can't wait to have the software side to test it!

The very flashy pink color is kind of difficult to deal with when there are people around (a darker pink would have been cool too), but to be honest I think I like it. :)

kimmoli 2014-09-15 10:03

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
Quote:

Originally Posted by Kabouik (Post 1439269)
The very flashy pink color is kind of difficult to deal with when there are people around...

Your first steps of naturism...

I'm waiting for my still, so no SW yet :p

Kabouik 2014-09-15 10:08

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
:>

Hope you'll get yours soon, I just put it on instead of the toholed and I'm now away till thursday with only this OH! :]

nokiabot 2014-09-15 12:58

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
The coolest oh so far pink one is just :eek: and if insted of 1234567 they were just thick dots i think it would look a lot more cooler :D
Anyway awsome job !

Kabouik 2014-09-15 13:50

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
Pink one is just what? :O Careful with what you're gonna say!

nokiabot 2014-09-15 14:11

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
Quote:

Originally Posted by Kabouik (Post 1439296)
Pink one is just what? :O Careful with what you're gonna say!

i controlled myself a lot :D
Really its just :eek:

kimmoli 2014-09-15 14:15

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
Quote:

Originally Posted by Kabouik (Post 1439273)
Hope you'll get yours soon,

urf, i have to go to do some welding/plasmacutting, so hope diptoh waits me at home when i get there.

dirkvl 2014-09-15 17:05

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
Quote:

Originally Posted by kimmoli (Post 1439300)
i have to go to do some welding/plasmacutting, so hope diptoh waits me at home when i get there.

what a life!

have some diptohs ready to go at home, but the eeproms need to be programmed before i can send them.

the ones that are sent already are not programmed -my bad- so there will be probably be some instruction here also about how to do that. i guess step 1 will be: download i2ctool! (so you can do that already)

kimmoli 2014-09-15 18:58

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
DIPTOH EEPROM Programming instructions:

Read through once before doing.

http://talk.maemo.org/images/icons/icon4.gifWarning : Don't do anything else in i2ctool, you may break your device.


1. Install i2ctool from jolla store
2. Attach diptoh to your phone
3. Open terminal
4. Start i2ctool as root devel-su harbour-i2ctool
5. Click enable Vdd button, power indicator should show now ON
6. Click TOH EEPROM button
7. View with lots of FFFF should appear. If not, contact me at freenode (kimmoli) or PM here.
8a. Click on each field to enter following values.

https://lh6.googleusercontent.com/-w...0915214301.jpg

8b. Double check values
9. Click Write button
10. Swipe back to main menu
11. Click again TOH EEPROM button, the values should be there. If you got FFFF contact me.
12. Swipe back to main menu
13. Click disable Vdd button
14. Close i2ctool

That is all for now.

kimmoli 2014-09-15 20:44

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
progress...

syys 15 23:42:26 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 000000
syys 15 23:42:27 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 000001
syys 15 23:42:29 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 000011
syys 15 23:42:29 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 000111
syys 15 23:42:30 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 001111
syys 15 23:42:30 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 011111
syys 15 23:42:31 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 111111
syys 15 23:42:32 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 011111
syys 15 23:42:32 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 000111
syys 15 23:42:33 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 000110
syys 15 23:42:33 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 000100

kimmoli 2014-09-15 21:19

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
First version 0.1-1 of diptoh-daemon is here:

(Detach and attach diptoh once before installing)

RPM for install: Note http://talk.maemo.org/images/icons/icon2.gif Update available. See this post http://talk.maemo.org/showpost.php?p...&postcount=108

pkcon install-local harbour-diptoh-daemon-0.1-1.armv7hl.rpm -y

Installer starts service automatically if you did manage to write EEPROM contents and DIPTOH is attached while installing.

Sourcecode for daemon is here: https://github.com/kimmoli/diptoh-daemon

If something fails: systemctl stop harbour-diptoh-daemon or just rip the diptoh off.

If you want to see what it says, e.g. journalctl -f | grep diptoh

Script files are now in /home/nemo/diptoh/

Currently every script just append $0 to /home/nemo/diplog
you can tail -f /home/nemo/diplog to see is the scripts run.

(dirkvl << I have some mechanical issues, and interrupt seems to generate even when not toggling dips, if i apply pressure to next to flash, they appear only when toggling dipswitch)

Kabouik 2014-09-15 22:16

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
Thanks Kimmo! I had to start the service manually even though I did write to the EEPROM successfully and installed the rpm with the diptoh attached, otherwise no diplog was generated when switching the dips.

kimmoli 2014-09-15 22:18

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
You might need to detach/attach diptoh once after writing eeprom

kimmoli 2014-09-16 05:20

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
Examples:

Notes:
  • Scripts are run as root.
  • If you need to run them as normal user, use su - nemo -c "yourcommandhere"
  • If you make a script like rm -rf / don't blame me.

Dipswitch 1 controls bluetooth:

dip1on.sh
Code:

dbus-send --system --print-reply --dest=net.connman /net/connman/technology/bluetooth net.connman.Technology.SetProperty string:"Powered" variant:boolean:true
dip1off.sh
Code:

dbus-send --system --print-reply --dest=net.connman /net/connman/technology/bluetooth net.connman.Technology.SetProperty string:"Powered" variant:boolean:false
Dipswitch 2 controls Flightmode:

dip2on.sh
Code:

dbus-send --system --dest=com.nokia.mce --print-reply /com/nokia/mce/request com.nokia.mce.request.req_radio_states_change uint32:0 uint32:1
dip2off.sh
Code:

dbus-send --system --dest=com.nokia.mce --print-reply /com/nokia/mce/request com.nokia.mce.request.req_radio_states_change uint32:1 uint32:1
Dipswitch 3 controls display always active:
Note: For this to work you'll need mce-tools installed: pkcon install mce-tools

dip3on.sh
Code:

mcetool --set-demo-mode=on
dip3off.sh
Code:

mcetool --set-demo-mode=off
Dipswitch 4 controls silent profile:

dip4on.sh
Code:

dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_profile string:"silent"
dip4off.sh
Code:

dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_profile string:"general"
Dipswitch 5 toggles flashlight on/off: Thanks Coderus
http://talk.maemo.org/images/icons/icon4.gif - Toggling this switch on most probably makes you blind momentarily

dip5on.sh
Code:

su - nemo -c "echo 1 > /sys/kernel/debug/flash_adp1650/mode"
dip5off.sh
Code:

su - nemo -c "echo 0 > /sys/kernel/debug/flash_adp1650/mode"
Dipswitch 6 toggles Android / Aliendalvik on/off: Thanks MemphisX

dip6on.sh
Code:

systemctl start aliendalvik.service
dip6off.sh
Code:

systemctl stop aliendalvik.service

Dipswitch X plays a wav file when toggled on:
(also example how to run command as nemo)

dipXon.sh
Code:

su - nemo -c "/usr/bin/gst-launch-0.10 filesrc location=/home/nemo/Music/crazysoundeffect.wav ! wavparse ! audioconvert ! alsasink"

dirkvl 2014-09-16 16:56

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
initially got some spares of every part, but all went well! so i can make another 6!

the first 6 to mail me (info at funkyotherhalf dotcom) with:
-address
-paypal mail
-preferred colour
will get one :)

delivery time dependent on shapeways (2-3 weeks or so)


-Klas -> alumide
-
-
-
-
-

Kabouik 2014-09-16 22:03

Re: DIP_TOH -- lots of toggles! -- orders 12/12
 
Quote:

Originally Posted by kimmoli (Post 1439380)
Examples:

Thanks! The demo-mode is especially useful! I think those functions that are not easily accessible through Control Center (Patchmanager) *or* whose status (on or off) is not easily noticeable with an icon on the homescreen are ideal candidates for dip switches. If you have any other ideas of functions like that, don't keep yourself from posting scripts. :]

Bluetooth is very useful too of course, but it's in the Control center and its status is indicated with an icon, so it won't be my priority on a dip switch if I find 6 other useful functions (yet I will still configure bluetooth on one switch for now, I still find it convenient!).

____

Do we need to start the scripts with #!/bin/bash? Nothing seems to happen for me with demo-mode and Bluetooth, though I did have confirmation the switches were working with the simple echo functions in default scripts. I restarted the Jolla and the service just in case.


All times are GMT. The time now is 15:35.

vBulletin® Version 3.8.8