Holy ****

machinekit@mksocfpga-nano-soc:~$ halrun
msgd:0 running
rtapi:0 running
halrun: Realtime already running.  Use 'halrun -U' to stop existing
realtime session.
machinekit@mksocfpga-nano-soc:~$ halrun -U
machinekit@mksocfpga-nano-soc:~$ halrun
msgd:0 stopped
rtapi:0 stopped
rtapi_msgd command:  /usr/libexec/linuxcnc/rtapi_msgd --instance=0
--rtmsglevel=1 --usrmsglevel=1 --halsize=524288
rtapi_app command:  /usr/libexec/linuxcnc/rtapi_app_rt-preempt --instance=0
halcmd: source ~/Desktop/SS_Test_MK.halrun
halcmd: show pin *8i20*
Component Pins:
  Comp   Inst Type  Dir         Value  Name
           Epsilon Flags  linked to:
   517    519 float IN              0  hm2_5i25.0.8i20.0.0.angle
      0.000010        --l-
   517    519 float OUT             0  hm2_5i25.0.8i20.0.0.bus-voltage
      0.000010        --l-
   517    519 float OUT             0  hm2_5i25.0.8i20.0.0.card-temp
      0.000010        --l-
   517    519 float IN              0  hm2_5i25.0.8i20.0.0.current
      0.000010        --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.fault.U-current
              --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.fault.U-current-not           --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.fault.V-current
              --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.fault.V-current-not           --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.fault.W-current
              --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.fault.W-current-not           --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.fault.bus-high
             --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.fault.bus-high-not            --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.fault.bus-overv
              --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.fault.bus-overv-not           --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.fault.bus-underv
             --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.fault.bus-underv-not          --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.fault.framingr
             --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.fault.framingr-not            --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.fault.module
             --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.fault.module-not
             --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.fault.no-enable
              --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.fault.no-enable-not           --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.fault.overcurrent             --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.fault.overcurrent-no          --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.fault.overrun
              --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.fault.overrun-not             --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.fault.overtemp
             --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.fault.overtemp-not            --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.fault.watchdog
             --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.fault.watchdog-not            --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.status.brake-old
             --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.status.brake-old-not          --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.status.brake-on
              --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.status.brake-on-not           --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.status.bus-underv             --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.status.bus-underv-no          --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.status.current-lim            --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.status.current-lim-n          --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.status.ext-reset
             --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.status.ext-reset-not          --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.status.no-enable
             --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.status.no-enable-not          --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.status.pid-on
              --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.status.pid-on-not             --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.status.sw-reset
              --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.status.sw-reset-not           --l-
   517    519 bit   OUT         FALSE  hm2_5i25.0.8i20.0.0.status.wd-reset
              --l-
   517    519 bit   OUT         FALSE
 hm2_5i25.0.8i20.0.0.status.wd-reset-not           --l-

Michael's a genius

On Sun, Aug 25, 2019 at 4:26 PM Michael Brown <[email protected]>
wrote:

> Ups this file
>
> On Sunday, 25 August 2019 22:23:30 UTC+2, Michael Brown wrote:
>>
>> mk-hal deb for test with sserial parse only mod.
>> Due to the number of changes I choose to creative a conservative change
>> only modding the:
>> hm2_sserial_parse_md() function, this is what does the intial probing and
>> pin setting..
>> The file you should use I think is:
>>  machinekit-hal-rt-preempt_0.2.1566764039.gitf3af8e09e-1~stretch_armhf.deb
>>
>> I added the other one just in case...
>>
>> On Saturday, 24 August 2019 20:19:36 UTC+2, Michael Brown wrote:
>>
>> Got some scope results:
>> https://github.com/machinekit/mksocfpga/issues/107#issuecomment-524570613
>>
>>
>> On Saturday, 24 August 2019 19:31:04 UTC+2, justin White wrote:
>>
>> @Michael, if ya need any info from my LCNC machine let me know. It's not
>> MK but it does have a working SS setup that's easy to check.
>>
>> Also, if it makes it any easier for you to test anything I'm about to
>> order what's hopefully my final board rev. I can whip you one up and send
>> it your way, might be useful if you get an SS remote on hand.
>>
>> On Saturday, August 24, 2019 at 1:20:09 PM UTC-4, justin White wrote:
>>
>> I'm not sure if this helps you but SS pins always look like normal I/O if
>> they don't detect a remote on the channel after coming up. Since I have it
>> out I connected the 8i20 to my project machine's 7i96 that I don't
>> typically use SS with. This is LinuxCNC 2.8pre1
>>
>> No 8i20 connected, note IO pins 30 and 31:
>> shade@Viewer:~$ halrun
>> halcmd: source /home/shade/linuxcnc/SS_Test.halrun
>> Note: Using POSIX realtime
>> hm2: loading Mesa HostMot2 driver version 0.15
>> hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
>> hm2_eth: 10.10.10.10: Hardware address: 00:60:1b:16:00:21
>> hm2_eth: discovered 7I96
>> hm2/hm2_7i96.0: Smart Serial Firmware Version 43
>> hm2/hm2_7i96.0: 51 I/O Pins used:
>> hm2/hm2_7i96.0:     IO Pin 000 (TB3-01): IOPort
>> hm2/hm2_7i96.0:     IO Pin 001 (TB3-02): IOPort
>> hm2/hm2_7i96.0:     IO Pin 002 (TB3-03): IOPort
>> hm2/hm2_7i96.0:     IO Pin 003 (TB3-04): IOPort
>> hm2/hm2_7i96.0:     IO Pin 004 (TB3-05): IOPort
>> hm2/hm2_7i96.0:     IO Pin 005 (TB3-06): IOPort
>> hm2/hm2_7i96.0:     IO Pin 006 (TB3-07): IOPort
>> hm2/hm2_7i96.0:     IO Pin 007 (TB3-08): IOPort
>> hm2/hm2_7i96.0:     IO Pin 008 (TB3-09): IOPort
>> hm2/hm2_7i96.0:     IO Pin 009 (TB3-10): IOPort
>> hm2/hm2_7i96.0:     IO Pin 010 (TB3-11): IOPort
>> hm2/hm2_7i96.0:     IO Pin 011 (TB3-13/TB3-14): SSR #0, pin Out-00
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 012 (TB3-15/TB3-16): SSR #0, pin Out-01
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 013 (TB3-17/TB3-18): SSR #0, pin Out-02
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 014 (TB3-19/TB3-20): SSR #0, pin Out-03
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 015 (TB3-21/TB3-22): SSR #0, pin Out-04
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 016 (TB3-23/TB3-24): SSR #0, pin Out-05
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 017 (TB1-02/TB1-03): StepGen #0, pin Step
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 018 (TB1-04/TB1-05): StepGen #0, pin Direction
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 019 (TB1-08/TB1-09): StepGen #1, pin Step
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 020 (TB1-10/TB1-11): StepGen #1, pin Direction
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 021 (TB1-14/TB1-15): StepGen #2, pin Step
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 022 (TB1-16/TB1-17): StepGen #2, pin Direction
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 023 (TB1-20/TB1-21): StepGen #3, pin Step
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 024 (TB1-22-TB1-23): StepGen #3, pin Direction
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 025 (TB2-01/TB2-03): StepGen #4, pin Step
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 026 (TB2-04/TB2-05): StepGen #4, pin Direction
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 027 (TB2-07/TB2-08): Encoder #0, pin A (Input)
>> hm2/hm2_7i96.0:     IO Pin 028 (TB2-10/TB2-11): Encoder #0, pin B (Input)
>> hm2/hm2_7i96.0:     IO Pin 029 (TB2-13/TB2-14): Encoder #0, pin Index
>> (Input)
>> hm2/hm2_7i96.0:     IO Pin 030 (TB2-16/TB2-17): IOPort
>> hm2/hm2_7i96.0:     IO Pin 031 (TB2-18/TB2-19): IOPort
>> hm2/hm2_7i96.0:     IO Pin 032 (internal): IOPort
>> hm2/hm2_7i96.0:     IO Pin 033 (internal): SSR #0, pin AC Ref (internal)
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 034 (P1-01): IOPort
>> hm2/hm2_7i96.0:     IO Pin 035 (P1-02): IOPort
>> hm2/hm2_7i96.0:     IO Pin 036 (P1-03): IOPort
>> hm2/hm2_7i96.0:     IO Pin 037 (P1-04): IOPort
>> hm2/hm2_7i96.0:     IO Pin 038 (P1-05): IOPort
>> hm2/hm2_7i96.0:     IO Pin 039 (P1-06): IOPort
>> hm2/hm2_7i96.0:     IO Pin 040 (P1-07): IOPort
>> hm2/hm2_7i96.0:     IO Pin 041 (P1-08): IOPort
>> hm2/hm2_7i96.0:     IO Pin 042 (P1-09): IOPort
>> hm2/hm2_7i96.0:     IO Pin 043 (P1-11): IOPort
>> hm2/hm2_7i96.0:     IO Pin 044 (P1-13): IOPort
>> hm2/hm2_7i96.0:     IO Pin 045 (P1-15): IOPort
>> hm2/hm2_7i96.0:     IO Pin 046 (P1-17): IOPort
>> hm2/hm2_7i96.0:     IO Pin 047 (P1-19): IOPort
>> hm2/hm2_7i96.0:     IO Pin 048 (P1-21): IOPort
>> hm2/hm2_7i96.0:     IO Pin 049 (P1-23): IOPort
>> hm2/hm2_7i96.0:     IO Pin 050 (P1-25): IOPort
>> hm2/hm2_7i96.0: registered
>>
>>
>> With the 8i20 connected and the same source file:
>> shade@Viewer:~$ halrun
>> halcmd: source /home/shade/linuxcnc/SS_Test.halrun
>> Note: Using POSIX realtime
>> hm2: loading Mesa HostMot2 driver version 0.15
>> hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
>> hm2_eth: 10.10.10.10: Hardware address: 00:60:1b:16:00:21
>> hm2_eth: discovered 7I96
>> hm2/hm2_7i96.0: Smart Serial Firmware Version 43
>> hm2/hm2_7i96.0: 51 I/O Pins used:
>> hm2/hm2_7i96.0:     IO Pin 000 (TB3-01): IOPort
>> hm2/hm2_7i96.0:     IO Pin 001 (TB3-02): IOPort
>> hm2/hm2_7i96.0:     IO Pin 002 (TB3-03): IOPort
>> hm2/hm2_7i96.0:     IO Pin 003 (TB3-04): IOPort
>> hm2/hm2_7i96.0:     IO Pin 004 (TB3-05): IOPort
>> hm2/hm2_7i96.0:     IO Pin 005 (TB3-06): IOPort
>> hm2/hm2_7i96.0:     IO Pin 006 (TB3-07): IOPort
>> hm2/hm2_7i96.0:     IO Pin 007 (TB3-08): IOPort
>> hm2/hm2_7i96.0:     IO Pin 008 (TB3-09): IOPort
>> hm2/hm2_7i96.0:     IO Pin 009 (TB3-10): IOPort
>> hm2/hm2_7i96.0:     IO Pin 010 (TB3-11): IOPort
>> hm2/hm2_7i96.0:     IO Pin 011 (TB3-13/TB3-14): SSR #0, pin Out-00
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 012 (TB3-15/TB3-16): SSR #0, pin Out-01
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 013 (TB3-17/TB3-18): SSR #0, pin Out-02
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 014 (TB3-19/TB3-20): SSR #0, pin Out-03
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 015 (TB3-21/TB3-22): SSR #0, pin Out-04
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 016 (TB3-23/TB3-24): SSR #0, pin Out-05
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 017 (TB1-02/TB1-03): StepGen #0, pin Step
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 018 (TB1-04/TB1-05): StepGen #0, pin Direction
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 019 (TB1-08/TB1-09): StepGen #1, pin Step
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 020 (TB1-10/TB1-11): StepGen #1, pin Direction
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 021 (TB1-14/TB1-15): StepGen #2, pin Step
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 022 (TB1-16/TB1-17): StepGen #2, pin Direction
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 023 (TB1-20/TB1-21): StepGen #3, pin Step
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 024 (TB1-22-TB1-23): StepGen #3, pin Direction
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 025 (TB2-01/TB2-03): StepGen #4, pin Step
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 026 (TB2-04/TB2-05): StepGen #4, pin Direction
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 027 (TB2-07/TB2-08): Encoder #0, pin A (Input)
>> hm2/hm2_7i96.0:     IO Pin 028 (TB2-10/TB2-11): Encoder #0, pin B (Input)
>> hm2/hm2_7i96.0:     IO Pin 029 (TB2-13/TB2-14): Encoder #0, pin Index
>> (Input)
>> hm2/hm2_7i96.0:     IO Pin 030 (TB2-16/TB2-17): Smart Serial Interface
>> #0, pin RxData0 (Input)
>> hm2/hm2_7i96.0:     IO Pin 031 (TB2-18/TB2-19): Smart Serial Interface
>> #0, pin TxData0 (Output)
>> hm2/hm2_7i96.0:     IO Pin 032 (internal): Smart Serial Interface #0, pin
>> TxEn0   (Output)
>> hm2/hm2_7i96.0:     IO Pin 033 (internal): SSR #0, pin AC Ref (internal)
>> (Output)
>> hm2/hm2_7i96.0:     IO Pin 034 (P1-01): IOPort
>> hm2/hm2_7i96.0:     IO Pin 035 (P1-02): IOPort
>> hm2/hm2_7i96.0:     IO Pin 036 (P1-03): IOPort
>> hm2/hm2_7i96.0:     IO Pin 037 (P1-04): IOPort
>> hm2/hm2_7i96.0:     IO Pin 038 (P1-05): IOPort
>> hm2/hm2_7i96.0:     IO Pin 039 (P1-06): IOPort
>> hm2/hm2_7i96.0:     IO Pin 040 (P1-07): IOPort
>> hm2/hm2_7i96.0:     IO Pin 041 (P1-08): IOPort
>> hm2/hm2_7i96.0:     IO Pin 042 (P1-09): IOPort
>> hm2/hm2_7i96.0:     IO Pin 043 (P1-11): IOPort
>> hm2/hm2_7i96.0:     IO Pin 044 (P1-13): IOPort
>> hm2/hm2_7i96.0:     IO Pin 045 (P1-15): IOPort
>> hm2/hm2_7i96.0:     IO Pin 046 (P1-17): IOPort
>> hm2/hm2_7i96.0:     IO Pin 047 (P1-19): IOPort
>> hm2/hm2_7i96.0:     IO Pin 048 (P1-21): IOPort
>> hm2/hm2_7i96.0:     IO Pin 049 (P1-23): IOPort
>> hm2/hm2_7i96.0:     IO Pin 050 (P1-25): IOPort
>> hm2/hm2_7i96.0: registered
>> halcmd: show pin *8i20*
>> Component Pins:
>> Owner   Type  Dir         Value  Name
>>     14  float IN              0  hm2_7i96.0.8i20.0.0.angle
>>     14  float OUT           3.2  hm2_7i96.0.8i20.0.0.bus-voltage
>>     14  float OUT            24  hm2_7i96.0.8i20.0.0.card-temp
>>     14  float IN              0  hm2_7i96.0.8i20.0.0.current
>>     14  bit   OUT         FALSE  hm2_7i96.0.8i20.0.0.fault.U-current
>>     14  bit   OUT          TRUE  hm2_7i96.0.8i20.0.0.fault.U-current-not
>>
>>
>> ...
>
> --
> website: http://www.machinekit.io blog: http://blog.machinekit.io github:
> https://github.com/machinekit
> ---
> You received this message because you are subscribed to the Google Groups
> "Machinekit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/machinekit/911258cf-1507-44f7-b003-33246e926d1c%40googlegroups.com
> <https://groups.google.com/d/msgid/machinekit/911258cf-1507-44f7-b003-33246e926d1c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/CA%2BQ02MOpwjqU8p9PBG-%3DaSj%3DuM%2B9sZP2hneOAiakH43UFPU1Mw%40mail.gmail.com.

Reply via email to