{"action":"created","issue":{"url":"https://api.github.com/repos/OpenEtherCATsociety/SOEM/issues/188","repository_url":"https://api.github.com/repos/OpenEtherCATsociety/SOEM","labels_url":"https://api.github.com/repos/OpenEtherCATsociety/SOEM/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/OpenEtherCATsociety/SOEM/issues/188/comments","events_url":"https://api.github.com/repos/OpenEtherCATsociety/SOEM/issues/188/events","html_url":"https://github.com/OpenEtherCATsociety/SOEM/issues/188","id":344429055,"node_id":"MDU6SXNzdWUzNDQ0MjkwNTU=","number":188,"title":"simple_test cant change state to operational , status dont show any error","user":{"login":"Katod","id":4643763,"node_id":"MDQ6VXNlcjQ2NDM3NjM=","avatar_url":"https://avatars2.githubusercontent.com/u/4643763?v=4","gravatar_id":"","url":"https://api.github.com/users/Katod","html_url":"https://github.com/Katod","followers_url":"https://api.github.com/users/Katod/followers","following_url":"https://api.github.com/users/Katod/following{/other_user}","gists_url":"https://api.github.com/users/Katod/gists{/gist_id}","starred_url":"https://api.github.com/users/Katod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Katod/subscriptions","organizations_url":"https://api.github.com/users/Katod/orgs","repos_url":"https://api.github.com/users/Katod/repos","events_url":"https://api.github.com/users/Katod/events{/privacy}","received_events_url":"https://api.github.com/users/Katod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-25T12:48:04Z","updated_at":"2018-07-30T10:32:44Z","closed_at":null,"author_association":"NONE","body":"My test configuration Beckhoff EK1100 EL1008 EL2008 , when run simple test , have message about Not all slaves reached operational state.\r\n\r\n> ./simple_test enp30s0\r\n> SOEM (Simple Open EtherCAT Master)                                                                                                                                                                                                                                             \r\n> Simple test                                                                                                                                                                                                                                                                    \r\n> Starting simple test                                                                                                                                                                                                                                                           \r\n> ec_init on enp30s0 succeeded.                                                                                                                                                                                                                                                  \r\n> 3 slaves found and configured.                                                                                                                                                                                                                                                 \r\n> Slaves mapped, state to SAFE_OP.                                                                                                                                                                                                                                               \r\n> segments : 1 : 2 0 0 0                                                                                                                                                                                                                                                         \r\n> Request operational state for all slaves                                                                                                                                                                                                                                       \r\n> Calculated workcounter 3                                                                                                                                                                                                                                                       \r\n> Not all slaves reached operational state.\r\n> Slave 1 State=0x01 StatusCode=0x0000 : No error\r\n> Slave 2 State=0x01 StatusCode=0x0000 : No error\r\n> Slave 3 State=0x01 StatusCode=0x0000 : No error\r\n> \r\n> Request init state for all slaves\r\n> End simple test, close socket\r\n> End program\r\n\r\nStatus dont have any error , output in ec_slave can change but change state cant.\r\nIts slave info with map parameter\r\n\r\n_\r\n\r\n> SOEM (Simple Open EtherCAT Master)\r\n> Slaveinfo\r\n> Starting slaveinfo\r\n> ec_init on enp30s0 succeeded.\r\n> 3 slaves found and configured.\r\n> Calculated workcounter 3\r\n> Not all slaves reached safe operational state.\r\n> Slave 1 State= 1 StatusCode=   0 : No error\r\n> Slave 2 State= 1 StatusCode=   0 : No error\r\n> Slave 3 State= 1 StatusCode=   0 : No error\r\n> \r\n> Slave:1\r\n>  Name:EK1100\r\n>  Output size: 0bits\r\n>  Input size: 0bits\r\n>  State: 1\r\n>  Delay: 0[ns]\r\n>  Has DC: 1\r\n>  DCParentport:0\r\n>  Activeports:1.1.0.0\r\n>  Configured address: 1001\r\n>  Man: 00000002 ID: 044c2c52 Rev: 00120000\r\n>  FMMUfunc 0:0 1:0 2:0 3:0\r\n>  MBX length wr: 0 rd: 0 MBX protocols : 00\r\n>  CoE details: 00 FoE details: 00 EoE details: 00 SoE details: 00\r\n>  Ebus current: -2000[mA]\r\n>  only LRD/LWR:0\r\n> PDO mapping according to SII :\r\n> \r\n> Slave:2\r\n>  Name:EL1008\r\n>  Output size: 0bits\r\n>  Input size: 8bits\r\n>  State: 1\r\n>  Delay: 145[ns]\r\n>  Has DC: 1\r\n>  DCParentport:1\r\n>  Activeports:1.1.0.0\r\n>  Configured address: 1002\r\n>  Man: 00000002 ID: 03f03052 Rev: 00110000\r\n>  SM0 A:1000 L:   1 F:00010000 Type:4\r\n>  FMMU0 Ls:00000001 Ll:   1 Lsb:0 Leb:7 Ps:1000 Psb:0 Ty:01 Act:01\r\n>  FMMUfunc 0:2 1:0 2:0 3:0\r\n>  MBX length wr: 0 rd: 0 MBX protocols : 00\r\n>  CoE details: 00 FoE details: 00 EoE details: 00 SoE details: 00\r\n>  Ebus current: 90[mA]\r\n>  only LRD/LWR:0\r\n> PDO mapping according to SII :\r\n>   SM0 TXPDO 0x1A00 Channel 1\r\n>      addr b   index: sub bitl data_type    name\r\n>   [0x0001.0] 0x6000:0x01 0x01 BOOLEAN      Input\r\n>   SM0 TXPDO 0x1A01 Channel 2\r\n>      addr b   index: sub bitl data_type    name\r\n>   [0x0001.1] 0x6010:0x01 0x01 BOOLEAN      Input\r\n>   SM0 TXPDO 0x1A02 Channel 3\r\n>      addr b   index: sub bitl data_type    name\r\n>   [0x0001.2] 0x6020:0x01 0x01 BOOLEAN      Input\r\n>   SM0 TXPDO 0x1A03 Channel 4\r\n>      addr b   index: sub bitl data_type    name\r\n>   [0x0001.3] 0x6030:0x01 0x01 BOOLEAN      Input\r\n>   SM0 TXPDO 0x1A04 Channel 5\r\n>      addr b   index: sub bitl data_type    name\r\n>   [0x0001.4] 0x6040:0x01 0x01 BOOLEAN      Input\r\n>   SM0 TXPDO 0x1A05 Channel 6\r\n>      addr b   index: sub bitl data_type    name\r\n>   [0x0001.5] 0x6050:0x01 0x01 BOOLEAN      Input\r\n>   SM0 TXPDO 0x1A06 Channel 7\r\n>      addr b   index: sub bitl data_type    name\r\n>   [0x0001.6] 0x6060:0x01 0x01 BOOLEAN      Input\r\n>   SM0 TXPDO 0x1A07 Channel 8\r\n>      addr b   index: sub bitl data_type    name\r\n>   [0x0001.7] 0x6070:0x01 0x01 BOOLEAN      Input\r\n> \r\n> Slave:3\r\n>  Name:EL2008\r\n>  Output size: 8bits\r\n>  Input size: 0bits\r\n>  State: 1\r\n>  Delay: 300[ns]\r\n>  Has DC: 1\r\n>  DCParentport:1\r\n>  Activeports:1.0.0.0\r\n>  Configured address: 1003\r\n>  Man: 00000002 ID: 07d83052 Rev: 00100000\r\n>  SM0 A:0f00 L:   1 F:00090044 Type:3\r\n>  FMMU0 Ls:00000000 Ll:   1 Lsb:0 Leb:7 Ps:0f00 Psb:0 Ty:02 Act:01\r\n>  FMMUfunc 0:1 1:0 2:0 3:0\r\n>  MBX length wr: 0 rd: 0 MBX protocols : 00\r\n>  CoE details: 00 FoE details: 00 EoE details: 00 SoE details: 00\r\n>  Ebus current: 110[mA]\r\n>  only LRD/LWR:0\r\n> PDO mapping according to SII :\r\n>   SM0 RXPDO 0x1600 Channel 1\r\n>      addr b   index: sub bitl data_type    name\r\n>   [0x0000.0] 0x7000:0x01 0x01 BOOLEAN      Output\r\n>   SM0 RXPDO 0x1601 Channel 2\r\n>      addr b   index: sub bitl data_type    name\r\n>   [0x0000.1] 0x7010:0x01 0x01 BOOLEAN      Output\r\n>   SM0 RXPDO 0x1602 Channel 3\r\n>      addr b   index: sub bitl data_type    name\r\n>   [0x0000.2] 0x7020:0x01 0x01 BOOLEAN      Output\r\n>   SM0 RXPDO 0x1603 Channel 4\r\n>      addr b   index: sub bitl data_type    name\r\n>   [0x0000.3] 0x7030:0x01 0x01 BOOLEAN      Output\r\n>   SM0 RXPDO 0x1604 Channel 5\r\n>      addr b   index: sub bitl data_type    name\r\n>   [0x0000.4] 0x7040:0x01 0x01 BOOLEAN      Output\r\n>   SM0 RXPDO 0x1605 Channel 6\r\n>      addr b   index: sub bitl data_type    name\r\n>   [0x0000.5] 0x7050:0x01 0x01 BOOLEAN      Output\r\n>   SM0 RXPDO 0x1606 Channel 7\r\n>      addr b   index: sub bitl data_type    name\r\n>   [0x0000.6] 0x7060:0x01 0x01 BOOLEAN      Output\r\n>   SM0 RXPDO 0x1607 Channel 8\r\n>      addr b   index: sub bitl data_type    name\r\n>   [0x0000.7] 0x7070:0x01 0x01 BOOLEAN      Output\r\n> End slaveinfo, close socket\r\n> End program\r\n\r\n_\r\n\r\nmaybe someone have problem like this , thanks.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/OpenEtherCATsociety/SOEM/issues/comments/408820067","html_url":"https://github.com/OpenEtherCATsociety/SOEM/issues/188#issuecomment-408820067","issue_url":"https://api.github.com/repos/OpenEtherCATsociety/SOEM/issues/188","id":408820067,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODgyMDA2Nw==","user":{"login":"Katod","id":4643763,"node_id":"MDQ6VXNlcjQ2NDM3NjM=","avatar_url":"https://avatars2.githubusercontent.com/u/4643763?v=4","gravatar_id":"","url":"https://api.github.com/users/Katod","html_url":"https://github.com/Katod","followers_url":"https://api.github.com/users/Katod/followers","following_url":"https://api.github.com/users/Katod/following{/other_user}","gists_url":"https://api.github.com/users/Katod/gists{/gist_id}","starred_url":"https://api.github.com/users/Katod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Katod/subscriptions","organizations_url":"https://api.github.com/users/Katod/orgs","repos_url":"https://api.github.com/users/Katod/repos","events_url":"https://api.github.com/users/Katod/events{/privacy}","received_events_url":"https://api.github.com/users/Katod/received_events","type":"User","site_admin":false},"created_at":"2018-07-30T10:32:44Z","updated_at":"2018-07-30T10:32:44Z","author_association":"NONE","body":"Have false read access EEprom but when use eepromtool for write and read EEprom all good.\r\n```\r\nFrame 56: 60 bytes on wire (480 bits), 60 bytes captured (480 bits) on interface 0\r\nEthernet II, Src: 03:01:01:01:01:01 (03:01:01:01:01:01), Dst: Broadcast (ff:ff:ff:ff:ff:ff)\r\n    Destination: Broadcast (ff:ff:ff:ff:ff:ff)\r\n    Source: 03:01:01:01:01:01 (03:01:01:01:01:01)\r\n    Type: EtherCAT frame (0x88a4)\r\nEtherCAT frame header\r\n    .... .000 0001 0010 = Length: 0x012\r\n    .... 0... .... .... = Reserved: Valid (0x0)\r\n    0001 .... .... .... = Type: EtherCAT command (0x1)\r\nEtherCAT datagram(s): 'FPWR': Len: 6, Adp 0x1001, Ado 0x502, Wc 1 \r\n    EtherCAT datagram: Cmd: 'FPWR' (5), Len: 6, Adp 0x1001, Ado 0x502, Cnt 1\r\n        Header\r\n            Cmd        : 5 (Configured address Physical Write)\r\n            Index: 0x0a\r\n            Slave Addr: 0x1001\r\n            Offset Addr: 0x0502\r\n            Length     : 6 (0x6) - No Roundtrip - Last Sub Command\r\n            Interrupt: 0x0004\r\n        EEPROM Ctrl/Status (0x502): 0x0100, Read access\r\n            .... ...0 = Write access: False\r\n            ..0. .... = EEPROM emulation: Normal operation\r\n            .0.. .... = 8 byte access: False\r\n            0... .... = 2 byte address: False\r\n            .... .... = Read access: True\r\n            .... .... = Write access: False\r\n            .... .... = Reload access: False\r\n            .... .... = CRC error: False\r\n            .... .... = Load error: False\r\n            .... .... = Cmd error: False\r\n            .... .... = Write error: False\r\n            .... .... = Busy: False\r\n        EEPROM Address Lo (0x504): 0x0008\r\n        EEPROM Address Hi (0x506): 0x0000\r\n        Working Cnt: 1\r\nPad bytes: 000000000000000000000000000000000000000000000000...\r\n\r\n```\r\ntrying find how fix this and turn on write access but dont find info , maybe some one know and have similar problem "}}
{"actor":{"display_login":"Katod"}}