Jump to content


Photo
- - - - -

HH and serial port


  • Please log in to reply
1 reply to this topic

#1 cestor

cestor

    Dedicated Cocooner

  • Registered
  • PipPipPip
  • 158 posts
  • Experience:average
  • Software:Custom
  • Hardware:HAI OmniPro II
  • Tech:Custom
  • Video:Custom
  • CCTV:ip

Posted 29 November 2015 - 09:04 AM

Has anyone out there got Haiku Helper to communicate through a serial port at all? Even the simple examples in the API documentation give me an error message 'undefined' e.g.

 

var port=helper.openSerialPort(controller,'/dev/cu.Repleo-CH341-00002006');

port.setDataBits(8); ----> Unhandled exception : undefined is not an object (evaluating'port.SetDataBits')

 

I saw a similar error on a thread a couple of years old which was apparently a sandbox issue and meant to be fixed...

 

 

 

 

 



#2 lupinglade

lupinglade

    Cocoonut

  • Manufacturers
  • PipPipPipPip
  • 1514 posts
  • Experience:guru
  • Software:Custom
  • Hardware:HAI OmniPro II, Custom
  • Tech:UPB, INSTEON, Z-Wave, ZigBee, Custom
  • Audio:Nuvo
  • Video:AirPlay
  • CCTV:ip, dvr
  • Phone:Asterisk

Posted 14 December 2015 - 12:22 AM

Yes, this is a sandboxing issue (no access to /dev). No workaround available currently besides using a serial to network gateway.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users