Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Artanicus

Pages: [1] 2
1
mc-Platform General / Re: Programming experience
« on: July 15, 2016, 03:50:59 pm »
Nice, didn't think to look inside a PDF. I'll amend point C, make the language documentation in a searchable and search-engine indexable format, i.e. anything but a PDF. All the code snippets are pictures so searching for function names etc will not yield this PDF as a result. As an example, see: https://docs.python.org/3/library/index.html

2
mc-Platform General / Programming experience
« on: July 15, 2016, 03:38:05 pm »
Programming these things is proving to be quite frustrating over all. I'll try to iterate the things that irk me.
a) It's a silly programming language that seems to be somewhere around VB-like, but this isn't really stated anywhere. Just the odd statement of "you don't need to be a programmer" .. I'm a programmer and I'm still lost with this silly language :D
b) There's no documentation of what's available of the programming language features of the base language (e.g. I  tried to concat strings with & which doesn't work, need to use + which can't handle string & int concats)
c) There's no documentation of what's been added in addition to the base language, i.e. what is specific to dealing with the mcModules. Sure there's LedRed and friends in the examples but how do I get the ID of the mcModule for example? I'm sure there's a variable with a very specific name that magically has the data but what it is, who knows.
d) The examples are available only inside mcStudio. And since you can't open another instance of it, to refer to them you're flipping  between projects. Could you publish all the examples on GitHub / Bitbucket so we could file bugs, pull requests etc against them? Let's make the examples great!
e) Being limited to mcStudio to write code. The editor is clunky, period. Sure I can write my code in Vim and copy-paste it over, but howabout some standalone tools to push code to the modules debug / permanent space? Preferably: Open Source, written in C / C++, CLI only, OS agnostic. Stick it on GitHub and unleash the potential.

I see potential but without proper documentation and effortless tools it's not worth investing further effort.

3
MQTT / Re: Working with ListOfByte
« on: July 15, 2016, 03:24:48 pm »
Seems you are correct, the ListOfByte gets automatically decoded by the gateway before pushing to MQTT. I really wish there was proper documentation. -_-

4
MQTT / Re: Working with ListOfByte
« on: July 15, 2016, 01:50:34 pm »
I don't have a working example right now (don't have Windows available right now) but I'm watching the beacon stream and trying to decode it somehow but it's not really making much sense. What I was getting out of trying to push any string content was similar. Example hexdump of beacons below.

00001cc0  be da 09 01 00 0a 58 06  01 00 00 00 00 00 b6 da  |......X.........|
00001cd0  09 01 00 0a 58 06 01 00  00 00 00 00 b5 da 09 01  |....X...........|
00001ce0  00 0a 58 06 01 00 00 00  00 00 b6 da 09 01 00 0a  |..X.............|
00001cf0  45 06 01 00 00 00 00 00  bf da 09 01 00 0a 45 06  |E.............E.|
00001d00  01 00 00 00 00 00 be da  09 01 00 0a 58 06 01 00  |............X...|
00001d10  00 00 00 00 b5 da 09 01  00 0a 58 06 01 00 00 00  |..........X.....|
00001d20  00 00 b6 da 09 01 00 0a  58 06 01 00 00 00 00 00  |........X.......|
00001d30  b5 da 09 01 00 0a 45 06  01 00 00 00 00 00 be da  |......E.........|
00001d40  09 01 00 0a 45 06 01 00  00 00 00 00 bf da 09 01  |....E...........|
00001d50  00 0a 45 06 01 00 00 00  00 00 bf da 09 01 00 0a  |..E.............|
00001d60  58 06 01 00 00 00 00 00  b6 da 09 01 00 0a 58 06  |X.............X.|
00001d70  01 00 00 00 00 00 b5 da  09 01 00 0a 58 06 01 00  |............X...|
00001d80  00 00 00 00 b6 da 09 01  00 0a 45 06 01 00 00 00  |..........E.....|
00001d90  00 00 bf da 09 01 00 0a  45 06 01 00 00 00 00 00  |........E.......|
00001da0  bf da 09 01 00 0a 45 06  01 00 00 00 00 00 bf da  |......E.........|
00001db0  09 01 00 0a 58 06 01 00  00 00 00 00 b6 da 09 01  |....X...........|
00001dc0  00 0a 58 06 01 00 00 00  00 00 b5 da 09 01 00 0a  |..X.............|
00001dd0  58 06 01 00 00 00 00 00  b6 da 09 01 00 0a 45 06  |X.............E.|
00001de0  01 00 00 00 00 00 bf da  09 01 00 0a 45 06 01 00  |............E...|
00001df0  00 00 00 00 bf da 09 01  00 0a 45 06 01 00 00 00  |..........E.....|
00001e00  00 00 be da 09 01 00 0a  58 06 01 00 00 00 00 00  |........X.......|
00001e10  b6 da 09 01 00 0a 58 06  01 00 00 00 00 00 b5 da  |......X.........|
00001e20  09 01 00 0a 58 06 01 00  00 00 00 00 b6 da 09 01  |....X...........|
00001e30  00 0a 58 06 01 00 00 00  00 00 b2 da 09 01 00 0a  |..X.............|
00001e40  58 06 01 00 00 00 00 00  b5 da 09 01 00 0a 58 06  |X.............X.|
00001e50  01 00 00 00 00 00 b6 da  09 01 00 0a 58 06 01 00  |............X...|
00001e60  00 00 00 00 b5 da 09 01  00 0a 58 06 01 00 00 00  |..........X.....|
00001e70  00 00 b5 da 09 01 00 0a  58 06 01 00 00 00 00 00  |........X.......|
00001e80  b6 da 09 01 00 0a 58 06  01 00 00 00 00 00 b5 da  |......X.........|
00001e90  09 01 00 0a 58 06 01 00  00 00 00 00 b6 da 09 01  |....X...........|
00001ea0  00 0a 58 06 01 00 00 00  00 00 b6 da 09 01 00 0a  |..X.............|
00001eb0  58 06 01 00 00 00 00 00  b6 da 09 01 00 0a 58 06  |X.............X.|
00001ec0  01 00 00 00 00 00 b5 da  09 01 00 0a 58 06 01 00  |............X...|
00001ed0  00 00 00 00 b5 da 09 01  00 0a 58 06 01 00 00 00  |..........X.....|
00001ee0  00 00 b6 da 09 01 00 0a  58 06 01 00 00 00 00 00  |........X.......|
00001ef0  b5 da 09 01 00 0a 5f 06  01 00 00 00 00 00 b8 da  |......_.........|
00001f00  09 01 00 0a 5f 06 01 00  00 00 00 00 b8 da 09 01  |...._...........|
00001f10  00 0a 5f 06 01 00 00 00  00 00 b9 da 09 01 00 0a  |.._.............|
00001f20  5f 06 01 00 00 00 00 00  b8 da 09 01 00 0a 55 06  |_.............U.|
00001f30  01 00 00 00 00 00 bf da  09 01 00 0a 5d 06 01 00  |............]...|
00001f40  00 00 00 00 bd da 09 01  00 0a 55 06 01 00 00 00  |..........U.....|
00001f50  00 00 bf da 09 01 00 0a  5d 06 01 00 00 00 00 00  |........].......|
00001f60  be da 09 01 00 0a 55 06  01 00 00 00 00 00 bf da  |......U.........|
00001f70  09 01 00 0a 55 06 01 00  00 00 00 00 be da 09 01  |....U...........|
00001f80  00 0a 55 06 01 00 00 00  00 00 be da 09 01 00 0a  |..U.............|
00001f90  5d 06 01 00 00 00 00 00  b7 da 09 01 00 0a 5d 06  |].............].|
00001fa0  01 00 00 00 00 00 be da  09 01 00 0a 5d 06 01 00  |............]...|
00001fb0  00 00 00 00 be da 09 01  00 0a 58 06 01 00 00 00  |..........X.....|

5
MQTT / Working with ListOfByte
« on: July 15, 2016, 01:36:04 pm »
So, I've got MQTT running and I'm getting beacons fine. I can even push data myself, but it seems I'm restricted to payloading a ListOfByte and cannot payload a string directly. Converting a String to ListOfByte works fine:  payload.Add(payString) .. But how do I do the reverse on the backend side? I don't really know what language you're emulating so ListOfByte seems like a confusing and undocumented data type that's hard to work with.

(Is there really no option to just push a raw string without conversions on the other side?)

6
MQTT / Re: Re-Post "mcGateway – 0.6-355 broke MQTT"
« on: June 07, 2016, 04:48:05 pm »
I can confirm that against my own Mosquitto it seems the connection never happens.

mosquitto version 1.4.8 (build date Fri, 19 Feb 2016 12:03:16 +0100)

I'll priv message test server details.

7
MQTT / Topics?
« on: June 07, 2016, 04:28:05 pm »
I can't seem to find anywhere what topics should I subscribe to? Running Mosquitto.

8
mc-Gateway / Re: Re-Post "Connecting the Gateway doesn't work"
« on: June 07, 2016, 02:05:00 pm »
Aha! Pushed in correct firmware and now there's plenty of UDP traffic and it shows up as expected and even has all 5 mcModules visible. So yeah, all of this pain can be avoided by having the OTA updater check the headers of the bin and at least warn that you probably don't want to push the module fw to the gw. :-)

9
mc-Gateway / Re: Re-Post "Connecting the Gateway doesn't work"
« on: June 07, 2016, 01:57:52 pm »
Damn, I just realized what I did wrong. I pushed the mcModule fw onto the app processor instead of the mcGwHost program. Looks like they're similar enough so that it doesn't raise any errors. This is something I think a lot of people might accidentally do so probably worth it for the OTA updater to check the type of FW being pushed! .. Now if only the dongle would be found again I could re-push. *sigh* .. But that is a different issue.

10
mc-Gateway / Re: Re-Post "Connecting the Gateway doesn't work"
« on: June 07, 2016, 01:39:02 pm »
I re-downloaded the fw, replaced the file on the USB stick, re-flashed and hard rebooted the gw. I again see the DHCP traffic but nothing after that. Would you know the parameters of the "poke" UDP packet so I could hand-craft one and throw it at it? At this point it seems that the main loop isn't doing what it's supposed to so unlikely that it would answer that either though.

11
mc-Gateway / Re: Re-Post "Connecting the Gateway doesn't work"
« on: June 07, 2016, 01:22:49 pm »
Simple might not be the word I'd use but it should be fairly standards compliant. Right now the Windows machine and mcGw are on the same switch. The fact that I can see the DHCP traffic for the GW would indicate that I should also see any broadcasts it sends out.

I could just try to reflash it if that could make any difference? I just assumed since it's sane enough to get an address, it should be sane enough to start the application. :-)

12
mc-Gateway / Re: Re-Post "Connecting the Gateway doesn't work"
« on: June 07, 2016, 01:15:28 pm »
Got confused with the firmware files, that was for the host card. Of course the main fw is just called mcGw110.bin but downloaded just a few moments ago and flashed it via USB, flashing seemed to go exactly as documented.

13
mc-Gateway / Re: Re-Post "Connecting the Gateway doesn't work"
« on: June 07, 2016, 01:11:54 pm »
- fw is downloaded and flashed today, file name was mcGwHost110_v0.7-403.bin
- LED's are solid red, solid amber and slow blink green.
- On Wireshark capturing with "ether host d8:80:39:xx:xx:xx" I can see a DHCP Discover and DHCP Request but after that, nothing. It's just not reaching out. 

14
mc-Gateway / Re: Re-Post "Connecting the Gateway doesn't work"
« on: June 07, 2016, 01:01:10 pm »
Thanks for the details. Sounds like I need to fire up Wireshark and see if that packet ever happens. I can see from my DHCP server that it got an ip address and is reachable but other than that it's a bit of a black box to debug.

15
New Version Releases / Re: NEW mc-Studio version available! V0.7-891
« on: June 07, 2016, 12:55:44 pm »
You're right, under Programs & Features the version indeed is 0.7.891 but the about dialog wasn't incremented.

Pages: [1] 2