Results 1 to 4 of 4

Thread: Boomzbox HD in LInux getting closer .. but need some help

  1. #1
    Newbie
    Join Date
    Aug 2011
    Posts
    9

    Boomzbox HD in LInux getting closer .. but need some help

    With the announcement of Tizen (linux based HTML5 mobile and ivi distro) from Intel, work is starting to get ivi working in this environment.

    Because we will be using HTML as our interface, we need to create services. Instead of using GTK# or QT, I'm looking to use node.js to control the boomzbox (amongst other things)

    You can see the start of the code here:

    https://github.com/japerry/node-boomzboxhd

    It requires node.js -- I'd suggest watching the node.js tutorial on nodejs.org

    It also requires the following modules. You should have npm (node package manager) installed.

    * SerialPort
    * buffertools
    * connect
    * express
    * mime
    * npm
    * qs
    * request
    * socket.io
    * underscore

    Right now I"m hung up on howto send commands to the device. Its reading from the device quite nicely. Thanks to malcom for the c# code, as it made development of this much easier!

    is there any documentation on howot send the commands? Javascript doesn't do byte types which is making it a little hard to follow. I also don't have windows so I can't really test the c# code. (the windows forms don't work too well in Linux)
    Last edited by Jakob Perry; 10-01-2011 at 10:53 PM.

  2. #2
    North of the land of Hey Huns
    Auto Apps:loading...

    Join Date
    Jun 2004
    Location
    Westminster, MD
    Posts
    2,127
    You're welcome.

    What exactly are you looking for? It looks like you are able to manipulate byte arrays in javascript, and it looks like you have most of the correct protocols in there. What issues are you running into? How to send commands, or exactly what commands to send?
    "stop with the REINSTALLS, what do you think we got some lame-o installer!!!" - mitchjs
    RevFE
    My Shop

  3. #3
    Newbie
    Join Date
    Aug 2011
    Posts
    9
    ahh so the problem I'm running into is when I try to send commands, it locks up the device, and I have to reset it before I can read the data again. Simply disconnecting and reconnecting doesn't work.

    I tried sending this command for the 'version' command:
    5A A5 00 02 0C 01 01

    I believe that is what should be getting sent? I don't get any response. This is what happens when I print out its command in node.

    I haven't seen byte operators, and js isn't really a typed language. I'm guessing some of the C# code isn't needed anymore.

  4. #4
    North of the land of Hey Huns
    Auto Apps:loading...

    Join Date
    Jun 2004
    Location
    Westminster, MD
    Posts
    2,127
    The message sequence that I use in my c++ code to initalize the boomzbox is:

    Version 1
    Mute 1
    Volume 0
    Antenna 1
    AutoMessage 1 1 1 1 1 1
    Mute 0
    Volume 70


    That turns it on. That works out to

    5A A5 00 02 0C 01 XX
    5A A5 00 02 0D 01 XX
    5A A5 00 02 0B 00 XX
    5A A5 00 02 0E 01 XX
    5A A5 00 07 01 01 01 01 01 01 01 XX
    5A A5 00 02 0D 00 XX
    5A A5 00 02 0B 46 XX


    The xx is the checksum. These are the series of commands that I generally send to turn the unit on. At this point, the unit would start either playing music, or static, depending on how it was last configured (if it was set to a real station). Give that a shot, and see if you get anything. All of these are sent before reading anything at all. I'm not sure if that's the proper way, but the creators of the boomzbox refused to be forthcoming on the protocol, and this method seems to work for me.
    "stop with the REINSTALLS, what do you think we got some lame-o installer!!!" - mitchjs
    RevFE
    My Shop

Similar Threads

  1. Sirius and XM getting closer!
    By HiJackZX1 in forum General MP3Car Discussion
    Replies: 43
    Last Post: 11-14-2008, 02:14 PM
  2. Getting Closer
    By americanskiff in forum General Hardware Discussion
    Replies: 5
    Last Post: 03-18-2008, 04:03 PM
  3. The iGzoom closer program
    By Sonicxtacy02 in forum Other Cool Stuff
    Replies: 0
    Last Post: 12-18-2005, 08:07 AM
  4. Getting closer (Recessed screen)
    By UnsanePyro in forum Fabrication
    Replies: 5
    Last Post: 09-13-2005, 08:12 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •