¿ªÔÆÌåÓý

Date

Locked Re: Problem with Sensor Table in 4.11.3

 

Peter G,

Yes the sensor button in the table is a known issue with 4.11.3. It is fixed
in 4.11.4 which will be released sometime soon. I think the cycle has
another week to go.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.com
www.syracusemodelrr.org


Locked Help with closing a socket on JMRI

 

Hi All


I recently succeeded in getting a number of computers running JMRI to share sensor information with each other using sockets. The only problem is that I cannot work out how two close the socket.


If the socket has been opened on a port and then closed (due to a disconnection of some sort) it is not possible to re-open the socket as the port is still in use form the previous time I'd opened the socket. The only way I can close it is to shut JMRI and re-open it which is a real pain.


A lot of the things I have in below we're in an attempt to correctly close the socket.




I open a socket using the following code:


start_new_thread(Simulator.links,('East',Simulator.sim2EastPort))





def links(name,port):


Simulator.log( name+' handle')
Simulator.log( 'port:'+str(port))


if Simulator.interlocking == 'West':
host = Simulator.westIp
else:
host = Simulator.eastIp
s = socket.socket()
s.bind((host,port))


Simulator.log( name+' RX Server Started')

while Simulator.closePort != name:
try:
s.listen(1)
Simulator.log( name+' RX listening')
except:
Simulator.log( name+' RX failed')
pass

c, addr = s.accept()
Simulator.log( name+' RX Connection from: '+str(addr))
while True and Simulator.closePort != name :

data = c.recv(2048)
if not data:
break
try:


if data[-1] == '4':
InstanceManager.sensorManagerInstance().getSensor(data[:-1]).setKnownState(Sensor.INACTIVE)
if data[-1] == '2':
InstanceManager.sensorManagerInstance().getSensor(data[:-1]).setKnownState(Sensor.ACTIVE)
except:
Simulator.log( 'failed to find sensor:'+data[:-1])
c.close()


s.close()
Simulator.log( name+' RX closed port')
if Simulator.closePort != name:
return 1
else:
Simulator.closePort = None
return 0


links = SPSstaticMethod(links)






Can anyone help?


Thanks.


Kev
(PS, I'm no programmer, I got this far by trial, error and lots of copy and paste.)


Locked Problem with Sensor Table in 4.11.3

 

Hi,

I just upgraded from test release 4.11.2 to 4.11.3 and I find I cannot now change the state of any sensors from inside the sensor table. Clicking on the button has no effect. I have reverted to 4.11.2 and it works perfectly.


Peter Goss


Locked Re: Alternate languages for Engine Driver - Opinions and Volunteers

 

It much depends on the deadlines. Im currently unemployed so now i can dedicate time to this, but I cannot guarantee the same dedication in case i get a job, sooner or later. Which is the tipical time frame for a development like this?
Roberto

Hi, there are no specific time frames for this. When each language is done we can release it. If it is never finished, that language won't be released.

As mentioned, we will be grateful of any assistance.

Can you contact me directly at the email address below and I can work through the process with you. (I am not sure I can see your email address)

Thanks
Peter
Akersp62@...
(Brisbane Australia)


Locked Re: JMRI Throttle Problems

 

Mike and John,

JMRI 4.10 has known problems in acquiring and releasing LocoNet throttles.
This includes acquisition via WiThrottleServer.

JMRI version 4.11.3 included some SIGNIFICANT improvements to JMRI
acquisition of LocoNet throttles.

Please try JMRI 4.11.3. I have not noticed any reports of LocoNet throttle
acquisition/release problems with JMRI 4.11.3.

If you continue to have problems acquiring and releasing throttles with JMRI
4.11.3, please report those problems here.

Regards,
Billybob


Locked Re: Can't access tables

 

Harold,

The only thing is you will have to create the sensors first for the AIU's to
be seen.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.com
www.syracusemodelrr.org


Locked Re: Can't access tables

 

We've now come to the conclusion that you will be fine.
--
Dave in Australia


The New England Convention 2018

On 8 Mar 2018, at 7:00 AM, Harold Thompson haroldthompson157@... [jmriusers] <jmriusers@...> wrote:

I'm sure you understand your exchanges but, for me, they may as well be in Chinese!. The bottom line for me is, once I have v1.65b software in my SB3a, will JMRI receive the signals from my nine IRDOTs and trigger each stage in my shuttle script? The script controls a DMU sound, horn, throttle and several turnouts at each sensor.
When I approached NCE initially, I told them the purpose of the AIU and sensors, and they did not indicate that there would be any problem.
Thanks,Harold.


Locked Re: Can't access tables

 

Dave,

My understand of the command station cycle is it polls all cab addresses
either fast (ones it has got responses before) and those that didn't respond
(infrequent to see something get added). So it will have read the AIU. What
I don't see in the memory of the system is the extra mapping of how it knows
a bit has changed or not. So I suspect that isn't in the USB memory space
and why the other command, but that is a guess.

Key is we get AIU with the USB and it seems to work.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.com
www.syracusemodelrr.org


Locked Re: Alternate languages for Engine Driver - Opinions and Volunteers

 

It much depends on the deadlines. Im currently unemployed so now i can
dedicate time to this, but I cannot guarantee the same dedication in case i
get a job, sooner or later. Which is the tipical time frame for a
development like this?

Regards

Roberto

2018-03-06 19:11 GMT-03:00 akersp62@... [jmriusers] <
jmriusers@...>:



Hi. I can do translations for Italian and Portuguese, but i don't know
how
much of a programming knowledge is required. If it's oly a matter of
translating text strings in an excel sheet, i can do it, else, I'm not sure
i can tackle it.
Regards
Roberto

Hi,
You won't need to know anything about programming. Yes, all the text that
needs to be translated is in a spreadsheet.

It is just a commitment of time.

There are over 500 short phrases and sentences that need to be
translated,. Then the volunteers would need to test the new text by running
Engine Driver thoroughly and send screen shots of any problems, along with
the corrections, to me.
We would also need them occasionally help translate when new features are
added.

As I said... A commitment of time.

If you are still up for the challenge after hearing that, we would welcome
your assistance.

Peter
(Brisbane Australia)



Locked Re: Can't access tables

 

Dave/Ken,
I'm sure you understand your exchanges but, for me, they may as well be in Chinese!.? The bottom line for me is, once I have v1.65b software in my SB3a, will JMRI receive the signals from my nine IRDOTs and trigger each stage in my shuttle script?? The script controls a DMU sound, horn, throttle and several turnouts at each sensor.
When I approached NCE initially, I told them the purpose of the AIU and sensors, and they did not indicate that there would be any problem.
Thanks,Harold.

On Wednesday, March 7, 2018, 7:32:57 PM GMT, Dave Heap dgheap@... [jmriusers] <jmriusers@...> wrote:

?
Tried the Power Pro and the only difference was that it used the 0x8A command instead of the 0x9B command and got a 4 byte reply instead of a 2 byte reply.

There were no memory read commands from JMRI.
--
Dave in Australia

The New England Convention 2018


On 8 Mar 2018, at 6:21 AM, Dave Heap <dgheap@...> wrote:

Possibly so. I'll check my Power Pro.

Did you try my procedure with a real AIU and whether it detects connection to ground of the nominated pin?



#yiv7971564803 #yiv7971564803 -- #yiv7971564803ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv7971564803 #yiv7971564803ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv7971564803 #yiv7971564803ygrp-mkp #yiv7971564803hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv7971564803 #yiv7971564803ygrp-mkp #yiv7971564803ads {margin-bottom:10px;}#yiv7971564803 #yiv7971564803ygrp-mkp .yiv7971564803ad {padding:0 0;}#yiv7971564803 #yiv7971564803ygrp-mkp .yiv7971564803ad p {margin:0;}#yiv7971564803 #yiv7971564803ygrp-mkp .yiv7971564803ad a {color:#0000ff;text-decoration:none;}#yiv7971564803 #yiv7971564803ygrp-sponsor #yiv7971564803ygrp-lc {font-family:Arial;}#yiv7971564803 #yiv7971564803ygrp-sponsor #yiv7971564803ygrp-lc #yiv7971564803hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv7971564803 #yiv7971564803ygrp-sponsor #yiv7971564803ygrp-lc .yiv7971564803ad {margin-bottom:10px;padding:0 0;}#yiv7971564803 #yiv7971564803actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv7971564803 #yiv7971564803activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv7971564803 #yiv7971564803activity span {font-weight:700;}#yiv7971564803 #yiv7971564803activity span:first-child {text-transform:uppercase;}#yiv7971564803 #yiv7971564803activity span a {color:#5085b6;text-decoration:none;}#yiv7971564803 #yiv7971564803activity span span {color:#ff7900;}#yiv7971564803 #yiv7971564803activity span .yiv7971564803underline {text-decoration:underline;}#yiv7971564803 .yiv7971564803attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv7971564803 .yiv7971564803attach div a {text-decoration:none;}#yiv7971564803 .yiv7971564803attach img {border:none;padding-right:5px;}#yiv7971564803 .yiv7971564803attach label {display:block;margin-bottom:5px;}#yiv7971564803 .yiv7971564803attach label a {text-decoration:none;}#yiv7971564803 blockquote {margin:0 0 0 4px;}#yiv7971564803 .yiv7971564803bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv7971564803 .yiv7971564803bold a {text-decoration:none;}#yiv7971564803 dd.yiv7971564803last p a {font-family:Verdana;font-weight:700;}#yiv7971564803 dd.yiv7971564803last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv7971564803 dd.yiv7971564803last p span.yiv7971564803yshortcuts {margin-right:0;}#yiv7971564803 div.yiv7971564803attach-table div div a {text-decoration:none;}#yiv7971564803 div.yiv7971564803attach-table {width:400px;}#yiv7971564803 div.yiv7971564803file-title a, #yiv7971564803 div.yiv7971564803file-title a:active, #yiv7971564803 div.yiv7971564803file-title a:hover, #yiv7971564803 div.yiv7971564803file-title a:visited {text-decoration:none;}#yiv7971564803 div.yiv7971564803photo-title a, #yiv7971564803 div.yiv7971564803photo-title a:active, #yiv7971564803 div.yiv7971564803photo-title a:hover, #yiv7971564803 div.yiv7971564803photo-title a:visited {text-decoration:none;}#yiv7971564803 div#yiv7971564803ygrp-mlmsg #yiv7971564803ygrp-msg p a span.yiv7971564803yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv7971564803 .yiv7971564803green {color:#628c2a;}#yiv7971564803 .yiv7971564803MsoNormal {margin:0 0 0 0;}#yiv7971564803 o {font-size:0;}#yiv7971564803 #yiv7971564803photos div {float:left;width:72px;}#yiv7971564803 #yiv7971564803photos div div {border:1px solid #666666;min-height:62px;overflow:hidden;width:62px;}#yiv7971564803 #yiv7971564803photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv7971564803 #yiv7971564803reco-category {font-size:77%;}#yiv7971564803 #yiv7971564803reco-desc {font-size:77%;}#yiv7971564803 .yiv7971564803replbq {margin:4px;}#yiv7971564803 #yiv7971564803ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv7971564803 #yiv7971564803ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv7971564803 #yiv7971564803ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv7971564803 #yiv7971564803ygrp-mlmsg select, #yiv7971564803 input, #yiv7971564803 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv7971564803 #yiv7971564803ygrp-mlmsg pre, #yiv7971564803 code {font:115% monospace;}#yiv7971564803 #yiv7971564803ygrp-mlmsg * {line-height:1.22em;}#yiv7971564803 #yiv7971564803ygrp-mlmsg #yiv7971564803logo {padding-bottom:10px;}#yiv7971564803 #yiv7971564803ygrp-msg p a {font-family:Verdana;}#yiv7971564803 #yiv7971564803ygrp-msg p#yiv7971564803attach-count span {color:#1E66AE;font-weight:700;}#yiv7971564803 #yiv7971564803ygrp-reco #yiv7971564803reco-head {color:#ff7900;font-weight:700;}#yiv7971564803 #yiv7971564803ygrp-reco {margin-bottom:20px;padding:0px;}#yiv7971564803 #yiv7971564803ygrp-sponsor #yiv7971564803ov li a {font-size:130%;text-decoration:none;}#yiv7971564803 #yiv7971564803ygrp-sponsor #yiv7971564803ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv7971564803 #yiv7971564803ygrp-sponsor #yiv7971564803ov ul {margin:0;padding:0 0 0 8px;}#yiv7971564803 #yiv7971564803ygrp-text {font-family:Georgia;}#yiv7971564803 #yiv7971564803ygrp-text p {margin:0 0 1em 0;}#yiv7971564803 #yiv7971564803ygrp-text tt {font-size:120%;}#yiv7971564803 #yiv7971564803ygrp-vital ul li:last-child {border-right:none !important;}#yiv7971564803

[Non-text portions of this message have been removed]


Locked Re: Can't access tables

 

My guess is that the 0x8A command uses the CS Memory Block to compare/store the last polled state for the AIU, hence populating the last two bytes.

It's possible the Power CS does actually poll all known AIUs at the cab bus level and update the memory block. It probably also plays a part in AIU Broadcast mode (which we don't use).
--
Dave

The New England Convention 2018

On 8 Mar 2018, at 6:29 AM, Dave Heap <dgheap@...> wrote:

Tried the Power Pro and the only difference was that it used the 0x8A command instead of the 0x9B command and got a 4 byte reply instead of a 2 byte reply.

There were no memory read commands from JMRI.


Locked Re: Operations: Creating a passenger train questions

 

Well I figured it out. I had defined the cars as 'passenger' in the drop down menu under the cars menu but I had not checked the box underneath the drop down which has a list of passenger, caboose, FRED, utility, etc.

Checking the passenger box fixed the problem.


Thanks


Locked Re: Can't access tables

 

Tried the Power Pro and the only difference was that it used the 0x8A command instead of the 0x9B command and got a 4 byte reply instead of a 2 byte reply.

There were no memory read commands from JMRI.
--
Dave in Australia


The New England Convention 2018

On 8 Mar 2018, at 6:21 AM, Dave Heap <dgheap@...> wrote:

Possibly so. I'll check my Power Pro.

Did you try my procedure with a real AIU and whether it detects connection to ground of the nominated pin?


Locked Re: Can't access tables

 

Dave,

Yes I think I may have mixed up the parts. AIU, ok, accessories no. The
other is that I think the USB version only polls the AIU's it knows about.
So the sensor has to be created first. But the CS02 finds them. I am likely
wrong since it has been a year or two since I was doing testing with a CS02
station. Anything lately has all been USB based. Focusing on memory of
things bites now and then.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.com
www.syracusemodelrr.org


Locked Re: Can't access tables

 

Possibly so. I'll check my Power Pro.

Did you try my procedure with a real AIU and whether it detects connection to ground of the nominated pin?
--
Dave

The New England Convention 2018

On 8 Mar 2018, at 6:15 AM, 'Ken Cameron' kcameron@... [jmriusers] <jmriusers@...> wrote:

I'm suspecting that is the difference of the two commands. The one in turn
polls the AIU and passes back the data. The other command reads the AIU
buffer in memory. The CS02 has the memory buffer, like the turnout buffer,
to keep track. In the USB version neither buffer exists. The address for the
AIU buffer is FB00h, the turnouts ec00h. Page 11 in the USB shows as the AIU
buffer. There is no page showing for the turnouts.


Locked Re: Can't access tables

 

Dave,

I'm suspecting that is the difference of the two commands. The one in turn
polls the AIU and passes back the data. The other command reads the AIU
buffer in memory. The CS02 has the memory buffer, like the turnout buffer,
to keep track. In the USB version neither buffer exists. The address for the
AIU buffer is FB00h, the turnouts ec00h. Page 11 in the USB shows as the AIU
buffer. There is no page showing for the turnouts.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.com
www.syracusemodelrr.org


Locked Re: JMRI Throttle Problems

BirminghamRails
 

Hi Folks

BDMRR is having the same problems described after JMRI upgrade with essentially the same system components in place: W10, DCS100, PR3, WiThrottle and Engine Driver

John Stewart
Birmingham, AL


Locked Re: Can't access tables

 

Ken,

I just tried adding an NCE Sensor to my Power Cab profile following the instructions at the second link below.

I entered 8:2 into the Hardware Address field of New Sensor, pressed Create and my Command Monitor and NCE USB LEDs showed JMRI happily polling my non-existent AIU 8 (with a 9B 08 command). The polling interval was about 200ms.

So it seems the code is already in place...
--
Dave Heap

The New England Convention 2018

On 8 Mar 2018, at 4:56 AM, Dave Heap <dgheap@...> wrote:

I haven't checked the code, but are you saying that the existing AIU code doesn't poll the AIU itself but looks at an AIU memory block (or are you confusing this with the turnout position memory block)?

<>
<>


Locked Re: Can't access tables

 

I may have mixed up cases here, it has been a while since I was regularly
deep in the NCE code. Now what I did see looks like some of the code is
there for the other command, but I don't think it is getting invoked. Also
the ranges etc... they have nothing in the code to show knowing the
difference.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.com
www.syracusemodelrr.org


Locked Re: Arduino sketch

 

---In jmriusers@..., <dimmted@...> wrote :
>Just want to send Arduino input pin status to JMRI.


The example jython folder that Bob Jacobsen identified earlier in this thread seems to be an excellent, if well hidden, starting point for what you have described. The README file is a must.


Just wish that I had known about it earlier. Bob sent his reply while I was still typing mine. My next personal challenge is to expand on what Bob has provided for our club layout.


You should also be aware of the self defined as, "A group for discussing Arduino applications in model railroading."


Cliff