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 - mc-John

Pages: 1 2 [3] 4 5 ... 15
31
mc-Demo205 / Re: Uart0Receive vs UartReceive with RaiseEvent
« on: April 06, 2017, 11:07:47 am »
The processor has only one serial port and if it is used for debugging it cannot be used to connect something else. If you use wireless debugging you can use the serial port. The serial port can be connected to every pin. With the function UART(baudrate, txPin, rxPin) you just connect the TX and RX pin to UART peripheral.
Have a look at the example in the manual Chapter UART (12.2)

32
mc-Studio / Re: mcStudio v0.8.373.0 crashes during use
« on: March 13, 2017, 03:40:48 pm »
You get error 2 which is file or directory not found.

Are there special characters, like spaces, dash, etc., in directory or file-names?
Please don't use them because on some computers the parsing is in-correct and during saving or other operations you get this error.

Please let me know if this solves the problem.



33
mc-Platform General / Announcing Version 0.9
« on: February 24, 2017, 12:30:12 pm »
We are working hard to finish version 0.9 of the mcScript compiler and Virtual Machine. The plan in to release version 0.9 of the compiler at the end of next month. Version 0.9 should be feature complete and I have added a document that describes the differences between 0.8 and 0.9. Later this year if version 0.9 matures we will bring out the first non-beta release.
Important improvements are support of Double and Long, Properties, Method overriding, Inheritance based polymorphism, Formatting, improved multi threading, Stopwatch class, faster compilations end more. Its all in the attached PDF.

Nice bed-time and week-end reading and please let us know if we miss any functionality that you think is important. Don't forget that this only related to the compiler and VM. Don't comment here on mcStudio or mcCloud because they are completely separated from the compiler and VM.


34
mc-Studio / Re: mc-Studio crashes on startup
« on: February 22, 2017, 02:48:49 pm »
This error occurs when you have a no files in the project. It is solved in the latest version but I realized that this version is not yet distributed.

You have to delete your settings file in the document directory C:\Users\your name\Documents\mcThings\mcStudio


35
mc-Module / Re: Can you get good (reliable) range from mc modules?
« on: February 21, 2017, 05:02:00 pm »
It is very different per situation. We always test with line of sight and we get more than 100m but that is in Alberta where the humidity is very low. A lot of stuff has effect on the range like walls, antenna, stuff close by, etc. The link budget for devices with the Nrf52 is about 100dBm (-96 sensitivity and +4 output power). We have a number customer that uses the mcMod120 for outdoor asset tracking to see if the asset is in a restricted place. It is beacon based so more information is received and it requires only one way communication.
Our new gateway has +20dBm output power. This does not solve everything because the devices are still sending at +4dBm but the gateway also has two antenna's for better antenna diversity.
Our new mcMod120LR also sends at +20dBm and has been tested up to 1KM line of sight. In practice it will not reach that but it will operate much better in a ware-houses and other restricted indoor environment. All software is 100% compatible between the devices. It will be powered by 2 AA batteries.

Engineering samples will be available within a few weeks



36
mc-Studio / Re: Mc-studio is seriously unstable!
« on: February 17, 2017, 12:08:35 pm »
Yes we know but it is all a question of time and priority. There is actually a lot of error handling in the app but the multi threading makes it complex. The sheer size of the application does not help either.

Anyway we appreciate all user input, bug reports and proposals for improvements. Based on the comments we have changed the Find behavior. The current behavior is not very clear because Ctrl+F should be "Find" and not "Find in Documents". So the next version will assign Ctrl+Shift+F to "Find in Documents" and Ctrl+F "Find" brings you to the find text box and if there is text in the edit form selected it will copy copies selected text in that box. That text is than highlighted in the edit window and you can search forward and backward. The Find and Replace in Documents is now higher on the priority list. 

Thanks

John

37
mc-Studio / Re: ListOfInteger and debug
« on: February 16, 2017, 01:04:29 am »
When I have some time I will see if I can get it tested on a mcMod110. (Have to find one, we are using mostly 120's) Cannot guarantee this because I very busy and I am out of the country next week.

38
mc-Studio / Re: Mc-studio is seriously unstable!
« on: February 16, 2017, 01:01:16 am »
Thanks. The Macs have a lot of issues with the FTDI drivers, that's why I asked.

I can only recreate this by removing the USB cable when writing. The driver just returns a FT_IO_ERROR. Looked into the FTDI documentation and that is not very clear. I have seen this problem in the past when there are ground loops. I worked for a company that has bought an opto-isolated USB hub to solve a number of disconnecting problems with devices with FTDI chips. That helped a lot. Also look at the quality of the cable, some cheap cables are not copper but iron with a copper  layer. (Test with a magnet)

It difficult to find that problem from here because I don't have any idea what this can be. Best thing do is check for ground loops and connect the device direct to the computer without a hub, so the quality of the hub is removed from the equation.

Sorry that I can give you a more clear answer.

39
mc-Studio / Re: ListOfInteger and debug
« on: February 15, 2017, 10:49:41 am »
Load fine with your code in a mcMod120.

40
mc-Studio / Re: Mc-studio is seriously unstable!
« on: February 15, 2017, 10:15:29 am »
Are you using a windows on a Mac or a Windows PC?

41
mc-Studio / Re: Mc-studio is seriously unstable!
« on: February 14, 2017, 10:47:44 pm »
Some information about the space problem.

I knew that I solved the problem with the space because it was in source control. It is now a different problem because spaces (and %20) are now translated to %2520 as you showed in the attachment. I really wanted to find the problem and after googling for an hour I found the problem. Previous versions of mcStudio are build on .Net framework version V4.0. The last version is build against a higher .Net version and the URI functions that are used are changed. See https://msdn.microsoft.com/en-us/library/hh367887(v=vs.110).aspx

Very tricky, anyway I will have it solved in the next version. For now just remove the space form the filename and it will work fine.



42
mc-Studio / Re: Mc-studio is seriously unstable!
« on: February 14, 2017, 10:05:56 pm »
Quote
Why does it default back to the virtual device when it loses your real device. 
I know that it is a problem as described in my previous answer. See below
Quote
The reason that the virtual device is still there is that it is a lot of work to remove it, but it will be removed in the next version.

Quote
It stays in debug mode forever as every time you click stop it fails...
Because mcStudio does not know in what state it is. There is a timeout of 5 seconds if a function fails but the mode does not change

Quote
I have been debugging on this device for an hour now and just saw this for the first time...
In almost all cases this means that the device is not reacting. Loading code is retried 5 times per 128 bytes.
I don't know why it is doing that but it could be that the spectrum is very full or jammed.




43
mc-Studio / Re: Mc-studio is seriously unstable!
« on: February 14, 2017, 09:36:10 pm »
I found in source control that I solved that problem. And yes %20 is translated to a single space.
The error in the attachment indicates that it searches for the file with %2520. I googled the problem and it is the result for a uri translation. It needs to translate twice to get into this situation.

I will look into the problem and will add code to replace the characters and all other exception, because there are more characters like  + _& etc.

44
mc-Studio / Re: ListOfInteger and debug
« on: February 14, 2017, 05:42:21 pm »
Yes, I mean virtual device.

That you get this on a real device is very strange. I have to test this. Its probably somewhere in the object generation in the literals.

45
mc-Studio / Re: Mc-studio is seriously unstable!
« on: February 14, 2017, 05:35:27 pm »
We are working on mcStudio to get it better and more stable.

One of the things that is very annoying is that the old virtual device, used for debugging, is still active and is not working correctly. You should not use the virtual device. Arithmetic operations problems like dividing by zero and overflow is related to that. The reason that the virtual device is still there is that it is a lot of work to remove it, but it will be removed in the next version.

The problem with the logging file occurs when you try to open mcStudio twice. This can be by choice or because a previous error occurred that left mcStudio running in the background. I this happens please go to task manager and kill the process.

Quote
- If a crash happens during debugging while the device (mod120) was stopped at a break point it becomes useless and has to be power cycled.
I have never seen that error so I will add it to the list.

Quote
- Sometimes when trying to run I get a "Restart failed" message.
- Sometimes when trying to run code that has not changed since last time I debugged it I get "Can't set breakpoints"
- Sometimes when stopping debugging I get "Stop debugging failed"
All those cases are related to losing the connection. If the module is close to the gateway this means in almost all cases that the module resets. The most common cause is running out of memory. If that happens the module will reset.  Don't forget the modules have very limited resources and cannot handle every problem.

Quote
Also, please please please implement find functionality!
I suppose you mean Find in Documents Ctrl+F is not implemented. Most people use the Find: in the toolbar. It colors the text and with F3 and Shift-F3 you can navigate. See attachment. There "st" is typed into the Find box and all text containing st is highlighted. With mach case and Whole word you can control the type of searching.

Also in the script manual is a complete list of the short cuts if you want to use them.


Pages: 1 2 [3] 4 5 ... 15