Error 3021 on Start Up

A plugin that allows for end user development of multiple RS232 device control systems.
ricks
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1127
Joined: Wed Oct 27, 2004 7:01 pm
Location: Latham, Massachusetts
Contact:

Error 3021 on Start Up

Postby ricks » Wed Dec 19, 2007 7:15 pm

Hi Tracy,

I have two advanced devices registered. The devices are connected to Port 5 and Port 6. MLGD won't respond to my device on Port 5.

Any idea what the following error message is telling me? I get it on start-up and then nothing for that device (port 5) works. Device on Port 6 works fine. I'm running v3.0.367 of MLGD.

Thanks,
Rick

- You have exceeded your authorized amount of basic devices.
- Only 0 device(s) will be loaded
- Opening Com Port 6
- Error 8005(Port already open) @ Line 140 in procedure OpenCommPort of ModSharedCode
- Opening Com Port 5
- Error 3021 (Either BOF or EOF is true, or the current record has been deleted. Requested operation requires a current record) @ Line 260 in procedure UpdateStatus of modSharedCode
- Error 3021 (Either BOF or EOF is true, or the current record has been deleted. Requested operation requires a current record) @ Line 260 in procedure UpdateStatus of modSharedCode
- Loaded all startup variables
- Error 3021 (Either BOF or EOF is true, or the current record has been deleted. Requested operation requires a current record) @ Line 260 in procedure UpdateStatus of modSharedCode
- Error 3021 (Either BOF or EOF is true, or the current record has been deleted. Requested operation requires a current record) @ Line 260 in procedure UpdateStatus of modSharedCode
- Loaded all startup variables

User avatar
DavidL
Simply Incredible
Simply Incredible
Posts: 11071
Joined: Sat Feb 08, 2003 9:39 am
Location: Metamora, Michigan
Contact:

Postby DavidL » Wed Dec 19, 2007 7:21 pm

Upgrade to the latest. 3.0.393 in MLServer Additional Software Downloads.
backup your database first. Export your devices next, then upgrade.

ricks
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1127
Joined: Wed Oct 27, 2004 7:01 pm
Location: Latham, Massachusetts
Contact:

Postby ricks » Wed Dec 19, 2007 7:27 pm

Did that while you were typing. Same error messages but now with dozens of lines of "Buffer partially filled - Waiting for additonal data" messages from the "good" device.

90CE
Developer
Developer
Posts: 573
Joined: Mon Nov 28, 2005 1:19 am
Location: Waukee, Iowa
Contact:

Postby 90CE » Thu Dec 20, 2007 2:05 am

Rick:
It looks like something is already using port 5. The error below that are likely a symptom of the com port being open. Any chance another device is using this port?

Do the advanced devices seem to load ok?

The buffer partially fully is not a worry, just means it has not found the end of line character in your string yet.

ricks
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1127
Joined: Wed Oct 27, 2004 7:01 pm
Location: Latham, Massachusetts
Contact:

Postby ricks » Thu Dec 20, 2007 11:51 am

I did a reboot and it seems to have cleared up the 3021 error... port must have been blocked by something.

Now getting characters like a small y with 2 small dots over the top. Strange.

Two further questions:

1. Is there a way to confirm the terminating character of a received string in MLGD?

2. Is there a way to edit a device in MLGD without deleting it and creating a new one? The "OK" is faded out not allowing changes.

Thanks,
Rick

90CE
Developer
Developer
Posts: 573
Joined: Mon Nov 28, 2005 1:19 am
Location: Waukee, Iowa
Contact:

Postby 90CE » Thu Dec 20, 2007 7:26 pm

Are you using the newest version of MLGD? I thought that I had fixed the greyed out OK issue. If you are using the most current MLGD and it still does not work, let me know.

When you test a command, you should see something like the folllowing:

A248 2467 1982 2671 2283 12 2269 2569 - ( 38 ) - Last Char = > 13

In this case, the 13 represents the char number that you are looking for.


Tracy

ricks
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1127
Joined: Wed Oct 27, 2004 7:01 pm
Location: Latham, Massachusetts
Contact:

Postby ricks » Thu Dec 20, 2007 8:32 pm

Hi Tracy,

"Additional Downloads" states that the latest is 3.0.393 so I downloaded that but the plugin, once installed says 3.0.405. There appears to be yet another version under Demo at 3.0.401 for KevinD. Anyway, the version I have installed says 3.0.405 and the OK remains grayed out.

I'm using another Xantech Device which passes the same ascii codes as the MRC. For the MRC the terminating character is 0 so I set it to that for the new device.

If I send the command !1MC+ MLGD will show !1MC+ Last Character in buffer => 43

When I send the command again MLGD shows

!1MC+!1MC+ Last Character in buffer => 43

A third time shows 3x !1MC+ and so on. The MLServeCmd in Device Response won't fire. Apparently not recognizing the command.

If I set the terminating character to 43, I get !1MC in MLGD. Seems to have recognized the + as 43 and ended it at !1MC

So it seems as though by using 0 it sees the command but doesn't know its complete. A second command is just added to the first and so on.

Any suggestions?

Thanks,
Rick

PS. The Error 3021 from previous post was due to setting up the device, deleting the device in order to edit and re-starting MLServer. A MLServer restart wouldn't clear the com port, only a system restart. With the OK not grayed out, will an edit require a MLServer restart, system restart or neither?

90CE
Developer
Developer
Posts: 573
Joined: Mon Nov 28, 2005 1:19 am
Location: Waukee, Iowa
Contact:

Postby 90CE » Thu Dec 20, 2007 8:41 pm

I will take a look at it tonight to see if I can fix it.

Tracy

User avatar
cborod
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1208
Joined: Fri Oct 07, 2005 5:26 pm
Location: Mount Gretna, PA
Contact:

Postby cborod » Thu Dec 20, 2007 9:15 pm

guys...interesting challenge.

my xantech devce works with <13> as the end char nothing else works on mine
ChrisB


___________________________________
"Round up the usual suspects."

ricks
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1127
Joined: Wed Oct 27, 2004 7:01 pm
Location: Latham, Massachusetts
Contact:

Postby ricks » Thu Dec 20, 2007 10:03 pm

Thanks Chris. Using 13 gives me the same result... just keeps adding command on top of command. Makes me begin to think each Xantech device uses a different terminating character even though the commands are identical. I wonder if this could this be possible?

Your decimal 13 is an ascii CR. Makes sense. My decimal 0 is an ascii NUL. The XTR shows 43 which would be an ascii +, with which all Xantech commands end.

Tried to use + but got Error 13(Type mismatch) @ Line 130 in procedure RS232_OnComm of frmMain. Seems like MLGD wants a decimal in the terminating character field. And, still get the stacking commands when hit more than once.

Rick

User avatar
cborod
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1208
Joined: Fri Oct 07, 2005 5:26 pm
Location: Mount Gretna, PA
Contact:

Postby cborod » Thu Dec 20, 2007 10:13 pm

oh yeah...forgot about the xantech + sign as their closing command char,


also noted I'm on ver 3.0.393 and the ok button issue is fixed .

btw, just tried a plain 13 in the terminating character and it works too.

ah, another mystery.....anything contributed of value from Xantech?
ChrisB





___________________________________

"Round up the usual suspects."

90CE
Developer
Developer
Posts: 573
Joined: Mon Nov 28, 2005 1:19 am
Location: Waukee, Iowa
Contact:

Postby 90CE » Thu Dec 20, 2007 10:13 pm

Rick:
What happens if you leave the terminating field blank and then send a command that will get a response. That should give you the end character, I think :? . Do you have any docs for the device?

Tracy

90CE
Developer
Developer
Posts: 573
Joined: Mon Nov 28, 2005 1:19 am
Location: Waukee, Iowa
Contact:

Postby 90CE » Thu Dec 20, 2007 10:22 pm

Rick:
Did you try 43 as the terminator? The field has to be a integer. 0 - 255 if I remember correctly.

Tracy

ricks
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1127
Joined: Wed Oct 27, 2004 7:01 pm
Location: Latham, Massachusetts
Contact:

Postby ricks » Thu Dec 20, 2007 10:26 pm

When Tracy sends a frown I know I'm in trouble.

Same thing, I get Error 13(type mismatch... It sees the !1MC+ and says last character is 43 but this time it won't record any further commands from the device.

I have docs for this device but nothing in there about serial commands. Looks like a call to Xantech tomorrow.

Rick

ricks
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1127
Joined: Wed Oct 27, 2004 7:01 pm
Location: Latham, Massachusetts
Contact:

Postby ricks » Thu Dec 20, 2007 10:32 pm

I've tried 0 (like the MRC) and get stacking commands and no kick-off of MLServeCmd's.

I've tried 13 and get same result.

I've tried 43 and it cuts off the + and still stacks.

I've tried + and leaving it blank and get Error 13.

Plus still get grayed out OK button in .405. Any idea where to get the real .393?

Rick


Return to “MLGenericDevice”

Who is online

Users browsing this forum: No registered users and 1 guest