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 - ashesman

Pages: [1]
1
mc-Module / Can you get good (reliable) range from mc modules?
« on: February 19, 2017, 09:11:55 pm »
Hi,

What sort of range are people getting from mc modules mc-Air in non ideal environments?  I have one mod 120 module that does not do more than 4m in the office.  I have seen one do 70m outdoors with perfect line of sight.  When testing outdoors it seemed to be dependent on the orientation of the antenna at over 20m range!  It also seems to be dependent on what is near the antenna, ie modules, battery etc.

In any useful application the module will be in an enclosure with another PCB and a battery and it will almost certainly never be clear line of sight and most likely there will be other RF energy and interference about...

What is the likely hood these things can achieve 100m reliable range when in an enclosure with another PCB and battery and in a rural environment where there may be trees and other objects that block clear line of sight?

Thanks

Ashley

2
mc-Studio / ToInteger does not work for Strings
« on: February 16, 2017, 05:50:00 pm »
Doesn't work.... Get "Undefined function, indexer or variable or not visible" for ToInteger

Dim someString As String = "123"
Dim someInt As Integer
someInt = someString.ToInteger

3
mc-Studio / How to use enums?
« on: February 16, 2017, 03:24:35 pm »
The following code produces an error on the line " StreamDecodeState = SDS_WaitingStart", "Variable SDS_WaitingStart is undeclared.  How do I use enums?

Class NMEADecoder
   
    Private StreamData As ListOfByte
    Enum StreamDecodeState As Integer
        SDS_WaitingStart = 0
        SDS_WaitingEnd = 1
        SDS_WaitingCS = 2
    End Enum
   
    Private DecodeState As StreamDecodeState
   
    Public Sub New()
        StreamData = New ListOfByte
        DecodeState = SDS_WaitingStart
    End Sub
   

4
mc-Studio / Re: Mc-studio is seriously unstable!
« on: February 16, 2017, 01:28:52 pm »
My take on all this is that while I don't want to tell you how to write your software, but handling all exceptions gracefully and never letting the IDE get into a state where it has to be restarted, or crashes on a catchable situation would be a good thing.

Nearly all issues I saw were related to doing things that could have a clean solution.  If it loses connection to the device during debugging, don't get stuck forever, give the user the option to end the debugging session.

Cant open a file at startup, check for a null file handle before using it and start the IDE without opening a file with an error message.  But I am sure you guys already know all this stuff!!!

Cheers

Ashley



5
mc-Studio / Re: Mc-studio is seriously unstable!
« on: February 15, 2017, 01:11:56 pm »
Windows PC (and so is Bartw).  Running Windows 10.

6
mc-Studio / Re: Mc-studio is seriously unstable!
« on: February 14, 2017, 10:08:04 pm »
I dot think RF problems.  We have many of these running now and they work fine once they are programmed.  Also, restarting mc-studio always fixes the problem so probably not RF related...

7
mc-Studio / Re: Mc-studio is seriously unstable!
« on: February 14, 2017, 09:36:27 pm »
After freshly starting mc-studio, then connecting to my device.  I got the attached error.  I have been debugging on this device for an hour now and just saw this for the first time...

8
mc-Studio / Re: Mc-studio is seriously unstable!
« on: February 14, 2017, 09:30:27 pm »
And another one for you after clicking run after successfully connecting to my real device in the device window.  Seems to still think it is using a virtual device.  (see attached)

Why does it default back to the virtual device when it loses your real device.  How confusing and misleading!

9
mc-Studio / Re: Mc-studio is seriously unstable!
« on: February 14, 2017, 09:25:26 pm »
Also, if stop debugging fails, which it often does, then you can never get back to editing code.  It stays in debug mode forever as every time you click stop it fails...  There seems to be no timeout or forcing back to editing mode.  Only way out is to shut mc-studio and restart (after editing your project file as per my previous post).

Edit:  I did however notice that if you click run it will say run failed and then go back to editing mode!

10
mc-Studio / Re: Mc-studio is seriously unstable!
« on: February 14, 2017, 07:36:41 pm »
More problems: 

If I try open a project I get the exception attached.  If I go into the project and change the %20 used for the space in the file name to an actual space the project will open fine.  Unfortunately every time the project file is saved it returns to the same problem.

<?xml version="1.0" encoding="utf-8"?>
<ProjectSetting xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ProjectName>CLH Scales</ProjectName>
  <DeviceType>mcMod120</DeviceType>
  <LastDocumentName>CLH%20Scales.mcScript</LastDocumentName>
  <DocumentSettings>
    <DocumentSetting>
      <Name>CLH HX711 Weight</Name>
      <FileSpec>CLH%20Scales.mcScript</FileSpec>
      <Row>11</Row>
      <Col>17</Col>
      <BreakPointLineNumbers />
    </DocumentSetting>
  </DocumentSettings>
  <ManualCompile>false</ManualCompile>
</ProjectSetting>

11
mc-Studio / Re: Mc-studio is seriously unstable!
« on: February 14, 2017, 06:12:11 pm »
Also, File Save As does not seem to work correctly.  The file is saved but the current file name does not update and then code editing area just ends up blank.

If you move a projects file system location you get the first error shown below.  After that you are screwed as every time you try open mc-studio it tries to reopen the project from the new location and crashes!  Now I cant open mc-studio at all!!!

12
mc-Studio / Mc-studio is seriously unstable!
« on: February 14, 2017, 03:46:46 pm »
Hi,

Sorry to make my first post a complaint!  What are the plans to improve mc-studio?  At the moment it is destroying my budget due to constantly crashing in many different ways!  Is there a new release or beta version available that may fix even some of these?

Here are some of the crashes I have seen so far:

- Access violation on opening a project
- "Cant read data from device" when stepping through the code.  Then need to restart debugging.
- 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.
- Turn power off to mod120 and ms-studio crasheswith a "mcSript has stopped working" windows message.
- 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"

I dont think these issues are related to connection problem or wireless issues, or my code!  All the other devices we have are talking nicely and I can always connect to the mod120 in the Devices screen, it is never not there.

Honestly I cannot use this IDE for longer than five minutes without one kind of crash or another!

Also, please please please implement find functionality!

Sorry!

Ashley

Pages: [1]