by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    sygyzy
    @sygyzy_twitter
    Hmm neighbors still conecting. How can i check if there is in fact a connection and if my gpioctl command is in effect?
    sygyzy
    @sygyzy_twitter
    What happens if i remove kmod-bluetooth - 4.4.74-1 using opkg?
    Looks like hciconfig is a command that's part of the bluez-utils package which other similar (omega2) devices use for bluetooth/audio but not the Oboo. Ahhh any help would be appreciated. I am this close to cutting the speaker wires
    Bradley Ouellette
    @ouellettetech
    lol on the cut speaker wire.
    Bradley Ouellette
    @ouellettetech
    hmm, I can look through the schematics on the git repo for you. I also now have two test clocks to use as guinea pigs, but I've been waiting over a month to get a USB/Serial adapter to connect to them. (even ordering from Aliexpress with the source listed as "USA" is slow right now...)
    Bradley Ouellette
    @ouellettetech
    looks like the Bluetooth is connected to GPIO 1,2,40,41 But I'm not sure what each of those do, let me email onion they are some what responsive to my emails like this. (Mostly want to know what that Bluetooth chip is)
    Bradley Ouellette
    @ouellettetech

    @sygyzy_twitter response: I took a look at the schematic, it looks like only the bluetooth module is not labelled. I'll try to dig up the name of the module, but forewarning: it's a Chinese module that isn't well documented.

    Disabling the module completely isn't an option since it acts as the main audio interface - audio from the Omega is routed through this module as well.
    However, because it's the main audio interface, you can still achieve the effect of disabling bluetooth by always setting the module's input source to USB (audio coming from the Omega) as opposed to bluetooth input. In this scenario, the Oboo will still accept bluetooth connections, but the bluetooth audio won't play on the speakers. Just like how a TV can have multiple inputs but play only one at a time.

    Setting the input source is implemented in the audio manager: https://github.com/ObooSmartClock/Oboo-Packages/blob/master/oboo-clock-cards/src/audio-manager/audio.js#L57

    I would just change the selectBtSource funtion to set the audio to usb instead of bluetooth.
    Chris Eleveld
    @ihermit2_twitter
    so that code makes it look like gpio 41 to low(0) to select USB and not bluet0ooth
    guessing your gpioctl cmd with 41 instead of 3
    Bradley Ouellette
    @ouellettetech
    I wouldn't just set that once, though because it looks like its listening for more commands, and would flip back to bluetooth next time a signal comes in.
    Chris Eleveld
    @ihermit2_twitter
    so change the source so it can't go anywhere else?
    Bradley Ouellette
    @ouellettetech
    yea
    that's the quick hack
    the better way, would be when someone tried to pair, we generate a random number and pop up a card for it.
    but I need to look at the module documentation for that.
    Chris Eleveld
    @ihermit2_twitter
    the bt chip is on serial ttyS2 ?
    Bradley Ouellette
    @ouellettetech
    that's what it looks like
    I thought the Onion only had two serial ports 0 (used for console) and 1, attached to the Arduino.
    so I'm guessing they set one of the other GPI's as a serial port.
    Chris Eleveld
    @ihermit2_twitter
    could be a USB bridge?
    I really need to dig mine out
    Bradley Ouellette
    @ouellettetech
    could be, but I doubt it.
    looks like its possible to enable UART2 on the S model... https://community.onion.io/topic/3346/enable-uart2-is-posiible-on-omega2
    Chris Eleveld
    @ihermit2_twitter
    so if I connect to S0 i should be able to do a non-quiet boot and see the device identificatioin?
    Bradley Ouellette
    @ouellettetech
    S0 is the console. Yea, you can complete watch the boot. That's why I setup a PI Zero attached to the serial port on an omega2 arduino dock. I want to be able to flash it remotely with that setup. Could use that setup also with the extra clocks I have, but then I have to still attach and detach it...
    Chris Eleveld
    @ihermit2_twitter
    is hwinfo or dmidecode available in the Oboo packages or preloaded?
    chris711
    @chris711
    Hi guys, well one of my oboo's has the expanding battery issue and has pushed the front cover out. I'm taking it as a signal that it is time to take the clock apart and fix the crash issue. I've been doing SW development for more years than I care to mention but most of it has been embedded telecom SW running on realtime OS's like pSOS and VxWorks. I've done some development on Linux. I'm thinking a good approach would be to wire up the serial port on the omega2 in the clock, get,build the install latest SW for the clock and let it run till it crashes. Hopefully there will be some clues to the crash in the serial port output or in the log files. I could use some help on recommendations for how to do this. What type of build machine should I use for this? What's the build process? Any other suggestions?
    Bradley Ouellette
    @ouellettetech
    Hi @chris711
    The serial pins don't look too bad to solder to, if you are decent at soldering, they are along the top of the cpu
    I was going to try a few ideas for setting this up myself. (ordered a couple serial adapters from China, and I'm waiting for them to come in.)
    I had two possible routes to go, one wire up a 4 pin pin-header and use a drill/dremel to stick it out the side, and then just plug the serial to usb into that pin header.
    or two wire up a small usb->serial adapter inside the space on the left side, and expose a usb port, again dremel/drill
    make sure you also wire a button to the Reset button also, that will allow you to do factory reset's later, in case you mess up your build
    Chris Eleveld
    @ihermit2_twitter
    are there free UART pins?
    is S00 is the console, and S02 is the bluetooth chipe
    what's S01?
    Bradley Ouellette
    @ouellettetech
    S01 is the arduino
    Chris Eleveld
    @ihermit2_twitter
    so that could be all 3 UARTs?
    Bradley Ouellette
    @ouellettetech
    yea.
    chris711
    @chris711
    lucily I already have a uart to usb adapter, I think I'll pull one of the USB connectors on the back and use that opening for the header and reset. I only use the clock for time and the weather card so I won't miss the usb port
    Bradley Ouellette
    @ouellettetech
    The USB ports on the back are also usefull for usb storage BTW:-)
    chris711
    @chris711
    I took my oboo apart and wired up the serial port, fyi there are test vias on the main board that make an easy place to connect up to the serial port. They are TP7 is rx0 and TP8 is tx0, there is also a ground pin near there. I didn't bother wiring up a reset button once I discovered that the switch on the back of the clock is wired to pin 4 of the Omega2S. Which is either SW_RST according to the Omega2S datasheet or WPS_RST according to the oboo main board schematic.
    @ouellettetech do you have an image I can load to test this out? Also what are you using as a build server to build an image for the oboo? I'm thinking of using a laptop running ubunto to build my debug images for the oboo unless you have a better suggestion.
    chris711
    @chris711
    obooTeardown.jpg
    gclendon
    @gclendon
    You folks are brilliant, thanks a lot! Following your instructions I've managed to setup ssh & have set a cronjob to adjust the LCD panel brightness ok. However, I find that the Clock LED itself is still way too bright, even at its lowest setting. Does anyone know if the clock's LED brightness can be reduced further, and if so, how?
    gclendon
    @gclendon
    Argh! Now the seconds indicator is blinking, I don't recall noticing that before & it's driving me nuts :-)
    Chris Eleveld
    @ihermit2_twitter
    if anyone just wants to give up on their oboo
    it's a google speaker alarm clock combo complete with all the implied tracking and lack of control on the oboo