• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pilight Nano USB interface
I just bought the arduino nano from the pilight shop and wanted (before using it for pilight) to use it with an Apple Mac Book (OS Sierra, 10.12.3). If I plug it into the Mac it is not recognized, /dev/ does not show any ttyUSB-device.

Is it possible to change that? Is the arduino the problem or am I making a mistake? I have used three different USB cables to no avail.
 
Reply
I don't have experience with Mac OSX. Do you have the right kernel modules loaded? What does dmesg say?
 
Reply
Code:
002991.774944 PRT1@14100000: AppleUSBHostPort::disconnect: persistent enumeration failures

is the only line with USB. Below is the entire output:

Code:
sudo dmesg
]  0  intermediate status
ARPT: 2541.852775:     [5]  0  AMPDU
ARPT: 2541.852780:   [4:2]  0  Suppress Reason
ARPT: 2541.852785:     [1]  0  acked
ARPT: 2541.852791: txpktpend AC_BK 0 AC_BE 2 AC_VI 0 AC_VO 1 BCMC 0 ATIM 0
ARPT: 2542.344338: txpkt (MPDU) Complete
ARPT: 2542.344352: FrameID: 0x560b   Seq: 0x0000   TxStatus: 0xf001
ARPT: 2542.344395: ACK 0 IM 0 PM 0 Suppr 0 (None)
ARPT: 2542.344404: CNT(rts_tx)=0 CNT(frag_tx_cnt)=15 CNT(cts_rx_cnt)=0
ARPT: 2542.344415: DequeueTime: 0x00000000 LastTxTime: 0x01d21e96 PHYTxErr:   0x0000 RxAckRSSI: 0x0091 RxAckSQ: 0x00ff
ARPT: 2542.344453: Raw
[15:12]  15  frame attempts
ARPT: 2542.344462:  [11:8]  0  rts attempts
ARPT: 2542.344471:     [7]  0  PM
ARPT: 2542.344480:     [6]  0  intermediate status
ARPT: 2542.344490:     [5]  0  AMPDU
ARPT: 2542.344500:   [4:2]  0  Suppress Reason
ARPT: 2542.344508:     [1]  0  acked
ARPT: 2542.344518: txpktpend AC_BK 0 AC_BE 2 AC_VI 0 AC_VO 2 BCMC 0 ATIM 0
IO80211ScanManager::cachePurge: clearEntries[0] Firing!
IO80211ScanManager::cachePurge: Rescheduling in 26 seconds.
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: pid 72 had pending scan request. Deleting.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::cachePurge: clearEntries[0] Firing!
IO80211ScanManager::cachePurge: Rescheduling in 25 seconds.
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
SmartBattery: finished polling type 4
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScanMultiple: Scan request received from 'airportd' (pid 72) (2 SSIDs, 0 BSSIDs).
IO80211ScanManager::startScanMultiple: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 72) ().
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 72).
smb1_smb_negotiate: Support for the server SPEEDPORT.IP has been deprecated (PreXP), disconnecting
IO80211ScanManager::cachePurge: clearEntries[0] Firing!
IO80211ScanManager::cachePurge: Rescheduling in 9 seconds.
IO80211ScanManager::cachePurge: clearEntries[0] Firing!
IO80211ScanManager::cachePurge: NOT Rescheduling.
smb1_smb_negotiate: Support for the server SPEEDPORT.IP has been deprecated (PreXP), disconnecting
SmartBattery: finished polling type 4
smb1_smb_negotiate: Support for the server SPEEDPORT.IP has been deprecated (PreXP), disconnecting
smb1_smb_negotiate: Support for the server SPEEDPORT.IP has been deprecated (PreXP), disconnecting
SmartBattery: finished polling type 4
PMRD: prevent idle sleep list: IODisplayWrangler- (0)
prevent idle sleep list: IODisplayWrangler- (0)
IOConsoleUsers: time(1) 0->1486141930, lin 1, llk 1,
IOConsoleUsers: gIOScreenLockState 3, hs 0, bs 0, now 1486141930, sm 0x0
AppleKeyStore::ipc_device_state_transition: Device Lock call(-501): lockstate=0, locknow=0, 115
smb1_smb_negotiate: Support for the server SPEEDPORT.IP has been deprecated (PreXP), disconnecting
AppleKeyStore::ipc_change_lock_state: telling kernel handle -501 is locked.
AppleKeyStore: Sending lock change 1 for handle -501
AppleKeyStore::ipc_device_state_transition: Device Locked(-501): lockstate=1
SmartBattery: finished polling type 4
ARPT: 2782.554648: txpkt (MPDU) Complete
ARPT: 2782.554662: FrameID: 0x3a0b   Seq: 0x07e5   TxStatus: 0xf001
ARPT: 2782.554686: ACK 0 IM 0 PM 0 Suppr 0 (None)
ARPT: 2782.554694: CNT(rts_tx)=0 CNT(frag_tx_cnt)=15 CNT(cts_rx_cnt)=0
ARPT: 2782.554703: DequeueTime: 0x00000000 LastTxTime: 0x1025f40b PHYTxErr:   0x0000 RxAckRSSI: 0x0091 RxAckSQ: 0x00ff
ARPT: 2782.554737: Raw
[15:12]  15  frame attempts
ARPT: 2782.554744:  [11:8]  0  rts attempts
ARPT: 2782.554751:     [7]  0  PM
ARPT: 2782.554757:     [6]  0  intermediate status
ARPT: 2782.554764:     [5]  0  AMPDU
ARPT: 2782.554771:   [4:2]  0  Suppress Reason
ARPT: 2782.554777:     [1]  0  acked
ARPT: 2782.554785: txpktpend AC_BK 0 AC_BE 2 AC_VI 0 AC_VO 1 BCMC 0 ATIM 0
smb1_smb_negotiate: Support for the server SPEEDPORT.IP has been deprecated (PreXP), disconnecting
SmartBattery: finished polling type 4
SmartBattery: finished polling type 4
smb1_smb_negotiate: Support for the server SPEEDPORT.IP has been deprecated (PreXP), disconnecting
SmartBattery: finished polling type 4
IO80211Interface::updateReport _peerManager is missing
PMRD: prevent idle sleep list: IODisplayWrangler+ (1)
prevent idle sleep list: IODisplayWrangler+ (1)
IOConsoleUsers: time(1) 1486141930->1486141930, lin 1, llk 1,
IOConsoleUsers: gIOScreenLockState 3, hs 0, bs 0, now 1486142186, sm 0x0
UserEventAgent is not entitledkPEDisableScreen 1
kPEEnableScreen 1
IOConsoleUsers: time(1) 1486141930->1486141930, lin 1, llk 1,
IOConsoleUsers: gIOScreenLockState 3, hs 0, bs 0, now 1486142187, sm 0x0
IOConsoleUsers: time(1) 1486141930->1486141930, lin 1, llk 1,
IOConsoleUsers: gIOScreenLockState 3, hs 0, bs 0, now 1486142187, sm 0x0
UserEventAgent is not entitledIOConsoleUsers: time(1) 1486141930->1486141930, lin 1, llk 1,
IOConsoleUsers: gIOScreenLockState 3, hs 0, bs 0, now 1486142187, sm 0x0
IOConsoleUsers: time(1) 1486141930->1486141930, lin 1, llk 1,
IOConsoleUsers: gIOScreenLockState 3, hs 0, bs 0, now 1486142187, sm 0x0
UserEventAgent is not entitledIOConsoleUsers: time(1) 1486141930->1486141930, lin 1, llk 1,
IOConsoleUsers: gIOScreenLockState 3, hs 0, bs 0, now 1486142188, sm 0x0
IOConsoleUsers: time(1) 1486141930->1486141930, lin 1, llk 1,
IOConsoleUsers: gIOScreenLockState 3, hs 0, bs 0, now 1486142188, sm 0x0
UserEventAgent is not entitledIOConsoleUsers: time(1) 1486141930->1486141930, lin 1, llk 1,
IOConsoleUsers: gIOScreenLockState 3, hs 0, bs 0, now 1486142189, sm 0x0
AppleKeyStore: Sending lock change 0 for handle -501
AppleKeyStore::ipc_device_state_transition: Device UnLock call(-501): lockstate=0, transientCnt=0, 115
AppleKeyStore::ipc_device_state_transition: Device UnLocked(-501): lockstate=0, 115
IOConsoleUsers: time(0) 1486141930->0, lin 1, llk 0,
IOConsoleUsers: gIOScreenLockState 1, hs 0, bs 0, now 0, sm 0x0
IOConsoleUsers: time(0) 0->0, lin 1, llk 0,
IOConsoleUsers: gIOScreenLockState 1, hs 0, bs 0, now 0, sm 0x0
loginwindow is not entitledUserEventAgent is not entitledIOConsoleUsers: time(0) 0->0, lin 1, llk 0,
IOConsoleUsers: gIOScreenLockState 1, hs 0, bs 0, now 0, sm 0x0
SmartBattery: finished polling type 4
002991.774944 PRT1@14100000: AppleUSBHostPort::disconnect: persistent enumeration failures
 
Reply
That's seems like something you should fix in Mac OSX, i don't know that OS>
 
Reply
I managed to connect it to a raspberry using the arduino IDE. But I cannot run even a simple program. If I compile (this is from the "files->examples->blink" section in the IDE)

Code:
/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN takes care
  of use the correct LED pin whatever is the board used.
  If you want to know what pin the on-board LED is connected to on your Arduino model, check
  the Technical Specs of your board  at https://www.arduino.cc/en/Main/Products
  
  This example code is in the public domain.

  modified 8 May 2014
  by Scott Fitzgerald
  
  modified 2 Sep 2016
  by Arturo Guadalupi
*/


// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

nothing happens (even if I changed the 1000 to 100 or 2000). As far as I know you are not selling the Chinese clone (I see the FTDI-chip on the back). But I fear that the arduino is somehow broken - why is the LED not reacting?
 
Reply
Do you have a windows PC available?
 
Reply
Wednesday or Thursday. What shall I do?
 
Reply
What does the answer imply?
 
Reply
It is not my computer and not at home, but I can do some checks. And I do not exactly know which checks I should run.
 
Reply
Just test if the nano works as you might expect when using a windows computer. E.g. flashing the blink example with the Windows Arduino IDE.

Also, just to make things clear. The official USB nano costs € 22,-. If you buy just the nano from pilight it costs € 12,50. I'm of course not going to make losses. I sell nano's that have proven to work with a lot of pilight users. So not the ones with the CH340, but the ones with the right RS232 chip.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  pilight-raw changes output format from 7 to 8 Rschnauzer 2 1,160 05-04-2022, 01:32 PM
Last Post: youradultworld
  pilight on raspbian bullseye ChristianK 2 787 04-04-2022, 06:36 PM
Last Post: n.kooij
Question pilight stopped working sl4m01 5 1,869 09-16-2021, 01:34 PM
Last Post: orlo11
  how to compile pilight with custom protocol code? am i missing something? stanwebber 2 604 07-05-2021, 03:49 AM
Last Post: stanwebber
  hardware info lost after pilight restart Rschnauzer 3 836 03-17-2021, 11:44 AM
Last Post: Rschnauzer
Question pilight nightly webgui offline after some hours fleisch 4 1,247 10-26-2020, 05:19 PM
Last Post: fleisch
  pilight bugs Ascenion 1 997 03-23-2020, 06:29 PM
Last Post: curlymo
  [Solved] pilight service crashing on first webserver access after reboot VrahoK 20 6,248 12-21-2019, 09:46 AM
Last Post: curlymo
  pilight-control modify values coolinx 16 5,070 11-13-2019, 08:02 PM
Last Post: curlymo
  Bug: double free or corruption in pilight-send blackzombie 12 4,336 10-07-2019, 08:15 PM
Last Post: blackzombie

Forum Jump:


Browsing: 2 Guest(s)