Well its time to try another HK hack. Got my wifi chip today, so here we go.
Goals.
- PC Interface
- Decent Iphone/Android interface with mixing built in I using Gyros/Accelerometers to drive a robot.
- Potentially using other dev
quote:
BTW I unpackaged the android app and had a look at how it does the communications. Its just a standard socket comms with a simple protocol should be very trivial to reimplement. Then there is no reason why you can't write custom apps for Iphone/Android.
Anyone good with java reading decompiled disjointed code is still a bit of a pain. But I know enough to work out that the IP address is.
10.10.100.254 and the port is 0x22c3. There is 4 data bytes the message is 0xa bytes long. 0x8 to a is packed with 0s. adn the 0x4 , 5 , 6 , 7 is chan 1 - 4. and header is 0x0 0xb 0x0 I think.....
I think thats most of the info I need to make it work with any app.
Joined: 31 May 2004
Posts: 3160
Location: Melbourne, Australia
Questions for when you get it disassembled..
Can the IP address be changed ? Someone might want to run several of them at once.
Does the Rx run a standard micro (AVR, Pic etc) or is it an ASIC ?
Is there a direct 1:1 correlation between values fed into the Tx packets and the Rx out pulses ? Something like Channel value of 150 = 1.5mS pulse on the Rx channel ?
Could it be modded to send a bit-bashed async serial data stream through a servo channel ?
Any possibility of 2 way communications ? If its doing Wifi it must have Tx capability to talk to the AP, so can data packets be potentially sent the other way ?
I'll probably buy one of them too, I can think of a few apps even in stock form, but if you're already diving in with the iron and scope, theres some ideas to look at _________________ Great minds discuss ideas. Average minds discuss events. Small minds discuss people
Lol these are the very questions I am asking myself. But I said I wouldn't pull it apart until I get it working.
Although from my knowledge of HK and how these things are made, it appears that there is a standard Wifi module with a "RC" board underneath it. I would bet that there is a standard interface to the micro on the board underneath.
I have a socket connected to it atm. Just trying to format the data stream to it now so I can control servo positions. Then can hopefully answer the latter questions about 150 = 1.5ms.
Ok so I couldn't get to sleep lastnight so worked on hacking this module. I have it working I am just running a sweep on the servo. Need to hook it up to my scope to double check its making the full range but its working. Current range of valid inputs seems to be from 0-40 but I am 90% sure that I have screwed something up with my checksumming.
It should run on any PC (regardless of OS) with python installed. Make sure wifi is connected before you start it running as there is no timeout on the connection. Should have a try: statement....
So Brett to answer one of your questions. A value of 0-100 = 1ms-2ms and it is linear in between.
I will steal some code tomorrow to get it driving an antweight bot from the keypad. Then will eventually get migrated into netbot stuff. I am also considering making an iPhone app. Not sure if people are interested. Main problem is that license to develop is $100 and I dunno if its worth it.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum